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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56b035
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x5c31c8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0x10], edi
call fcn.00444182
test al, al
jne 0x44a5da
push 2
mov ecx, esi
call fcn.00443dc9
lea eax, [esp + 0x14]
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], eax
push 0x14
mov dword [esp + 0x3c], edi
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x44a5ff
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xbad_alloc_void_]
mov dword [ecx], 0x58fc38
mov dword [ecx + 4], 0x44a377
mov al, byte [esp + 0x18]
mov byte [ecx + 8], al
mov dword [ecx + 0xc], esi
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x460]
xor edi, edi
lea eax, [esp + 0x14]
inc edi
add ecx, 0x18
push eax
mov dword [esp + 0x3c], edi
call fcn.004026df
or dword [esp + 0x38], 0xffffffff
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x44a653
mov edx, dword [ecx]
lea eax, [esp + 0x14]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [esi + 0x460]
mov ecx, dword [ecx + 0xc]
call fcn.0046cd41
mov ecx, esi
call fcn.0044a67c
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44b681
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x11c
mov eax, 0x56b276
call fcn.0056127f
mov edi, ecx
and dword [ebp - 4], 0
mov eax, dword [0x5cd274]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
test al, 1
jne 0x44b6b4
or eax, 1
mov dword [0x5cd274], eax
call esi
mov dword [0x5cd278], eax
call esi
sub eax, dword [0x5cd278]
cmp eax, 0x1388
jb 0x44b83b
call esi
lea esi, [edi + 0x3c8]
mov dword [0x5cd278], eax
mov ecx, esi
mov dword [ebp - 0x64], esi
call fcn.005383c0
mov byte [ebp - 4], 1
lea ebx, [edi + 0x3e0]
mov eax, dword [ebx]
mov ecx, edi
mov dword [ebx + 4], eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00442764
push str.network_logCommandIDPackgeList.txt
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.0044f143
pop ecx
push 0
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.00401d84
push ecx
lea ecx, [ebp - 0x128]
call fcn.00407c36
mov byte [ebp - 4], 5
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x110]
push 0x40
cmovae eax, dword [ebp - 0x44]
push 1
push eax
call fcn.0044eb59
test eax, eax
lea ecx, [ebp - 0x128]
mov eax, dword [ebp - 0x128]
push 0
mov eax, dword [eax + 4]
jne 0x44b768
push 2
add ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
jmp 0x44b772
push 0
add ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
cmp dword [ebp - 0xc0], 0
jne 0x44b7a7
lea ecx, [ebp - 0xb0]
call fcn.00407ca6
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.00401d84
mov byte [ebp - 4], 0
jmp 0x44b834
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 6
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x128]
call fcn.0040a177
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x44b7f7
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR120.dll_atoi]
pop ecx
mov dword [ebp - 0x60], eax
mov ecx, ebx
lea eax, [ebp - 0x60]
push eax
call fcn.0044e021
jmp 0x44b7ba
lea ecx, [ebp - 0x128]
call fcn.00407d11
xor ebx, ebx
lea ecx, [ebp - 0x2c]
push ebx
push 1
call fcn.00401d3f
lea ecx, [ebp - 0xb0]
call fcn.00407ca6
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.00401d84
mov byte [ebp - 4], bl
mov ecx, esi
call fcn.005383d0
call fcn.005611d1
ret
Function at 0x44d228
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
push esi
mov esi, ecx
jb 0x44d23b
mov edx, dword [edx]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x44d254
and dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
jmp 0x44d269
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, esi
call fcn.00401c4a
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4509fa
Capabilities:
Send icmp echo request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x5c31c8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x40], eax
jb 0x450a1e
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
jne 0x450a33
xor al, al
jmp 0x450ae4
call dword [sym.imp.IPHLPAPI.DLL_IcmpCreateFile]
mov dword [ebp - 0x44], eax
cmp eax, 0xffffffff
je 0x450a2c
xor eax, eax
xor ecx, ecx
inc eax
push 0x1c
pop edx
mov dword [ebp - 0x30], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0055da37
and dword [ebp - 0x3c], 0
lea edi, [ebp - 0x24]
and dword [ebp - 0x38], 0
mov ebx, eax
pop ecx
push 8
pop ecx
mov eax, 0x30303030
mov byte [ebp - 0x3c], 1
push 0x1c
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x44]
pop edx
mov byte [ebp - 0x25], 1
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp - 0x34]
mov eax, ecx
dec ecx
mov dword [ebp - 0x34], ecx
test eax, eax
je 0x450ad3
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x450ad3
push 0xbb8
push edx
push ebx
lea eax, [ebp - 0x3c]
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
push esi
push edi
call dword [sym.imp.IPHLPAPI.DLL_IcmpSendEcho]
test eax, eax
je 0x450af5
mov ecx, dword [ebp - 0x40]
push ebx
call fcn.0043f9d2
cmp dword [ebx], esi
jne 0x450ac7
mov byte [ebp - 0x25], 0
inc byte [ebp - 0x3c]
cmp byte [ebp - 0x25], 0
mov edx, dword [ebp - 0x2c]
jne 0x450a84
push ebx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
pop ecx
push edi
call dword [sym.imp.IPHLPAPI.DLL_IcmpCloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055daac
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 4], 0x2af9
jne 0x450ac7
push ebx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov eax, dword [ebp - 0x30]
xor ecx, ecx
push 0x1c
inc eax
pop edx
add dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0055da37
pop ecx
pop ecx
mov ebx, eax
jmp 0x450aca
Function at 0x451909
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push eax
push eax
lea edi, [esi + 0x58]
push edi
push 0x466b0c
push eax
mov dword [edi + 0x3c], esi
mov dword [edi + 0x40], 0x451c1c
push eax
mov byte [edi], al
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x4519ba
mov dword [edi + 4], eax
mov edx, 0xfffe
mov ecx, dword [esi + 0xa8]
lea eax, [ecx - 1]
cmp eax, edx
ja 0x451952
mov dword [esi + 0x2c], ecx
mov ecx, dword [esi + 0xb4]
lea eax, [ecx - 1]
cmp eax, edx
ja 0x451962
mov dword [esi + 0x48], ecx
lea eax, [esi + 0x20]
mov ecx, 0x451abd
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], esi
mov dword [esi + 0x54], ecx
mov ecx, eax
mov dword [esi + 0x50], esi
call fcn.00466eb7
test al, al
je 0x4519a3
lea ecx, [esi + 0x3c]
call fcn.00466eb7
test al, al
je 0x4519a3
mov eax, dword [esi + 0x2c]
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0x48]
mov dword [esi + 0xb4], eax
mov al, 1
jmp 0x4519bc
lea ecx, [esi + 0x20]
call fcn.00466eed
lea ecx, [esi + 0x3c]
call fcn.00466eed
mov ecx, edi
call fcn.00466abb
xor al, al
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push 8
mov eax, 0x56c215
call fcn.005611e0
mov ebx, ecx
push 0x4000
call fcn.0055da37
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
mov edi, dword [ebx]
test esi, esi
je 0x453f2c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 0x4000
push esi
push dword [edi]
mov dword [edi + 0x1c], eax
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
jmp 0x453f2f
or edi, 0xffffffff
test edi, edi
js 0x453f88
je 0x453f7b
jle 0x453f62
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0x10c]
test ecx, ecx
je 0x453f56
push dword [ebp + 8]
lea eax, [edi + esi]
push eax
push esi
push dword [ecx + 4]
call fcn.00466217
jmp 0x453f5f
push edi
push esi
mov ecx, eax
call fcn.00463836
add dword [ebp - 0x10], edi
cmp edi, 0x4000
jge 0x453f09
mov eax, dword [ebx + 4]
cmp byte [eax + 0x3c], 0
je 0x453fb3
cmp dword [eax + 0x6c], 0xffffffff
je 0x453f09
jmp 0x453fb3
mov ecx, dword [ebx]
and dword [ebp - 0x10], 0
call fcn.00466942
jmp 0x453fb3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x453fb3
mov eax, dword [ebx]
mov dword [ebp - 0x10], edi
mov byte [eax + 0x23], 1
mov eax, dword [ebx + 4]
mov byte [ebx + 0x20], 1
mov eax, dword [eax + 0xf8]
test eax, eax
je 0x453fb3
mov byte [eax + 0x27], 1
push dword [ebp + 8]
mov ecx, dword [ebx + 4]
push dword [ebp - 0x10]
call fcn.00465152
test al, al
setne bl
test esi, esi
je 0x453fd2
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
pop ecx
mov al, bl
call fcn.005611ae
ret 4
Function at 0x453fdc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x10
mov edi, ecx
pop esi
mov ecx, dword [edi + 4]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004658bf
test al, al
je 0x45404f
xor ebx, ebx
cmp dword [ebp - 4], ebx
jle 0x454042
dec esi
mov dword [ebp - 0xc], esi
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push dword [ebp - 4]
mov dword [esi + 0x1c], eax
push dword [ebp - 8]
push dword [esi]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, eax
test ecx, ecx
js 0x45406b
mov eax, dword [ebp - 4]
add ebx, ecx
add dword [ebp - 8], ecx
sub eax, ecx
mov esi, dword [ebp - 0xc]
mov dword [ebp - 4], eax
test esi, esi
jle 0x454042
test eax, eax
jg 0x454005
mov ecx, dword [edi + 4]
push ebx
call fcn.004659be
test esi, esi
jg 0x453fea
test esi, esi
jg 0x454091
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 0xf4]
call fcn.00475a76
test al, al
je 0x4540c8
mov byte [edi + 0x28], 1
jmp 0x4540c8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x454082
mov eax, dword [edi]
mov byte [eax + 0x23], 1
mov byte [edi + 0x20], 1
test ebx, ebx
jle 0x4540c8
mov ecx, dword [edi + 4]
push ebx
call fcn.004659be
jmp 0x4540c8
mov esi, dword [edi + 4]
mov ecx, dword [esi + 0xf4]
call fcn.00475a76
test al, al
je 0x4540af
mov eax, dword [edi]
mov byte [eax + 0x23], 1
mov byte [edi + 0x20], 1
jmp 0x4540c1
cmp dword [esi + 0xf0], 3
jne 0x4540c8
cmp byte [esi + 0xec], 0
je 0x4540c8
mov ecx, dword [edi]
call fcn.0046695f
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4540d3
Capabilities:
Encode data using base64

Disassembly:
push 0x18
mov eax, 0x569bb9
call fcn.005611e0
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
test eax, eax
jne 0x454103
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], ecx
mov byte [ebx], cl
jmp 0x454202
add eax, 2
push 3
pop ecx
cdq
idiv ecx
lea ecx, [ebp - 0x24]
shl eax, 2
push eax
call fcn.0044d55a
mov eax, dword [ebp + 8]
push 3
cdq
pop ecx
idiv ecx
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x14], edx
test eax, eax
jle 0x45418f
push ecx
mov ebx, eax
pop edx
movzx ecx, byte [edi]
shr ecx, 2
mov al, byte [ecx + 0x585d20]
mov byte [esi], al
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, edx
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + 0x585d20]
mov byte [esi + 1], al
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
and ecx, 0xf
shr eax, 6
mov al, byte [eax + ecx*4 + 0x585d20]
mov byte [esi + 2], al
movzx eax, byte [edi + 2]
add edi, edx
and eax, 0x3f
mov al, byte [eax + 0x585d20]
mov byte [esi + 3], al
add esi, 4
dec ebx
jne 0x454133
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
cmp edx, 1
jne 0x4541aa
movzx eax, byte [edi]
shr eax, 2
mov word [esi + 1], 0x3d41
mov al, byte [eax + 0x585d20]
mov byte [esi], al
jmp 0x4541e9
cmp edx, 2
jne 0x4541ed
movzx eax, byte [edi]
shr eax, 2
push 3
mov al, byte [eax + 0x585d20]
mov byte [esi], al
movzx ecx, byte [edi]
pop eax
and ecx, eax
movzx eax, byte [edi + 1]
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + 0x585d20]
mov byte [esi + 1], al
movzx eax, byte [edi + 1]
and eax, 0xf
mov al, byte [eax*4 + 0x585d20]
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
push dword [ebp - 0x20]
mov ecx, ebx
push dword [ebp - 0x24]
call fcn.0044f11a
lea ecx, [ebp - 0x24]
call fcn.00408f76
mov eax, ebx
call fcn.005611ae
ret
Function at 0x4554d5
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], ecx
push esi
push edi
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
sub edx, 0xc
push dword [ecx + 8]
add ecx, 0xc
call fcn.00532b9d
pop ecx
test al, al
je 0x455573
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x18], ebx
test byte [eax + 1], 2
je 0x455532
lea esi, [ebx + 0x10]
lea edi, [ebx + 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 8]
mov eax, dword [eax + 2]
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 8]
mov ax, word [eax + 6]
mov word [ebx + 0x18], ax
mov byte [ebx + 0x44], 1
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + 0xc]
mov dword [ebx], eax
mov eax, dword [ecx + 0x10]
mov dword [ebx + 4], eax
mov ecx, dword [ebx + 8]
mov ax, word [ecx + 0x14]
mov word [ebp - 0x14], ax
mov al, byte [ecx + 0x16]
mov byte [ebp - 0x11], al
mov al, byte [ecx + 0x17]
mov byte [ebp - 0x12], al
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x10], eax
lea eax, [ecx + 0x1c]
mov ecx, dword [ebp - 8]
mov dword [ebx + 8], eax
lea eax, [ebp - 0x18]
add dword [ebx + 0xc], 0xffffffe4
push eax
call fcn.0045557c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x457697
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5c31c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x50], 0
je 0x4576b9
mov al, 1
jmp 0x4577f7
lea ecx, [ebp - 0x15]
call fcn.004427a1
push 1
xor ebx, ebx
push ebx
push ebx
push 0x11
push 2
pop eax
push eax
push eax
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4577f5
push 1
lea eax, [ebp - 0x15]
mov byte [ebp - 0x15], 1
push eax
push 0xfffffffffffffffb
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 1
lea eax, [ebp - 0x15]
push eax
push 0xffffff7f
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 1
lea eax, [ebp - 0x15]
push eax
push 0x20
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [esi + 0x34]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ecx
mov eax, dword [ecx]
push 2
mov dword [ebp - 0x20], eax
pop eax
push ebx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
push dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x45779d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2740
je 0x457774
cmp eax, 0x2726
jne 0x457794
cmp dword [ebp - 0x20], 0xffff
jge 0x457794
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
inc eax
add ecx, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], ecx
cmp eax, 2
jl 0x45772b
jmp 0x4577a9
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4577f5
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x44], edi
cmp eax, 2
je 0x457794
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x24]
push 4
push eax
push 0x1001
push 0xffff
push dword [esi + 0x44]
mov dword [ebp - 0x24], 0x10000
call ebx
cmp eax, 0xffffffff
je 0x4577ea
push 4
lea eax, [ebp - 0x24]
push eax
push 0x1002
push 0xffff
push dword [esi + 0x44]
call ebx
cmp dword [esi + 0x44], 0xffffffff
mov byte [esi + 0x50], 1
setne bl
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055daac
mov esp, ebp
pop ebp
ret
Function at 0x457808
Capabilities:
Send data
Send data on socket

Disassembly:
push 0x44
mov eax, 0x56c7e3
call fcn.0056127f
mov ebx, ecx
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
mov ecx, dword [ebx + 0x40]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
call fcn.00448333
mov esi, eax
mov byte [ebp - 0x34], 0
xor eax, eax
mov dword [ebx + 0x3c], esi
push 7
pop ecx
lea edi, [ebp - 0x33]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebx + 0x40]
lea edi, [ebp - 0x27]
mov ecx, dword [eax + 0xf0]
movzx edx, word [eax + 0x28]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x2e], esi
lea esi, [ebx + 0x20]
mov dword [ebp - 0x32], ecx
mov ecx, dword [ebp - 0x4c]
mov ax, word [eax]
mov word [ebp - 0x34], ax
mov word [ebp - 0x2a], dx
mov ax, word [ecx]
movsd dword es:[edi], dword [esi]
mov word [ebp - 0x44], ax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x48]
movsd dword es:[edi], dword [esi]
movzx eax, word [eax]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x16], 0
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
mov word [ebp - 0x42], ax
lea eax, [ebp - 0x44]
push eax
push 0
push 0x1f
lea eax, [ebp - 0x34]
push eax
push dword [ebx + 0x44]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x4578bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.005611d1
ret 0xc
Function at 0x4578ca
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c31c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x40], ebx
je 0x4579bf
call fcn.00457697
test al, al
je 0x4579bf
mov eax, dword [esi + 0x40]
push 6
add eax, 0x36
mov byte [esi + 0x58], bl
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push 6
push eax
mov word [ebp - 8], bx
call dword [sym.imp.MSVCR120.dll_memcpy_s]
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, byte [ebp - 7]
push eax
movzx eax, byte [ebp - 8]
push eax
movzx eax, byte [ebp - 9]
push eax
movzx eax, byte [ebp - 0xa]
push eax
movzx eax, byte [ebp - 0xb]
push eax
movzx eax, byte [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
push str._02x__02x__02x__02x__02x__02x
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
push 0x12
lea eax, [ebp - 0x20]
push eax
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.MSVCR120.dll_strncpy]
add esp, 0x3c
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov edi, eax
test edi, edi
je 0x45798a
push 1
push edi
push dword [esi + 0x44]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x457983
mov dword [esi + 0x54], edi
jmp 0x45798a
push edi
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
push ebx
push ebx
push esi
push 0x457a97
push ebx
push ebx
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x4579bf
lea edx, [esi + 0x5c]
mov dword [esi + 0x4c], eax
push edx
call fcn.00457d7a
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
push ecx
mov ecx, esi
call fcn.00457a3f
mov al, 1
jmp 0x4579c1
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055daac
mov esp, ebp
pop ebp
ret
Function at 0x457aa6
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x114c
call fcn.0055e160
mov eax, dword [0x5c31c8]
xor eax, esp
mov dword [esp + 0x1148], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x58], 0
jne 0x457cae
lea ebx, [esi + 0x54]
mov edi, 0x800
cmp dword [ebx], 0
je 0x457bc4
push 0
push 0xffffffffffffffff
push 0
push ebx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp byte [esi + 0x58], 0
mov edi, eax
jne 0x457cae
cmp edi, 0xc0
je 0x457ca8
cmp edi, 0xffffffff
je 0x457ca8
push dword [ebx]
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
test edi, edi
jne 0x457c99
push 0x7ff
lea eax, [esp + 0x155]
mov byte [esp + 0x154], 0
push edi
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x10], 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
push edi
mov edi, 0x800
lea eax, [esp + 0x15c]
push edi
push eax
push dword [esi + 0x44]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ecx, eax
mov dword [esp + 0xc], ecx
lea eax, [ecx - 1]
cmp eax, 0x7fe
ja 0x457c9e
cmp ecx, edi
jae 0x457cce
push dword [esp + 0x2a]
mov byte [esp + ecx + 0x154], 0
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x15c]
push eax
mov ecx, esi
call fcn.00457eba
jmp 0x457c9e
mov eax, dword [esi + 0x44]
and dword [esp + 0x20], 0
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x20]
push eax
push 0
push 0
lea eax, [esp + 0x54]
mov dword [esp + 0x30], 0x64
push eax
push 1
mov dword [esp + 0x5c], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x457c9e
test eax, eax
jle 0x457c9e
lea eax, [esp + 0x48]
push eax
push dword [esi + 0x44]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x457c9e
push 0x7ff
lea eax, [esp + 0x955]
mov byte [esp + 0x954], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x14], 0x10
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push edi
lea eax, [esp + 0x960]
push eax
push dword [esi + 0x44]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ecx, eax
mov dword [esp + 0x1c], ecx
lea eax, [ecx - 1]
cmp eax, 0x7fe
ja 0x457c9e
cmp ecx, edi
jae 0x457cce
lea eax, [esp + 0x3a]
mov byte [esp + ecx + 0x950], 0
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x95c]
jmp 0x457bb7
mov edi, 0x800
cmp byte [esi + 0x58], 0
je 0x457adb
cmp byte [esi + 0x58], 0
je 0x457cb6
mov byte [esi + 0x58], 0
xor eax, eax
jmp 0x457cb9
xor eax, eax
inc eax
mov ecx, dword [esp + 0x1154]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0055daac
mov esp, ebp
pop ebp
ret
call fcn.0055e473
int3
Function at 0x458eea
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56cc2d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5c31c8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x30], eax
lea eax, [edx - 1]
cmp eax, 0xb3
ja 0x458f67
mov eax, dword [edx*4 + 0x5837c8]
test eax, eax
jle 0x458f67
push dword [ebp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00458d49
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 1
call fcn.0044e44f
lea ecx, [esp + 0x18]
call fcn.0044eac8
mov ecx, dword [ebp + 8]
lea eax, [esp + 0xc]
push eax
call fcn.0044e41f
lea ecx, [esp + 0xc]
call fcn.0044eac8
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc