joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49dcf0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x49dd23
push 0x2e
push edi
call fcn.00611670
add esp, 8
test eax, eax
je 0x49dd21
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x49f6c0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x6e9004]
mov edi, eax
add esp, 4
test edi, edi
jne 0x49f6ed
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x49f737
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0x49f73d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x49f79b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop dword [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x49f760
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x49f7c7
mov eax, dword [esi + 4]
push 1
push 0x65ae48
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x65ae49
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x49f7a0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a0510
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4a054f
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
pop ebp
ret
Function at 0x4a2330
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.004c05e0
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.00611670
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x4a23e9
call fcn.004bef90
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.004bf090
add esp, 0xc
push esi
push dword [esp + 0x14]
push str.calling_fopen__s___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
call fcn.004bf140
add esp, 0x14
call fcn.0061c2ae
cmp dword [eax], 2
je 0x4a23b9
call fcn.0061c2ae
cmp dword [eax], 6
je 0x4a23b9
mov esi, 0x80002
mov edi, 0x4d
jmp 0x4a23c1
mov esi, 0x80
lea edi, [esi - 0x35]
call fcn.004bef90
push str.BIO_new_file
push edi
push str.crypto_bio_bss_file.c
call fcn.004bf090
push 0
push esi
push 0x20
call fcn.004bf140
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x65b104
call fcn.004a2cd0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4a240b
push edi
call fcn.0061ce1a
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.004a2580
push edi
push ebx
push 0x6a
push esi
call fcn.004a25b0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x4baf90
Capabilities:
Terminate process

Disassembly:
mov eax, 8
call fcn.0060ff70
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
push ebx
xor edi, edi
call fcn.004a0b50
add esp, 4
test eax, eax
jle 0x4bb16a
push edi
push ebx
call fcn.004a0d80
mov esi, eax
mov dword [esp + 0x18], 0
push 0x9c
push esi
xor ebp, ebp
call fcn.0050da50
add esp, 0x10
test eax, eax
je 0x4bafe1
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
push 0x9d
push esi
call fcn.0050da50
add esp, 8
test eax, eax
je 0x4baff6
mov ebp, dword [eax + 4]
push esi
call fcn.0050db40
add eax, 0xffffff6a
add esp, 4
cmp eax, 5
ja case.0x4bb00d.153
jmp dword [eax*4 + 0x4bb18c]
mov ebp, dword [esp + 0x28]
test ebp, ebp
je case.0x4bb00d.153
cmp dword [ebp], 0
jne case.0x4bb00d.153
push esi
call fcn.0050da70
push eax
call fcn.004faf60
add esp, 8
mov dword [ebp], eax
jmp 0x4bb154
mov ebp, dword [esp + 0x28]
test ebp, ebp
je case.0x4bb00d.153
cmp dword [ebp], 0
jne case.0x4bb00d.153
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call fcn.0050db50
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4bb180
push esi
call fcn.004faf60
push esi
mov dword [ebp], eax
call fcn.004fae30
add esp, 8
cmp dword [ebp], 0
jmp 0x4bb156
cmp dword [esp + 0x2c], 0
je case.0x4bb00d.153
push esi
call fcn.0050db00
add esp, 4
cmp eax, 0x9e
jne case.0x4bb00d.153
push esi
call fcn.0050dab0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4bb180
test ebp, ebp
je 0x4bb0da
push dword [ebp]
push dword [ebp + 8]
push ebx
call fcn.00503210
add esp, 0xc
test eax, eax
je 0x4bb177
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4bb11b
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004a7bd0
add esp, 8
test eax, eax
js 0x4bb11b
push eax
push dword [esp + 0x18]
push ebx
call fcn.00503100
push 0xec
push str.cryptopkcs12p12_kiss.c
push dword [esp + 0x28]
mov esi, eax
call fcn.004a1af0
add esp, 0x18
test esi, esi
je 0x4bb177
push ebx
push dword [esp + 0x30]
call fcn.004a0be0
add esp, 8
test eax, eax
je 0x4bb177
mov ebx, dword [esp + 0x1c]
jmp case.0x4bb00d.153
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push esi
call fcn.0050da90
add esp, 4
push eax
call fcn.004baf90
add esp, 0x14
test eax, eax
je 0x4bb180
push ebx
inc edi
call fcn.004a0b50
add esp, 4
cmp edi, eax
jl 0x4bafb5
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
push ebx
call fcn.004b5e60
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x4c07b0
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x6efa10], 0
jne 0x4c0849
push 0x190
push 0
push 0x6efa18
mov dword [0x6efa10], 1
call fcn.00612090
add esp, 0xc
push 0x6efa18
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4c0849
call fcn.004bef90
push str.BIO_sock_init
push 0x92
push str.crypto_bio_bio_sock.c
call fcn.004bf090
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.004bf140
call fcn.004bef90
push str.BIO_sock_init
push 0x94
push str.crypto_bio_bio_sock.c
call fcn.004bf090
push 0
push 0x7a
push 0x20
call fcn.004bf140
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret
Function at 0x4c0850
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x4c08a5
call fcn.004bef90
push str.BIO_socket_ioctl
push 0xcf
push str.crypto_bio_bio_sock.c
call fcn.004bf090
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.004bf140
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret

Function at 0x4c1400
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.0060ff70
mov eax, dword [0x6ed0a4]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x6efbb0], 0
mov dword [esp], 0x660640
mov dword [esp + 4], 0x4c0df0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x4c11b0
mov dword [esp + 0x10], 0x660658
mov dword [esp + 0x14], 0x4c0d90
jne 0x4c155b
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4c1551
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.00618b0a
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.0062356a
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x40]
add esp, 0x18
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x4c14cf
push 0x660640
push edi
call ebx
test eax, eax
jne 0x4c1516
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.00618b0a
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.0062356a
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x4c154d
push 0x660640
push edi
call ebx
test eax, eax
je 0x4c154a
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x4c154a
inc esi
cmp esi, 3
jl 0x4c1518
mov eax, dword [esp + 0x14]
mov dword [0x6e9484], eax
mov eax, dword [esp + 0x1c]
mov dword [0x6e948c], eax
mov eax, dword [esp + 0x24]
mov dword [0x6e9494], eax
jmp 0x4c154d
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x6efbb0], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x6e9484]
call fcn.0060f4a4
add esp, 0x230
ret 4
Function at 0x4c1590
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.0060ff70
mov eax, dword [0x6ed0a4]
xor eax, esp
mov dword [esp + 0x81c], eax
push ebx
mov ebx, dword [esp + 0x83c]
lea eax, [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x830]
push edi
push 0x401
push 0
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], 0
call fcn.00612090
push 0x401
lea eax, [esp + 0x438]
push 0
push eax
call fcn.00612090
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call fcn.00623686
add esp, 0x28
push esi
mov edi, ebx
mov dword [ebx], 0
mov byte [ebp], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x4c175f
cmp word [ebx + 8], 2
jne 0x4c1682
cmp word [ebx + 0xa], 4
jne 0x4c1682
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x4c1682
nop word [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.004c17c0
mov dword [edi], eax
test eax, eax
je 0x4c1758
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x4c1650
push 0x400
push dword [ebx]
push 0x401
push ebp
call fcn.00623686
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x4c1710
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c16a6
sub ecx, edx
je case.0x4c176f.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4c16e0
test dl, dl
je 0x4c16dc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4c16e0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4c16c0
xor eax, eax
jmp 0x4c16e5
sbb eax, eax
or eax, 1
test eax, eax
je case.0x4c176f.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x4c176f.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x4c1612
cmp dword [esp + 0x844], esi
je 0x4c1789
mov ecx, ebp
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c1720
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.0061c32e
mov edi, eax
add esp, 8
test edi, edi
je 0x4c1748
push ebp
push ebx
push edi
call fcn.00618b0a
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [eax + 0x14], edi
mov eax, dword [ecx]
cmp dword [eax + 0x14], esi
jne 0x4c1789
mov esi, 8
jmp 0x4c1789
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x4c176f.11001
jmp dword [eax*4 + 0x4c17a8]
mov esi, 0x2afa
jmp 0x4c1789
mov esi, 0x2afb
jmp 0x4c1789
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0060f4a4
add esp, 0x820
ret 0x18
Function at 0x4d47c0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, 0x40
call fcn.0060ff70
mov eax, dword [0x6ed0a4]
xor eax, esp
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x48], 0x1d
push esi
mov esi, dword [esp + 0x48]
push edi
mov edi, dword [esp + 0x58]
je 0x4d47fc
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0060f4a4
add esp, 0x40
ret
test esi, esi
je 0x4d490b
cmp dword [esp + 0x54], 0x30
jne 0x4d490b
push 0x30
push edi
push esi
call fcn.004d46e0
add esp, 0xc
test eax, eax
jle 0x4d490b
movaps xmm0, xmmword [str.6666666666666666_t]
lea eax, [esp + 8]
push 0x28
push eax
push esi
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
movq qword [esp + 0x34], xmm0
call fcn.004d46e0
add esp, 0xc
test eax, eax
je 0x4d490b
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004d4540
add esp, 8
test eax, eax
je 0x4d490b
push 0x4c
lea eax, [esi + 0x14]
push 0
push eax
call fcn.00612090
push 0x30
push edi
push esi
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
call fcn.004d46e0
add esp, 0x18
test eax, eax
jle 0x4d490b
movaps xmm0, xmmword [0x6769b0]
lea eax, [esp + 8]
push 0x28
push eax
push esi
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
movq qword [esp + 0x34], xmm0
call fcn.004d46e0
add esp, 0xc
test eax, eax
je 0x4d490b
push 0x14
lea eax, [esp + 0x34]
push eax
push esi
call fcn.004d46e0
add esp, 0xc
test eax, eax
je 0x4d490b
lea eax, [esp + 0x30]
push 0x14
push eax
call fcn.00401320
add esp, 8
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0060f4a4
add esp, 0x40
ret
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0060f4a4
add esp, 0x40
ret
Function at 0x4f3860
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 0x4f38a2
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
add edi, esi
add ebx, esi
movzx edx, byte [edi - 1]
lea edi, [edi - 1]
movzx ecx, cl
lea ebx, [ebx - 1]
xor edx, ecx
mov cl, byte [esp + 0x1c]
add eax, edx
mov byte [ebx], al
shr eax, 8
sub esi, 1
jne 0x4f3881
pop edi
pop ebx
pop esi
ret
Function at 0x508910
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, 4
call fcn.0060ff70
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 1
push esi
call fcn.00508570
mov ebx, eax
push ebx
push esi
call fcn.00508480
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x50898f
push 0xf0000040
push 1
xor edi, edi
lea eax, [esp + 0x18]
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x508973
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.00508510
push esi
call fcn.00508650
add esp, 0x10
test eax, eax
jne 0x508a09
push 1
push esi
call fcn.00508570
mov ebx, eax
push ebx
push esi
call fcn.00508480
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x508a00
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x5089e4
push ebp
push ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 0x14]
test eax, eax
cmovne edi, ebx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea eax, [edi*8]
push eax
push edi
push esi
call fcn.00508510
push esi
call fcn.00508650
add esp, 0x10
test eax, eax
jne 0x508a09
push esi
call fcn.00508650
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x510180
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 4
call fcn.0060ff70
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 1
cmp edi, 0xffffffff
jne 0x5101c8
call fcn.004bef90
push str.BIO_connect
push 0x5f
push str.crypto_bio_bio_sock2.c
call fcn.004bf090
push 0
push 0x87
push 0x20
call fcn.004bf140
add esp, 0x18
xor eax, eax
pop edi
pop ecx
ret
push ebx
mov ebx, dword [esp + 0x18]
mov eax, ebx
shr eax, 3
push esi
and eax, 1
push eax
push edi
call fcn.004c0850
add esp, 8
test eax, eax
je 0x510257
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x51025e
push 4
lea eax, [esp + 0x10]
push eax
push 8
push 0xffff
push edi
call esi
test eax, eax
je 0x51025e
call fcn.004bef90
push str.BIO_connect
push 0x69
push str.crypto_bio_bio_sock2.c
call fcn.004bf090
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.004bf140
call fcn.004bef90
push str.BIO_connect
push 0x6b
push str.crypto_bio_bio_sock2.c
call fcn.004bf090
push 0
push 0x89
push 0x20
call fcn.004bf140
add esp, 0x24
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret
test bl, 0x10
je 0x5102cf
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push edi
call esi
test eax, eax
je 0x5102cf
call fcn.004bef90
push str.BIO_connect
push 0x73
push str.crypto_bio_bio_sock2.c
call fcn.004bf090
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.004bf140
call fcn.004bef90
push str.BIO_connect
push 0x75
push str.crypto_bio_bio_sock2.c
call fcn.004bf090
push 0
push 0x8a
push 0x20
call fcn.004bf140
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.004c09d0
add esp, 4
push eax
push esi
call fcn.004c09c0
add esp, 4
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x51035b
push eax
call fcn.00510090
add esp, 4
test eax, eax
jne 0x510257
call fcn.004bef90
push str.BIO_connect
push 0x7d
push str.crypto_bio_bio_sock2.c
call fcn.004bf090
add esp, 0xc
push str.calling_connect__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.004bf140
call fcn.004bef90
push str.BIO_connect
push 0x7f
push str.crypto_bio_bio_sock2.c
call fcn.004bf090
push 0
push 0x67
push 0x20
call fcn.004bf140
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
pop esi
pop ebx
mov eax, 1
pop edi
pop ecx
ret
Function at 0x52bab0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x52bb79
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x52bad1
cmp al, 0x6b
jne 0x52bb79
inc ecx
cmp al, 0x6b
jne 0x52bb32
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x52baf2
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x52baf2
cmp dl, 0xbb
jne 0x52bb06
inc eax
cmp eax, esi
jl 0x52bae0
sub esi, eax
test eax, eax
jne 0x52bb35
call fcn.004bef90
push str.RSA_padding_check_X931
push 0x56
jmp 0x52bb12
call fcn.004bef90
push str.RSA_padding_check_X931
push 0x4e
push str.crypto_rsa_rsa_x931.c
call fcn.004bf090
push 0
push 0x8a
push 4
call fcn.004bf140
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x52bb67
call fcn.004bef90
push str.RSA_padding_check_X931
push 0x5f
push str.crypto_rsa_rsa_x931.c
call fcn.004bf090
push 0
push 0x8b
push 4
call fcn.004bf140
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
push esi
push ecx
push dword [esp + 0x10]
call fcn.00611b10
add esp, 0xc
mov eax, esi
pop esi
ret
call fcn.004bef90
push str.RSA_padding_check_X931
push 0x43
push str.crypto_rsa_rsa_x931.c
call fcn.004bf090
push 0
push 0x89
push 4
call fcn.004bf140
add esp, 0x18
or eax, 0xffffffff
pop esi
ret
Function at 0x544b70
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.0060ff70
mov eax, dword [0x6ed0a4]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa4]
push ebx
mov ebx, dword [esp + 0xcc]
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 + 0xc0]
push ecx
mov ebp, dword [eax]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ebx
call fcn.004e7f20
push ebp
push 0
push ebx
mov dword [esp + 0x2c], eax
call fcn.0055eb70
add esp, 0x10
test eax, eax
je 0x544d61
mov ebx, dword [esp + 0xcc]
inc ebp
test ebx, ebx
mov ebx, dword [esp + 0x10]
je 0x544c24
push 0
push esi
push ebx
push dword [esp + 0x28]
call fcn.004b87c0
add esp, 0x10
test eax, eax
jle 0x544d62
push esi
push ebx
push edi
call fcn.00611b10
push esi
lea eax, [esp + 0x7c]
push ebx
push eax
call fcn.00611b10
lea eax, [esi - 1]
add esp, 0x18
test eax, eax
js 0x544c4d
add byte [edi + eax], 1
jne 0x544c4d
sub eax, 1
jns 0x544c42
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x34]
push 0
push eax
push esi
push ebx
call fcn.004a9430
add esp, 0x18
test eax, eax
je 0x544d62
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x74]
push 0
push eax
push esi
push edi
call fcn.004a9430
add esp, 0x18
test eax, eax
je 0x544d62
xor eax, eax
test esi, esi
jle 0x544d0d
cmp esi, 0x40
jb 0x544d00
mov ecx, esi
and ecx, 0xffffffc0
nop dword [eax + 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
movups xmm0, xmmword [esp + eax + 0x4c]
movups xmm1, xmmword [esp + eax + 0x8c]
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x4c], xmm1
movups xmm0, xmmword [esp + eax + 0x5c]
movups xmm1, xmmword [esp + eax + 0x9c]
pxor xmm1, xmm0
movups xmmword [esp + eax + 0x5c], xmm1
add eax, 0x40
cmp eax, ecx
jl 0x544ca0
cmp eax, esi
jge 0x544d0d
nop dword [eax]
mov cl, byte [esp + eax + 0x6c]
xor byte [esp + eax + 0x2c], cl
inc eax
cmp eax, esi
jl 0x544d00
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
or byte [esp + 0x2c], 0x80
or byte [esp + esi + 0x2b], 1
push ebx
push esi
push eax
call fcn.004a5690
add esp, 0xc
test eax, eax
je 0x544d62
push dword [esp + 0x18]
push dword [esp + 0x28]
push ebx
call fcn.0055ebc0
add esp, 0xc
test eax, eax
jg 0x544d83
jne 0x544d62
push ebp
push 0
push dword [esp + 0x20]
mov ebx, 1
call fcn.0055eb70
add esp, 0xc
test eax, eax
jne 0x544c03
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.0060f4a4
add esp, 0xa0
ret
mov eax, 1
jmp 0x544d64