joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b020
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi + 0x38]
or eax, dword [edi + 0x3c]
je 0x49b034
mov eax, 0xfffffffe
pop edi
ret
push esi
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov eax, esi
add eax, dword [edi + 0x30]
adc ecx, dword [edi + 0x34]
cmp ecx, 0x20000000
ja 0x49b0e9
jb 0x49b059
test eax, eax
jne 0x49b0e9
push ebx
mov ebx, dword [edi + 0x170]
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], ecx
push ebp
mov ebp, dword [esp + 0x18]
test ebx, ebx
je 0x49b09c
nop
test esi, esi
je 0x49b085
mov al, byte [ebp]
dec esi
xor byte [ebx + edi + 0x40], al
inc ebp
inc ebx
and ebx, 0xf
jne 0x49b070
jmp 0x49b089
test ebx, ebx
jne 0x49b0dc
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x40]
push eax
mov eax, dword [edi + 0x168]
call eax
add esp, 8
mov eax, esi
and eax, 0xfffffff0
mov dword [esp + 0x14], eax
je 0x49b0c4
push eax
push ebp
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x40]
push eax
mov eax, dword [edi + 0x164]
call eax
add ebp, dword [esp + 0x24]
add esp, 0x10
sub esi, dword [esp + 0x14]
test esi, esi
je 0x49b0dc
xor ecx, ecx
mov ebx, esi
test esi, esi
je 0x49b0dc
mov al, byte [ecx + ebp]
xor byte [edi + ecx + 0x40], al
inc ecx
cmp ecx, esi
jb 0x49b0d0
pop ebp
mov dword [edi + 0x170], ebx
xor eax, eax
pop ebx
pop esi
pop edi
ret
pop esi
or eax, 0xffffffff
pop edi
ret
Function at 0x49bec0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x170], 0
mov dword [esi + 0x16c], 0
cmp edi, 0xc
jne 0x49bf22
mov eax, dword [esp + 0x10]
mov edi, 1
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x1000000
jmp 0x49c024
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esp + 0x14], edi
mov dword [esi + 0x4c], 0
push ebx
mov ebx, dword [esp + 0x14]
push ebp
lea ebp, [esi + 0x40]
cmp edi, 0x10
jb 0x49bfba
mov eax, edi
lea ecx, [esi + 0x41]
shr eax, 4
mov dword [esp + 0x14], eax
nop dword [eax]
mov eax, ecx
lea edx, [ebx + 1]
mov ebp, 4
nop word [eax + eax]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
xor byte [eax - 1], cl
lea eax, [eax + 4]
movzx ecx, byte [edx - 4]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 3]
xor byte [eax - 3], cl
movzx ecx, byte [edx - 2]
xor byte [eax - 2], cl
sub ebp, 1
jne 0x49bf70
lea eax, [esi + 0x60]
push eax
mov eax, dword [esi + 0x168]
lea ebp, [esi + 0x40]
push ebp
call eax
add esp, 8
lea ecx, [esi + 0x41]
add ebx, 0x10
sub edi, 0x10
sub dword [esp + 0x14], 1
jne 0x49bf60
test edi, edi
je 0x49bfdf
xor ecx, ecx
test edi, edi
je 0x49bfcf
mov al, byte [ecx + ebx]
xor byte [ecx + ebp], al
inc ecx
cmp ecx, edi
jb 0x49bfc4
lea eax, [esi + 0x60]
push eax
mov eax, dword [esi + 0x168]
push ebp
call eax
add esp, 8
mov eax, dword [esp + 0x1c]
xor ecx, ecx
shld ecx, eax, 3
shl eax, 3
bswap eax
xor dword [esi + 0x4c], eax
lea eax, [esi + 0x60]
push eax
mov eax, dword [esi + 0x168]
bswap ecx
xor dword [esi + 0x48], ecx
push ebp
call eax
mov eax, dword [ebp]
add esp, 8
mov edi, dword [esi + 0x4c]
mov dword [esi], eax
mov eax, dword [ebp + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x48]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x4c]
pop ebp
bswap edi
mov dword [esi + 0xc], eax
pop ebx
mov dword [esi + 0x40], 0
lea eax, [esi + 0x20]
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
push dword [esi + 0x178]
push eax
mov eax, dword [esi + 0x174]
push esi
call eax
add esp, 0xc
inc edi
bswap edi
mov dword [esi + 0xc], edi
pop edi
pop esi
ret

Function at 0x49c4a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.00581be0
lea eax, [esp]
push eax
call fcn.0049c090
mov eax, dword [esp + 8]
add esp, 4
test eax, eax
je 0x49c4c3
add esp, 0xc
jmp eax
push ebx
mov ebx, dword [esp + 0x20]
push esi
xor esi, esi
test ebx, ebx
je 0x49c503
push ebp
mov ebp, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x20]
nop dword [eax]
movups xmm1, xmmword [esi + ebp]
movups xmm0, xmmword [edi]
push dword [esp + 0x24]
pxor xmm0, xmm1
push edi
movups xmmword [edi], xmm0
call dword [esp + 0x20]
add esi, 0x10
add esp, 8
cmp esi, ebx
jb 0x49c4e0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x49f6c0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00581be0
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x49f740
mov cl, byte [edi]
test cl, cl
je 0x49f740
push ebx
push esi
mov ebx, 0x100
nop word [eax + eax]
movd xmm1, dword [esp + 0xc]
lea edi, [edi + 1]
movsx esi, cl
mov edx, 0x20
or esi, ebx
add ebx, 0x100
mov ecx, esi
shr ecx, 2
xor ecx, esi
imul esi, esi
and ecx, 0xf
sub edx, ecx
shl eax, cl
mov cl, byte [edi]
movd xmm0, edx
psrlq xmm1, xmm0
movd edx, xmm1
or eax, edx
xor eax, esi
mov dword [esp + 0xc], eax
test cl, cl
jne 0x49f6f0
mov ecx, eax
pop esi
shr ecx, 0x10
pop ebx
xor eax, ecx
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret

Function at 0x49f980
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00581be0
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x49fa03
mov cl, byte [edi]
test cl, cl
je 0x49fa03
push ebx
push esi
mov ebx, 0x100
nop word [eax + eax]
movd xmm1, dword [esp + 0xc]
lea edi, [edi + 1]
movsx esi, cl
mov edx, 0x20
and esi, 0xffffffdf
or esi, ebx
add ebx, 0x100
mov ecx, esi
shr ecx, 2
xor ecx, esi
imul esi, esi
and ecx, 0xf
sub edx, ecx
shl eax, cl
mov cl, byte [edi]
movd xmm0, edx
psrlq xmm1, xmm0
movd edx, xmm1
or eax, edx
xor eax, esi
mov dword [esp + 0xc], eax
test cl, cl
jne 0x49f9b0
mov ecx, eax
pop esi
shr ecx, 0x10
pop ebx
xor eax, ecx
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret
Function at 0x4a7580
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.00581be0
mov eax, dword [0x635f14]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa4]
push ebx
mov ebx, dword [esp + 0xb4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xb0]
push ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xbc]
push esi
mov esi, dword [esp + 0xc4]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xcc]
push edi
mov edi, dword [esp + 0xd8]
push ecx
mov ebp, dword [eax]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], edi
call fcn.004c2930
push ebp
push 0
push edi
mov dword [esp + 0x2c], eax
call fcn.004e7d70
add esp, 0x10
test eax, eax
je 0x4a7752
mov edi, dword [esp + 0xcc]
inc ebp
test edi, edi
mov edi, dword [esp + 0x10]
je 0x4a7634
push 0
push esi
push edi
push dword [esp + 0x28]
call fcn.0045e4d0
add esp, 0x10
test eax, eax
jle 0x4a7753
push esi
push edi
push ebx
call fcn.00583ec0
push esi
lea eax, [esp + 0x7c]
push edi
push eax
call fcn.00583ec0
lea eax, [esi - 1]
add esp, 0x18
test eax, eax
js 0x4a765d
add byte [ebx + eax], 1
jne 0x4a765d
sub eax, 1
jns 0x4a7652
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x34]
push 0
push eax
push esi
push edi
call fcn.00486060
add esp, 0x18
test eax, eax
je 0x4a7753
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x74]
push 0
push eax
push esi
push ebx
call fcn.00486060
add esp, 0x18
test eax, eax
je 0x4a7753
xor eax, eax
test esi, esi
jle 0x4a76fe
cmp esi, 0x20
jb 0x4a76ed
mov ecx, esi
and ecx, 0x8000001f
jns 0x4a76b5
dec ecx
or ecx, 0xffffffe0
inc ecx
mov edx, esi
sub edx, ecx
nop dword [eax]
movups xmm0, xmmword [esp + eax + 0x2c]
movups xmm1, xmmword [esp + eax + 0x6c]
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x2c], xmm1
movups xmm0, xmmword [esp + eax + 0x3c]
movups xmm1, xmmword [esp + eax + 0x7c]
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x3c], xmm1
add eax, 0x20
cmp eax, edx
jl 0x4a76c0
cmp eax, esi
jge 0x4a76fe
mov cl, byte [esp + eax + 0x6c]
xor byte [esp + eax + 0x2c], cl
inc eax
cmp eax, esi
jl 0x4a76f1
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x2c]
or byte [esp + 0x2c], 0x80
or byte [esp + esi + 0x2b], 1
push edi
push esi
push eax
call fcn.00474900
add esp, 0xc
test eax, eax
je 0x4a7753
push dword [esp + 0x18]
push dword [esp + 0x28]
push edi
call fcn.004e7dc0
add esp, 0xc
test eax, eax
jg 0x4a7774
jne 0x4a7753
push ebp
push 0
push dword [esp + 0x20]
mov edi, 1
call fcn.004e7d70
add esp, 0xc
test eax, eax
jne 0x4a7613
inc ebp
xor eax, eax
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword [ecx], ebp
mov ecx, dword [esp + 0xa4]
pop ebp
pop ebx
xor ecx, esp
call fcn.00581392
add esp, 0xa0
ret
mov eax, 1
jmp 0x4a7755
Function at 0x4ad160
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
cmp ebp, 2
je 0x4ad237
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4ad1e9
push edi
push 0
lea eax, [esp + 0x28]
push eax
push 0
call fcn.004abf80
add esp, 0x10
cmp dword [esp + 0x20], 0xffffffff
je 0x4ad1be
call fcn.0046b260
push str.ossl_ecx_key_op
push 0xa6
push str.cryptoececx_backend.c
call fcn.0046b2b0
push 0
push 0x66
push 0x10
call fcn.0046b2e0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
ret
push dword [edi]
mov esi, dword [esp + 0x20]
call fcn.004690c0
add esp, 4
test esi, esi
jne 0x4ad1d4
mov esi, eax
jmp 0x4ad1ed
cmp esi, eax
je 0x4ad1ed
call fcn.0046b260
push str.ossl_ecx_key_op
push 0xac
jmp 0x4ad1a0
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x14], 0
je 0x4ad223
test esi, esi
je 0x4ad223
cmp esi, 0x40a
je 0x4ad218
cmp esi, 0x43f
je 0x4ad218
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x4ad21d
mov eax, 0x20
cmp dword [esp + 0x18], eax
je 0x4ad23b
call fcn.0046b260
push str.ossl_ecx_key_op
push 0xb2
jmp 0x4ad1a0
mov esi, dword [esp + 0x1c]
cmp esi, 0x40a
je 0x4ad25f
cmp esi, 0x43f
je 0x4ad25f
xor eax, eax
cmp esi, 0x40b
setne al
lea eax, [eax*2 + 1]
jmp 0x4ad26f
xor ecx, ecx
mov eax, 2
cmp esi, 0x40a
cmove eax, ecx
push ebx
push dword [esp + 0x2c]
push 1
push eax
push dword [esp + 0x34]
call fcn.0048ee70
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4ad2b9
call fcn.0046b260
push str.ossl_ecx_key_op
push 0xb9
push str.cryptoececx_backend.c
call fcn.0046b2b0
push ebx
push 0x80010
push 0x10
call fcn.0046b2e0
add esp, 0x18
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
test ebp, ebp
jne 0x4ad2d9
push dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
push eax
lea eax, [ebx + 0xc]
push eax
call fcn.00583ec0
add esp, 0xc
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret
push ebx
call fcn.0048ee00
mov edi, eax
add esp, 4
test edi, edi
jne 0x4ad30c
call fcn.0046b260
push str.ossl_ecx_key_op
push 0xc3
push str.cryptoececx_backend.c
call fcn.0046b2b0
push edi
push 0x80010
jmp 0x4ad3e3
cmp ebp, 2
jne 0x4ad37e
test esi, esi
je 0x4ad3b2
cmp esi, 0x40a
je 0x4ad339
cmp esi, 0x43f
je 0x4ad339
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x4ad33e
mov eax, 0x20
push 0
push eax
push edi
push dword [esp + 0x34]
call fcn.0045e880
add esp, 0x10
test eax, eax
jle 0x4ad3ed
cmp esi, 0x40a
jne 0x4ad36d
mov al, byte [edi + 0x1f]
and byte [edi], 0xf8
and al, 0x3f
or al, 0x40
mov byte [edi + 0x1f], al
jmp 0x4ad3b2
cmp esi, 0x40b
jne 0x4ad3b2
and byte [edi], 0xfc
or byte [edi + 0x37], 0x80
jmp 0x4ad3b2
cmp esi, 0x40a
je 0x4ad39e
cmp esi, 0x43f
je 0x4ad39e
xor eax, eax
cmp esi, 0x40b
setne al
add eax, 0x38
jmp 0x4ad3a3
mov eax, 0x20
push eax
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.00583ec0
add esp, 0xc
push ebx
call fcn.004ad400
add esp, 4
test eax, eax
jne 0x4ad2d2
call fcn.0046b260
push str.ossl_ecx_key_op
push 0xd7
push str.cryptoececx_backend.c
call fcn.0046b2b0
push 0
push 0xa6
push 0x10
call fcn.0046b2e0
add esp, 0x18
push ebx
call fcn.0048ee20
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x4b1cd0
Capabilities:
Encrypt data using curve25519

Disassembly:
mov eax, 0xe4
call fcn.00581be0
mov eax, dword [0x635f14]
xor eax, esp
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0xe8]
push ebx
mov ebx, dword [esp + 0xf0]
push esi
mov esi, dword [esp + 0xf8]
push edi
push eax
push str.SHA512
push ecx
call fcn.00486b80
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4b1d52
push 0
push edi
push 0
lea eax, [esp + 0xb8]
push eax
push 0x20
push esi
call fcn.00486060
push edi
mov esi, eax
call fcn.004870d0
add esp, 0x1c
test esi, esi
jne 0x4b1d6c
lea eax, [esp + 0xac]
push 0x40
push eax
call fcn.00401320
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.00581392
add esp, 0xe4
ret
mov al, byte [esp + 0xcb]
and byte [esp + 0xac], 0xf8
and al, 0x3f
or al, 0x40
mov byte [esp + 0xcb], al
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.004b1410
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004b1b50
lea eax, [esp + 0xbc]
push 0x40
push eax
call fcn.00401320
mov ecx, dword [esp + 0x104]
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00581392
add esp, 0xe4
ret
Function at 0x4bf570
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x4bf639
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x4bf591
cmp al, 0x6b
jne 0x4bf639
inc ecx
cmp al, 0x6b
jne 0x4bf5f2
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x4bf5b2
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x4bf5b2
cmp dl, 0xbb
jne 0x4bf5c6
inc eax
cmp eax, esi
jl 0x4bf5a0
sub esi, eax
test eax, eax
jne 0x4bf5f5
call fcn.0046b260
push str.RSA_padding_check_X931
push 0x56
jmp 0x4bf5d2
call fcn.0046b260
push str.RSA_padding_check_X931
push 0x4e
push str.crypto_rsa_rsa_x931.c
call fcn.0046b2b0
push 0
push 0x8a
push 4
call fcn.0046b2e0
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x4bf627
call fcn.0046b260
push str.RSA_padding_check_X931
push 0x5f
push str.crypto_rsa_rsa_x931.c
call fcn.0046b2b0
push 0
push 0x8b
push 4
call fcn.0046b2e0
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
push esi
push ecx
push dword [esp + 0x10]
call fcn.00583ec0
add esp, 0xc
mov eax, esi
pop esi
ret
call fcn.0046b260
push str.RSA_padding_check_X931
push 0x43
push str.crypto_rsa_rsa_x931.c
call fcn.0046b2b0
push 0
push 0x89
push 4
call fcn.0046b2e0
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
Function at 0x4c3330
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [esp + 0xc]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [edi + 0x24]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.0045d1f0
add esp, 8
test esi, esi
jg 0x4c3387
je 0x4c3369
cmp esi, 0xffffffff
jne 0x4c3387
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004c36c0
add esp, 4
test eax, eax
je 0x4c3387
push 0xa
push edi
call fcn.0045e070
add esp, 8
pop edi
mov eax, esi
pop esi
ret

Function at 0x4c37c0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 4
call fcn.00581be0
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 1
cmp edi, 0xffffffff
jne 0x4c3808
call fcn.0046b260
push str.BIO_connect
push 0x56
push str.crypto_bio_bio_sock2.c
call fcn.0046b2b0
push 0
push 0x87
push 0x20
call fcn.0046b2e0
add esp, 0x18
xor eax, eax
pop edi
pop ecx
ret
push ebx
mov ebx, dword [esp + 0x18]
mov eax, ebx
shr eax, 3
and eax, 1
push eax
push edi
call fcn.0047c460
add esp, 8
test eax, eax
jne 0x4c3827
pop ebx
pop edi
pop ecx
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x4c38a2
push 4
lea eax, [esp + 0x10]
push eax
push 8
push 0xffff
push edi
call esi
test eax, eax
je 0x4c38a2
call fcn.0046b260
push str.BIO_connect
push 0x60
push str.crypto_bio_bio_sock2.c
call fcn.0046b2b0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.0046b2e0
call fcn.0046b260
push str.BIO_connect
push 0x62
push str.crypto_bio_bio_sock2.c
call fcn.0046b2b0
push 0
push 0x89
push 0x20
call fcn.0046b2e0
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
test bl, 0x10
je 0x4c3913
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push edi
call esi
test eax, eax
je 0x4c3913
call fcn.0046b260
push str.BIO_connect
push 0x6a
push str.crypto_bio_bio_sock2.c
call fcn.0046b2b0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.0046b2e0
call fcn.0046b260
push str.BIO_connect
push 0x6c
push str.crypto_bio_bio_sock2.c
call fcn.0046b2b0
push 0
push 0x8a
push 0x20
call fcn.0046b2e0
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.0047d630
add esp, 4
push eax
push esi
call fcn.00533d70
add esp, 4
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4c39a1
push eax
call fcn.004c3780
add esp, 4
test eax, eax
jne 0x4c399a
call fcn.0046b260
push str.BIO_connect
push 0xb2
push str.crypto_bio_bio_sock2.c
call fcn.0046b2b0
add esp, 0xc
push str.calling_connect__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.0046b2e0
call fcn.0046b260
push str.BIO_connect
push 0xb4
push str.crypto_bio_bio_sock2.c
call fcn.0046b2b0
push 0
push 0x67
push 0x20
call fcn.0046b2e0
add esp, 0x24
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret
pop esi
pop ebx
mov eax, 1
pop edi
pop ecx
ret
Function at 0x4e0480
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov cl, byte [esp + 0x10]
movzx eax, cl
push esi
mov esi, dword [esp + 0x10]
and eax, 1
test esi, esi
je 0x4e04c2
push ebx
mov ebx, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
add edi, esi
add ebx, esi
movzx edx, byte [ebx - 1]
lea ebx, [ebx - 1]
movzx ecx, cl
lea edi, [edi - 1]
xor edx, ecx
mov cl, byte [esp + 0x1c]
add eax, edx
mov byte [edi], al
shr eax, 8
sub esi, 1
jne 0x4e04a1
pop edi
pop ebx
pop esi
ret

Function at 0x4efb50
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call fcn.00584440
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov eax, 1
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x18
pop esi
ret
Function at 0x4f2cf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 4
call fcn.00581be0
push edi
mov edi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp edi, 0x800
jge 0x4f2d38
call fcn.0046b260
push str.ossl_rsa_fips186_4_gen_prob_primes
push 0x5c
push str.crypto_rsa_rsa_sp800_56b_gen.c
call fcn.0046b2b0
push 0
push 0x78
push 4
call fcn.0046b2e0
add esp, 0x18
xor eax, eax
pop edi
pop ecx
ret
push dword [esp + 0x18]
call fcn.004f2a40
add esp, 4
test eax, eax
jne 0x4f2d74
call fcn.0046b260
push str.ossl_rsa_fips186_4_gen_prob_primes
push 0x61
push str.crypto_rsa_rsa_sp800_56b_gen.c
call fcn.0046b2b0
push 0
push 0xb2
push 4
call fcn.0046b2e0
add esp, 0x18
xor eax, eax
pop edi
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
push esi
call fcn.004c26c0
push esi
call fcn.004c25a0
push esi
mov dword [esp + 0x2c], eax
call fcn.004c25a0
push esi
mov ebp, eax
call fcn.004c25a0
add esp, 0x10
mov ebx, eax
cmp dword [esp + 0x20], 0
je 0x4f2ea4
test ebp, ebp
je 0x4f2eb1
test ebx, ebx
je 0x4f2ea4
push 4
push ebp
call fcn.004751d0
push 4
push ebx
call fcn.004751d0
mov esi, dword [esp + 0x28]
add esp, 0x10
cmp dword [esi + 0x20], 0
jne 0x4f2dde
call fcn.004750a0
mov dword [esi + 0x20], eax
cmp dword [esi + 0x24], 0
jne 0x4f2dec
call fcn.004750a0
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4f2ea0
cmp dword [esi + 0x24], 0
je 0x4f2ea0
push 4
push eax
call fcn.004751d0
push 4
push dword [esi + 0x24]
call fcn.004751d0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push edi
push 0
push 0
push 0
push 0
push 0
push ebp
push dword [esi + 0x20]
call fcn.0053f590
add esp, 0x3c
test eax, eax
je 0x4f2ea0
nop word [eax + eax]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push edi
push 0
push 0
push 0
push 0
push 0
push ebx
push dword [esi + 0x24]
call fcn.0053f590
add esp, 0x2c
test eax, eax
je 0x4f2ea0
push edi
push ebx
push ebp
push dword [esp + 0x2c]
call fcn.004f29d0
add esp, 0x10
test eax, eax
js 0x4f2ea0
je 0x4f2e40
push edi
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esp + 0x2c]
call fcn.004f29d0
add esp, 0x10
test eax, eax
js 0x4f2ea0
je 0x4f2e40
inc dword [esi + 0x78]
mov dword [esp + 0x10], 1
mov esi, dword [esp + 0x28]
test ebp, ebp
je 0x4f2eb1
push ebp
call fcn.004749a0
add esp, 4
test ebx, ebx
je 0x4f2ebe
push ebx
call fcn.004749a0
add esp, 4
push dword [esp + 0x20]
call fcn.004749a0
push esi
call fcn.004c2510
mov eax, dword [esp + 0x18]
add esp, 8
pop esi
pop ebp
pop ebx
pop edi
pop ecx
ret
Function at 0x4fb190
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.00581be0
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ecx, dword [eax + 0x64]
mov ebp, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x28]
mov edx, dword [ecx + 0x70]
mov dword [esp + 0x1c], ecx
test edx, edx
je 0x4fb1f6
test edi, edi
je 0x4fb1d6
nop
cmp edx, 0x40
jae 0x4fb1d6
mov al, byte [edx + ecx + 0x30]
inc edx
xor al, byte [ebx]
inc ebx
mov byte [ebp], al
inc ebp
sub edi, 1
jne 0x4fb1c0
mov dword [ecx + 0x70], edx
test edi, edi
je 0x4fb2ac
cmp edx, 0x40
jne 0x4fb1f6
mov dword [ecx + 0x70], 0
add dword [ecx + 0x20], 1
jne 0x4fb1f6
inc dword [ecx + 0x24]
mov eax, edi
lea edx, [ecx + 0x20]
and eax, 0x3f
mov dword [esp + 0x14], edx
sub edi, eax
mov dword [esp + 0xc], eax
mov eax, dword [edx]
push esi
cmp edi, 0x40
jb 0x4fb259
mov esi, edi
shr esi, 6
add eax, esi
mov dword [esp + 0x14], eax
cmp eax, esi
jae 0x4fb229
sub esi, eax
mov dword [esp + 0x14], 0
push edx
push ecx
shl esi, 6
push esi
push ebx
push ebp
call fcn.00444c00
mov edx, dword [esp + 0x2c]
add esp, 0x14
mov eax, dword [esp + 0x14]
sub edi, esi
mov ecx, dword [esp + 0x20]
add ebx, esi
add ebp, esi
mov dword [edx], eax
test eax, eax
jne 0x4fb254
inc dword [ecx + 0x24]
cmp edi, 0x40
jae 0x4fb210
cmp dword [esp + 0x10], 0
je 0x4fb2ab
push 0x40
lea edi, [ecx + 0x30]
push 0
push edi
call fcn.00584440
push dword [esp + 0x24]
mov esi, dword [esp + 0x30]
push esi
push 0x40
push edi
push edi
call fcn.00444c00
mov eax, dword [esp + 0x30]
add esp, 0x20
xor edx, edx
test eax, eax
je 0x4fb2a8
sub ebx, ebp
mov esi, eax
lea ecx, [edx + ebp]
mov al, byte [ebx + ecx]
xor al, byte [edi + edx]
inc edx
mov byte [ecx], al
cmp edx, esi
jb 0x4fb290
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov dword [esi + 0x70], eax
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret
Function at 0x4fee30
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0x27
push str.crypto_thread_arch_thread_win.c
push 4
call fcn.00466190
mov edi, dword [esp + 0x18]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4fee74
push 0
push 0
push edi
push 0x4fee90
push 0
push 0
call fcn.0058f3ab
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x4fee74
mov dword [edi + 0x10], esi
mov eax, 1
pop edi
pop esi
ret
push 0x34
push str.crypto_thread_arch_thread_win.c
push esi
mov dword [edi + 0x10], 0
call fcn.00465fc0
add esp, 0xc
xor eax, eax
pop edi
pop esi
ret