joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c199
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x62e1fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov ecx, dword [ebp + 0xc]
push esi
lea eax, [esp + 0xc]
push eax
call fcn.0042d27f
mov esi, eax
and dword [esp + 0xa4], 0
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x28]
push eax
call fcn.0042d27f
mov byte [esp + 0xa4], 1
push 1
push esi
push eax
lea eax, [esp + 0x10]
push eax
call fcn.005dc650
add esp, 0x10
mov byte [esp + 0xa4], 0
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.00401c85
or dword [esp + 0xa4], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x14]
call fcn.00401c85
mov eax, dword [esp + 4]
neg eax
sbb eax, eax
test eax, fcn.00473f58
je 0x42c275
push str.boost::filesystem::copy_file
lea ecx, [esp + 0x10]
call fcn.0040188e
mov dword [esp + 0xa4], 2
push dword [esp + 8]
lea eax, [esp + 0x10]
push dword [esp + 8]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.0042cd68
mov byte [esp + 0xa4], 3
push eax
call fcn.004056f6
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42ce24
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x62e1fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov ecx, dword [ebp + 0xc]
push esi
lea eax, [esp + 0xc]
push eax
call fcn.0042d27f
mov esi, eax
and dword [esp + 0xa4], 0
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x28]
push eax
call fcn.0042d27f
mov byte [esp + 0xa4], 1
push esi
push eax
lea eax, [esp + 0xc]
push eax
call fcn.005dc5f0
add esp, 0xc
mov byte [esp + 0xa4], 0
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.00401c85
or dword [esp + 0xa4], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x14]
call fcn.00401c85
mov eax, dword [esp + 4]
neg eax
sbb eax, eax
test eax, fcn.00473f58
je 0x42cefe
push str.boost::filesystem::rename
lea ecx, [esp + 0x10]
call fcn.0040188e
mov dword [esp + 0xa4], 2
push dword [esp + 8]
lea eax, [esp + 0x10]
push dword [esp + 8]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.0042cd68
mov byte [esp + 0xa4], 3
push eax
call fcn.004056f6
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43c9b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0xffffffff
push esi
push edi
je 0x43ca5e
push 0
push 0
add eax, 8
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedCompareExchange]
test eax, eax
je 0x43c9e3
push dword [ebx]
mov edi, eax
call fcn.0043d2ef
test byte [ebx + 0x88], 2
je 0x43ca30
xor eax, eax
mov word [esp + 0xc], ax
mov word [esp + 0xe], ax
call fcn.005dcfc0
mov edi, dword [ebx]
lea esi, [esp + 0x10]
call fcn.00448146
push 4
lea eax, [esp + 0x10]
push eax
push 0x80
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push eax
call fcn.0044812d
pop ecx
test eax, eax
jne 0x43ca30
call fcn.00448146
call fcn.005dcfc0
push dword [ebx]
lea eax, [esp + 0x14]
call fcn.00446f7a
pop ecx
or eax, 0xffffffff
mov ecx, ebx
call fcn.0043db67
mov byte [ebx + 0x88], 0
add ebx, 0x8c
push ebx
call fcn.0043d2b1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x442eb0
Capabilities:
Create thread

Disassembly:
mov eax, 0x62bff5
call fcn.0060ebd0
sub esp, 0x64
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 0x10
mov dword [esi + 8], ebx
call fcn.005a6b1c
pop ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x442ef6
mov dword [eax], vtable.boost::asio::detail::win_thread::func_base.0
mov byte [ebp - 4], 1
mov dword [eax], vtable.boost::asio::detail::win_thread::func_class_boost::asio::detail::resolver_service_class_boost::asio::ip::tcp_::work_io_service_runner_.0
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov byte [ebp - 4], bl
mov edi, eax
jmp 0x442ef8
xor edi, edi
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 2
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov dword [ebp - 0x10], eax
mov dword [edi + 4], eax
cmp eax, ebx
jne 0x442f45
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
call fcn.005dcfc0
push str.thread.entry_event
push eax
push esi
lea eax, [ebp - 0x70]
push eax
call fcn.0040fcac
mov byte [ebp - 4], 3
lea eax, [ebp - 0x70]
push eax
call fcn.004111d7
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov dword [esi + 8], eax
mov dword [edi + 8], eax
cmp dword [esi + 8], ebx
jne 0x442f87
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call fcn.005dcfc0
push str.thread.exit_event
push eax
push esi
lea eax, [ebp - 0x70]
push eax
call fcn.0040fcac
mov byte [ebp - 4], 4
jmp 0x442f3c
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push 0x4461f9
push ebx
push ebx
mov dword [ebp - 0x14], ebx
call fcn.005af07f
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x442fe4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x18], eax
call edi
mov esi, dword [esi + 8]
cmp esi, ebx
je 0x442fc4
push esi
call edi
call fcn.005dcfc0
push str.thread
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x70]
push eax
call fcn.0040fcac
mov byte [ebp - 4], 5
jmp 0x442f3c
push 0xffffffffffffffff
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x443165
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x62de94
call fcn.0060ebd0
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [esi + 0x14], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x18], 0x4435b6
mov dword [esi + 0x24], eax
or dword [esi + 0x28], 0xffffffff
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x34], eax
mov al, byte [ebp + 0x20]
mov byte [esi + 0x158], al
lea eax, [ebp + 0x24]
push eax
lea eax, [esi + 0x160]
push eax
call fcn.0043f6d4
or dword [ebp - 4], 0xffffffff
lea eax, [ebp + 0x24]
push eax
call fcn.004345b8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x3c

Function at 0x4458e9
Capabilities:
Resolve dns

Disassembly:
push esi
push edi
mov esi, eax
call fcn.00448146
cmp dword [esp + 0x10], 2
je 0x44590c
mov edi, 0x273f
call fcn.005dcfc0
mov dword [esi + 4], eax
mov dword [esi], edi
xor eax, eax
jmp 0x445945
push ebx
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
call fcn.005dcfc0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
jne 0x445933
xor eax, eax
jmp 0x445944
call fcn.00448146
mov eax, dword [esp + 0x18]
mov esi, ebx
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ebx
pop edi
pop esi
ret

Function at 0x446e3f
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0xa5100000
push esi
push edi
mov esi, eax
jne 0x446e69
cmp dword [ebp + 0x10], 2
jne 0x446e69
mov edi, 0x2726
call fcn.005dcfc0
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, 0xffffffff
jmp 0x446e97
call fcn.00448146
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
push eax
call fcn.0044812d
mov edi, eax
pop ecx
test edi, edi
jne 0x446e95
call fcn.00448146
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x447123
Capabilities:
Terminate thread

Disassembly:
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push 0xffffffffffffffff
push dword [esi + 8]
call edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0
push 0x7233c0
call dword [sym.imp.KERNEL32.DLL_InterlockedExchangeAdd]
push 0
test eax, eax
je 0x447158
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
pop edi
ret
push dword [esi + 4]
push method.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.virtual_52
call dword [sym.imp.KERNEL32.DLL_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call edi
pop edi
ret
Function at 0x448323
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret

Function at 0x44988a
Capabilities:
Get disk size

Disassembly:
mov eax, 0x6248f4
call fcn.0060ebd0
sub esp, 0x30
push ebx
xor ebx, ebx
cmp dword [esi + 0x24], ebx
jne 0x449927
push edi
push 1
push ebx
lea eax, [ebp - 0x10]
lea edi, [esi + 4]
push eax
mov ecx, edi
mov dword [ebp - 0x10], 0x5c
call fcn.00405fcb
inc eax
push eax
push ebx
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.00401926
mov dword [ebp - 4], ebx
cmp dword [eax + 0x18], 8
jb 0x4498d8
mov eax, dword [eax + 4]
jmp 0x4498db
add eax, 4
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceW]
mov edi, eax
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.00401c85
cmp edi, ebx
pop edi
je 0x449919
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
imul ecx, eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
jmp 0x449927
mov dword [esi + 0x24], 0x200
mov dword [esi + 0x28], 0x1000
mov ecx, dword [ebp - 0xc]
mov eax, dword [esi + 0x24]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x44996f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x18], ebx
call fcn.0044995b
xor edi, edi
test byte [ebx + 0x20], 4
mov dword [ebp - 8], edi
jne 0x449a0b
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
lea edx, [ebp - 0x1c]
push edx
push ecx
push eax
push dword [ebx]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
jne 0x4499cb
call fcn.005dcfc0
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov dword [ecx + 4], esi
or eax, 0xffffffff
or edx, eax
jmp 0x449b10
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
lea eax, [esi + eax*8]
mov dword [ebp + 0x10], eax
cmp esi, eax
jae 0x449b0b
push edi
lea eax, [ebp + 0x14]
push eax
push dword [esi + 4]
mov dword [ebp + 0x14], edi
push dword [esi]
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4499ac
mov eax, dword [ebp + 0x14]
add dword [ebp - 8], eax
add esi, 8
cmp esi, dword [ebp + 0x10]
jb 0x4499df
jmp 0x449b0b
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov ecx, ebx
call fcn.004252f2
mov esi, dword [0x7227cc]
mov dword [ebp + 0x10], eax
lea eax, [esi + eax - 1]
cdq
idiv esi
mov dword [ebp - 0xc], eax
lea eax, [eax*8 + 8]
call fcn.005bc1b0
mov edx, dword [ebp + 0x14]
lea edx, [ebx + edx*8]
mov eax, esp
mov dword [ebp - 0x10], eax
mov ecx, ebx
mov dword [ebp + 0x14], edx
cmp ebx, edx
jae 0x449a6d
xor edx, edx
cmp dword [ecx + 4], edi
jbe 0x449a65
mov ebx, dword [ecx]
add ebx, edx
mov dword [eax], ebx
mov dword [eax + 4], edi
add edx, esi
add eax, 8
cmp edx, dword [ecx + 4]
jb 0x449a52
add ecx, 8
cmp ecx, dword [ebp + 0x14]
jb 0x449a4b
mov dword [eax], edi
mov dword [eax + 4], edi
mov eax, dword [ebp + 0xc]
push edi
push edi
mov ecx, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
push 1
push edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
sar ecx, 0x1f
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
add dword [ebp - 8], eax
mov eax, dword [0x7227cc]
imul eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x30]
push ecx
push edi
mov edi, dword [ebp - 0x18]
push eax
push dword [ebp - 0x10]
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_ReadFileScatter]
test eax, eax
jne 0x449b02
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
cmp eax, 0x3e5
je 0x449aec
call fcn.005dcfc0
mov edi, eax
call esi
mov ecx, dword [ebp + 0x18]
push dword [ebp - 0x20]
mov dword [ecx], eax
mov dword [ecx + 4], edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x4499c1
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetOverlappedResult]
test eax, eax
je 0x449acd
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 8]
xor edx, edx
lea esp, [ebp - 0x3c]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x44a3cb
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x622428
call fcn.0060ebd0
fldz
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
fstp dword [esi + 8]
lea ecx, [esi + 0x10]
mov dword [esi], 7
mov byte [esi + 4], bl
mov dword [esi + 0xc], ebx
call fcn.00401879
mov dword [ebp - 4], ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041d019
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edx
add esp, 0x14
lea ecx, [esi + 0x40]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
call fcn.00401879
mov byte [ebp - 4], 1
or dword [esi + 0xa8], 0xffffffff
or dword [esi + 0xac], 0xffffffff
lea eax, [esi + 0xbc]
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], ebx
and dword [eax + 4], 0x80000000
and byte [eax + 8], 0xfe
mov dword [eax], ebx
mov byte [ebp - 4], 2
fldz
fstp dword [esi + 0xf0]
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xd0], ebx
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xd8], ebx
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe0], ebx
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xf4], ebx
mov dword [esi + 0xf8], ebx
mov dword [esi + 0xfc], ebx
mov dword [esi + 0x100], ebx
mov dword [esi + 0x104], ebx
mov dword [esi + 0x108], 1
mov dword [esi + 0x10c], ebx
mov dword [esi + 0x110], ebx
mov dword [esi + 0x118], ebx
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x120], ebx
mov dword [esi + 0x124], ebx
mov dword [esi + 0x128], ebx
mov dword [esi + 0x12c], ebx
mov dword [esi + 0x130], ebx
mov dword [esi + 0x134], ebx
mov dword [esi + 0x138], ebx
mov byte [esi + 0x13c], bl
mov dword [esi + 0x140], ebx
mov byte [esi + 0x144], bl
mov byte [esi + 0x145], bl
mov dword [esi + 0x148], ebx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x4789bc
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx]
sub esp, 0x14
push edi
cmp ecx, 0xffffffff
jne 0x4789db
mov edi, 0x2719
call fcn.005dcfc0
mov dword [esi + 4], eax
xor eax, eax
jmp 0x478a4d
mov edx, dword [eax]
mov eax, dword [eax + 4]
xor edi, edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x4789cf
push edi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x478a33
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x40
jne 0x478a24
mov edi, 0x2746
jmp 0x4789cf
cmp edi, 0x4d2
jne 0x4789cf
mov edi, 0x274d
jmp 0x4789cf
cmp dword [ebp - 4], edi
jne 0x478a42
push 2
pop edi
call fcn.0040fda8
jmp 0x4789d4
call fcn.005dcfc0
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [esi], edi
pop edi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0xffffffff
push edi
jne 0x478a76
mov edi, 0x2719
call fcn.005dcfc0
mov dword [esi + 4], eax
xor eax, eax
jmp 0x478aef
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x208]
call fcn.00478f47
xor edi, edi
cmp dword [ebp - 4], edi
je 0x478a6a
mov ebx, dword [ebx]
push edi
push edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x208]
push eax
push ebx
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edi
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x478ad5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x40
jne 0x478ac6
mov edi, 0x2746
jmp 0x478a6a
cmp edi, 0x4d2
jne 0x478a6a
mov edi, 0x274d
jmp 0x478a6a
cmp dword [ebp + 8], edi
jne 0x478ae4
push 2
pop edi
call fcn.0040fda8
jmp 0x478a6f
call fcn.005dcfc0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], edi
pop edi
pop ebx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
mov edi, ecx
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
xor ebx, ebx
push ebx
cmp byte [ebp + 0x18], bl
je 0x478c69
push ebx
jmp 0x478cb7
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x478c7a
push 0x2719
jmp 0x478cb7
push esi
push dword [ebp + 0x14]
lea ecx, [ebp + 0x18]
push ecx
push dword [ebp + 0x10]
mov dword [ebp + 0x18], ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSASend]
mov dword [ebp + 8], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
jne 0x478ca7
mov eax, 0x274d
cmp dword [ebp + 8], ebx
je 0x478cc1
cmp eax, 0x3e5
je 0x478cc1
push dword [ebp + 0x18]
push eax
mov edi, dword [edi + 4]
call fcn.0044676b
jmp 0x478cca
push esi
mov esi, dword [edi + 4]
call fcn.00446665
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x478cd1
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
mov edi, ecx
mov eax, dword [edi + 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
xor ebx, ebx
push ebx
cmp byte [ebp + 0x18], bl
je 0x478cf3
push ebx
jmp 0x478d54
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x478d04
push 0x2719
jmp 0x478d54
mov ecx, dword [ebp + 0x14]
push esi
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp + 0x18]
push ecx
push dword [ebp + 0x10]
mov dword [ebp + 0x18], ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSARecv]
mov dword [ebp + 0x14], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x478d38
mov eax, 0x2746
jmp 0x478d44
cmp eax, 0x4d2
jne 0x478d44
mov eax, 0x274d
cmp dword [ebp + 0x14], ebx
je 0x478d5e
cmp eax, 0x3e5
je 0x478d5e
push dword [ebp + 0x18]
push eax
mov edi, dword [edi + 4]
call fcn.0044676b
jmp 0x478d67
push esi
mov esi, dword [edi + 4]
call fcn.00446665
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x479933
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x62d74a
call fcn.0060ebd0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
push eax
lea ecx, [ebp + 0x10]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 0x479ce3
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x1c], ebx
call fcn.004af6ad
mov byte [ebp - 4], 2
mov eax, dword [edi]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 4]
mov dword [esi + 0x30], eax
lea eax, [esi + 0x38]
push eax
lea edi, [ebp + 0x18]
call fcn.00477e2b
mov byte [ebp - 4], bl
lea eax, [ebp + 0x10]
push eax
call fcn.0044a645
or dword [ebp - 4], 0xffffffff
mov eax, edi
push eax
call fcn.00473a17
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x28

Function at 0x47b1ad
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, eax
mov edi, ecx
call fcn.00448146
cmp dword [ebp + 0xc], 0
jne 0x47b1ff
cmp dword [ebp + 0x10], 0
jne 0x47b1ff
cmp dword [ebp + 0x14], 0
jne 0x47b1ff
test edi, edi
je 0x47b21b
mov eax, dword [edi + 4]
cdq
mov ecx, 0x3e8
idiv ecx
mov ecx, dword [edi]
imul ecx, ecx, 0x3e8
add eax, ecx
jne 0x47b1e9
inc eax
push eax
call sub.KERNEL32.DLL_Sleep
xor edi, edi
call fcn.005dcfc0
mov dword [esi + 4], eax
mov dword [esi], edi
xor eax, eax
jmp 0x47b242
test edi, edi
je 0x47b21b
cmp dword [edi], 0
jne 0x47b21b
mov eax, dword [edi + 4]
test eax, eax
jle 0x47b21b
mov ecx, 0x3e8
cmp eax, ecx
jge 0x47b21b
mov dword [edi + 4], ecx
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_select]
push eax
call fcn.0044812d
mov edi, eax
pop ecx
test edi, edi
jl 0x47b240
call fcn.00448146
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x47b9a0
Capabilities:
Connect socket

Disassembly:
push esi
push edi
mov esi, eax
call fcn.00448146
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_connect]
push eax
call fcn.0044812d
mov edi, eax
pop ecx
test edi, edi
jne 0x47b9cd
call fcn.00448146
mov eax, edi
pop edi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
sub esp, 0xc
push edi
cmp ecx, 0xffffffff
jne 0x4866e0
mov edi, 0x2719
call fcn.005dcfc0
mov dword [esi + 4], eax
xor eax, eax
jmp 0x48673f
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], edi
xor edi, edi
cmp word [edx], 2
push edi
setne al
push edi
mov dword [ebp + 8], edi
dec eax
and eax, 0xfffffff4
add eax, 0x1c
push eax
push edx
push edi
lea eax, [ebp + 8]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSASendTo]
test eax, eax
je 0x486734
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x4d2
jne 0x4866d4
mov edi, 0x274d
jmp 0x4866d4
call fcn.005dcfc0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], edi
pop edi
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, eax
cmp dword [edi], 0xffffffff
jne 0x48676c
mov edi, 0x2719
call fcn.005dcfc0
mov dword [esi + 4], eax
xor eax, eax
jmp 0x4867d3
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x208]
call fcn.00478f47
xor eax, eax
xor ecx, ecx
cmp word [ebx], 2
mov edi, dword [edi]
setne cl
push eax
push eax
mov dword [ebp + 0xc], eax
dec ecx
and ecx, 0xfffffff4
add ecx, 0x1c
push ecx
push ebx
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x208]
push eax
push edi
call dword [sym.imp.WS2_32.dll_WSASendTo]
test eax, eax
je 0x4867c6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x4d2
jne 0x486760
mov edi, 0x274d
jmp 0x486760
xor edi, edi
call fcn.005dcfc0
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esi], edi
pop edi
pop ebx
leave
ret 8