joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fe40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
lea edi, [ebp - 0x28]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x665024]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xff
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x24], 3
mov esi, esp
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0xf003f
push 0x10
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp esi, esp
call fcn.00479de9
test eax, eax
je 0x44ff0d
mov ecx, 0x667940
call fcn.00409d40
test eax, eax
je 0x44ff04
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00479de9
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.create_reg_key_failed_key_s_n
push 0x4ef
push 0x5d1e60
push 2
mov ecx, 0x667940
call fcn.00409d40
mov edx, 0xd0
imul ecx, edx, 0
add eax, ecx
push eax
call fcn.004232a0
add esp, 0x1c
xor edx, edx
jne 0x44feb4
jmp 0x44ffb2
mov esi, esp
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp esi, esp
call fcn.00479de9
test eax, eax
je 0x44ff90
mov ecx, 0x667940
call fcn.00409d40
test eax, eax
je 0x44ff8a
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.00479de9
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push str.set_reg_value_failed_key_s_value_s_n
push 0x4f4
push str.WriteRegister
push 2
mov ecx, 0x667940
call fcn.00409d40
mov ecx, 0xd0
imul edx, ecx, 0
add eax, edx
push eax
call fcn.004232a0
add esp, 0x20
xor eax, eax
jne 0x44ff36
jmp 0x44ffb2
mov esi, esp
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
cmp esi, esp
call fcn.00479de9
mov dword [ebp - 8], 0
xor edx, edx
jne 0x44fe84
cmp dword [ebp - 0x10], 0
je 0x44ffcb
mov esi, esp
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00479de9
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x44fffc]
call fcn.00479d95
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004797c8
add esp, 0x28
cmp ebp, esp
call fcn.00479de9
mov esp, ebp
pop ebp
ret
Function at 0x458fd0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], 0
jmp 0x458fed
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jae 0x459010
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
mov dword [ebp + 8], eax
imul ecx, dword [ebp + 8], 0x1000193
mov dword [ebp + 8], ecx
jmp 0x458fe4
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x4675e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, 0xcccccccc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], 0xffffffff
push 0x5d2ce4
mov eax, dword [ebp + 8]
push eax
call fcn.005a2f37
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x46766e
mov ecx, 0x667940
call fcn.00409d40
test eax, eax
je 0x467665
mov ecx, dword [ebp + 8]
push ecx
push 0x5d2ce8
push 0x385
push 0x5d2cfc
mov ecx, 0x667940
call fcn.00409d40
mov edx, 0xd0
imul ecx, edx, 0
add eax, ecx
push eax
call fcn.00425160
add esp, 0x14
xor edx, edx
jne 0x467627
jmp 0x467708
mov dword [ebp - 0xc], 0
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.005a3534
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call fcn.005ab77c
add esp, 4
mov dword [ebp - 0x10], eax
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.005a3534
add esp, 0xc
lea ecx, [ebp - 0x1d]
call fcn.00403df0
push eax
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00409c80
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00415a70
lea ecx, [ebp - 0x1c]
call fcn.00409c40
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00409bc0
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00409ba0
push eax
call fcn.005a3136
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
call fcn.005a2d42
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 0x24
cmp ebp, esp
call fcn.00479de9
mov esp, ebp
pop ebp
ret
Function at 0x468120
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], 0xffffffff
push 0x5d2d08
mov eax, dword [ebp + 8]
push eax
call fcn.005a2f37
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x468199
mov ecx, 0x667940
call fcn.00409d40
test eax, eax
je 0x468193
mov ecx, dword [ebp + 8]
push ecx
push str.failed_to_open__s_n
push 0x39a
push str.file_write
mov ecx, 0x667940
call fcn.00409d40
mov edx, 0xd0
imul ecx, edx, 0
add eax, ecx
push eax
call fcn.00425160
add esp, 0x14
xor edx, edx
jne 0x468155
jmp 0x4681c2
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
call fcn.005a3768
add esp, 0x10
mov eax, dword [ebp - 8]
push eax
call fcn.005a2d42
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 8
cmp ebp, esp
call fcn.00479de9
mov esp, ebp
pop ebp
ret
Function at 0x46b8e0
Capabilities:
Get system firmware table

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ceac8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push esi
push edi
lea edi, [ebp - 0x54]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x665024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], 0
push 0xc
lea ecx, [ebp - 0x20]
call fcn.00403e60
lea ecx, [ebp - 0x20]
call fcn.004152a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0x52
mov eax, dword [ebp - 0x2c]
shl eax, 8
or eax, 0x53
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
shl ecx, 8
or ecx, 0x4d
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
shl edx, 8
or edx, 0x42
mov dword [ebp - 0x2c], edx
mov esi, esp
push 0
push 0
push 0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
cmp esi, esp
call fcn.00479de9
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.005a7340
add esp, 4
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x46ba2e
mov esi, esp
mov edx, dword [ebp - 0x30]
push edx
mov eax, 1
imul ecx, eax, 0
add ecx, dword [ebp - 0x34]
push ecx
push 0
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
cmp esi, esp
call fcn.00479de9
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x30]
jne 0x46ba2e
mov ecx, 1
imul edx, ecx, 0
add edx, dword [ebp - 0x34]
mov dword [ebp - 0x3c], edx
lea ecx, [ebp - 0x49]
call fcn.00403df0
push eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00409c80
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
push edx
lea ecx, [ebp - 0x20]
call fcn.00415a70
lea ecx, [ebp - 0x48]
call fcn.00409c40
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0x3c]
add edx, 8
push edx
push 0
lea ecx, [ebp - 0x20]
call fcn.00409ba0
push eax
call fcn.0059ed80
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.00447830
mov ecx, dword [ebp - 0x50]
or ecx, 1
mov dword [ebp - 0x50], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00409c40
mov eax, dword [ebp + 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x46ba8c]
call fcn.00479d95
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004797c8
add esp, 0x54
cmp ebp, esp
call fcn.00479de9
mov esp, ebp
pop ebp
ret
Function at 0x477090
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cf72b
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
push esi
push edi
push ecx
lea edi, [ebp - 0x1b4]
mov ecx, 0x6a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x665024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov dword [eax], 0xffffffff
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], 0xffffffff
mov edx, dword [ebp - 0x14]
mov dword [edx + 8], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xc], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
call fcn.00409f80
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0xff
mov ecx, 0x202
mov word [ebp - 0x1c], cx
mov esi, esp
lea edx, [ebp - 0x1b0]
push edx
movzx eax, word [ebp - 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp esi, esp
call fcn.00479de9
test eax, eax
je 0x47718b
mov ecx, 0x667940
call fcn.00409d40
test eax, eax
je 0x477187
call fcn.005a73cf
mov ecx, dword [eax]
push ecx
call fcn.005af0d6
add esp, 4
push eax
push 0x5d5a74
push 0x8c
push str.net_client_t
mov ecx, 0x667940
call fcn.00409d40
mov edx, 0xd0
imul ecx, edx, 0
add eax, ecx
push eax
call fcn.00425160
add esp, 0x14
xor edx, edx
jne 0x47713c
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
push edx
mov ecx, ebp
push eax
lea edx, [0x4771d0]
call fcn.00479d95
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004797c8
add esp, 0x1b4
cmp ebp, esp
call fcn.00479de9
mov esp, ebp
pop ebp
ret

Function at 0x477470
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jae 0x47748c
or eax, 0xffffffff
jmp 0x4774ab
mov esi, esp
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp esi, esp
call fcn.00479de9
pop esi
add esp, 4
cmp ebp, esp
call fcn.00479de9
mov esp, ebp
pop ebp
ret 8

Function at 0x4774c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jae 0x4774dc
or eax, 0xffffffff
jmp 0x4774fb
mov esi, esp
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp esi, esp
call fcn.00479de9
pop esi
add esp, 4
cmp ebp, esp
call fcn.00479de9
mov esp, ebp
pop ebp
ret 8
Function at 0x486ae0
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x668040], 0
jne 0x486b79
push 0x190
push 0
push 0x668048
mov dword [0x668040], 1
call fcn.0059f880
add esp, 0xc
push 0x668048
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x486b79
call fcn.00486d10
push str.BIO_sock_init
push 0x94
push str.crypto_bio_bio_sock.c
call fcn.00486e10
add esp, 0xc
push str.calling_wsastartup__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00486ec0
call fcn.00486d10
push str.BIO_sock_init
push 0x96
push str.crypto_bio_bio_sock.c
call fcn.00486e10
push 0
push 0x7a
push 0x20
call fcn.00486ec0
add esp, 0x24
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x486b80
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 0x486bd5
call fcn.00486d10
push str.BIO_socket_ioctl
push 0xd1
push str.crypto_bio_bio_sock.c
call fcn.00486e10
add esp, 0xc
push str.calling_ioctlsocket__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00486ec0
add esp, 0xc
xor eax, eax
test esi, esi
pop esi
sete al
ret

Function at 0x486be0
Capabilities:
Get socket status

Disassembly:
mov eax, 0x110
call fcn.0047a3d0
mov eax, dword [0x665024]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebp
mov ebp, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x11c]
cmp edi, 0x3f
ja 0x486ccd
push esi
mov esi, dword [esp + 0x128]
mov eax, esi
or eax, dword [esp + 0x12c]
jne 0x486c41
pop esi
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004797c8
add esp, 0x110
ret
push 0
call fcn.005aee02
add esp, 4
cmp dword [esp + 0x12c], edx
jg 0x486c74
jl 0x486c5a
cmp esi, eax
jae 0x486c74
pop esi
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004797c8
add esp, 0x110
ret
sub esi, eax
mov dword [esp + 0x18], edi
xor ecx, ecx
mov dword [esp + 0x14], 1
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0
push eax
test ebp, ebp
mov dword [esp + 0x10], esi
push 0
lea eax, [esp + 0x1c]
cmovne eax, ecx
test ebp, ebp
push eax
lea eax, [esp + 0x20]
cmove eax, ecx
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
pop esi
pop edi
pop ebp
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.004797c8
add esp, 0x110
ret
mov ecx, dword [esp + 0x114]
or eax, 0xffffffff
pop edi
pop ebp
xor ecx, esp
call fcn.004797c8
add esp, 0x110
ret
Function at 0x488cb0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x230
call fcn.0047a3d0
mov eax, dword [0x665024]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x668300], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x4886c0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x488a60
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.00488670
jne 0x488e0b
push 0x104
lea eax, [esp + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x488e01
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.005b1b05
push str.ws2_32
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.005b1b5f
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 0x488d7f
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x488dc6
push edi
call ebp
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.005b1b05
push str.wship6
lea eax, [esp + 0x38]
push 0x10c
push eax
call fcn.005b1b5f
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call esi
mov edi, eax
test edi, edi
je 0x488dfd
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x488dfa
xor esi, esi
push dword [esp + esi*8 + 0x10]
push edi
call ebx
mov dword [esp + esi*8 + 0x14], eax
test eax, eax
je 0x488dfa
inc esi
cmp esi, 3
jl 0x488dc8
mov eax, dword [esp + 0x14]
mov dword [0x665330], eax
mov eax, dword [esp + 0x1c]
mov dword [0x665338], eax
mov eax, dword [esp + 0x24]
mov dword [fcn.00488670], eax
jmp 0x488dfd
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x668300], 1
movzx eax, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
mov eax, dword [eax*8 + 0x665330]
call fcn.004797c8
add esp, 0x230
ret 4
Function at 0x488e40
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x820
call fcn.0047a3d0
mov eax, dword [0x665024]
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.0059f880
push 0x401
lea eax, [esp + 0x438]
push 0
push eax
call fcn.0059f880
push 0x400
push esi
lea eax, [esp + 0x44]
push 0x401
push eax
mov dword [esp + 0x3c], eax
lea ebp, [esp + 0x450]
call fcn.005b2107
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 0x489015
cmp word [ebx + 8], 2
jne 0x488f32
cmp word [ebx + 0xa], 4
jne 0x488f32
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x488f32
nop word [eax + eax]
push dword [eax]
push dword [esp + 0x844]
push dword [esp + 0x844]
push dword [esp + 0x844]
call fcn.00489070
mov dword [edi], eax
test eax, eax
je 0x488fc0
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x488f00
push 0x400
push dword [ebx]
push 0x401
push ebp
call fcn.005b2107
mov ebx, dword [esp + 0x28]
xor esi, esi
add esp, 0x10
cmp dword [ebx], esi
jne 0x488fc7
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x488f56
sub ecx, edx
je case.0x489025.11003
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov eax, edi
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x488f90
test dl, dl
je 0x488f8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x488f90
add eax, 2
add ecx, 2
test dl, dl
jne 0x488f70
xor eax, eax
jmp 0x488f95
sbb eax, eax
or eax, 1
test eax, eax
je case.0x489025.11003
mov esi, dword [esp + 0x10]
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x10
je case.0x489025.11003
mov esi, dword [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x14], ebp
mov ebp, eax
jmp 0x488ec2
mov esi, 8
jmp 0x48903f
cmp dword [esp + 0x844], esi
je 0x48903f
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x488fd5
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.005a7335
mov edi, eax
add esp, 8
test edi, edi
je 0x488ffd
push ebp
push ebx
push edi
call fcn.005b1b05
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [eax + 0x14], edi
mov eax, dword [ecx]
mov ecx, 8
cmp dword [eax + 0x14], esi
cmove esi, ecx
jmp 0x48903f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x489025.11001
jmp dword [eax*4 + 0x48905c]
mov esi, 0x2afa
jmp 0x48903f
mov esi, 0x2afb
jmp 0x48903f
mov esi, 0x2af9
mov ecx, dword [esp + 0x82c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004797c8
add esp, 0x820
ret 0x18
Function at 0x49b270
Capabilities:
Hash data using sha1

Disassembly:
mov eax, 0x40
call fcn.0047a3d0
mov eax, dword [0x665024]
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 0x49b2ac
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004797c8
add esp, 0x40
ret
test esi, esi
je 0x49b3bb
cmp dword [esp + 0x54], 0x30
jne 0x49b3bb
push 0x30
push edi
push esi
call fcn.0049b190
add esp, 0xc
test eax, eax
jle 0x49b3bb
movaps xmm0, xmmword [str.6666666666666666_]
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.0049b190
add esp, 0xc
test eax, eax
je 0x49b3bb
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0049aff0
add esp, 8
test eax, eax
je 0x49b3bb
push 0x4c
lea eax, [esi + 0x14]
push 0
push eax
call fcn.0059f880
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.0049b190
add esp, 0x18
test eax, eax
jle 0x49b3bb
movaps xmm0, xmmword [0x5eda40]
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.0049b190
add esp, 0xc
test eax, eax
je 0x49b3bb
push 0x14
lea eax, [esp + 0x34]
push eax
push esi
call fcn.0049b190
add esp, 0xc
test eax, eax
je 0x49b3bb
lea eax, [esp + 0x30]
push 0x14
push eax
call fcn.00492980
add esp, 8
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.004797c8
add esp, 0x40
ret
mov ecx, dword [esp + 0x44]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004797c8
add esp, 0x40
ret
Function at 0x49feb0
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.004d34e0
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.0059fa90
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x49ff69
call fcn.00486d10
push str.BIO_new_file
push 0x43
push str.crypto_bio_bss_file.c
call fcn.00486e10
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.00486ec0
add esp, 0x14
call fcn.005a73cf
cmp dword [eax], 2
je 0x49ff39
call fcn.005a73cf
cmp dword [eax], 6
je 0x49ff39
mov esi, 0x80002
mov edi, 0x4d
jmp 0x49ff41
mov esi, 0x80
lea edi, [esi - 0x35]
call fcn.00486d10
push str.BIO_new_file
push edi
push str.crypto_bio_bss_file.c
call fcn.00486e10
push 0
push esi
push 0x20
call fcn.00486ec0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x5ede9c
call fcn.0047bdd0
mov esi, eax
add esp, 4
test esi, esi
jne 0x49ff8b
push edi
call fcn.005a2d42
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.0047b6a0
push edi
push ebx
push 0x6a
push esi
call fcn.0047b6d0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x4b50a0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov eax, 4
call fcn.0047a3d0
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 1
cmp edi, 0xffffffff
jne 0x4b50e8
call fcn.00486d10
push str.BIO_connect
push 0x54
push str.crypto_bio_bio_sock2.c
call fcn.00486e10
push 0
push 0x87
push 0x20
call fcn.00486ec0
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.00486b80
add esp, 8
test eax, eax
je 0x4b5177
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
test bl, 4
je 0x4b517e
push 4
lea eax, [esp + 0x10]
push eax
push 8
push 0xffff
push edi
call esi
test eax, eax
je 0x4b517e
call fcn.00486d10
push str.BIO_connect
push 0x5e
push str.crypto_bio_bio_sock2.c
call fcn.00486e10
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00486ec0
call fcn.00486d10
push str.BIO_connect
push 0x60
push str.crypto_bio_bio_sock2.c
call fcn.00486e10
push 0
push 0x89
push 0x20
call fcn.00486ec0
add esp, 0x24
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret
test bl, 0x10
je 0x4b51ef
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push edi
call esi
test eax, eax
je 0x4b51ef
call fcn.00486d10
push str.BIO_connect
push 0x68
push str.crypto_bio_bio_sock2.c
call fcn.00486e10
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00486ec0
call fcn.00486d10
push str.BIO_connect
push 0x6a
push str.crypto_bio_bio_sock2.c
call fcn.00486e10
push 0
push 0x8a
push 0x20
call fcn.00486ec0
add esp, 0x24
xor eax, eax
pop esi
pop ebx
pop edi
pop ecx
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.004882b0
add esp, 4
push eax
push esi
call fcn.004882a0
add esp, 4
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4b527b
push eax
call fcn.004b4fb0
add esp, 4
test eax, eax
jne 0x4b5177
call fcn.00486d10
push str.BIO_connect
push 0x72
push str.crypto_bio_bio_sock2.c
call fcn.00486e10
add esp, 0xc
push str.calling_connect__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00486ec0
call fcn.00486d10
push str.BIO_connect
push 0x74
push str.crypto_bio_bio_sock2.c
call fcn.00486e10
push 0
push 0x67
push 0x20
call fcn.00486ec0
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