joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a603
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x5d80ae
call fcn.005c3f5c
sub esp, 0x58
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
mov ecx, dword [ebp + 8]
call fcn.0040252e
mov dword [ebp - 4], esi
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 1
call fcn.00409660
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00417474
mov edi, eax
lea esi, [ebp - 0x34]
call fcn.00419b7c
test al, al
jne 0x43a772
and dword [ebp - 0x54], 0
push 3
pop ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x50], ebx
jmp 0x43a66f
push 3
pop ebx
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00417474
lea edi, [ebp - 0x34]
mov esi, eax
call fcn.00409748
mov dword [ebp - 0x20], eax
cmp eax, ebx
lea eax, [ebp - 0x20]
jl 0x43a692
lea eax, [ebp - 0x28]
mov ebx, dword [eax]
push 3
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.00576e90
add esp, 0xc
push ebx
lea esi, [ebp - 0x4c]
lea eax, [ebp - 0x34]
call fcn.0043a8d7
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.0043a94d
add esp, 0x18
push ebx
lea ecx, [ebp - 0x34]
call fcn.00419db8
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 0x43a73a
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.00408f5a
inc edi
cmp edi, esi
jl 0x43a71a
push 3
pop eax
sub eax, ebx
test eax, eax
jle 0x43a754
mov esi, eax
mov ecx, dword [ebp + 8]
push 0x3d
push 1
call fcn.00408f5a
dec esi
jne 0x43a745
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00417474
mov edi, eax
lea esi, [ebp - 0x34]
call fcn.00419b7c
test al, al
je 0x43a66c
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 0x44834c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, ecx
cmp dword [ebx], 0xffffffff
push esi
push edi
je 0x4483f9
push 0
push 0
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x44837e
push dword [ebx]
mov edi, eax
call fcn.00448cbe
test byte [ebx + 0x88], 2
je 0x4483cb
xor eax, eax
mov word [esp + 0xc], ax
mov word [esp + 0xe], ax
call fcn.005a5950
mov edi, dword [ebx]
lea esi, [esp + 0x10]
call fcn.00453d08
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.00453cef
pop ecx
test eax, eax
jne 0x4483cb
call fcn.00453d08
call fcn.005a5950
push dword [ebx]
lea eax, [esp + 0x14]
call fcn.00452b47
pop ecx
or eax, 0xffffffff
mov ecx, ebx
call fcn.004494ba
mov byte [ebx + 0x88], 0
add ebx, 0x8c
push ebx
call fcn.00448c80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44ea43
Capabilities:
Create thread

Disassembly:
mov eax, 0x5dccbd
call fcn.005c3f5c
sub esp, 0x64
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 0x10
mov dword [esi + 8], ebx
call fcn.005740d0
pop ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x44ea89
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 0x44ea8b
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 0x44ead8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.005a5950
push str.thread.entry_event
push eax
push esi
lea eax, [ebp - 0x70]
push eax
call fcn.00415775
mov byte [ebp - 4], 3
lea eax, [ebp - 0x70]
push eax
call fcn.00418bd0
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 0x44eb1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.005a5950
push str.thread.exit_event
push eax
push esi
lea eax, [ebp - 0x70]
push eax
call fcn.00415775
mov byte [ebp - 4], 4
jmp 0x44eacf
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push 0x451dde
push ebx
push ebx
mov dword [ebp - 0x14], ebx
call fcn.0057b419
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x44eb77
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 0x44eb57
push esi
call edi
call fcn.005a5950
push str.thread
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x70]
push eax
call fcn.00415775
mov byte [ebp - 4], 5
jmp 0x44eacf
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 0x44ecf8
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x5dddfd
call fcn.005c3f5c
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], 0x44f1c3
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.0044b130
or dword [ebp - 4], 0xffffffff
lea eax, [ebp + 0x24]
push eax
call fcn.0043fc5d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x3c

Function at 0x4514cf
Capabilities:
Resolve dns

Disassembly:
push esi
push edi
mov esi, eax
call fcn.00453d08
cmp dword [esp + 0x10], 2
je 0x4514f2
mov edi, 0x273f
call fcn.005a5950
mov dword [esi + 4], eax
mov dword [esi], edi
xor eax, eax
jmp 0x45152b
push ebx
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
call fcn.005a5950
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
mov dword [esi + 4], edi
test ebx, ebx
jne 0x451519
xor eax, eax
jmp 0x45152a
call fcn.00453d08
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 0x452a12
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0xa5100000
push esi
push edi
mov esi, eax
jne 0x452a3c
cmp dword [ebp + 0x10], 2
jne 0x452a3c
mov edi, 0x2726
call fcn.005a5950
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, 0xffffffff
jmp 0x452a6a
call fcn.00453d08
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.00453cef
mov edi, eax
pop ecx
test edi, edi
jne 0x452a68
call fcn.00453d08
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x452cf0
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 0x6b4068
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
test eax, eax
je 0x452d25
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 0x453ee5
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 0x45544b
Capabilities:
Get disk size

Disassembly:
mov eax, 0x5d9926
call fcn.005c3f5c
sub esp, 0x30
push ebx
xor ebx, ebx
cmp dword [esi + 0x24], ebx
jne 0x4554e8
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.004088d1
inc eax
push eax
push ebx
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
call fcn.004095bf
mov dword [ebp - 4], ebx
cmp dword [eax + 0x18], 8
jb 0x455499
mov eax, dword [eax + 4]
jmp 0x45549c
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.00403955
cmp edi, ebx
pop edi
je 0x4554da
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
imul ecx, eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
jmp 0x4554e8
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 0x455530
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.0045551c
xor edi, edi
test byte [ebx + 0x20], 4
mov dword [ebp - 8], edi
jne 0x4555cc
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 0x45558c
call fcn.005a5950
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 0x4556d1
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
lea eax, [esi + eax*8]
mov dword [ebp + 0x10], eax
cmp esi, eax
jae 0x4556cc
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 0x45556d
mov eax, dword [ebp + 0x14]
add dword [ebp - 8], eax
add esi, 8
cmp esi, dword [ebp + 0x10]
jb 0x4555a0
jmp 0x4556cc
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov ecx, ebx
call fcn.0042e183
mov esi, dword [0x6b3d80]
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.00589660
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 0x45562e
xor edx, edx
cmp dword [ecx + 4], edi
jbe 0x455626
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 0x455613
add ecx, 8
cmp ecx, dword [ebp + 0x14]
jb 0x45560c
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 [0x6b3d80]
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 0x4556c3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3e5
je 0x4556ad
call fcn.005a5950
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 0x455582
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 0x45568e
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 0x459098
Capabilities:
Send data
Send data on socket

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push edi
mov edi, eax
cmp dword [edi], 0xffffffff
jne 0x45913d
mov edi, 0x2719
call fcn.005a5950
mov dword [esi + 4], eax
xor eax, eax
jmp 0x4591a4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
call fcn.00459780
xor eax, eax
xor ecx, ecx
cmp word [ebx], 2
mov edi, dword [edi]
setne cl
push eax
push eax
mov dword [ebp + 8], eax
dec ecx
and ecx, 0xfffffff4
add ecx, 0x1c
push ecx
push ebx
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_WSASendTo]
test eax, eax
je 0x459197
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x4d2
jne 0x459131
mov edi, 0x274d
jmp 0x459131
xor edi, edi
call fcn.005a5950
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], edi
pop edi
leave
ret 4

Function at 0x459594
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]
cmp eax, 0xffffffff
jne 0x4595c6
mov edi, dword [edi + 4]
push 0
push 0x2719
call fcn.00452349
jmp 0x459626
push ebx
xor ebx, ebx
push ebx
push esi
push dword [ebp + 0x18]
lea ecx, [ebp - 4]
push dword [ebp + 0x14]
mov dword [ebp + 8], ebx
push ecx
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
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 0x459601
mov eax, 0x274d
cmp dword [ebp + 0x18], ebx
je 0x45961b
cmp eax, 0x3e5
je 0x45961b
push dword [ebp + 8]
mov edi, dword [edi + 4]
push eax
call fcn.00452349
jmp 0x459625
mov ebx, esi
mov esi, dword [edi + 4]
call fcn.0045224a
pop ebx
pop edi
pop esi
leave
ret 0x14
Function at 0x45a63d
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 0x45a65f
push ebx
jmp 0x45a6ad
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x45a670
push 0x2719
jmp 0x45a6ad
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 0x45a69d
mov eax, 0x274d
cmp dword [ebp + 8], ebx
je 0x45a6b7
cmp eax, 0x3e5
je 0x45a6b7
push dword [ebp + 0x18]
push eax
mov edi, dword [edi + 4]
call fcn.00452349
jmp 0x45a6c1
mov ebx, esi
mov esi, dword [edi + 4]
call fcn.0045224a
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x45a6c8
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 0x45a6ea
push ebx
jmp 0x45a74b
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x45a6fb
push 0x2719
jmp 0x45a74b
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 0x45a72f
mov eax, 0x2746
jmp 0x45a73b
cmp eax, 0x4d2
jne 0x45a73b
mov eax, 0x274d
cmp dword [ebp + 0x14], ebx
je 0x45a755
cmp eax, 0x3e5
je 0x45a755
push dword [ebp + 0x18]
push eax
mov edi, dword [edi + 4]
call fcn.00452349
jmp 0x45a75f
mov ebx, esi
mov esi, dword [edi + 4]
call fcn.0045224a
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

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

Disassembly:
mov eax, 0x5d4f8f
call fcn.005c3f5c
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], 0x45ab64
call fcn.0044b3ca
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.0044decf
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 0x28
Function at 0x45aa91
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x5d4f6e
call fcn.005c3f5c
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], 0x45ac3d
call fcn.0044b3ca
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.0044decf
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 0x2c
Function at 0x45b101
Capabilities:
Create thread

Disassembly:
mov eax, 0x5dccbd
call fcn.005c3f5c
sub esp, 0x68
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 0x14
mov dword [esi + 8], ebx
call fcn.005740d0
pop ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x45b14d
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::binder1_void____cdecl___class_boost::asio::detail::select_reactor_1_____class_boost::asio::detail::select_reactor_1____.0
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x10], ecx
mov byte [ebp - 4], bl
mov edi, eax
jmp 0x45b14f
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 0x45b19c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.005a5950
push str.thread.entry_event
push eax
push esi
lea eax, [ebp - 0x70]
push eax
call fcn.00415775
mov byte [ebp - 4], 3
lea eax, [ebp - 0x70]
push eax
call fcn.00418bd0
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 0x45b1de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.005a5950
push str.thread.exit_event
push eax
push esi
lea eax, [ebp - 0x70]
push eax
call fcn.00415775
mov byte [ebp - 4], 4
jmp 0x45b193
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push 0x451dde
push ebx
push ebx
mov dword [ebp - 0x14], ebx
call fcn.0057b419
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x45b23b
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 0x45b21b
push esi
call edi
call fcn.005a5950
push str.thread
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x70]
push eax
call fcn.00415775
mov byte [ebp - 4], 5
jmp 0x45b193
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 8
Function at 0x45b4f5
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, eax
mov edi, ecx
call fcn.00453d08
cmp dword [ebp + 0xc], 0
jne 0x45b548
cmp dword [ebp + 0x10], 0
jne 0x45b548
cmp dword [ebp + 0x14], 0
jne 0x45b548
test edi, edi
je 0x45b564
mov eax, dword [edi + 4]
cdq
mov ecx, 0x3e8
idiv ecx
mov ecx, dword [edi]
imul ecx, ecx, 0x3e8
add eax, ecx
jne 0x45b531
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
call fcn.005a5950
mov dword [esi + 4], eax
mov dword [esi], edi
xor eax, eax
jmp 0x45b58b
test edi, edi
je 0x45b564
cmp dword [edi], 0
jne 0x45b564
mov eax, dword [edi + 4]
test eax, eax
jle 0x45b564
mov ecx, 0x3e8
cmp eax, ecx
jge 0x45b564
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.00453cef
mov edi, eax
pop ecx
test edi, edi
jl 0x45b589
call fcn.00453d08
mov eax, edi
pop edi
pop esi
pop ebp
ret