joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483800
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5cc3bd
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.CUnit1.0
xor edi, edi
mov dword [esi + 0x94], vtable.CArray_class_CPoint__class_CPoint_.0
mov dword [esi + 0x98], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0x9c], edi
mov dword [esp + 0x14], edi
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], eax
mov eax, 0xff00
push 0x14
mov dword [esi + 0x10], 2
mov dword [esi + 0x8c], edi
mov dword [esi + 0x28], ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], 5
mov dword [esi + 0xc], 1
mov dword [esi + 0x20], 0x10101
mov dword [esi + 8], edi
mov dword [esi + 0x14], 0xa
mov dword [esi + 0xc8], edi
mov dword [esi + 0x100], edi
mov dword [esi + 0x104], edi
call fcn.004d3feb
add esp, 4
cmp eax, edi
je 0x4838de
mov dword [eax], vtable.CArray_class_CPoint__class_CPoint_.0
mov dword [eax + 4], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0xc], edi
mov dword [eax + 8], edi
mov dword [esi + 0x90], eax
jmp 0x4838e4
mov dword [esi + 0x90], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x483cc0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cd778
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], vtable.CPen.0
push 0xff0000
push 1
push eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x18]
call fcn.004dc6a3
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
call fcn.004dc77b
mov ecx, dword [esi + 4]
push 0xa
mov edi, eax
call fcn.004dbd0c
mov ecx, dword [esi + 4]
push 2
mov ebx, eax
call fcn.004dbcde
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
push edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
push eax
lea edx, [esp + 0x24]
push edx
call fcn.004dc0e5
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
mov ecx, dword [esi + 4]
call fcn.004dbdd5
mov ecx, dword [esi + 4]
push edi
call fcn.004dc77b
mov ecx, dword [esi + 4]
push ebx
call fcn.004dbd0c
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 4]
push edx
call fcn.004dbcde
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.CGdiObject.0
call fcn.004dc6f6
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4849a0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, eax
cmp byte [esi + 0x34], 0
jne 0x484a24
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 1
push 0
mov dword [esi], 0xffffffff
mov dword [esi + 0x10], 0
call edi
lea ecx, [esi + 8]
mov dword [esi + 4], eax
mov dword [esi + 0xc], 0xffffffff
call fcn.00405170
xor eax, eax
push eax
mov dword [esi + 0x20], eax
push eax
mov dword [esi + 0x24], eax
push 1
mov dword [esi + 0x30], eax
push eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
call edi
test eax, eax
mov dword [esi + 0x30], eax
pop edi
je 0x484a24
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
call fcn.00484a30
cmp dword [esi], 0xffffffff
je 0x484a20
push 0
push 0
push esi
push 0x484dd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [esi + 0x34], 1
pop esi
ret 8

Function at 0x484cb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
xor eax, eax
push esi
push eax
push eax
push 1
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], eax
lea eax, [esp + 8]
push eax
mov eax, dword [ebx]
push esi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x484da8
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x3e5
jne 0x484da7
mov ecx, dword [ebx + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0
push 0
lea edx, [esp + 0x30]
push edx
push 1
mov dword [esp + 0x38], ecx
call edi
cmp eax, 0x102
jne 0x484da6
mov edx, dword [ebx]
push 1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x484d9c
call ebp
push 0x19
mov esi, eax
push 0
lea eax, [esp + 0x30]
push eax
push 1
call edi
cmp eax, 0x102
jne 0x484d98
cmp esi, 0x3e4
jne 0x484d7f
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x30]
add dword [eax], ecx
mov ecx, dword [ebx]
push 1
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x484d55
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x484da6
add dword [esi], eax
pop edi
pop ebp
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
xor eax, eax
cmp dword [esi], ecx
pop esi
sete al
add esp, 0x18
ret 0xc
Function at 0x484fa0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x5cf642
mov eax, dword fs:[0]
push eax
push ebp
push esi
push edi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
push fcn.00404ea0
push fcn.00404bf0
push 0x32
push 4
lea ebp, [esi + 0x3c]
push ebp
call fcn.004f5429
mov dword [esp + 0x18], 0
call fcn.004d4cf7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x485000
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x140], eax
mov byte [esp + 0x18], 1
lea edi, [esi + 0x144]
call fcn.004d4cf7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x485037
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x18], 2
lea ecx, [esi + 0x128]
mov dword [esi + 0x104], ebp
mov dword [esi + 0x108], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ecx
mov dword [esi + 0x38], 1
mov dword [esi + 0x10c], 0
call ebp
lea edx, [esi + 0x110]
push edx
call ebp
mov ecx, edi
mov dword [0x64800c], esi
call fcn.00405170
call fcn.004854b0
call fcn.00485180
push 0
push 0
push esi
push 0x485450
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x160], eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4

Function at 0x485180
Capabilities:
Link many functions at runtime

Disassembly:
push str.MAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x34], eax
jne 0x4851a4
push 0x10
push eax
push str.NO_hinstmail
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MAPISendMail
push eax
call edi
mov dword [esi + 0x148], eax
mov eax, dword [esi + 0x34]
push str.MAPIResolveName
push eax
call edi
mov ecx, dword [esi + 0x34]
push str.MAPILogon
push ecx
mov dword [esi + 0x14c], eax
call edi
mov edx, dword [esi + 0x34]
push str.MAPILogoff
push edx
mov dword [esi + 0x150], eax
call edi
mov dword [esi + 0x154], eax
mov eax, dword [esi + 0x34]
push str.MAPIFreeBuffer
push eax
call edi
mov ecx, dword [esi + 0x150]
push esi
push 0
push 0
push 0
push 0
push 0
mov dword [esi + 0x158], eax
call ecx
neg eax
sbb eax, eax
add eax, 1
pop edi
ret
Function at 0x487b60
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
sub esp, 0x1c
mov eax, dword [0x628560]
xor eax, esp
mov dword [esp + 0x14], eax
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x487b92
xor eax, eax
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004f2a78
add esp, 0x1c
ret
push edi
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0xf61a
mov dword [esp + 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [esp + 8], 0xffffffff
mov word [esp + 6], ax
jne 0x487bde
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x487bfc
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.004ffc50
add esp, 0xc
mov eax, dword [esi]
push 0x10
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x487c0e
mov ecx, dword [esi]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004f2a78
add esp, 0x1c
ret
mov ecx, dword [esp + 0x14]
xor ecx, esp
mov eax, 1
call fcn.004f2a78
add esp, 0x1c
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x5d2100
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ecx, dword [edi]
mov esi, dword [0x647fdc]
xor eax, eax
xor ebx, ebx
push ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push 0x18
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x487d6a
cmp eax, ebx
je 0x487d6a
mov eax, dword [esp + 0x24]
cmp eax, 0x2714
je 0x487d04
cmp eax, 0x2711
je 0x487d6a
cmp eax, 0x2712
je 0x487d6a
cmp eax, 0x2718
je 0x487d6a
cmp eax, 0x2717
jne 0x487cd7
mov dword [esi + 0xcc], ebx
jmp 0x487d6a
cmp eax, 0x271a
jne 0x487cf6
mov eax, dword [esp + 0x1c]
mov cx, word [esp + 0x20]
mov dword [esi + 0xcc], eax
mov word [esi + 0xd0], cx
jmp 0x487d6a
cmp eax, 0x271b
je 0x487d6a
cmp eax, 0x271d
jne 0x487d10
mov edx, dword [esp + 0x18]
mov dword [esi + 0xc8], edx
jmp 0x487d6a
cmp eax, 0x271e
jne 0x487d6a
lea ecx, [esp + 0x10]
mov dword [esi + 0xc8], ebx
call fcn.00404bf0
push 0x6e5
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x40], ebx
call fcn.00422da0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 1
call fcn.00404ec0
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.00404ea0
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ecx
call fcn.004d60f9
lea ecx, [esp + 0x10]
call fcn.00404ea0
mov edx, dword [edi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x487d90
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x1c
push edi
push 0
mov edi, eax
mov edx, dword [edi]
xor eax, eax
push 0x18
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
mov dword [esp + 0x24], 0x2719
mov dword [esp + 0x2c], 0x18
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_send]
call fcn.00487c30
xor eax, eax
pop edi
add esp, 0x1c
ret 4
Function at 0x4882d0
Capabilities:
Resolve dns
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x5d2040
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x628560]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
push edi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov eax, dword [0x647fd8]
test eax, eax
mov edi, dword [0x647fdc]
jne 0x488330
push 0x8490
call fcn.004d3feb
add esp, 4
test eax, eax
je 0x488329
mov esi, eax
call fcn.0044f760
jmp 0x48832b
xor eax, eax
mov dword [0x647fd8], eax
mov esi, eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
mov word [esp + 0x1a], 0x2716
mov word [esp + 0x18], 0x28
mov dword [esp + 0x20], 0xfed8d0e6
mov eax, 3
movzx ecx, byte [esp + eax + 0x14]
add dword [esp + 0x14], ecx
add eax, 1
cmp eax, 0x28
jb 0x488383
push 0xf61b
mov word [esp + 0x40], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x3e], ax
mov eax, dword [edi + 0x70]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x40], eax
jne 0x488495
mov eax, dword [edi + 0x70]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x48847d
call fcn.004d4cf7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4883ee
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
push 0x573
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x64], 0
call fcn.00422da0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x60], 1
call fcn.00404ec0
mov byte [esp + 0x5c], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x488449
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0xc]
push 0
push 0
push esi
call fcn.004d60f9
lea eax, [esi - 0x10]
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4884b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4884b2
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.004ffc50
add esp, 0xc
mov ecx, dword [esi + 0x8488]
push 0x10
lea edx, [esp + 0x40]
push edx
push 0
push 0x28
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004f2a78
add esp, 0x54
ret 4
Function at 0x488750
Capabilities:
Resolve dns
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x5d2000
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x628560]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x628560]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x647fd8]
test eax, eax
jne 0x4887aa
push 0x8490
call fcn.004d3feb
add esp, 4
test eax, eax
je 0x4887a3
mov esi, eax
call fcn.0044f760
jmp 0x4887a5
xor eax, eax
mov dword [0x647fd8], eax
mov esi, dword [0x647fdc]
push 0xf61b
mov edi, eax
mov word [esp + 0x20], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1e], ax
mov eax, dword [esi + 0x70]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
jne 0x4888b3
mov esi, dword [esi + 0x70]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x48889b
call fcn.004d4cf7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x48880c
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x573
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x40], 0
call fcn.00422da0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.00404ec0
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x488867
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push 0
push 0
push esi
call fcn.004d60f9
lea eax, [esi - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4888d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4888d5
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004ffc50
add esp, 0xc
push 0x10
lea edx, [esp + 0x20]
push edx
push 0
push 1
lea eax, [esp + 0x23]
mov byte [esp + 0x23], 0x61
mov ecx, dword [edi + 0x8488]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004f2a78
add esp, 0x30
ret

Function at 0x488900
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x118
push esi
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x40
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 1
mov dword [esp + 0x1c], 5
mov dword [esp + 0x20], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jge 0x48894a
or eax, 0xffffffff
pop esi
add esp, 0x118
ret
jne 0x488956
xor eax, eax
pop esi
add esp, 0x118
ret
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
push 0
push edx
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
pop esi
add esp, 0x118
ret
Function at 0x488e20
Capabilities:
Connect socket

Disassembly:
sub esp, 0x18
mov eax, dword [0x628560]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push esi
xor eax, eax
push eax
push 1
push 2
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
jge 0x488e78
push str.socket
call fcn.004f6b3d
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004f2a78
add esp, 0x18
ret
mov eax, dword [esp + 0x20]
push eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea ecx, [esp + 8]
push ecx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jge 0x488ec7
push str.connect
call fcn.004f6b3d
add esp, 4
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004f2a78
add esp, 0x18
ret
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004f2a78
add esp, 0x18
ret
Function at 0x488ee0
Capabilities:
Print debug messages
Send data
Send data on socket
Send http request
Send http request with host header
Write file on windows

Disassembly:
mov eax, 0x101c
call fcn.004fa7e0
mov eax, dword [0x628560]
xor eax, esp
mov dword [esp + 0x1014], eax
mov eax, dword [esp + 0x1024]
push ebx
push ebp
push esi
push edi
push edx
push eax
push ecx
push str.GET__s_HTTP_1.1_r_nHost:__s:_d_r_nACCEPT_LANGUAGE:_en_r_n_r_n
lea eax, [esp + 0x30]
push 0x1000
push eax
call fcn.004f5e00
mov esi, dword [esp + 0x1048]
add esp, 0x18
push 0
push eax
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_send]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 3
push 0x40000000
push str.C:GetXMLFile.txt
mov dword [esp + 0x34], 1
xor ebp, ebp
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x1000
lea edx, [esp + 0x24]
push ebx
push edx
mov dword [esp + 0x20], eax
call fcn.004f9940
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x20]
push 0x1000
push eax
mov eax, esi
call fcn.00488900
mov edi, eax
add esp, 8
test edi, edi
jle 0x48908d
cmp dword [esp + 0x18], 0
je 0x489019
lea eax, [edi - 3]
xor esi, esi
test eax, eax
jle 0x48903e
nop
cmp byte [esp + esi + 0x20], 0xd
jne 0x488fcc
cmp byte [esp + esi + 0x21], 0xa
jne 0x488fcc
cmp byte [esp + esi + 0x22], 0xd
jne 0x488fcc
cmp byte [esp + esi + 0x23], 0xa
je 0x488fd5
add esi, 1
cmp esi, eax
jl 0x488fb0
jmp 0x48903e
lea ecx, [edi - 4]
cmp esi, ecx
mov dword [esp + 0x18], 0
jge 0x48903e
sub ebx, esi
add ebx, edi
lea edx, [ebx - 4]
push edx
push ebp
call fcn.004f35fa
mov edx, dword [esp + 0x18]
mov ebp, eax
mov eax, edi
sub eax, esi
sub eax, 4
push eax
lea ecx, [esp + esi + 0x30]
push ecx
add edx, ebp
push edx
call fcn.004ffc50
add esp, 0x14
add ebx, 0xfffffffc
mov dword [esp + 0x10], ebx
jmp 0x48903a
lea esi, [ebx + edi]
push esi
push ebp
call fcn.004f35fa
mov ebp, eax
push edi
lea eax, [esp + 0x2c]
push eax
add ebx, ebp
push ebx
call fcn.004ffc50
add esp, 0x14
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x489063
push 0
lea ecx, [esp + 0x20]
push ecx
push edi
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x20]
push 0x1000
push eax
mov eax, dword [esp + 0x1038]
call fcn.00488900
mov edi, eax
add esp, 8
test edi, edi
jg 0x488f9b
mov esi, dword [esp + 0x1030]
push ebp
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1024]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.004f2a78
add esp, 0x101c
ret