joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ed80
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d6d57
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x658d98]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x88], 0
mov ecx, 0x6825d0
call fcn.0059e74b
lea ecx, [ebp - 0x28]
call fcn.00404b30
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
call fcn.0040e920
movzx eax, al
test eax, eax
jne 0x46ede9
call fcn.0046d880
test eax, eax
jne 0x46ee18
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.004049e0
mov ecx, dword [ebp - 0x88]
or ecx, 1
mov dword [ebp - 0x88], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00404f60
mov eax, dword [ebp + 8]
jmp 0x46eebc
mov ecx, dword [ebp + 0xc]
call fcn.0040d5a0
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x46ee8d
mov eax, dword [ebp - 0x2c]
movsx ecx, word [eax + 8]
cmp ecx, 2
jne 0x46ee8d
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x84]
call fcn.00404a80
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x90]
push edx
lea ecx, [ebp - 0x28]
call fcn.00409d80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.00404f60
call fcn.0046db60
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.004049e0
mov ecx, dword [ebp - 0x88]
or ecx, 1
mov dword [ebp - 0x88], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00404f60
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059e77d
mov esp, ebp
pop ebp
ret
Function at 0x46f140
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d6df0
mov eax, dword fs:[0]
push eax
mov eax, 0x10234
call fcn.0059e8e0
mov eax, dword [0x658d98]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x6825d0
call fcn.0059e74b
mov dword [ebp - 0x20], 0x10000
push 0x10000
push 0
lea eax, [ebp - 0x10020]
push eax
call fcn.005a38c0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10038]
call fcn.00404a80
mov dword [ebp - 4], 0
push 0x5c
lea ecx, [ebp - 0x10038]
call fcn.00405230
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10038]
call fcn.004416d0
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
lea ecx, [ebp - 0x10038]
call fcn.0040d5a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x46f21f
mov dword [ebp - 0x1023c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10038]
call fcn.00404f60
mov eax, dword [ebp - 0x1023c]
jmp 0x46f2ca
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
sub eax, 0x40
mov dword [ebp - 0x18], eax
push 0
push 0
push 0x40
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x18], 0
jbe 0x46f29e
cmp dword [ebp - 0x18], 0x10000
jbe 0x46f27f
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x10000
lea ecx, [ebp - 0x10020]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x18]
sub eax, 0x10000
mov dword [ebp - 0x18], eax
jmp 0x46f29c
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x10020]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x46f29e
jmp 0x46f247
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10240], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10038]
call fcn.00404f60
mov eax, dword [ebp - 0x10240]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059e77d
mov esp, ebp
pop ebp
ret
Function at 0x4731f0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, 0x6825ce
call fcn.0059e74b
mov dword [ebp - 8], 0
jmp 0x473218
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xe3
jae 0x473284
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax*4 + 0x9c4]
and edx, 0x80000000
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4 + 0x9c8]
and eax, 0x7fffffff
or edx, eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
and eax, 1
je 0x47325c
mov dword [ebp - 0x58], 0x9908b0df
jmp 0x473263
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp - 0xc]
shr ecx, 1
xor ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
xor ecx, dword [eax + edx*4 + 0xff8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [eax + edx*4 + 4], ecx
jmp 0x47320f
jmp 0x47328f
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x26f
jae 0x4732fb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax*4 + 0x9c4]
and edx, 0x80000000
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4 + 0x9c8]
and eax, 0x7fffffff
or edx, eax
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
and eax, 1
je 0x4732d3
mov dword [ebp - 0x58], 0x9908b0df
jmp 0x4732da
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp - 0x10]
shr ecx, 1
xor ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
xor ecx, dword [eax + edx*4 - 0x388]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [eax + edx*4 + 4], ecx
jmp 0x473286
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax*4 + 0x9c4]
and edx, 0x80000000
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + ecx + 4]
and ecx, 0x7fffffff
or edx, ecx
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
and eax, 1
je 0x473339
mov dword [ebp - 0x58], 0x9908b0df
jmp 0x473340
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp - 0x14]
shr ecx, 1
xor ecx, dword [ebp - 0x58]
mov edx, 4
imul eax, edx, 0x18c
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax + 4]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + eax*4 + 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x473380
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, 0x6825ce
call fcn.0059e74b
mov dword [ebp - 8], 0x270
jmp 0x4733a8
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x4e0
jae 0x473414
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax*4 - 0x9bc]
and edx, 0x80000000
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + eax*4 - 0x9b8]
and eax, 0x7fffffff
or edx, eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
and eax, 1
je 0x4733ec
mov dword [ebp - 0x50], 0x9908b0df
jmp 0x4733f3
mov dword [ebp - 0x50], 0
mov ecx, dword [ebp - 0xc]
shr ecx, 1
xor ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
xor ecx, dword [eax + edx*4 - 0x388]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [eax + edx*4 + 4], ecx
jmp 0x47339f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x477e50
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d74a0
mov eax, dword fs:[0]
push eax
mov eax, 0x12c8
call fcn.0059e8e0
mov eax, dword [0x658d98]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x6825d0
call fcn.0059e74b
mov dword [ebp - 0x14], 0x800
mov dword [ebp - 0x18], 0x64
mov dword [ebp - 0x1c], 0x896
push 0x800
push 0
lea eax, [ebp - 0x81c]
push eax
call fcn.005a38c0
add esp, 0xc
lea eax, [ebp + 0xc]
mov dword [ebp - 0x820], eax
mov eax, dword [ebp - 0x820]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0xffffffffffffffff
push 0x800
lea edx, [ebp - 0x81c]
push edx
call fcn.0047c230
add esp, 0x14
mov dword [ebp - 0x820], 0
push 0x896
push 0
lea eax, [ebp - 0x10b8]
push eax
call fcn.005a38c0
add esp, 0xc
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0045eb10
push eax
push str._d___5d___6d__s_n
lea ecx, [ebp - 0x10b8]
push ecx
call fcn.0043c490
add esp, 0x18
lea eax, [ebp - 0x10b8]
push eax
lea ecx, [ebp - 0x10d0]
call fcn.00404a80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10d0]
call fcn.0040d5a0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x67fe9c], 0
je 0x477f7b
lea ecx, [ebp - 0x10d0]
call fcn.0040d5a0
push eax
mov ecx, dword [0x67fe9c]
call fcn.00428770
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10d0]
call fcn.00404f60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059e77d
mov esp, ebp
pop ebp
ret
Function at 0x477fb0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d74e0
mov eax, dword fs:[0]
push eax
mov eax, 0x235c
call fcn.0059e8e0
mov eax, dword [0x658d98]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x6825d0
call fcn.0059e74b
mov dword [ebp - 0x14], 0x800
mov dword [ebp - 0x18], 0x64
mov dword [ebp - 0x1c], 0x896
push 0x1000
push 0
lea eax, [ebp - 0x101c]
push eax
call fcn.005a38c0
add esp, 0xc
lea eax, [ebp + 0xc]
mov dword [ebp - 0x1020], eax
mov eax, dword [ebp - 0x1020]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0xffffffffffffffff
push 0x800
lea edx, [ebp - 0x101c]
push edx
call fcn.0047c050
add esp, 0x14
mov dword [ebp - 0x1020], 0
push 0x112c
push 0
lea eax, [ebp - 0x214c]
push eax
call fcn.005a38c0
add esp, 0xc
lea eax, [ebp - 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0045eb10
push eax
push 0x60484c
lea ecx, [ebp - 0x214c]
push ecx
call fcn.0043c5c0
add esp, 0x18
lea eax, [ebp - 0x214c]
push eax
lea ecx, [ebp - 0x2164]
push ecx
call fcn.0046eee0
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2164]
call fcn.0040d5a0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x67fe9c], 0
je 0x4780df
lea ecx, [ebp - 0x2164]
call fcn.0040d5a0
push eax
mov ecx, dword [0x67fe9c]
call fcn.00428770
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2164]
call fcn.00404f60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059e77d
mov esp, ebp
pop ebp
ret
Function at 0x479b40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7720
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x50
mov eax, dword [0x658d98]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov ecx, 0x6825d0
call fcn.0059e74b
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00441de0
movzx ecx, al
test ecx, ecx
je 0x479ba7
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x479bac
jmp 0x479c61
movzx eax, byte [0x67fe70]
test eax, eax
je 0x479c61
cmp dword [0x6807d4], 0
jne 0x479c61
mov byte [ebp - 0x19], 0x80
push 0
lea eax, [ebp - 0x19]
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_GetLayeredWindowAttributes]
test eax, eax
je 0x479c3c
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x479c3c
movzx eax, byte [ebp - 0x19]
push eax
push 0x6063fc
call fcn.00477e50
add esp, 8
mov dword [0x6807d4], 1
push 2
push 0
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x44f280
push 0
push 0
call fcn.005ad318
add esp, 0x18
jmp 0x479c51
mov dword [ebp - 4], 0xffffffff
jmp 0x479c61
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0059e77d
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4a4a70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d834d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x658d98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, 0x6830b1
call fcn.0059e74b
mov ecx, dword [ebp - 0x10]
call fcn.0047d470
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CefCppToCRefCounted_class_CefFocusHandlerCppToC__class_CefFocusHandler__struct__cef_focus_handler_t_.0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0047d490
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x6583d0]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0xc], ecx
push 0x20
push 0
mov ecx, dword [ebp - 0x10]
call fcn.00488290
push eax
call fcn.005a38c0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
call fcn.00488290
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0x20
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 0x4a5960
mov eax, dword [ebp - 0x14]
mov dword [eax + 8], 0x4a5e10
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xc], 0x4a5c80
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x10], 0x4a5af0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c72c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d834d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x658d98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, 0x6836f1
call fcn.0059e74b
mov ecx, dword [ebp - 0x10]
call fcn.0047d470
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CefCppToCRefCounted_class_CefResourceBundleHandlerCppToC__class_CefResourceBundleHandler__struct__cef_resource_bundle_handler_t_.0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0047d490
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x658518]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0xc], ecx
push 0x20
push 0
mov ecx, dword [ebp - 0x10]
call fcn.004833b0
push eax
call fcn.005a38c0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
call fcn.004833b0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0x20
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 0x4c83e0
mov eax, dword [ebp - 0x14]
mov dword [eax + 8], 0x4c8890
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xc], 0x4c8700
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x10], 0x4c8570
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x54fa60
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ed0ca
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x658d98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, 0x6878fe
call fcn.0059e74b
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.0043e490
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.00408390
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00408390
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.00404b30
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.00408390
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x80
call fcn.00408390
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
call fcn.005507d0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x4c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x48], 0x1e
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x4c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x98], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x54fb50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ed13a
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x658d98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, 0x6878fe
call fcn.0059e74b
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x54fba5
mov ecx, dword [ebp - 0x10]
call fcn.00550440
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x4c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x48], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x4c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x98], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x80
call fcn.00409580
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.00409580
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.00404f60
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00409580
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.00409580
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00440170
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5535b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ed948
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x658d98]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, 0x687ae6
call fcn.0059e74b
push 0x553e50
mov ecx, dword [ebp - 0x10]
call fcn.0052bc80
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [eax + 0x18], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.0043e350
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.00553d90
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x560ec0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x658d98]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x560f10
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x560f0a
shr eax, 8
cmp al, 2
jne 0x560f0a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059e77d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.0059e77d
mov esp, ebp
pop ebp
ret
Function at 0x56cf20
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x134]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x56cf9e
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x56cf6e
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.00578760
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.0056cc10
mov eax, dword [ebp + 8]
add esp, 0x14
mov eax, dword [eax]
mov dword [eax + 0x85cc], esi
mov eax, edi
mov dword [ebx], 0x37
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x56d180
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1a0]
test eax, eax
je 0x56d1a9
push dword [esi + 0x12c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x56d1df
push dword [esi + 0x128]
lea eax, [eax + eax*2]
push 1
add eax, 0x613c88
push 2
push eax
call fcn.005ac8aa
push dword [esi + 0x128]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.005ac8aa
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x590]
test esi, esi
je 0x56d42a
mov eax, dword [edi + 0x44]
test eax, eax
je 0x56d42a
push 0x56e020
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
push ecx
mov dword [ebp - 4], 0
push dword [eax + 0x30]
call fcn.00575a20
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x56d433
mov dword [edi + 0x590], 0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x56d43c
mov dword [eax], esi
cmp dword [esi + 0x154], 0
mov edi, dword [esi + 0x134]
jne 0x56d42a
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x56d42a
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x56d720
Capabilities:
Check os version
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x658d98]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x680980]
mov dword [ebp - 0xa0], 0x4020
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xa4], 4
test eax, eax
jne 0x56d7ba
push 0x90
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.005a38c0
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
mov dword [0x680980], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x56d7b5
cmp dword [ebp - 0x94], 6
jb 0x56d7b5
mov dword [0x680980], 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059e77d
mov esp, ebp
pop ebp
ret
mov eax, dword [0x680980]
cmp eax, 2
je 0x56d80e
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x9c]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x56d7f2
mov eax, dword [ebp - 0x9c]
cmp eax, dword [ebp - 0xa0]
jg 0x56d80e
push 4
lea eax, [ebp - 0xa0]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059e77d
mov esp, ebp
pop ebp
ret