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

Disassembly:
push 0xffffffffffffffff
push 0x50f9fd
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5566e0]
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.004c1f9b
add esp, 4
cmp eax, edi
je 0x47663e
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 0x476644
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 0x476a00
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x510c98
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5566e0]
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.004ca7ae
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
call fcn.004ca886
mov ecx, dword [esi + 4]
push 0xa
mov edi, eax
call fcn.004c9e09
mov ecx, dword [esi + 4]
push 2
mov ebx, eax
call fcn.004c9ddb
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.004ca1f0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push eax
push ecx
mov ecx, dword [esi + 4]
call fcn.004c9ed2
mov ecx, dword [esi + 4]
push edi
call fcn.004ca886
mov ecx, dword [esi + 4]
push ebx
call fcn.004c9e09
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 4]
push edx
call fcn.004c9ddb
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.CGdiObject.0
call fcn.004ca801
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 0x4776a0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, eax
cmp byte [esi + 0x34], 0
jne 0x477724
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.00405110
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 0x477724
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
call fcn.00477730
cmp dword [esi], 0xffffffff
je 0x477720
push 0
push 0
push esi
push 0x477ad0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [esi + 0x34], 1
pop esi
ret 8

Function at 0x4779b0
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 0x477aa8
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x3e5
jne 0x477aa7
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 0x477aa6
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 0x477a9c
call ebp
push 0x19
mov esi, eax
push 0
lea eax, [esp + 0x30]
push eax
push 1
call edi
cmp eax, 0x102
jne 0x477a98
cmp esi, 0x3e4
jne 0x477a7f
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 0x477a55
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x477aa6
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 0x477ca0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x5126d2
mov eax, dword fs:[0]
push eax
push ebp
push esi
push edi
mov eax, dword [0x5566e0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
push fcn.00404bc0
push fcn.00477dd0
push 0x32
push 4
lea ebp, [esi + 0x3c]
push ebp
call fcn.004e33d9
mov dword [esp + 0x18], 0
call fcn.004c2ca4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x477d00
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.004c2ca4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x477d37
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 [0x573824], esi
call fcn.00405110
call fcn.004781e0
call fcn.00477eb0
push 0
push 0
push esi
push 0x478180
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 0x477eb0
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 0x477ed4
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 0x479e10
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 [0x5566e0]
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 0x479e42
xor eax, eax
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004e0b83
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 0x479e8e
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x479eac
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.004ef8a0
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 0x479ebe
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.004e0b83
add esp, 0x1c
ret
mov ecx, dword [esp + 0x14]
xor ecx, esp
mov eax, 1
call fcn.004e0b83
add esp, 0x1c
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x514cf0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x5566e0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ecx, dword [edi]
mov esi, dword [0x5737f4]
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 0x47a01a
cmp eax, ebx
je 0x47a01a
mov eax, dword [esp + 0x24]
cmp eax, 0x2714
je 0x479fb4
cmp eax, 0x2711
je 0x47a01a
cmp eax, 0x2712
je 0x47a01a
cmp eax, 0x2718
je 0x47a01a
cmp eax, 0x2717
jne 0x479f87
mov dword [esi + 0xcc], ebx
jmp 0x47a01a
cmp eax, 0x271a
jne 0x479fa6
mov eax, dword [esp + 0x1c]
mov cx, word [esp + 0x20]
mov dword [esi + 0xcc], eax
mov word [esi + 0xd0], cx
jmp 0x47a01a
cmp eax, 0x271b
je 0x47a01a
cmp eax, 0x271d
jne 0x479fc0
mov edx, dword [esp + 0x18]
mov dword [esi + 0xc8], edx
jmp 0x47a01a
cmp eax, 0x271e
jne 0x47a01a
lea ecx, [esp + 0x10]
mov dword [esi + 0xc8], ebx
call fcn.00477dd0
push 0x6e5
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x40], ebx
call fcn.0041c760
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 1
call fcn.00404e60
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.00404bc0
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ecx
call fcn.004c4087
lea ecx, [esp + 0x10]
call fcn.00404bc0
mov edx, dword [edi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
xor eax, eax
invalid
dec esp
Function at 0x47a040
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x1c
push edi
mov edi, eax
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov eax, dword [0x5737f4]
mov eax, dword [eax + 0xd4]
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], 0x2713
mov dword [esp + 0x20], 0x18
call fcn.004e2227
mov ecx, dword [esp + 0x28]
add esp, 4
push 0
push 0x18
lea edx, [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [edi]
push edx
push eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.WS2_32.dll_send]
call fcn.00479ee0
xor eax, eax
pop edi
add esp, 0x1c
ret 4

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

Disassembly:
sub esp, 0x20
push edi
mov edi, eax
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov eax, dword [0x5737f4]
mov eax, dword [eax + 0xd4]
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], 0x271c
mov dword [esp + 0x20], 0x18
call fcn.004e2227
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
add esp, 4
push 0
mov dword [esp + 0x14], eax
push 0x18
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
mov ecx, dword [edi]
push eax
push ecx
mov dword [esp + 0x28], edx
call dword [sym.imp.WS2_32.dll_send]
call fcn.00479ee0
xor eax, eax
pop edi
add esp, 0x20
ret 8

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

Disassembly:
sub esp, 0x1c
mov edx, dword [esi]
push edi
xor eax, eax
push 0
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], 0x2716
mov dword [esp + 0x2c], 0x18
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
mov dword [esi], 0xffffffff
pop edi
add esp, 0x1c
ret 4

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

Disassembly:
sub esp, 0x1c
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov eax, dword [0x5737f4]
mov eax, dword [eax + 0xd4]
push edi
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], 0x2710
mov dword [esp + 0x20], 0x18
call fcn.004e2227
mov ecx, dword [esp + 0x28]
add esp, 4
push 0
push 0x18
lea edx, [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [esi]
push edx
push eax
mov dword [esp + 0x18], ecx
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [esi]
push ecx
mov edi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
mov dword [esi], 0xffffffff
pop edi
add esp, 0x1c
ret 4
Function at 0x47a220
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.00479ee0
xor eax, eax
pop edi
add esp, 0x1c
ret 4

Function at 0x47a280
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 0x47a2ca
or eax, 0xffffffff
pop esi
add esp, 0x118
ret
jne 0x47a2d6
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 0x47a760
Capabilities:
Connect socket

Disassembly:
sub esp, 0x18
mov eax, dword [0x5566e0]
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 0x47a7b8
push str.socket
call fcn.004e4540
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004e0b83
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 0x47a807
push str.connect
call fcn.004e4540
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.004e0b83
add esp, 0x18
ret
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004e0b83
add esp, 0x18
ret
Function at 0x47a820
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.004ea520
mov eax, dword [0x5566e0]
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.004e45ce
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.004e9730
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.0047a280
mov edi, eax
add esp, 8
test edi, edi
jle 0x47a9cd
cmp dword [esp + 0x18], 0
je 0x47a959
lea eax, [edi - 3]
xor esi, esi
test eax, eax
jle 0x47a97e
nop
cmp byte [esp + esi + 0x20], 0xd
jne 0x47a90c
cmp byte [esp + esi + 0x21], 0xa
jne 0x47a90c
cmp byte [esp + esi + 0x22], 0xd
jne 0x47a90c
cmp byte [esp + esi + 0x23], 0xa
je 0x47a915
add esi, 1
cmp esi, eax
jl 0x47a8f0
jmp 0x47a97e
lea ecx, [edi - 4]
cmp esi, ecx
mov dword [esp + 0x18], 0
jge 0x47a97e
sub ebx, esi
add ebx, edi
lea edx, [ebx - 4]
push edx
push ebp
call fcn.004e1705
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.004ef8a0
add esp, 0x14
add ebx, 0xfffffffc
mov dword [esp + 0x10], ebx
jmp 0x47a97a
lea esi, [ebx + edi]
push esi
push ebp
call fcn.004e1705
mov ebp, eax
push edi
lea eax, [esp + 0x2c]
push eax
add ebx, ebp
push ebx
call fcn.004ef8a0
add esp, 0x14
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x47a9a3
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.0047a280
mov edi, eax
add esp, 8
test edi, edi
jg 0x47a8db
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.004e0b83
add esp, 0x101c
ret
Function at 0x47aa10
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header
Write file on windows

Disassembly:
sub esp, 0xa28
mov eax, dword [0x5566e0]
xor eax, esp
mov dword [esp + 0xa20], eax
mov eax, dword [str.GetExternalIPAddress]
push ebp
mov ebp, dword [esp + 0xa34]
push esi
push edi
mov dword [esp + 0x10], eax
mov eax, dword [0x53d654]
mov edi, ecx
mov ecx, dword [0x53d64c]
mov esi, edx
mov edx, dword [0x53d650]
push 0x200
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
mov ecx, dword [0x53d658]
mov dword [esp + 0x1c], edx
mov dl, byte [0x53d65c]
lea eax, [esp + 0x2c]
push 0
push eax
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x30], dl
call fcn.004e9730
add esp, 0xc
push 0x400
lea ecx, [esp + 0x62c]
push 0
push ecx
call fcn.004e9730
add esp, 0xc
push 0x400
lea edx, [esp + 0x22c]
push 0
push edx
call fcn.004e9730
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push esi
mov ecx, eax
push ecx
push str.__xml_version_1.0____s:Envelope_r_n____xmlns:s_http:__schemas.xmlsoap.org_soap_envelope___r_n____s:encodingStyle_http:__schemas.xmlsoap.org_soap_encoding____r_n___s:Body__r_n_____u:_s_xmlns:u__s___r_n__u:_s__r_n____s:Body__r_n__s:Envelope__r_n_r_n
lea edx, [esp + 0x38]
push 0x200
push edx
call fcn.004e45ce
mov edx, dword [esp + 0xa50]
lea ecx, [esp + 0x28]
push ecx
push esi
push eax
push edx
push edi
push 0x56c7e0
push str.POST__s_HTTP_1.1_r_nHOST:__s:_d_r_nContent_Length:__d_r_nContent_Type:_text_xml__charset_utf_8__r_nSOAPAction:___s_s__r_n_r_n
lea eax, [esp + 0x65c]
push 0x400
push eax
call fcn.004e45ce
add esp, 0x3c
lea ecx, [esp + 0x28]
push ecx
mov esi, eax
push 0x52989c
lea edx, [esp + esi + 0x630]
push 0x200
push edx
call fcn.004e45ce
add esp, 0x10
add esi, eax
je 0x47ac06
push 0
push esi
lea eax, [esp + 0x630]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x47ac06
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push str.C:GetExternalIPAddress.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x47ac06
lea ecx, [esp + 0x228]
push 0x400
push ecx
mov eax, ebx
xor esi, esi
call fcn.0047a280
add esp, 8
test eax, eax
jle 0x47ac06
jmp 0x47ab90
add esi, eax
lea edx, [esp + esi + 0x228]
push 0x400
push edx
mov eax, ebx
call fcn.0047a280
add esp, 8
test eax, eax
jg 0x47ab90
test esi, esi
je 0x47ac06
push 0
lea eax, [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x234]
push ecx
push edi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x228]
push edx
mov ecx, ebp
call fcn.0047a310
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xa20]
xor ecx, esp
call fcn.004e0b83
add esp, 0xa28
ret
mov ecx, dword [esp + 0xa2c]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004e0b83
add esp, 0xa28
ret