joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b1af
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4b4810]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ebx
cmp dword [eax + 0x10], ebx
jne 0x46b1da
xor al, al
jmp 0x46b2ed
cmp dword [eax + 0x14], 8
jb 0x46b1e2
mov eax, dword [eax]
movzx eax, word [eax]
push esi
push edi
mov esi, 0x405724
lea edi, [ebp - 0x14]
push ebx
push ebx
push 3
movsd dword es:[edi], dword [esi]
push ebx
push 3
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x4c], esi
cmp esi, 0xffffffff
jne 0x46b21b
xor al, al
jmp 0x46b2eb
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
push eax
push 0x28
lea eax, [ebp - 0x48]
mov dword [ebp - 0x20], ebx
push eax
push 0xc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], ebx
push eax
push 0x2d1400
push esi
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x46b254
mov edi, dword [ebp - 0x2c]
jmp 0x46b2dc
call fcn.0041f9b0
cmp eax, 2
jg 0x46b2cc
push 4
pop ebx
push 2
push 0x93
push 0x4056a8
lea ecx, [ebp - 0x104]
call fcn.0041fa50
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x405734
push dword [ebp - 0x50]
lea eax, [ebp - 0x14]
push 0x405760
push eax
lea eax, [esi + 8]
push 0x405770
push eax
call fcn.0041b630
pop ecx
pop ecx
push eax
call fcn.004202c0
pop ecx
pop ecx
push eax
call fcn.0041b630
pop ecx
pop ecx
push eax
call fcn.0041cdb0
pop ecx
pop ecx
push eax
call fcn.0041b630
pop ecx
pop ecx
mov ecx, eax
call fcn.004204d0
mov esi, dword [ebp - 0x4c]
test bl, 4
je 0x46b2dc
lea ecx, [ebp - 0x104]
call fcn.0041faa0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp edi, 7
sete al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00492f61
mov esp, ebp
pop ebp
ret
Function at 0x46c296
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37c8
call fcn.004903f0
mov eax, dword [0x4b4810]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov ebx, edi
mov esi, edi
push esi
lea eax, [ebp - 0x104]
push 0x40598c
push eax
call fcn.00490276
add esp, 0xc
lea eax, [ebp - 0x104]
push edi
push edi
push 3
push edi
push 3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x37c8], eax
cmp eax, 0xffffffff
je 0x46c47f
mov dword [ebp - 0x37c4], edi
xor eax, eax
lea edi, [ebp - 0x37c0]
stosd dword es:[edi], eax
push 0x2710
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x33cc]
xor edi, edi
push edi
push eax
mov dword [ebp - 0x37c0], edi
mov dword [ebp - 0x37bc], edi
call fcn.00447e70
add esp, 0xc
lea eax, [ebp - 0x37c4]
push edi
mov edi, dword [ebp - 0x37c8]
push eax
push 0x2710
lea eax, [ebp - 0x33cc]
push eax
push 0xc
lea eax, [ebp - 0x37c0]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x46c476
lea eax, [ebp - 0xcbc]
push eax
push 0
push dword [ebp - 0x33c0]
lea eax, [ebp - 0x33cc]
push eax
call fcn.0046c49c
lea eax, [ebp - 0x8d4]
push eax
push 0
push dword [ebp - 0x33bc]
lea eax, [ebp - 0x33cc]
push eax
call fcn.0046c49c
lea eax, [ebp - 0x37b4]
push eax
push 0
push dword [ebp - 0x33b8]
lea eax, [ebp - 0x33cc]
push eax
call fcn.0046c49c
lea eax, [ebp - 0x4ec]
push eax
push 1
push dword [ebp - 0x33b4]
lea eax, [ebp - 0x33cc]
push eax
call fcn.0046c49c
add esp, 0x40
cmp byte [0x4b84b8], 0
jne 0x46c43c
movsx eax, byte [ebp - 0x4ec]
push eax
call fcn.00494ce7
pop ecx
test eax, eax
jne 0x46c3f6
movsx eax, byte [ebp - 0x4d9]
push eax
call fcn.00494ce7
pop ecx
test eax, eax
je 0x46c43c
xor eax, eax
cmp byte [ebp - 0x4ec], 0x20
jne 0x46c40c
inc eax
cmp byte [ebp + eax - 0x4ec], 0x20
je 0x46c401
lea ecx, [ebp - 0x4ec]
mov edx, 0x4b84b8
add ecx, eax
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x46c41b
xor ecx, ecx
mov al, byte [ebp + ecx - 0x8d4]
mov byte [ecx + 0x4b88b8], al
inc ecx
test al, al
jne 0x46c427
xor ebx, ebx
inc ebx
push 0x2710
lea eax, [ebp - 0x33cc]
push 0
push eax
call fcn.00447e70
add esp, 0xc
lea eax, [ebp - 0x37c4]
xor ecx, ecx
push ecx
push eax
push 0x2710
lea eax, [ebp - 0x33cc]
push eax
push ecx
push ecx
push 0x700a0
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc esi
cmp esi, 0x10
jl 0x46c2b6
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00492f61
mov esp, ebp
pop ebp
ret

Function at 0x46c5e7
Capabilities:
Hash data with md5

Disassembly:
push esi
push 0x40
mov esi, ecx
push 0
push esi
call fcn.00447e70
and dword [esi + 0x44], 0
add esp, 0xc
and dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x48], 0x67452301
mov dword [esi + 0x4c], 0xefcdab89
mov dword [esi + 0x50], 0x98badcfe
mov dword [esi + 0x54], 0x10325476
pop esi
ret
Function at 0x46d334
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46d3c8
push esi
xor ecx, ecx
mov eax, 0x19000
push 2
pop edx
mov dword [ebp - 4], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004903b5
mov esi, eax
mov eax, dword [ebp - 4]
add eax, eax
push eax
push ebx
push esi
call fcn.00447e70
add esp, 0x10
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
push esi
sbb al, al
lea ebx, [eax + 1]
call fcn.004167e0
pop ecx
mov ecx, dword [ebp + 0x14]
push eax
push esi
call fcn.0041a940
push esi
call fcn.004903b0
pop ecx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46d53f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], ebx
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x46d572
xor al, al
jmp 0x46d5a6
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 0x14]
push 1
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x46d59b
mov bl, 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46dedb
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4b4810]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4b8f30]
mov ecx, eax
inc eax
mov dword [0x4b8f30], eax
test ecx, ecx
je 0x46df06
xor eax, eax
jmp 0x46df8c
push ebx
mov ebx, dword [ebp + 8]
mov dword [fcn.00490ca2], 0x490ca2
mov dword [fcn.00490378], 0x490378
mov dword [fcn.0049616e], 0x49616e
mov dword [fcn.004965eb], 0x4965eb
mov dword [fcn.0049669e], 0x49669e
test bl, 2
je 0x46df70
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x46df79
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x46df68
shr eax, 8
cmp al, 2
je 0x46df70
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x46df79
call fcn.0041e140
test eax, eax
je 0x46df7e
push 2
pop eax
jmp 0x46df8b
mov dword [0x4b8f34], ebx
call fcn.0047915d
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00492f61
mov esp, ebp
pop ebp
ret
Function at 0x470a42
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x48
push 1
call dword [0x4b4380]
mov esi, dword [ebp + 8]
mov edi, eax
pop ecx
pop ecx
push 8
mov dword [esi + 0x3bc], edi
pop ebx
test edi, edi
je 0x470b02
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [esi + 0x3b4], ecx
mov dword [esi + 0x3b8], ecx
mov dword [esi + 0x3b0], ecx
push eax
push dword [ebp + 0xc]
mov dword [esi + 0x3ac], eax
or dword [edi + 4], 0xffffffff
mov dword [edi], ecx
lea ecx, [edi + 0x10]
push ecx
call fcn.00470b22
add esp, 0x10
test eax, eax
je 0x470b02
mov eax, dword [esi + 0x3a8]
test eax, eax
je 0x470abd
push eax
call dword [0x4b4374]
and dword [esi + 0x3a8], 0
pop ecx
push dword [ebp + 0xc]
call dword [0x4b437c]
mov dword [esi + 0x3a8], eax
pop ecx
test eax, eax
je 0x470b02
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x470b02
lea eax, [edi + 0x10]
push eax
push 0x4709b5
call fcn.0047abc7
mov dword [edi], eax
pop ecx
pop ecx
test eax, eax
jne 0x470b1d
call fcn.00494ea8
mov ebx, dword [eax]
lea eax, [esi + 0x3a8]
push eax
call fcn.004708ef
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
inc eax
jmp 0x470b18

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [edi + eax*4 + 0x130]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov esi, eax
and dword [ebx], 0
cmp esi, 0xffffffff
jne 0x4782df
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x4782b7
xor esi, esi
mov dword [ebx], 0x51
jmp 0x4782df
push eax
push edi
call fcn.0046d5ab
push eax
push 0x407b98
push dword [edi]
call fcn.00477fac
mov eax, dword [edi]
add esp, 0x14
mov ecx, dword [ebp + 8]
mov dword [eax + 0x856c], ecx
mov dword [ebx], 0x37
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x478468
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x164]
test eax, eax
je 0x478490
push dword [esi + 0xf4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
jmp 0x4784c8
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4784c6
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
push 2
add eax, 0x407b80
push eax
call fcn.004936a9
push dword [esi + 0xf0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004936a9
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x478622
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov ecx, dword [eax + 0x530]
cmp ecx, edi
je 0x478676
mov eax, dword [eax + 0x524]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x478676
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x47864f
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
mov esi, dword [eax + 0x130]
jne 0x478676
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
cmove esi, edi
mov eax, esi
jmp 0x478678
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4787c9
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4b4810]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x19c], 0
mov ebx, dword [edi]
jne 0x4788e9
lea eax, [ebp - 0x108]
mov esi, 0x80
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x47883b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.0046d5ab
push eax
push esi
push 0x407d2c
push ebx
call fcn.00477fac
add esp, 0x18
jmp 0x4788f0
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], esi
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x478874
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.0046d5ab
push eax
push esi
push 0x407ca4
jmp 0x47882d
lea eax, [edi + 0xcc]
push eax
lea eax, [edi + 0x9e]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00478c4b
add esp, 0xc
test eax, eax
jne 0x4788ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.0046d5ab
push eax
push esi
push 0x407d54
jmp 0x47882d
lea eax, [edi + 0x100]
push eax
lea eax, [edi + 0xd0]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00478c4b
add esp, 0xc
test eax, eax
jne 0x4788e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.0046d5ab
push eax
push esi
push 0x407d80
jmp 0x47882d
push edi
call fcn.0047867c
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00492f61
mov esp, ebp
pop ebp
ret
Function at 0x479029
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 4
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x479071
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0046d5ab
push eax
push 0x407dc0
push esi
call fcn.00478042
add esp, 0x14
jmp 0x47907e
push 0x407de0
push esi
call fcn.00478042
pop ecx
pop ecx
pop edi
pop esi
pop ebp
ret

Function at 0x47994d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [ebp + 8]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x47995e
jmp dword [eax*4 + 0x4799d1]
mov al, 0x41
pop ebp
ret
mov al, 0x42
pop ebp
ret
mov al, 0x43
pop ebp
ret
mov al, 0x44
pop ebp
ret
mov al, 0x45
pop ebp
ret
mov al, 0x46
pop ebp
ret
mov al, 0x47
pop ebp
ret
mov al, 0x48
pop ebp
ret
mov al, 0x49
pop ebp
ret
mov al, 0x4a
pop ebp
ret
mov al, 0x4b
pop ebp
ret
mov al, 0x4c
pop ebp
ret
mov al, 0x4d
pop ebp
ret
mov al, 0x4e
pop ebp
ret
mov al, 0x4f
pop ebp
ret
mov al, 0x50
pop ebp
ret
mov al, 0x51
pop ebp
ret
mov al, 0x52
pop ebp
ret
mov al, 0x53
pop ebp
ret
mov al, 0x54
pop ebp
ret
mov al, 0x55
pop ebp
ret
mov al, 0x56
pop ebp
ret
mov al, 0x57
pop ebp
ret
mov al, 0x58
pop ebp
ret
mov al, 0x59
pop ebp
ret
mov al, 0x5a
pop ebp
ret
mov al, cl
pop ebp
ret
Function at 0x479c6a
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
push edi
xor edi, edi
and dword [ebp - 0xc], edi
and dword [eax], edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x479dd4
push esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], esi
test esi, esi
je 0x479dc0
push ebx
cmp dword [esi + 4], 2
jne 0x479d5f
cmp dword [esi + 0x18], 0
je 0x479d5f
cmp dword [esi + 0x10], 0
jbe 0x479d5f
cmp dword [esi + 0x10], 0x10
jb 0x479d5f
push 0x20
call dword [0x4b4370]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x479db4
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov eax, dword [esi + 0xc]
and dword [ebx + 0x18], 0
and dword [ebx + 0x14], 0
and dword [ebx + 0x1c], 0
push 0x10
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 0x10
call dword [0x4b4370]
mov dword [ebx + 0x18], eax
pop ecx
test eax, eax
je 0x479da8
mov esi, dword [esi + 0x18]
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]
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x14], 0
je 0x479d47
push dword [esi + 0x14]
call dword [0x4b437c]
mov dword [ebx + 0x14], eax
pop ecx
test eax, eax
je 0x479d91
mov edi, dword [ebp - 4]
test edi, edi
mov eax, dword [ebp - 0xc]
cmove edi, ebx
mov dword [ebp - 4], edi
test eax, eax
je 0x479d5c
mov dword [eax + 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov esi, dword [esi + 0x1c]
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x479cac
mov esi, dword [ebp - 0x14]
cmp dword [ebp - 8], 0
pop ebx
je 0x479d80
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x479db9
push dword [ebp - 4]
call fcn.00479c29
pop ecx
xor edi, edi
jmp 0x479dcc
push 8
pop esi
push dword [ebx + 0x18]
call dword [0x4b4374]
push ebx
call dword [0x4b4374]
pop ecx
pop ecx
jmp 0x479d70
push 8
pop esi
push ebx
call dword [0x4b4374]
jmp 0x479da5
push 8
pop esi
jmp 0x479d70
mov edi, dword [ebp - 4]
test edi, edi
jne 0x479dcc
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x47abc7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call fcn.00497fa3
add esp, 0x18
test eax, eax
je 0x47abe7
cmp eax, 0xffffffff
jne 0x47abe9
xor eax, eax
pop ebp
ret
Function at 0x480f38
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x4b4810]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
mov dword [ebp - 0x320], esi
mov dword [ebp - 0x324], esi
mov dword [ebp - 0x314], esi
push edi
mov edi, dword [ebp + 0xc]
cmp eax, 0xffffffff
jne 0x480f81
cmp edi, 0xffffffff
jne 0x480f81
push ebx
call fcn.0048117e
pop ecx
jmp 0x48116d
test ebx, ebx
jle 0x480f9f
mov dword [ebp - 0x314], ebx
call fcn.00479c13
mov dword [ebp - 0x320], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x324], edx
mov ecx, esi
mov dword [ebp - 0x310], esi
or edx, 0xffffffff
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x31c], 1
cmp eax, 0xffffffff
je 0x480fdf
mov ecx, dword [ebp - 0x31c]
mov edx, eax
mov dword [ebp - 0x30c], eax
mov dword [ebp - 0x310], ecx
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x20c], esi
cmp edi, 0xffffffff
je 0x481029
mov dword [ebp - 0x208], edi
mov eax, esi
mov dword [ebp - 0x20c], 1
test ecx, ecx
je 0x48100e
cmp dword [ebp + eax*4 - 0x104], edi
je 0x48100e
inc eax
cmp eax, ecx
jb 0x481000
cmp eax, ecx
jne 0x481024
cmp ecx, 0x40
jae 0x481024
mov dword [ebp + eax*4 - 0x104], edi
inc dword [ebp - 0x108]
cmp edi, edx
cmova edx, edi
xor ecx, ecx
lea eax, [ebp - 0x32c]
test ebx, ebx
cmovs eax, ecx
lea ecx, [edx + 1]
mov dword [ebp - 0x330], ecx
mov ecx, dword [ebp - 0x314]
mov dword [ebp - 0x318], eax
test ebx, ebx
jle 0x481073
mov eax, ecx
mov ecx, 0x3e8
cdq
idiv ecx
mov dword [ebp - 0x32c], eax
imul eax, edx, 0x3e8
mov dword [ebp - 0x328], eax
mov eax, dword [ebp - 0x318]
jmp 0x481081
jne 0x481081
mov dword [ebp - 0x32c], esi
mov dword [ebp - 0x328], esi
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
push dword [ebp - 0x330]
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4810fd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4810b9
cmp eax, 0x2714
jne 0x481101
mov ecx, dword [ebp - 0x314]
mov eax, dword [ebp - 0x318]
test ebx, ebx
jle 0x481073
push dword [ebp - 0x324]
push dword [ebp - 0x320]
call fcn.00479c13
push edx
push eax
call fcn.00479bbd
mov ecx, ebx
add esp, 0x10
sub ecx, eax
mov dword [ebp - 0x314], ecx
test ecx, ecx
jle 0x481101
mov eax, dword [ebp - 0x318]
jmp 0x48104b
test eax, eax
jns 0x481106
or eax, 0xffffffff
jmp 0x48116d
jne 0x48110c
xor eax, eax
jmp 0x48116d
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
je 0x48113e
lea eax, [ebp - 0x310]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
lea eax, [ebp - 0x108]
push eax
cmovne esi, dword [ebp - 0x31c]
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48113e
or esi, 4
cmp edi, 0xffffffff
je 0x48116b
lea eax, [ebp - 0x20c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x481157
or esi, 2
lea eax, [ebp - 0x108]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48116b
or esi, 4
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00492f61
mov esp, ebp
pop ebp
ret
Function at 0x4823a8
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4b4810]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov dword [ebp - 0x1c], 0x10
mov eax, dword [ebx + 0x134]
mov esi, dword [ebx]
mov dword [ebp - 0x18], eax
jmp 0x4823fa
mov eax, 0x3e8
cmp ecx, eax
cmovl eax, ecx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x18]
call fcn.00480f38
add esp, 0xc
cmp eax, 0xffffffff
je 0x4824a1
test eax, eax
jne 0x48242e
push 1
push 0
push esi
call fcn.00478728
mov ecx, eax
add esp, 0xc
test ecx, ecx
jns 0x4823d5
push 0x40957c
push esi
call fcn.00477fac
pop ecx
pop ecx
push 0x1c
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00492f61
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x48245d
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push dword [ebp - 0x18]
push ebx
call fcn.004784cb
pop ecx
pop ecx
cmp edi, 0xffffffff
jne 0x48247e
push 0x4095d0
push esi
call fcn.00477fac
pop ecx
pop ecx
push 0x1e
jmp 0x48241c
push 0x4095f4
push esi
call fcn.00478042
push 1
push edi
mov dword [ebx + 0x134], edi
call fcn.0048b5c4
add esp, 0x10
xor eax, eax
jmp 0x48241d
push 0x4095a8
jmp 0x482472

Function at 0x484258
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0x64
cdq
xor esi, esi
pop ebx
idiv ebx
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
cmp eax, 2
je 0x484285
push 0x409af4
push ecx
call fcn.00477fac
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x4842dc
cmp dword [ebp + 0xc], 0xc8
je 0x48429f
push dword [ebp + 0xc]
push 0x409b10
push ecx
call fcn.00478042
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x4842b0
push edi
call fcn.00483e77
pop ecx
jmp 0x4842d8
cmp eax, 0x14
jne 0x4842bd
push edi
call fcn.00483a37
jmp 0x4842ad
cmp eax, 0x15
jne 0x4842c6
push 0xd
jmp 0x4842cd
cmp eax, 0x16
jne 0x4842da
push 0xe
push 1
push edi
call fcn.00483ef1
add esp, 0xc
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4877eb
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4b4810]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x487826
push eax
push 0x40aab0
push esi
call fcn.00477fac
add esp, 0xc
jmp 0x48784e
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x487841
shr eax, 8
test al, al
jne 0x487841
xor eax, eax
jmp 0x487851
push 0x40aac8
push esi
call fcn.00477fac
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00492f61
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov byte [ebp + 0xa], al
lea eax, [ebp + 8]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x130]
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x487f54
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x40ab3c
push edi
call fcn.00477fac
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push 0x40ab58
push dword [esi]
call fcn.00487956
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret