joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476410
Capabilities:
Create thread

Disassembly:
push esi
mov esi, eax
cmp byte [esi + 0x34], 0
jne 0x476494
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.004050e0
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 0x476494
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
call fcn.004764a0
cmp dword [esi], 0xffffffff
je 0x476490
push 0
push 0
push esi
push 0x476840
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [esi + 0x34], 1
pop esi
ret 8

Function at 0x476720
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 0x476818
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x3e5
jne 0x476817
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 0x476816
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 0x47680c
call ebp
push 0x19
mov esi, eax
push 0
lea eax, [esp + 0x30]
push eax
push 1
call edi
cmp eax, 0x102
jne 0x476808
cmp esi, 0x3e4
jne 0x4767ef
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 0x4767c5
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x476816
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 0x476a10
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x5bfcf2
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.00476b70
push fcn.00476b40
push 0x32
push 4
lea ebp, [esi + 0x3c]
push ebp
call fcn.004e5ee9
mov dword [esp + 0x18], 0
call fcn.004c5661
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x476a70
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.004c5661
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x476aa7
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.004050e0
call fcn.00476f70
call fcn.00476c40
push 0
push 0
push esi
push 0x476f10
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 0x476c40
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 0x476c64
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 0x479620
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 0x479652
xor eax, eax
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004e3543
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 0x47969e
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4796bc
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.004f05f0
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 0x4796ce
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.004e3543
add esp, 0x1c
ret
mov ecx, dword [esp + 0x14]
xor ecx, esp
mov eax, 1
call fcn.004e3543
add esp, 0x1c
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x5c24d0
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 0x47982a
cmp eax, ebx
je 0x47982a
mov eax, dword [esp + 0x24]
cmp eax, 0x2714
je 0x4797c4
cmp eax, 0x2711
je 0x47982a
cmp eax, 0x2712
je 0x47982a
cmp eax, 0x2718
je 0x47982a
cmp eax, 0x2717
jne 0x479797
mov dword [esi + 0xcc], ebx
jmp 0x47982a
cmp eax, 0x271a
jne 0x4797b6
mov eax, dword [esp + 0x1c]
mov cx, word [esp + 0x20]
mov dword [esi + 0xcc], eax
mov word [esi + 0xd0], cx
jmp 0x47982a
cmp eax, 0x271b
je 0x47982a
cmp eax, 0x271d
jne 0x4797d0
mov edx, dword [esp + 0x18]
mov dword [esi + 0xc8], edx
jmp 0x47982a
cmp eax, 0x271e
jne 0x47982a
lea ecx, [esp + 0x10]
mov dword [esi + 0xc8], ebx
call fcn.00476b40
push 0x6e5
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x40], ebx
call fcn.0041c990
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 1
call fcn.00404e30
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], bl
call fcn.00476b70
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ecx
call fcn.004c6a56
lea ecx, [esp + 0x10]
call fcn.00476b70
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 0x479850
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.004796f0
xor eax, eax
pop edi
add esp, 0x1c
ret 4
Function at 0x479d90
Capabilities:
Resolve dns
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x5c2410
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 0x479df0
push 0x8490
call fcn.004c495b
add esp, 4
test eax, eax
je 0x479de9
mov esi, eax
call fcn.00448400
jmp 0x479deb
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 0x479e43
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 0x479f55
mov eax, dword [edi + 0x70]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x479f3d
call fcn.004c5661
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x479eae
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.0041c990
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x60], 1
call fcn.00404e30
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 0x479f09
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.004c6a56
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 0x479f72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x479f72
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.004f05f0
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.004e3543
add esp, 0x54
ret 4
Function at 0x47a210
Capabilities:
Resolve dns
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x5c23d0
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 0x47a26a
push 0x8490
call fcn.004c495b
add esp, 4
test eax, eax
je 0x47a263
mov esi, eax
call fcn.00448400
jmp 0x47a265
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 0x47a373
mov esi, dword [esi + 0x70]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x47a35b
call fcn.004c5661
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47a2cc
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.0041c990
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.00404e30
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 0x47a327
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.004c6a56
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 0x47a395
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x47a395
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.004f05f0
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.004e3543
add esp, 0x30
ret

Function at 0x47a3c0
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 0x47a40a
or eax, 0xffffffff
pop esi
add esp, 0x118
ret
jne 0x47a416
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 0x47a8e0
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 0x47a938
push str.socket
call fcn.004e6eb7
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004e3543
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 0x47a987
push str.connect
call fcn.004e6eb7
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.004e3543
add esp, 0x18
ret
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004e3543
add esp, 0x18
ret
Function at 0x47a9a0
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.004eb090
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.004e68c0
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.004ea260
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.0047a3c0
mov edi, eax
add esp, 8
test edi, edi
jle 0x47ab4d
cmp dword [esp + 0x18], 0
je 0x47aad9
lea eax, [edi - 3]
xor esi, esi
test eax, eax
jle 0x47aafe
nop
cmp byte [esp + esi + 0x20], 0xd
jne 0x47aa8c
cmp byte [esp + esi + 0x21], 0xa
jne 0x47aa8c
cmp byte [esp + esi + 0x22], 0xd
jne 0x47aa8c
cmp byte [esp + esi + 0x23], 0xa
je 0x47aa95
add esi, 1
cmp esi, eax
jl 0x47aa70
jmp 0x47aafe
lea ecx, [edi - 4]
cmp esi, ecx
mov dword [esp + 0x18], 0
jge 0x47aafe
sub ebx, esi
add ebx, edi
lea edx, [ebx - 4]
push edx
push ebp
call fcn.004e40c5
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.004f05f0
add esp, 0x14
add ebx, 0xfffffffc
mov dword [esp + 0x10], ebx
jmp 0x47aafa
lea esi, [ebx + edi]
push esi
push ebp
call fcn.004e40c5
mov ebp, eax
push edi
lea eax, [esp + 0x2c]
push eax
add ebx, ebp
push ebx
call fcn.004f05f0
add esp, 0x14
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x47ab23
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.0047a3c0
mov edi, eax
add esp, 8
test edi, edi
jg 0x47aa5b
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.004e3543
add esp, 0x101c
ret
Function at 0x47ab90
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 [0x617560]
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 [0x5fd578]
mov edi, ecx
mov ecx, dword [0x5fd570]
mov esi, edx
mov edx, dword [0x5fd574]
push 0x200
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
mov ecx, dword [0x5fd57c]
mov dword [esp + 0x1c], edx
mov dl, byte [0x5fd580]
lea eax, [esp + 0x2c]
push 0
push eax
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x30], dl
call fcn.004ea260
add esp, 0xc
push 0x400
lea ecx, [esp + 0x62c]
push 0
push ecx
call fcn.004ea260
add esp, 0xc
push 0x400
lea edx, [esp + 0x22c]
push 0
push edx
call fcn.004ea260
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.004e68c0
mov edx, dword [esp + 0xa50]
lea ecx, [esp + 0x28]
push ecx
push esi
push eax
push edx
push edi
push 0x6301c0
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.004e68c0
add esp, 0x3c
lea ecx, [esp + 0x28]
push ecx
mov esi, eax
push 0x5f4e54
lea edx, [esp + esi + 0x630]
push 0x200
push edx
call fcn.004e68c0
add esp, 0x10
add esi, eax
je 0x47ad86
push 0
push esi
lea eax, [esp + 0x630]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x47ad86
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 0x47ad86
lea ecx, [esp + 0x228]
push 0x400
push ecx
mov eax, ebx
xor esi, esi
call fcn.0047a3c0
add esp, 8
test eax, eax
jle 0x47ad86
jmp 0x47ad10
add esi, eax
lea edx, [esp + esi + 0x228]
push 0x400
push edx
mov eax, ebx
call fcn.0047a3c0
add esp, 8
test eax, eax
jg 0x47ad10
test esi, esi
je 0x47ad86
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.0047a450
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xa20]
xor ecx, esp
call fcn.004e3543
add esp, 0xa28
ret
mov ecx, dword [esp + 0xa2c]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004e3543
add esp, 0xa28
ret
Function at 0x47b040
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
sub esp, 0xa18
mov eax, dword [0x617560]
xor eax, esp
mov dword [esp + 0xa14], eax
mov eax, dword [str.DeletePortMapping]
push esi
push edi
mov edi, edx
mov edx, dword [0x5fd5e4]
mov esi, ecx
mov ecx, dword [0x5fd5e0]
push 0x200
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov eax, dword [0x5fd5e8]
mov dword [esp + 0x10], ecx
mov cx, word [0x5fd5ec]
lea edx, [esp + 0x20]
push 0
push edx
mov dword [esp + 0x20], eax
mov word [esp + 0x24], cx
call fcn.004ea260
push 0x400
lea eax, [esp + 0x22c]
push 0
push eax
call fcn.004ea260
push 0x400
lea ecx, [esp + 0x638]
push 0
push ecx
call fcn.004ea260
mov edx, dword [esp + 0xa4c]
push esi
push edx
push str._NewRemoteHost___NewRemoteHost__NewExternalPort__d__NewExternalPort__NewProtocol__s__NewProtocol_
lea eax, [esp + 0x4c]
push 0x200
push eax
call fcn.004e68c0
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x58]
push edx
push edi
mov eax, ecx
push eax
push str.__xml_version_1.0____s:Envelope_r_n____xmlns:s_http:__schemas.xmlsoap.or_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_s______u:_s__r_n____s:Body__r_n__s:Envelope__r_n_r_n
lea ecx, [esp + 0x668]
push 0x400
push ecx
call fcn.004e68c0
add esp, 0x54
lea edx, [esp + 8]
push edx
push edi
mov esi, eax
mov eax, dword [esp + 0xa34]
push esi
push eax
push ebx
push 0x6301c0
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 ecx, [esp + 0x238]
push 0x400
push ecx
call fcn.004e68c0
mov edi, eax
push esi
lea edx, [esp + 0x644]
push edx
lea eax, [esp + edi + 0x248]
push eax
call fcn.004f05f0
add esp, 0x30
test edi, edi
jle 0x47b17f
mov edx, dword [esp + 0xa24]
push 0
add esi, edi
push esi
lea ecx, [esp + 0x224]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
mov ecx, dword [esp + 0xa1c]
pop edi
pop esi
xor ecx, esp
call fcn.004e3543
add esp, 0xa18
ret