joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469d70
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 0x469e04
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.0048cde5
mov esi, eax
mov eax, dword [ebp - 4]
add eax, eax
push eax
push ebx
push esi
call fcn.00447e1c
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.00416a20
pop ecx
mov ecx, dword [ebp + 0x14]
push eax
push esi
call fcn.0041ab80
push esi
call fcn.0048cde0
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 0x469f7b
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 0x469fae
xor al, al
jmp 0x469fe2
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 0x469fd7
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 0x46a917
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4b1780]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4b5e60]
mov ecx, eax
inc eax
mov dword [0x4b5e60], eax
test ecx, ecx
je 0x46a942
xor eax, eax
jmp 0x46a9c8
push ebx
mov ebx, dword [ebp + 8]
mov dword [fcn.0048d6d2], 0x48d6d2
mov dword [fcn.0048cda8], 0x48cda8
mov dword [fcn.00492b9e], 0x492b9e
mov dword [fcn.0049301b], 0x49301b
mov dword [fcn.004930ce], 0x4930ce
test bl, 2
je 0x46a9ac
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x46a9b5
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x46a9a4
shr eax, 8
cmp al, 2
je 0x46a9ac
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x46a9b5
call fcn.0041e390
test eax, eax
je 0x46a9ba
push 2
pop eax
jmp 0x46a9c7
mov dword [0x4b5e64], ebx
call fcn.00475b99
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048f991
mov esp, ebp
pop ebp
ret
Function at 0x46d47e
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x48
push 1
call dword [0x4b12f0]
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 0x46d53e
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.0046d55e
add esp, 0x10
test eax, eax
je 0x46d53e
mov eax, dword [esi + 0x3a8]
test eax, eax
je 0x46d4f9
push eax
call dword [0x4b12e4]
and dword [esi + 0x3a8], 0
pop ecx
push dword [ebp + 0xc]
call dword [0x4b12ec]
mov dword [esi + 0x3a8], eax
pop ecx
test eax, eax
je 0x46d53e
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x46d53e
lea eax, [edi + 0x10]
push eax
push 0x46d3f1
call fcn.0047760e
mov dword [edi], eax
pop ecx
pop ecx
test eax, eax
jne 0x46d559
call fcn.004918d8
mov ebx, dword [eax]
lea eax, [esi + 0x3a8]
push eax
call fcn.0046d32b
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 0x46d554

Function at 0x474cab
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 0x474d1b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x474cf3
xor esi, esi
mov dword [ebx], 0x51
jmp 0x474d1b
push eax
push edi
call fcn.00469fe7
push eax
push 0x407d20
push dword [edi]
call fcn.004749e8
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 0x474ea4
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 0x474ecc
push dword [esi + 0xf4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
jmp 0x474f04
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x474f02
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
push 2
add eax, 0x407d08
push eax
call fcn.004900d9
push dword [esi + 0xf0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004900d9
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x47505e
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 0x4750b2
mov eax, dword [eax + 0x524]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x4750b2
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x47508b
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
mov esi, dword [eax + 0x130]
jne 0x4750b2
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 0x4750b4
mov eax, edi
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4b1780]
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 0x475325
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 0x475277
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00469fe7
push eax
push esi
push 0x407eb0
push ebx
call fcn.004749e8
add esp, 0x18
jmp 0x47532c
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 0x4752b0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00469fe7
push eax
push esi
push 0x407e28
jmp 0x475269
lea eax, [edi + 0xcc]
push eax
lea eax, [edi + 0x9e]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00475687
add esp, 0xc
test eax, eax
jne 0x4752e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00469fe7
push eax
push esi
push 0x407ed8
jmp 0x475269
lea eax, [edi + 0x100]
push eax
lea eax, [edi + 0xd0]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00475687
add esp, 0xc
test eax, eax
jne 0x475325
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00469fe7
push eax
push esi
push 0x407f04
jmp 0x475269
push edi
call fcn.004750b8
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f991
mov esp, ebp
pop ebp
ret
Function at 0x475a65
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 0x475aad
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00469fe7
push eax
push 0x407f44
push esi
call fcn.00474a7e
add esp, 0x14
jmp 0x475aba
push 0x407f64
push esi
call fcn.00474a7e
pop ecx
pop ecx
pop edi
pop esi
pop ebp
ret

Function at 0x476389
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.0x47639a
jmp dword [eax*4 + 0x47640d]
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 0x4766b1
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 0x47681b
push esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], esi
test esi, esi
je 0x476807
push ebx
cmp dword [esi + 4], 2
jne 0x4767a6
cmp dword [esi + 0x18], 0
je 0x4767a6
cmp dword [esi + 0x10], 0
jbe 0x4767a6
cmp dword [esi + 0x10], 0x10
jb 0x4767a6
push 0x20
call dword [0x4b12e0]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4767fb
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 [0x4b12e0]
mov dword [ebx + 0x18], eax
pop ecx
test eax, eax
je 0x4767ef
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 0x47678e
push dword [esi + 0x14]
call dword [0x4b12ec]
mov dword [ebx + 0x14], eax
pop ecx
test eax, eax
je 0x4767d8
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 0x4767a3
mov dword [eax + 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov esi, dword [esi + 0x1c]
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x4766f3
mov esi, dword [ebp - 0x14]
cmp dword [ebp - 8], 0
pop ebx
je 0x4767c7
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x476800
push dword [ebp - 4]
call fcn.00476670
pop ecx
xor edi, edi
jmp 0x476813
push 8
pop esi
push dword [ebx + 0x18]
call dword [0x4b12e4]
push ebx
call dword [0x4b12e4]
pop ecx
pop ecx
jmp 0x4767b7
push 8
pop esi
push ebx
call dword [0x4b12e4]
jmp 0x4767ec
push 8
pop esi
jmp 0x4767b7
mov edi, dword [ebp - 4]
test edi, edi
jne 0x476813
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 0x47760e
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.00494af3
add esp, 0x18
test eax, eax
je 0x47762e
cmp eax, 0xffffffff
jne 0x477630
xor eax, eax
pop ebp
ret
Function at 0x47d97b
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x4b1780]
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 0x47d9c4
cmp edi, 0xffffffff
jne 0x47d9c4
push ebx
call fcn.0047dbc1
pop ecx
jmp 0x47dbb0
test ebx, ebx
jle 0x47d9e2
mov dword [ebp - 0x314], ebx
call fcn.0047665a
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 0x47da22
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 0x47da6c
mov dword [ebp - 0x208], edi
mov eax, esi
mov dword [ebp - 0x20c], 1
test ecx, ecx
je 0x47da51
cmp dword [ebp + eax*4 - 0x104], edi
je 0x47da51
inc eax
cmp eax, ecx
jb 0x47da43
cmp eax, ecx
jne 0x47da67
cmp ecx, 0x40
jae 0x47da67
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 0x47dab6
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 0x47dac4
jne 0x47dac4
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 0x47db40
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x47dafc
cmp eax, 0x2714
jne 0x47db44
mov ecx, dword [ebp - 0x314]
mov eax, dword [ebp - 0x318]
test ebx, ebx
jle 0x47dab6
push dword [ebp - 0x324]
push dword [ebp - 0x320]
call fcn.0047665a
push edx
push eax
call fcn.00476604
mov ecx, ebx
add esp, 0x10
sub ecx, eax
mov dword [ebp - 0x314], ecx
test ecx, ecx
jle 0x47db44
mov eax, dword [ebp - 0x318]
jmp 0x47da8e
test eax, eax
jns 0x47db49
or eax, 0xffffffff
jmp 0x47dbb0
jne 0x47db4f
xor eax, eax
jmp 0x47dbb0
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
je 0x47db81
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 0x47db81
or esi, 4
cmp edi, 0xffffffff
je 0x47dbae
lea eax, [ebp - 0x20c]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47db9a
or esi, 2
lea eax, [ebp - 0x108]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47dbae
or esi, 4
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f991
mov esp, ebp
pop ebp
ret
Function at 0x47ee07
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4b1780]
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 0x47ee59
mov eax, 0x3e8
cmp ecx, eax
cmovl eax, ecx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x18]
call fcn.0047d97b
add esp, 0xc
cmp eax, 0xffffffff
je 0x47ef00
test eax, eax
jne 0x47ee8d
push 1
push 0
push esi
call fcn.00475164
mov ecx, eax
add esp, 0xc
test ecx, ecx
jns 0x47ee34
push 0x4096fc
push esi
call fcn.004749e8
pop ecx
pop ecx
push 0x1c
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f991
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 0x47eebc
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.00474f07
pop ecx
pop ecx
cmp edi, 0xffffffff
jne 0x47eedd
push 0x409750
push esi
call fcn.004749e8
pop ecx
pop ecx
push 0x1e
jmp 0x47ee7b
push 0x409774
push esi
call fcn.00474a7e
push 1
push edi
mov dword [ebx + 0x134], edi
call fcn.0048800b
add esp, 0x10
xor eax, eax
jmp 0x47ee7c
push 0x409728
jmp 0x47eed1

Function at 0x480cb7
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 0x480ce4
push 0x409c74
push ecx
call fcn.004749e8
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x480d3b
cmp dword [ebp + 0xc], 0xc8
je 0x480cfe
push dword [ebp + 0xc]
push 0x409c90
push ecx
call fcn.00474a7e
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x480d0f
push edi
call fcn.004808d6
pop ecx
jmp 0x480d37
cmp eax, 0x14
jne 0x480d1c
push edi
call fcn.00480496
jmp 0x480d0c
cmp eax, 0x15
jne 0x480d25
push 0xd
jmp 0x480d2c
cmp eax, 0x16
jne 0x480d39
push 0xe
push 1
push edi
call fcn.00480950
add esp, 0xc
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x484232
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4b1780]
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 0x48426d
push eax
push 0x40ac30
push esi
call fcn.004749e8
add esp, 0xc
jmp 0x484295
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x484288
shr eax, 8
test al, al
jne 0x484288
xor eax, eax
jmp 0x484298
push 0x40ac48
push esi
call fcn.004749e8
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0048f991
mov esp, ebp
pop ebp
ret

Function at 0x484953
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 0x48499b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x40acbc
push edi
call fcn.004749e8
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push 0x40acd8
push dword [esi]
call fcn.0048439d
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x484a5a
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
mov eax, dword [0x4b1780]
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.00484486
mov eax, dword [edi + 0x1aac]
add esp, 0x10
movzx ecx, byte [eax]
inc eax
mov dword [edi + 0x1aac], eax
cmp ecx, 0x18
je 0x484c07
cmp ecx, 0x23
je 0x484be3
cmp ecx, 0x27
jne 0x484c92
push 0
push ecx
push 0xfa
push 0xff
push 0x40ae08
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.0046aaee
mov edi, dword [edi + 0x18a8]
add esp, 0x1c
push 4
pop ebx
test edi, edi
je 0x484b7b
mov ecx, dword [edi]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x484b0c
sub ecx, edx
lea esi, [ebx + 1]
add esi, ecx
cmp esi, 0x7fa
jae 0x484b6e
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x40ae14
push dword [edi]
call fcn.00494057
lea eax, [ebp - 0x84]
push eax
push 1
lea eax, [ebp - 0x104]
push eax
push 0
mov eax, 0x800
sub eax, ebx
push 0x40ae24
push eax
lea eax, [ebp - 0x904]
add eax, ebx
push eax
call fcn.0046aaee
add esp, 0x2c
mov ebx, esi
mov edi, dword [edi + 4]
test edi, edi
jne 0x484b07
mov esi, dword [ebp - 0x908]
push 0xf0
push 0xff
mov eax, 0x800
sub eax, ebx
push 0x40ae30
push eax
lea eax, [ebp - 0x904]
add eax, ebx
push eax
call fcn.0046aaee
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 0x484bdb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x40acbc
push esi
call fcn.004749e8
add esp, 0xc
lea eax, [ebx - 2]
jmp 0x484c7f
lea edx, [edi + 0x1828]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x484bee
push 0xf0
mov eax, 0xff
push eax
push edx
push 0
push 0x23
jmp 0x484c29
lea edx, [edi + 0x1808]
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x484c12
push 0xf0
mov eax, 0xff
push eax
push edx
push 0
push 0x18
push 0xfa
push eax
push 0x40adf8
sub ecx, edi
lea eax, [ebp - 0x904]
push 0x800
push eax
lea edi, [ecx + 6]
call fcn.0046aaee
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 0x484c7c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x40acbc
push esi
call fcn.004749e8
add esp, 0xc
lea eax, [edi - 2]
push eax
lea eax, [ebp - 0x902]
push eax
push 0x3e
push esi
call fcn.00484486
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f991
mov esp, ebp
pop ebp
ret