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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x625a86
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.004387c9
mov esi, eax
and dword [esp + 0xa4], 0
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x28]
push eax
call fcn.004387c9
mov byte [esp + 0xa4], 1
push 1
push esi
push eax
lea eax, [esp + 0x10]
push eax
call fcn.005e8da0
add esp, 0x10
mov byte [esp + 0xa4], 0
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.00403747
or dword [esp + 0xa4], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x14]
call fcn.00403747
mov eax, dword [esp + 4]
neg eax
sbb eax, eax
test eax, fcn.0040c472
je 0x437794
push str.boost::filesystem::copy_file
lea ecx, [esp + 0x10]
call fcn.00402c8d
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.004382b4
mov byte [esp + 0xa4], 3
push eax
call fcn.0040830a
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x438370
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x625a86
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.004387c9
mov esi, eax
and dword [esp + 0xa4], 0
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x28]
push eax
call fcn.004387c9
mov byte [esp + 0xa4], 1
push esi
push eax
lea eax, [esp + 0xc]
push eax
call fcn.005e8d40
add esp, 0xc
mov byte [esp + 0xa4], 0
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.00403747
or dword [esp + 0xa4], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x14]
call fcn.00403747
mov eax, dword [esp + 4]
neg eax
sbb eax, eax
test eax, fcn.0040c472
je 0x43844a
push str.boost::filesystem::rename
lea ecx, [esp + 0x10]
call fcn.00402c8d
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.004382b4
mov byte [esp + 0xa4], 3
push eax
call fcn.0040830a
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x439b14
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x6242f3
call fcn.0060aa10
push ecx
push esi
mov esi, dword [ebp + 8]
mov dword [esi], vtable.libtorrent::torrent_plugin.0
xor ecx, ecx
mov dword [ebp - 4], ecx
lea eax, [esi + 4]
mov dword [eax], ecx
mov dword [ebp - 0x10], eax
mov dword [eax + 4], ecx
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x10]
push eax
mov dword [esi], vtable.smart_ban_plugin.0
call fcn.0043a5b6
mov byte [ebp - 4], 4
call fcn.00607fef
mov dword [esi + 0x30], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x43c8e2
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x620bdd
call fcn.0060aa10
sub esp, 0x58
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp + 8]
call fcn.00402790
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 1
call fcn.0041ad57
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp + 0xc]
call fcn.0041ad77
mov edi, eax
lea esi, [ebp - 0x34]
call fcn.0041c665
test al, al
jne 0x43ca50
push 3
pop esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
jmp 0x43c94d
push 3
pop esi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp + 0xc]
call fcn.0041ad77
mov ecx, eax
call fcn.004099b5
mov dword [ebp - 0x20], eax
cmp eax, esi
lea eax, [ebp - 0x20]
jl 0x43c971
lea eax, [ebp - 0x28]
mov ebx, dword [eax]
push esi
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.005b57c0
add esp, 0xc
push ebx
lea esi, [ebp - 0x4c]
lea eax, [ebp - 0x34]
call fcn.0043cbb5
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub esp, 0xc
mov edi, esp
lea esi, [ebp - 0x58]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x30]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x24], ecx
movsd dword es:[edi], dword [esi]
call fcn.0043cc2b
add esp, 0x18
push ebx
lea ecx, [ebp - 0x34]
call fcn.0041c884
mov al, byte [ebp - 0x14]
mov cl, al
shr cl, 2
mov byte [ebp - 0x18], cl
mov cl, byte [ebp - 0x13]
and al, 3
mov dl, cl
shl al, 4
shr dl, 4
or al, dl
mov byte [ebp - 0x17], al
mov al, byte [ebp - 0x12]
and cl, 0xf
mov dl, al
shl cl, 2
shr dl, 6
or cl, dl
and al, 0x3f
lea esi, [ebx + 1]
xor edi, edi
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
test esi, esi
jle 0x43ca18
movzx eax, byte [ebp + edi - 0x18]
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [ebp + 8]
mov byte [ebp - 0x2c], al
push dword [ebp - 0x2c]
push 1
call fcn.0040923a
inc edi
cmp edi, esi
jl 0x43c9f8
push 3
pop eax
sub eax, ebx
test eax, eax
jle 0x43ca32
mov esi, eax
mov ecx, dword [ebp + 8]
push 0x3d
push 1
call fcn.0040923a
dec esi
jne 0x43ca23
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp + 0xc]
call fcn.0041ad77
mov edi, eax
lea esi, [ebp - 0x34]
call fcn.0041c665
test al, al
je 0x43c94a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x44a1f0
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 0x44a29e
push 0
push 0
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x44a223
push dword [ebx]
mov edi, eax
call fcn.0044acb8
test byte [ebx + 0x88], 2
je 0x44a270
xor eax, eax
mov word [esp + 0xc], ax
mov word [esp + 0xe], ax
call fcn.005e9710
mov edi, dword [ebx]
lea esi, [esp + 0x10]
call fcn.00455be8
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.00455bcf
pop ecx
test eax, eax
jne 0x44a270
call fcn.00455be8
call fcn.005e9710
push dword [ebx]
lea eax, [esp + 0x14]
call fcn.00454a1d
pop ecx
or eax, 0xffffffff
mov ecx, ebx
call fcn.0044b4ea
mov byte [ebx + 0x88], 0
add ebx, 0x8c
push ebx
call fcn.0044ac7a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4508f5
Capabilities:
Create thread

Disassembly:
mov eax, 0x6251d7
call fcn.0060aa10
sub esp, 0x64
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 0x10
mov dword [esi + 8], ebx
call fcn.005b29ce
pop ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x45093b
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 0x45093d
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 0x45098a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.005e9710
push str.thread.entry_event
push eax
push esi
lea eax, [ebp - 0x70]
push eax
call fcn.00419093
mov byte [ebp - 4], 3
lea eax, [ebp - 0x70]
push eax
call fcn.0041b924
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 0x4509cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.005e9710
push str.thread.exit_event
push eax
push esi
lea eax, [ebp - 0x70]
push eax
call fcn.00419093
mov byte [ebp - 4], 4
jmp 0x450981
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push 0x453c9c
push ebx
push ebx
mov dword [ebp - 0x14], ebx
call fcn.005bae55
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x450a29
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 0x450a09
push esi
call edi
call fcn.005e9710
push str.thread
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x70]
push eax
call fcn.00419093
mov byte [ebp - 4], 5
jmp 0x450981
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 0x450baa
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x626c7e
call fcn.0060aa10
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], 0x451042
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.0044d04e
or dword [ebp - 4], 0xffffffff
lea eax, [ebp + 0x24]
push eax
call fcn.00441e8e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x3c

Function at 0x45338c
Capabilities:
Resolve dns

Disassembly:
push esi
push edi
mov esi, eax
call fcn.00455be8
cmp dword [esp + 0x10], 2
je 0x4533af
mov edi, 0x273f
call fcn.005e9710
mov dword [esi + 4], eax
mov dword [esi], edi
xor eax, eax
jmp 0x4533e8
push ebx
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
call fcn.005e9710
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
jne 0x4533d6
xor eax, eax
jmp 0x4533e7
call fcn.00455be8
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 0x4548e2
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0xa5100000
push esi
push edi
mov esi, eax
jne 0x45490c
cmp dword [ebp + 0x10], 2
jne 0x45490c
mov edi, 0x2726
call fcn.005e9710
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, 0xffffffff
jmp 0x45493a
call fcn.00455be8
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.00455bcf
mov edi, eax
pop ecx
test edi, edi
jne 0x454938
call fcn.00455be8
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x454bc6
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 0x71a098
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
test eax, eax
je 0x454bfb
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop edi
ret
push dword [esi + 4]
push method.wxFrame.virtual_304
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call edi
pop edi
ret
Function at 0x455dc5
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 0x45732c
Capabilities:
Get disk size

Disassembly:
mov eax, 0x61f8b3
call fcn.0060aa10
sub esp, 0x30
push ebx
xor ebx, ebx
cmp dword [esi + 0x24], ebx
jne 0x4573c9
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.00408bb8
inc eax
push eax
push ebx
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.004023d3
mov dword [ebp - 4], ebx
cmp dword [eax + 0x18], 8
jb 0x45737a
mov eax, dword [eax + 4]
jmp 0x45737d
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.00403747
cmp edi, ebx
pop edi
je 0x4573bb
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
imul ecx, eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
jmp 0x4573c9
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 0x457411
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.004573fd
xor edi, edi
test byte [ebx + 0x20], 4
mov dword [ebp - 8], edi
jne 0x4574ad
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 0x45746d
call fcn.005e9710
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 0x4575b2
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
lea eax, [esi + eax*8]
mov dword [ebp + 0x10], eax
cmp esi, eax
jae 0x4575ad
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 0x45744e
mov eax, dword [ebp + 0x14]
add dword [ebp - 8], eax
add esi, 8
cmp esi, dword [ebp + 0x10]
jb 0x457481
jmp 0x4575ad
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov ecx, ebx
call fcn.00430650
mov esi, dword [0x71958c]
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.005c8300
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 0x45750f
xor edx, edx
cmp dword [ecx + 4], edi
jbe 0x457507
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 0x4574f4
add ecx, 8
cmp ecx, dword [ebp + 0x14]
jb 0x4574ed
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 [0x71958c]
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 0x4575a4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3e5
je 0x45758e
call fcn.005e9710
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 0x457463
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 0x45756f
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 0x45b05c
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 0x45b07e
mov edi, 0x2719
call fcn.005e9710
mov dword [esi + 4], eax
xor eax, eax
jmp 0x45b0dd
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 0x45b0d2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x4d2
jne 0x45b072
mov edi, 0x274d
jmp 0x45b072
call fcn.005e9710
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], edi
pop edi
leave
ret 4

Function at 0x45b194
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 0x45b1ba
mov edi, 0x2719
call fcn.005e9710
mov dword [esi + 4], eax
xor eax, eax
jmp 0x45b221
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x208]
call fcn.004a18d2
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 0x45b214
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x4d2
jne 0x45b1ae
mov edi, 0x274d
jmp 0x45b1ae
xor edi, edi
call fcn.005e9710
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esi], edi
pop edi
pop ebx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
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]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push 0
cmp eax, 0xffffffff
jne 0x45b57b
push 0x2719
jmp 0x45b5c5
and dword [ebp + 8], 0
and dword [ebp - 4], 0
push esi
push dword [ebp + 0x18]
lea ecx, [ebp - 4]
push dword [ebp + 0x14]
push ecx
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
mov dword [ebp + 0x18], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
jne 0x45b5b4
mov eax, 0x274d
cmp dword [ebp + 0x18], 0
je 0x45b5cf
cmp eax, 0x3e5
je 0x45b5cf
push dword [ebp + 8]
push eax
mov edi, dword [edi + 4]
call fcn.0045420e
jmp 0x45b5d8
push esi
mov esi, dword [edi + 4]
call fcn.00454108
pop edi
pop esi
leave
ret 0x14
Function at 0x45c59a
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 0x45c5bc
push ebx
jmp 0x45c60a
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x45c5cd
push 0x2719
jmp 0x45c60a
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 0x45c5fa
mov eax, 0x274d
cmp dword [ebp + 8], ebx
je 0x45c614
cmp eax, 0x3e5
je 0x45c614
push dword [ebp + 0x18]
push eax
mov edi, dword [edi + 4]
call fcn.0045420e
jmp 0x45c61d
push esi
mov esi, dword [edi + 4]
call fcn.00454108
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x45c624
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 0x45c646
push ebx
jmp 0x45c6a7
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x45c657
push 0x2719
jmp 0x45c6a7
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 0x45c68b
mov eax, 0x2746
jmp 0x45c697
cmp eax, 0x4d2
jne 0x45c697
mov eax, 0x274d
cmp dword [ebp + 0x14], ebx
je 0x45c6b1
cmp eax, 0x3e5
je 0x45c6b1
push dword [ebp + 0x18]
push eax
mov edi, dword [edi + 4]
call fcn.0045420e
jmp 0x45c6ba
push esi
mov esi, dword [edi + 4]
call fcn.00454108
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

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

Disassembly:
mov eax, 0x61ccc6
call fcn.0060aa10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebx + 0x14], eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x20]
push eax
lea ecx, [ebp + 0xc]
mov dword [ebx + 0x18], 0x45caf4
call fcn.0045ca6a
mov byte [ebp - 4], 1
mov eax, dword [esi]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 4]
push 7
lea edi, [ebx + 0x30]
pop ecx
lea esi, [ebp + 0x14]
mov dword [ebx + 0x2c], eax
rep movsd dword es:[edi], dword [esi]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp + 0xc]
push eax
call fcn.00441e67
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 0x28
Function at 0x45c9ec
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x61cca5
call fcn.0060aa10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebx + 0x14], eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
push eax
lea ecx, [ebp + 0x10]
mov dword [ebx + 0x18], 0x45cbcd
call fcn.0045ca6a
mov byte [ebp - 4], 1
mov eax, dword [esi]
mov dword [ebx + 0x2c], eax
mov eax, dword [esi + 4]
push 7
lea edi, [ebx + 0x34]
pop ecx
lea esi, [ebp + 0x18]
mov dword [ebx + 0x30], eax
rep movsd dword es:[edi], dword [esi]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp + 0x10]
push eax
call fcn.00441e67
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 0x2c