joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466de0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, 0x9d7c
call fcn.00461520
mov eax, dword [0x5d6c64]
xor eax, esp
mov dword [esp + 0x9d78], eax
mov ecx, dword [ebx]
push 0
push 0x4ebc
lea eax, [esp + 0x4ec4]
push eax
push ecx
call fcn.00462700
add esp, 0x10
test eax, eax
jg 0x466e2e
or eax, 0xffffffff
mov ecx, dword [esp + 0x9d78]
xor ecx, esp
call fcn.004610a0
add esp, 0x9d7c
ret
mov ecx, dword [esi]
lea edx, [esp]
push edx
push eax
lea eax, [esp + 0x4ec4]
push eax
push ecx
call fcn.004657c0
add esp, 0x10
test eax, eax
js 0x466e16
movzx eax, word [esp + 6]
sub eax, 2
je 0x466ea0
sub eax, 2
jne 0x466ece
push edi
push esi
lea edi, [esp + 8]
mov eax, ebx
call fcn.00466cb0
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [ebx + 4]
imul edx, edx, 0xeb4
add edx, dword [esi + 0x18]
push eax
push ecx
push edx
call fcn.004d19c0
add esp, 0x14
pop edi
xor eax, eax
mov ecx, dword [esp + 0x9d78]
xor ecx, esp
call fcn.004610a0
add esp, 0x9d7c
ret
push ebx
lea edx, [esp + 4]
mov ecx, esi
call fcn.00466be0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [ebx + 4]
imul eax, eax, 0xeb4
add eax, dword [esi + 0x18]
push ecx
push edx
push eax
call fcn.004d19c0
add esp, 0x14
mov ecx, dword [esp + 0x9d78]
xor ecx, esp
xor eax, eax
call fcn.004610a0
add esp, 0x9d7c
ret
Function at 0x466ef0
Capabilities:
Get socket status

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, eax
xor ebx, ebx
push edi
mov dword [esi + 0x138], ebx
mov dword [esi + 4], 8
cmp dword [esi + 0x10], ebx
jle 0x466f66
mov dword [esp + 0x10], ebx
xor ebp, ebp
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x14]
add eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x466f41
test dl, dl
je 0x466f3d
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x466f41
add ecx, 2
add eax, 2
test dl, dl
jne 0x466f21
xor eax, eax
jmp 0x466f46
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
sete cl
add dword [esp + 0x10], 0xeb4
inc ebx
add ebp, 0x24
lea ecx, [ecx + ecx + 2]
mov dword [edi + ebp - 0x1c], ecx
cmp ebx, dword [esi + 0x10]
jl 0x466f13
lea eax, [esi + 0x1c]
push 0
push eax
call fcn.00462730
add esp, 8
mov ecx, esi
call fcn.004661f0
test eax, eax
jne 0x46706b
lea edi, [esi + 0x2c]
push esi
call fcn.00466920
push esi
call fcn.00466aa0
lea eax, [esi + 0x1c]
push 0
push eax
call fcn.00462730
add esp, 0x10
cmp dword [esi + 0x10], 0
mov dword [edi], 0
mov dword [esp + 0x10], 0
jle 0x466ff9
xor edx, edx
mov ebp, dword [edi]
xor eax, eax
test ebp, ebp
je 0x466fd3
mov ecx, dword [esi + 0x14]
mov ebx, dword [edx + ecx]
lea ecx, [esi + 0x30]
cmp dword [ecx], ebx
je 0x466fd3
inc eax
add ecx, 4
cmp eax, ebp
jb 0x466fc7
cmp eax, ebp
jne 0x466fe8
cmp ebp, 0x40
jae 0x466fe8
mov ecx, dword [esi + 0x14]
mov ecx, dword [edx + ecx]
mov dword [esi + eax*4 + 0x30], ecx
inc dword [edi]
mov eax, dword [esp + 0x10]
inc eax
add edx, 0x24
mov dword [esp + 0x10], eax
cmp eax, dword [esi + 0x10]
jl 0x466fb6
mov eax, dword [esi + 0x130]
lea edx, [esp + 0x14]
push edx
xor ebp, ebp
push ebp
push ebp
push edi
inc eax
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 0x2710
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x46705c
mov dword [esp + 0x10], ebp
cmp dword [esi + 0x10], ebp
jle 0x46705c
lea ebx, [ebx]
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + ebp]
push edi
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x46704b
mov ebx, dword [esi + 0x14]
add ebx, ebp
call fcn.00466de0
mov eax, dword [esp + 0x10]
inc eax
add ebp, 0x24
mov dword [esp + 0x10], eax
cmp eax, dword [esi + 0x10]
jl 0x467030
mov ecx, esi
call fcn.004661f0
test eax, eax
je 0x466f86
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret

Function at 0x4672b0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x5d6c64]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x467302
mov eax, dword [esp]
cmp al, 2
jne 0x4672fc
shr eax, 8
cmp al, 2
jne 0x4672fc
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004610a0
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.004610a0
add esp, 0x194
ret
Function at 0x474710
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x474742
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x474880
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa8
mov eax, dword [0x5d6c64]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xb4]
push ebx
mov ebx, dword [esp + 0xb4]
push ebp
mov ebp, dword [sym.imp.MSVCR100.dll_fwrite]
push esi
mov esi, dword [esp + 0xb8]
cmp dword [esi + 0x328], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc8]
push edi
je case.default.0x4748ea
test eax, eax
je case.default.0x4748ea
mov eax, dword [eax + 0x9c]
test eax, eax
je case.default.0x4748ea
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x4748ea
jmp dword [edx*4 + 0x474a00]
mov ecx, str.Header
mov edx, str.from
jmp 0x474907
mov ecx, str.Header
mov edx, 0x57cbcc
push eax
push edx
push ecx
push str.__s__s__s_
lea ecx, [esp + 0x24]
push 0xa0
push ecx
call fcn.00478c90
lea eax, [esp + 0x2c]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x474928
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x474981
mov edx, dword [esi + 0x174]
push edx
push edi
lea ecx, [esp + 0x1c]
push ecx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x4749e4
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x4749a9
mov edx, dword [esi + 0x174]
mov ecx, dword [esp + 0xc8]
push edx
mov edx, dword [esp + 0x14]
push ecx
push edx
push ebx
push esi
call eax
add esp, 0x14
jmp 0x4749e4
mov edx, dword [esi + 0x170]
push edx
push 1
push 2
push 0x57cba8
call ebp
mov eax, dword [esi + 0x170]
push eax
push 1
lea ecx, [esp + 0x2c]
push edi
push ecx
call ebp
add esp, 0x20
jmp case.default.0x4748ea
test ebx, ebx
js 0x4749e2
cmp ebx, 2
jg 0x4749e2
mov eax, dword [esi + 0x170]
push eax
push 1
lea ecx, [ebx + ebx*2 + 0x57cba8]
push 2
push ecx
call ebp
mov edx, dword [esi + 0x170]
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0x20]
push edx
push 1
push eax
push ecx
call ebp
add esp, 0x20
xor eax, eax
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004610a0
add esp, 0xa8
ret
Function at 0x474aa0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x5d6c64]
xor eax, esp
mov dword [esp], eax
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
lea ebx, [esi + 0x624]
push 0x4000
push ebx
call fcn.00478c30
mov eax, dword [esi + 0x178]
add esp, 0x10
test eax, eax
je 0x474b00
cmp dword [esi + 0x8650], 0
jne 0x474b00
push ebx
push 0x56fadc
push 0x100
push eax
call fcn.00478c90
add esp, 0x10
mov dword [esi + 0x8650], 1
cmp dword [esi + 0x374], 0
je 0x474b8b
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x474b12
sub eax, edx
push edi
mov edi, eax
cmp edi, 0x3fff
jae 0x474b36
mov byte [esi + edi + 0x624], 0xa
inc edi
mov byte [esi + edi + 0x624], cl
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x474b60
mov edx, dword [esi + 0x174]
push edx
push edi
push ebx
push 0
push esi
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [esp]
xor ecx, esp
call fcn.004610a0
pop ecx
ret
mov eax, dword [esi + 0x170]
push ebp
mov ebp, dword [sym.imp.MSVCR100.dll_fwrite]
push eax
push 1
push 2
push 0x57cba8
call ebp
mov ecx, dword [esi + 0x170]
push ecx
push 1
push edi
push ebx
call ebp
add esp, 0x20
pop ebp
pop edi
mov ecx, dword [esp + 8]
pop esi
pop ebx
xor ecx, esp
call fcn.004610a0
pop ecx
ret
Function at 0x474ba0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xb8
mov eax, dword [0x5d6c64]
xor eax, esp
mov dword [esp + 0xb4], eax
mov ecx, dword [esp + 0xc4]
push ebx
mov ebx, dword [esp + 0xc4]
push esi
mov esi, dword [ebx]
push edi
lea eax, [esp + 0xd4]
push eax
push ecx
call fcn.00479740
mov edi, eax
add esp, 8
mov dword [esp + 0x18], edi
test edi, edi
jne 0x474bfd
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.004610a0
add esp, 0xb8
ret
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x474c00
sub eax, edx
mov ecx, eax
mov dword [esp + 0xc], edi
push ebp
mov edx, dword [esp + 0xcc]
xor eax, eax
cmp edx, dword [ebx + 0x158]
lea edx, [esp + 0x18]
push edx
sete al
push ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x24], 0
mov edx, dword [ebx + eax*4 + 0x174]
push eax
push ebx
call edx
mov ebp, eax
xor ecx, ecx
add esp, 0x14
cmp ebp, ecx
jge 0x474c66
mov eax, dword [esp + 0x18]
cmp eax, ecx
je 0x474d4b
cmp eax, 0x51
jne 0x474d45
xor ebp, ebp
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x374], ecx
je 0x474cfe
cmp dword [esi + 0x328], ecx
je 0x474cdf
mov eax, dword [ebx + 0x9c]
cmp eax, ecx
je 0x474cdf
push eax
push 0x57cbcc
push str.Data
push str.__s__s__s_
lea eax, [esp + 0x34]
push 0xa0
push eax
call fcn.00478c90
lea eax, [esp + 0x3c]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x474cb1
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x474d15
mov ecx, dword [esi + 0x174]
push ecx
push edi
lea edx, [esp + 0x2c]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x474cfe
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x474cfe
mov ecx, dword [esi + 0x174]
mov edx, dword [esp + 0x10]
push ecx
push ebp
push edx
push 4
push esi
call eax
add esp, 0x14
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
cmp ebp, ecx
je 0x474d53
sub ecx, ebp
add dword [esp + 0x10], ebp
jmp 0x474c10
mov eax, dword [esi + 0x170]
push eax
push 1
push 2
push 0x57cba8
call dword [sym.imp.MSVCR100.dll_fwrite]
mov ecx, dword [esi + 0x170]
push ecx
push 1
lea edx, [esp + 0x3c]
push edi
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x20
jmp 0x474cdf
mov dword [esp + 0x14], eax
jmp 0x474d53
mov dword [esp + 0x14], 0x37
push edi
call dword [0x5e1058]
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0x18]
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004610a0
add esp, 0xb8
ret
Function at 0x474d80
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x154]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x474dfd
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x474dd4
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.00468020
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.00474aa0
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x8654], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x476f50
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x5d6c64]
xor eax, esp
mov dword [esp + 0x14], eax
xor eax, eax
cmp dword [esi + 0x4b0], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x476fa4
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00474a10
add esp, 0xc
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004610a0
add esp, 0x18
ret
mov edx, dword [esi + 0x4b4]
push edx
mov dword [esp + 0xc], 1
call fcn.0047c6a0
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x4b8]
push eax
call fcn.0047c6a0
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x47701d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.00474a10
add esp, 0x10
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004610a0
add esp, 0x18
ret
Function at 0x477620
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x5d6c64]
xor eax, esp
mov dword [esp + 0x108], eax
push ebp
mov ebp, dword [esp + 0x114]
cmp dword [ebp + 0x8c], 2
push edi
mov edi, dword [ebp]
mov dword [esp + 0xc], edi
je 0x477795
cmp dword [ebp + 0x1f8], 0
push ebx
push esi
jne 0x47778a
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4776ac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00468020
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.00474aa0
add esp, 0x18
jmp 0x477793
push ebx
lea edx, [esp + 0x1c]
push 0
push edx
mov dword [esp + 0x1c], ebx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4776f9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00468020
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.00474aa0
add esp, 0x18
jmp 0x477793
lea edi, [ebp + 0xb8]
lea ebx, [ebp + 0xe8]
lea esi, [esp + 0x98]
call fcn.004775e0
test eax, eax
jne 0x47773a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00468020
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00474aa0
add esp, 0x18
jmp 0x477793
lea edi, [ebp + 0x58]
mov ecx, 0xb
lea esi, [ebp + 0xb8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [ebp + 0x11c]
lea edi, [ebp + 0xec]
lea esi, [esp + 0x18]
call fcn.004775e0
test eax, eax
jne 0x47778a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00468020
push eax
mov eax, dword [esp + 0x20]
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.00474aa0
add esp, 0x18
jmp 0x477793
push ebp
call fcn.00477580
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
pop edi
pop ebp
xor ecx, esp
call fcn.004610a0
add esp, 0x10c
ret

Function at 0x4777b0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x3a4]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4777f3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00468020
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00474a10
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00474a10
add esp, 8
pop esi
pop ecx
ret
Function at 0x477810
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xac
mov eax, dword [0x5d6c64]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [0x5ecd60]
push esi
mov dword [esp + 4], 0x4020
mov dword [esp + 8], 0
mov dword [esp + 0xc], 4
test eax, eax
jne 0x4778d4
push 0x9c
push eax
lea eax, [esp + 0x18]
push eax
call sub.MSVCR100.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
push 3
push 2
push 0
push 0
mov dword [esp + 0x20], 0x9c
mov dword [esp + 0x24], 6
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push edx
push eax
push 0x33
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x4778c8
mov dword [0x5ecd60], 2
pop esi
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.004610a0
add esp, 0xac
ret
mov dword [0x5ecd60], 1
jmp 0x4778d9
cmp eax, 2
je 0x477921
mov esi, dword [esp + 0xb4]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x477909
mov ecx, dword [esp + 8]
cmp ecx, dword [esp + 4]
jg 0x477921
push 4
lea edx, [esp + 8]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esp + 0xac]
pop esi
xor ecx, esp
call fcn.004610a0
add esp, 0xac
ret

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

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x618]
test esi, esi
je 0x4779b9
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x47797f
cmp dword [edi + 0x40], eax
je 0x4779b9
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0
test eax, eax
jne 0x477992
mov eax, dword [edi + 0x40]
push 0x477940
lea ecx, [esp + 0xc]
add eax, 0x68
push ecx
push eax
call fcn.0047a3e0
add esp, 0xc
cmp dword [esp + 0xc], 0
jne 0x4779c2
mov dword [edi + 0x618], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4779cc
mov dword [eax], esi
cmp dword [esi + 0x17c], 0
mov edi, dword [esi + 0x154]
je 0x4779f1
push esi
call fcn.0046d120
add esp, 4
test eax, eax
jne 0x477a05
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
push 2
push 1
lea edx, [esp + 0x1c]
push edx
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4779b9
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x4818b0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x18], ebx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x481a61
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x481a3f
push esi
jmp 0x481900
cmp dword [edi + 4], 2
jne 0x4819b8
cmp dword [edi + 0x18], ebx
je 0x4819b8
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x4819b8
cmp eax, 0x10
jb 0x4819b8
push 0x20
call dword [0x5e1054]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4819c5
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x5e1054]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x4819cf
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x4819a5
push eax
call dword [0x5e1060]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x4819e3
cmp dword [esp + 0x10], ebx
jne 0x4819af
mov dword [esp + 0x10], esi
cmp ebp, ebx
je 0x4819b6
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x481900
jmp 0x4819ff
mov dword [esp + 0x14], 8
jmp 0x4819ff
push esi
mov dword [esp + 0x18], 8
call dword [0x5e1058]
add esp, 4
jmp 0x4819ff
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x5e1058]
push esi
call dword [0x5e1058]
add esp, 8
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x481a0f
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0x10], ebx
je 0x481a39
mov eax, dword [esp + 0xc]
push eax
call fcn.00481870
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
mov ecx, ebx
pop ebp
mov dword [esp + 4], ebx
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0xc], ebx
jne 0x481a52
push 0x2af9
mov dword [esp + 0x14], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov dword [edx], ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x481cb0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x481cd4
cmp eax, 0xffffffff
jne 0x481cd6
xor eax, eax
ret
Function at 0x481e10
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x481e1f
jmp dword [ecx*4 + 0x481e74]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
Function at 0x481ee0
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
mov cl, byte [edi]
test cl, cl
je 0x481fff
mov al, byte [esi]
test al, al
je 0x481fff
movsx edx, cl
add edx, 0xffffff9f
cmp edx, 0x19
ja case.default.0x481f09
jmp dword [edx*4 + 0x482024]
mov cl, 0x41
jmp case.default.0x481f09
mov cl, 0x42
jmp case.default.0x481f09
mov cl, 0x43
jmp case.default.0x481f09
mov cl, 0x44
jmp case.default.0x481f09
mov cl, 0x45
jmp case.default.0x481f09
mov cl, 0x46
jmp case.default.0x481f09
mov cl, 0x47
jmp case.default.0x481f09
mov cl, 0x48
jmp case.default.0x481f09
mov cl, 0x49
jmp case.default.0x481f09
mov cl, 0x4a
jmp case.default.0x481f09
mov cl, 0x4b
jmp case.default.0x481f09
mov cl, 0x4c
jmp case.default.0x481f09
mov cl, 0x4d
jmp case.default.0x481f09
mov cl, 0x4e
jmp case.default.0x481f09
mov cl, 0x4f
jmp case.default.0x481f09
mov cl, 0x50
jmp case.default.0x481f09
mov cl, 0x51
jmp case.default.0x481f09
mov cl, 0x52
jmp case.default.0x481f09
mov cl, 0x53
jmp case.default.0x481f09
mov cl, 0x54
jmp case.default.0x481f09
mov cl, 0x55
jmp case.default.0x481f09
mov cl, 0x56
jmp case.default.0x481f09
mov cl, 0x57
jmp case.default.0x481f09
mov cl, 0x58
jmp case.default.0x481f09
mov cl, 0x59
jmp case.default.0x481f09
mov cl, 0x5a
movsx edx, al
add edx, 0xffffff9f
cmp edx, 0x19
ja case.default.0x481f81
jmp dword [edx*4 + 0x48208c]
mov al, 0x41
jmp case.default.0x481f81
mov al, 0x42
jmp case.default.0x481f81
mov al, 0x43
jmp case.default.0x481f81
mov al, 0x44
jmp case.default.0x481f81
mov al, 0x45
jmp case.default.0x481f81
mov al, 0x46
jmp case.default.0x481f81
mov al, 0x47
jmp case.default.0x481f81
mov al, 0x48
jmp case.default.0x481f81
mov al, 0x49
jmp case.default.0x481f81
mov al, 0x4a
jmp case.default.0x481f81
mov al, 0x4b
jmp case.default.0x481f81
mov al, 0x4c
jmp case.default.0x481f81
mov al, 0x4d
jmp case.default.0x481f81
mov al, 0x4e
jmp case.default.0x481f81
mov al, 0x4f
jmp case.default.0x481f81
mov al, 0x50
jmp case.default.0x481f81
mov al, 0x51
jmp case.default.0x481f81
mov al, 0x52
jmp case.default.0x481f81
mov al, 0x53
jmp case.default.0x481f81
mov al, 0x54
jmp case.default.0x481f81
mov al, 0x55
jmp case.default.0x481f81
mov al, 0x56
jmp case.default.0x481f81
mov al, 0x57
jmp case.default.0x481f81
mov al, 0x58
jmp case.default.0x481f81
mov al, 0x59
jmp case.default.0x481f81
mov al, 0x5a
cmp cl, al
jne 0x481fff
mov cl, byte [edi + 1]
inc edi
inc esi
test cl, cl
jne 0x481ef4
movzx eax, byte [edi]
push eax
call fcn.00481e10
mov dl, al
movzx eax, byte [esi]
push eax
call fcn.00481e10
add esp, 8
xor ecx, ecx
cmp dl, al
sete cl
pop edi
pop esi
mov eax, ecx
ret