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

Disassembly:
push 0xffffffffffffffff
push 0x5bd74d
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x617560]
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.004c51db
add esp, 4
cmp eax, edi
je 0x475bce
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 0x475bd4
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 0x475fe0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5be7c8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x617560]
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.004cd970
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
call fcn.004cda48
mov ecx, dword [esi + 4]
push 0xa
mov edi, eax
call fcn.004ccfd9
mov ecx, dword [esi + 4]
push 2
mov ebx, eax
call fcn.004ccfab
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.004cd3b2
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
mov ecx, dword [esi + 4]
call fcn.004cd0a2
mov ecx, dword [esi + 4]
push edi
call fcn.004cda48
mov ecx, dword [esi + 4]
push ebx
call fcn.004ccfd9
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 4]
push edx
call fcn.004ccfab
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.CGdiObject.0
call fcn.004cd9c3
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 0x476c70
Capabilities:
Create thread

Disassembly:
push esi
mov esi, eax
cmp byte [esi + 0x34], 0
jne 0x476cf4
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.004050d0
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 0x476cf4
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
call fcn.00476d00
cmp dword [esi], 0xffffffff
je 0x476cf0
push 0
push 0
push esi
push 0x4770a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [esi + 0x34], 1
pop esi
ret 8

Function at 0x476f80
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 0x477078
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x3e5
jne 0x477077
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 0x477076
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 0x47706c
call ebp
push 0x19
mov esi, eax
push 0
lea eax, [esp + 0x30]
push eax
push 1
call edi
cmp eax, 0x102
jne 0x477068
cmp esi, 0x3e4
jne 0x47704f
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 0x477025
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x477076
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 0x477270
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x5c0522
mov eax, dword fs:[0]
push eax
push ebp
push esi
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
push fcn.004773d0
push fcn.004773a0
push 0x32
push 4
lea ebp, [esi + 0x3c]
push ebp
call fcn.004e6769
mov dword [esp + 0x18], 0
call fcn.004c5ee1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4772d0
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.004c5ee1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x477307
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 [0x636fe4], esi
call fcn.004050d0
call fcn.004777d0
call fcn.004774a0
push 0
push 0
push esi
push 0x477770
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 0x4774a0
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 0x4774c4
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 0x479e80
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 [0x617560]
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 0x479eb2
xor eax, eax
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004e3dc3
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 0x479efe
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x479f1c
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.004f0e70
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 0x479f2e
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.004e3dc3
add esp, 0x1c
ret
mov ecx, dword [esp + 0x14]
xor ecx, esp
mov eax, 1
call fcn.004e3dc3
add esp, 0x1c
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x5c2d40
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ecx, dword [edi]
mov esi, dword [0x636fb4]
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 0x47a08a
cmp eax, ebx
je 0x47a08a
mov eax, dword [esp + 0x24]
cmp eax, 0x2714
je 0x47a024
cmp eax, 0x2711
je 0x47a08a
cmp eax, 0x2712
je 0x47a08a
cmp eax, 0x2718
je 0x47a08a
cmp eax, 0x2717
jne 0x479ff7
mov dword [esi + 0xcc], ebx
jmp 0x47a08a
cmp eax, 0x271a
jne 0x47a016
mov eax, dword [esp + 0x1c]
mov cx, word [esp + 0x20]
mov dword [esi + 0xcc], eax
mov word [esi + 0xd0], cx
jmp 0x47a08a
cmp eax, 0x271b
je 0x47a08a
cmp eax, 0x271d
jne 0x47a030
mov edx, dword [esp + 0x18]
mov dword [esi + 0xc8], edx
jmp 0x47a08a
cmp eax, 0x271e
jne 0x47a08a
lea ecx, [esp + 0x10]
mov dword [esi + 0xc8], ebx
call fcn.004773a0
push 0x6e5
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x40], ebx
call fcn.0041d1c0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 1
call fcn.00404e20
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.004773d0
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ecx
call fcn.004c72d6
lea ecx, [esp + 0x10]
call fcn.004773d0
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 0x47a0b0
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.00479f50
xor eax, eax
pop edi
add esp, 0x1c
ret 4
Function at 0x47a5f0
Capabilities:
Resolve dns
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x5c2cc0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x617560]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov eax, dword [0x636fb0]
test eax, eax
mov edi, dword [0x636fb4]
jne 0x47a650
push 0x8490
call fcn.004c51db
add esp, 4
test eax, eax
je 0x47a649
mov esi, eax
call fcn.00448c70
jmp 0x47a64b
xor eax, eax
mov dword [0x636fb0], 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 0x47a6a3
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 0x47a7b5
mov eax, dword [edi + 0x70]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x47a79d
call fcn.004c5ee1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47a70e
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.0041d1c0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x60], 1
call fcn.00404e20
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 0x47a769
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.004c72d6
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 0x47a7d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x47a7d2
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.004f0e70
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.004e3dc3
add esp, 0x54
ret 4
Function at 0x47aa70
Capabilities:
Resolve dns
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x5c2c40
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x617560]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x636fb0]
test eax, eax
jne 0x47aaca
push 0x8490
call fcn.004c51db
add esp, 4
test eax, eax
je 0x47aac3
mov esi, eax
call fcn.00448c70
jmp 0x47aac5
xor eax, eax
mov dword [0x636fb0], eax
mov esi, dword [0x636fb4]
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 0x47abd3
mov esi, dword [esi + 0x70]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x47abbb
call fcn.004c5ee1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47ab2c
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.0041d1c0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.00404e20
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 0x47ab87
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.004c72d6
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 0x47abf5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x47abf5
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.004f0e70
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.004e3dc3
add esp, 0x30
ret

Function at 0x47ac20
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 0x47ac6a
or eax, 0xffffffff
pop esi
add esp, 0x118
ret
jne 0x47ac76
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 0x47b140
Capabilities:
Connect socket

Disassembly:
sub esp, 0x18
mov eax, dword [0x617560]
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 0x47b198
push str.socket
call fcn.004e7737
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004e3dc3
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 0x47b1e7
push str.connect
call fcn.004e7737
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.004e3dc3
add esp, 0x18
ret
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004e3dc3
add esp, 0x18
ret
Function at 0x47b200
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.004eb910
mov eax, dword [0x617560]
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.004e7140
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.004eaae0
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.0047ac20
mov edi, eax
add esp, 8
test edi, edi
jle 0x47b3ad
cmp dword [esp + 0x18], 0
je 0x47b339
lea eax, [edi - 3]
xor esi, esi
test eax, eax
jle 0x47b35e
nop
cmp byte [esp + esi + 0x20], 0xd
jne 0x47b2ec
cmp byte [esp + esi + 0x21], 0xa
jne 0x47b2ec
cmp byte [esp + esi + 0x22], 0xd
jne 0x47b2ec
cmp byte [esp + esi + 0x23], 0xa
je 0x47b2f5
add esi, 1
cmp esi, eax
jl 0x47b2d0
jmp 0x47b35e
lea ecx, [edi - 4]
cmp esi, ecx
mov dword [esp + 0x18], 0
jge 0x47b35e
sub ebx, esi
add ebx, edi
lea edx, [ebx - 4]
push edx
push ebp
call fcn.004e4945
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.004f0e70
add esp, 0x14
add ebx, 0xfffffffc
mov dword [esp + 0x10], ebx
jmp 0x47b35a
lea esi, [ebx + edi]
push esi
push ebp
call fcn.004e4945
mov ebp, eax
push edi
lea eax, [esp + 0x2c]
push eax
add ebx, ebp
push ebx
call fcn.004f0e70
add esp, 0x14
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x47b383
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.0047ac20
mov edi, eax
add esp, 8
test edi, edi
jg 0x47b2bb
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.004e3dc3
add esp, 0x101c
ret