joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46bc7e
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 0x46bd12
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.0048ecf5
mov esi, eax
mov eax, dword [ebp - 4]
add eax, eax
push eax
push ebx
push esi
call fcn.004486f7
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.00416890
pop ecx
mov ecx, dword [ebp + 0x14]
push eax
push esi
call fcn.0041aa00
push esi
call fcn.0048ecf0
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 0x46be89
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 0x46bebc
xor al, al
jmp 0x46bef0
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 0x46bee5
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 0x46c825
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4b1810]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4b5f58]
mov ecx, eax
inc eax
mov dword [0x4b5f58], eax
test ecx, ecx
je 0x46c850
xor eax, eax
jmp 0x46c8d6
push ebx
mov ebx, dword [ebp + 8]
mov dword [fcn.0048f622], 0x48f622
mov dword [fcn.0048ec18], 0x48ec18
mov dword [fcn.004948a9], 0x4948a9
mov dword [fcn.00494d5b], 0x494d5b
mov dword [fcn.00494e0e], 0x494e0e
test bl, 2
je 0x46c8ba
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x46c8c3
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x46c8b2
shr eax, 8
cmp al, 2
je 0x46c8ba
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x46c8c3
call fcn.0041e000
test eax, eax
je 0x46c8c8
push 2
pop eax
jmp 0x46c8d5
mov dword [0x4b5f5c], ebx
call fcn.00477aa7
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004918a1
mov esp, ebp
pop ebp
ret
Function at 0x46f38c
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x48
push 1
call dword [0x4b1380]
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 0x46f44c
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.0046f46c
add esp, 0x10
test eax, eax
je 0x46f44c
mov eax, dword [esi + 0x3a8]
test eax, eax
je 0x46f407
push eax
call dword [0x4b1374]
and dword [esi + 0x3a8], 0
pop ecx
push dword [ebp + 0xc]
call dword [0x4b137c]
mov dword [esi + 0x3a8], eax
pop ecx
test eax, eax
je 0x46f44c
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x46f44c
lea eax, [edi + 0x10]
push eax
push 0x46f2ff
call fcn.00479511
mov dword [edi], eax
pop ecx
pop ecx
test eax, eax
jne 0x46f467
call fcn.0049384a
mov ebx, dword [eax]
lea eax, [esi + 0x3a8]
push eax
call fcn.0046f239
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 0x46f462

Function at 0x476bb9
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 0x476c29
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x476c01
xor esi, esi
mov dword [ebx], 0x51
jmp 0x476c29
push eax
push edi
call fcn.0046bef5
push eax
push 0x4076c0
push dword [edi]
call fcn.004768f6
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 0x476db2
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 0x476dda
push dword [esi + 0xf4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
jmp 0x476e12
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x476e10
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
push 2
add eax, 0x4076a8
push eax
call fcn.00491fe9
push dword [esi + 0xf0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00491fe9
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x476f6c
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 0x476fc0
mov eax, dword [eax + 0x524]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x476fc0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x476f99
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
mov esi, dword [eax + 0x130]
jne 0x476fc0
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 0x476fc2
mov eax, edi
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4b1810]
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 0x477233
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 0x477185
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.0046bef5
push eax
push esi
push 0x407850
push ebx
call fcn.004768f6
add esp, 0x18
jmp 0x47723a
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 0x4771be
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.0046bef5
push eax
push esi
push 0x4077c8
jmp 0x477177
lea eax, [edi + 0xcc]
push eax
lea eax, [edi + 0x9e]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00477595
add esp, 0xc
test eax, eax
jne 0x4771f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.0046bef5
push eax
push esi
push 0x407878
jmp 0x477177
lea eax, [edi + 0x100]
push eax
lea eax, [edi + 0xd0]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00477595
add esp, 0xc
test eax, eax
jne 0x477233
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.0046bef5
push eax
push esi
push 0x4078a4
jmp 0x477177
push edi
call fcn.00476fc6
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004918a1
mov esp, ebp
pop ebp
ret
Function at 0x477973
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 0x4779bb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0046bef5
push eax
push 0x4078e4
push esi
call fcn.0047698c
add esp, 0x14
jmp 0x4779c8
push 0x407904
push esi
call fcn.0047698c
pop ecx
pop ecx
pop edi
pop esi
pop ebp
ret

Function at 0x478297
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.0x4782a8
jmp dword [eax*4 + 0x47831b]
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 0x4785b4
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 0x47871e
push esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], esi
test esi, esi
je 0x47870a
push ebx
cmp dword [esi + 4], 2
jne 0x4786a9
cmp dword [esi + 0x18], 0
je 0x4786a9
cmp dword [esi + 0x10], 0
jbe 0x4786a9
cmp dword [esi + 0x10], 0x10
jb 0x4786a9
push 0x20
call dword [0x4b1370]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4786fe
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 [0x4b1370]
mov dword [ebx + 0x18], eax
pop ecx
test eax, eax
je 0x4786f2
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 0x478691
push dword [esi + 0x14]
call dword [0x4b137c]
mov dword [ebx + 0x14], eax
pop ecx
test eax, eax
je 0x4786db
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 0x4786a6
mov dword [eax + 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov esi, dword [esi + 0x1c]
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x4785f6
mov esi, dword [ebp - 0x14]
cmp dword [ebp - 8], 0
pop ebx
je 0x4786ca
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x478703
push dword [ebp - 4]
call fcn.00478573
pop ecx
xor edi, edi
jmp 0x478716
push 8
pop esi
push dword [ebx + 0x18]
call dword [0x4b1374]
push ebx
call dword [0x4b1374]
pop ecx
pop ecx
jmp 0x4786ba
push 8
pop esi
push ebx
call dword [0x4b1374]
jmp 0x4786ef
push 8
pop esi
jmp 0x4786ba
mov edi, dword [ebp - 4]
test edi, edi
jne 0x478716
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 0x479511
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.00496833
add esp, 0x18
test eax, eax
je 0x479531
cmp eax, 0xffffffff
jne 0x479533
xor eax, eax
pop ebp
ret
Function at 0x47f8c6
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x4b1810]
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 0x47f90f
cmp edi, 0xffffffff
jne 0x47f90f
push ebx
call fcn.0047fb0c
pop ecx
jmp 0x47fafb
test ebx, ebx
jle 0x47f92d
mov dword [ebp - 0x314], ebx
call fcn.0047855d
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 0x47f96d
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 0x47f9b7
mov dword [ebp - 0x208], edi
mov eax, esi
mov dword [ebp - 0x20c], 1
test ecx, ecx
je 0x47f99c
cmp dword [ebp + eax*4 - 0x104], edi
je 0x47f99c
inc eax
cmp eax, ecx
jb 0x47f98e
cmp eax, ecx
jne 0x47f9b2
cmp ecx, 0x40
jae 0x47f9b2
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 0x47fa01
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 0x47fa0f
jne 0x47fa0f
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 0x47fa8b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x47fa47
cmp eax, 0x2714
jne 0x47fa8f
mov ecx, dword [ebp - 0x314]
mov eax, dword [ebp - 0x318]
test ebx, ebx
jle 0x47fa01
push dword [ebp - 0x324]
push dword [ebp - 0x320]
call fcn.0047855d
push edx
push eax
call fcn.00478507
mov ecx, ebx
add esp, 0x10
sub ecx, eax
mov dword [ebp - 0x314], ecx
test ecx, ecx
jle 0x47fa8f
mov eax, dword [ebp - 0x318]
jmp 0x47f9d9
test eax, eax
jns 0x47fa94
or eax, 0xffffffff
jmp 0x47fafb
jne 0x47fa9a
xor eax, eax
jmp 0x47fafb
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
je 0x47facc
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 0x47facc
or esi, 4
cmp edi, 0xffffffff
je 0x47faf9
lea eax, [ebp - 0x20c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47fae5
or esi, 2
lea eax, [ebp - 0x108]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47faf9
or esi, 4
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004918a1
mov esp, ebp
pop ebp
ret
Function at 0x480d0a
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4b1810]
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 0x480d5c
mov eax, 0x3e8
cmp ecx, eax
cmovl eax, ecx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x18]
call fcn.0047f8c6
add esp, 0xc
cmp eax, 0xffffffff
je 0x480e03
test eax, eax
jne 0x480d90
push 1
push 0
push esi
call fcn.00477072
mov ecx, eax
add esp, 0xc
test ecx, ecx
jns 0x480d37
push 0x409094
push esi
call fcn.004768f6
pop ecx
pop ecx
push 0x1c
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004918a1
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 0x480dbf
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.00476e15
pop ecx
pop ecx
cmp edi, 0xffffffff
jne 0x480de0
push 0x4090e8
push esi
call fcn.004768f6
pop ecx
pop ecx
push 0x1e
jmp 0x480d7e
push 0x40910c
push esi
call fcn.0047698c
push 1
push edi
mov dword [ebx + 0x134], edi
call fcn.00489f0e
add esp, 0x10
xor eax, eax
jmp 0x480d7f
push 0x4090c0
jmp 0x480dd4

Function at 0x482bba
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 0x482be7
push 0x40960c
push ecx
call fcn.004768f6
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x482c3e
cmp dword [ebp + 0xc], 0xc8
je 0x482c01
push dword [ebp + 0xc]
push 0x409628
push ecx
call fcn.0047698c
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x482c12
push edi
call fcn.004827d9
pop ecx
jmp 0x482c3a
cmp eax, 0x14
jne 0x482c1f
push edi
call fcn.00482399
jmp 0x482c0f
cmp eax, 0x15
jne 0x482c28
push 0xd
jmp 0x482c2f
cmp eax, 0x16
jne 0x482c3c
push 0xe
push 1
push edi
call fcn.00482853
add esp, 0xc
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x486135
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4b1810]
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 0x486170
push eax
push 0x40a5c8
push esi
call fcn.004768f6
add esp, 0xc
jmp 0x486198
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x48618b
shr eax, 8
test al, al
jne 0x48618b
xor eax, eax
jmp 0x48619b
push 0x40a5e0
push esi
call fcn.004768f6
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004918a1
mov esp, ebp
pop ebp
ret

Function at 0x486856
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 0x48689e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x40a654
push edi
call fcn.004768f6
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push 0x40a670
push dword [esi]
call fcn.004862a0
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x48695d
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
mov eax, dword [0x4b1810]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x90c], ebx
mov esi, dword [ebx]
mov dword [ebp - 0x908], esi
mov edi, dword [esi + 0x8664]
mov eax, dword [edi + 0x1ab0]
sub eax, dword [edi + 0x1aac]
add eax, 2
push eax
lea eax, [edi + 0x18ac]
push eax
push 0x3c
push esi
call fcn.00486389
mov eax, dword [edi + 0x1aac]
add esp, 0x10
movzx ecx, byte [eax]
inc eax
mov dword [edi + 0x1aac], eax
cmp ecx, 0x18
je 0x486b0a
cmp ecx, 0x23
je 0x486ae6
cmp ecx, 0x27
jne 0x486b95
push 0
push ecx
push 0xfa
push 0xff
push 0x40a7a0
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.0046c9fc
mov edi, dword [edi + 0x18a8]
add esp, 0x1c
push 4
pop ebx
test edi, edi
je 0x486a7e
mov ecx, dword [edi]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x486a0f
sub ecx, edx
lea esi, [ebx + 1]
add esi, ecx
cmp esi, 0x7fa
jae 0x486a71
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x40a7ac
push dword [edi]
call fcn.00495d97
lea eax, [ebp - 0x84]
push eax
push 1
lea eax, [ebp - 0x104]
push eax
push 0
mov eax, 0x800
sub eax, ebx
push 0x40a7bc
push eax
lea eax, [ebp - 0x904]
add eax, ebx
push eax
call fcn.0046c9fc
add esp, 0x2c
mov ebx, esi
mov edi, dword [edi + 4]
test edi, edi
jne 0x486a0a
mov esi, dword [ebp - 0x908]
push 0xf0
push 0xff
mov eax, 0x800
sub eax, ebx
push 0x40a7c8
push eax
lea eax, [ebp - 0x904]
add eax, ebx
push eax
call fcn.0046c9fc
add esp, 0x14
lea eax, [ebp - 0x904]
add ebx, 2
push 0
push ebx
push eax
mov eax, dword [ebp - 0x90c]
push dword [eax + 0x130]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x486ade
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x40a654
push esi
call fcn.004768f6
add esp, 0xc
lea eax, [ebx - 2]
jmp 0x486b82
lea edx, [edi + 0x1828]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x486af1
push 0xf0
mov eax, 0xff
push eax
push edx
push 0
push 0x23
jmp 0x486b2c
lea edx, [edi + 0x1808]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x486b15
push 0xf0
mov eax, 0xff
push eax
push edx
push 0
push 0x18
push 0xfa
push eax
push 0x40a790
sub ecx, edi
lea eax, [ebp - 0x904]
push 0x800
push eax
lea edi, [ecx + 6]
call fcn.0046c9fc
add esp, 0x28
lea eax, [ebp - 0x904]
push 0
push edi
push eax
push dword [ebx + 0x130]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x486b7f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x40a654
push esi
call fcn.004768f6
add esp, 0xc
lea eax, [edi - 2]
push eax
lea eax, [ebp - 0x902]
push eax
push 0x3e
push esi
call fcn.00486389
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004918a1
mov esp, ebp
pop ebp
ret