joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a5d4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x44a609
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403bd4
jmp 0x44a613
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403b40
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44b56c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x44b5a4
mov eax, esi
call fcn.00433280
test al, al
je 0x44b5a4
mov eax, dword [ebx + 0x74]
call fcn.00432f84
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44b5a4
push 0
mov eax, dword [ebx + 0x74]
call fcn.00432f84
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45170c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x451795
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x49c85c
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x45177f
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00409cb0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x4517ac
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x49b8b4]
mov dl, 1
mov eax, dword [0x450880]
call fcn.0040a5e8
call fcn.00403538
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45179c
lea eax, [ebp - 0x1c]
call fcn.00403aec
ret

Function at 0x451e28
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00451d4c
mov cl, 1
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.00402fbc
push 0x10
lea eax, [esi + 0x18]
push eax
mov eax, dword [esi + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x451e8c
call fcn.00451654
mov byte [esi + 0x29], 0
test byte [esi + 0x28], 0x10
jne 0x451e7e
cmp dword [esi + 4], 0xffffffff
setne al
mov byte [esi + 8], al
mov cl, 2
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.00402fbc
pop esi
pop ebx
ret

Function at 0x451eb0
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00403f30
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00402af8
test ebx, ebx
je 0x451efb
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x451fd8
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x452009
mov ecx, dword [0x49b978]
mov dl, 1
mov eax, dword [0x450880]
call fcn.0040a5ac
call fcn.00403538
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x452036
mov ecx, dword [0x49b79c]
mov dl, 1
mov eax, dword [0x450880]
call fcn.0040a5ac
call fcn.00403538
xor eax, eax
push ebp
push 0x4520ba
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xffff
call fcn.00402fbc
cmp byte [ebp + 8], 0
je 0x452094
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00451f40
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00451da8
jmp 0x4520b0
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00451940
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4520d7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4520e0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x452111
mov ecx, dword [0x49b7f8]
mov dl, 1
mov eax, dword [0x450880]
call fcn.0040a5ac
call fcn.00403538
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x45213e
mov ecx, dword [0x49b79c]
mov dl, 1
mov eax, dword [0x450880]
call fcn.0040a5ac
call fcn.00403538
xor eax, eax
push ebp
push 0x4521bd
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xffff
call fcn.00402fbc
cmp byte [ebp + 8], 0
je 0x452199
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00451f40
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.00451e28
jmp 0x4521b3
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00451940
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4521da
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4523bc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00451bcc
xor edx, edx
push ebp
push 0x45251c
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x452506
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x452406
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x452410
call fcn.004035d8
jmp 0x452523
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00410770
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 4]
mov ebx, eax
test ebx, ebx
jle 0x4524fb
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
cmp eax, 0xffffffff
jne 0x4524b9
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x4524a9
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.00402fbc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.00452374
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x45252c]
cmp dl, byte [eax + 0x28]
je 0x452502
call fcn.0040a494
jmp 0x452502
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00410780
jmp 0x452502
cmp eax, ebx
jge 0x4524d2
mov edx, dword [ebp - 0xc]
add edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00410780
jmp 0x452410
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00410770
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041078c
cmp ebx, eax
jne 0x452410
push ebp
call fcn.00452374
pop ecx
jmp 0x452502
push ebp
call fcn.00452374
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452523
mov eax, dword [ebp - 4]
call fcn.00451bd8
ret
mov al, byte [ebp - 5]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452530
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x452652
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00451bcc
xor eax, eax
push ebp
push 0x452635
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x452580
call fcn.004035d8
jmp 0x45263c
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x45261f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x45261f
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.00402fbc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x45261f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00409cb0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x45266c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x49b8b4]
mov dl, 1
mov eax, dword [0x450880]
call fcn.0040a5e8
call fcn.00403538
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45263c
mov eax, dword [ebp - 4]
call fcn.00451bd8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452659
lea eax, [ebp - 0x28]
call fcn.00403aec
ret
Function at 0x4526b8
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x452802
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00451bcc
xor eax, eax
push ebp
push 0x4527e5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x45271d
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x45271d
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x4527cf
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x452730
call fcn.004035d8
jmp 0x4527ec
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4527cf
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4527cf
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.00402fbc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4527cf
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00409cb0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x45281c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x49b8b4]
mov dl, 1
mov eax, dword [0x450880]
call fcn.0040a5e8
call fcn.00403538
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4527ec
mov eax, dword [ebp - 4]
call fcn.00451bd8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x452809
lea eax, [ebp - 0x28]
call fcn.00403aec
ret
Function at 0x456f98
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x456fc6
mov eax, ebx
call fcn.00457a3c
cmp dword [ebx + 0x3c], 0
je 0x456fbf
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x457037
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x457029
cmp dword [ebx + 8], 0
je 0x456fe8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x456ffa
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x457029
cmp dword [ebx + 8], 0
je 0x456fdb
cmp eax, 3
je 0x45700d
dec eax
jne 0x456fdb
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x456fdb
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x456fdb
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x457055
cmp dword [ebx + 0x10], 0xcc
je 0x457055
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00457060
pop ebx
ret
Function at 0x470250
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4704af
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4702b2
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0046fd18
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040adb4
cmp al, 1
jne 0x4702b2
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00470030
test al, al
je 0x47043e
cmp dword [ebp - 8], 0
jge 0x4702d0
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0046fd18
mov eax, dword [ebp - 0x210]
call fcn.00403d6c
cmp ebx, eax
jge 0x47031a
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0046fd18
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x49b97c]
and eax, 0xff
bt dword [edx], eax
jae 0x47031a
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
cmp eax, dword [ebp - 8]
jg 0x47032e
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0047022c
cmp ebx, dword [ebp - 8]
je 0x470430
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x47035a
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00402fbc
and eax, 0x7f
movzx eax, word [eax*2 + 0x49b558]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x224], 1
xor eax, eax
push ebp
push 0x47041d
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00402fbc
and eax, 0x7f
movzx eax, word [eax*2 + 0x49b558]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00432f84
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00402fbc
and eax, 0x7f
movzx eax, word [eax*2 + 0x49b558]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00432f84
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470424
mov eax, dword [ebp - 4]
mov byte [eax + 0x224], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x218], edx
jmp 0x470491
cmp dword [ebp - 8], 0
jge 0x470449
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0046fd18
mov eax, dword [ebp - 0x218]
call fcn.00403d6c
cmp eax, dword [ebp - 8]
jg 0x470483
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0046fd18
mov eax, dword [ebp - 0x21c]
call fcn.00403d6c
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0047022c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4704b6
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00403b10
ret
Function at 0x47a9c0
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
test dl, dl
je 0x47a9d3
add esp, 0xfffffff0
call fcn.004030e0
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00403f20
mov eax, dword [ebp + 8]
call fcn.00403f20
xor eax, eax
push ebp
push 0x47abbe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xc
call fcn.0040270c
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], ebx
xor eax, eax
push ebp
push 0x47ab99
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebx], 0xc
mov dword [ebx + 8], 0xffffffff
xor eax, eax
mov dword [ebx + 4], eax
push 0
push ebx
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x47aa61
mov ecx, 0x47a830
mov dl, 1
mov eax, dword [0x47a848]
call fcn.0040a5ac
call fcn.00403538
jmp 0x47ab7b
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 4]
add eax, 0x1c
push eax
mov eax, dword [ebp - 4]
add eax, 0x18
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x47aa9c
mov ecx, 0x47a830
mov dl, 1
mov eax, dword [0x47a848]
call fcn.0040a5ac
call fcn.00403538
jmp 0x47ab7b
push 2
push 0
push 0
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
jne 0x47aadd
mov ecx, 0x47a838
mov dl, 1
mov eax, dword [0x47a8a4]
call fcn.0040a5ac
call fcn.00403538
jmp 0x47ab7b
push 2
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
jne 0x47ab1b
mov ecx, 0x47a838
mov dl, 1
mov eax, dword [0x47a8a4]
call fcn.0040a5ac
call fcn.00403538
jmp 0x47ab7b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0047abe8
test al, al
jne 0x47ab7b
mov ecx, 0x47a840
mov dl, 1
mov eax, dword [0x47a904]
call fcn.0040a5ac
call fcn.00403538
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47aba0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, 0xc
call fcn.00402724
ret
Function at 0x47abe8
Capabilities:
Create process on windows
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00403f20
xor eax, eax
push ebp
push 0x47ac78
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x58]
mov edx, 0x44
call fcn.00406c40
mov dword [ebp - 0x58], 0x44
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
or dword [ebp - 0x2c], 0x100
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0xc
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403f30
push eax
push 0
call sub.kernel32.dll_CreateProcessA
neg eax
sbb ebx, ebx
neg ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ResumeThread
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ac7f
lea eax, [ebp - 4]
call fcn.00403aec
ret

Function at 0x47acc8
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x47ae17
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x47adea
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00403aec
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, 1
call fcn.0040270c
mov dword [ebp - 0x1c], eax
mov esi, 0xa
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
mov eax, dword [edi + 0x10]
push eax
call sub.kernel32.dll_PeekNamedPipe
neg eax
sbb ebx, ebx
neg ebx
test bl, bl
je 0x47ad3e
cmp dword [ebp - 0x18], 0
ja 0x47ad42
xor eax, eax
jmp 0x47ad44
mov al, 1
mov ebx, eax
test bl, bl
jne 0x47ad61
fild dword [ebp - 4]
fdiv dword [0x47ae28]
call fcn.00402944
push eax
call sub.kernel32.dll_Sleep
dec esi
jne 0x47ad19
test bl, bl
je 0x47add8
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jbe 0x47ad86
mov eax, dword [ebp - 0x1c]
call fcn.00402724
mov eax, dword [ebp - 0x18]
call fcn.0040270c
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [edi + 0x10]
push eax
call sub.kernel32.dll_ReadFile_1
neg eax
sbb ebx, ebx
neg ebx
mov esi, dword [ebp - 0x10]
dec esi
test esi, esi
jb 0x47add8
inc esi
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dl, byte [edx + ecx]
call fcn.00403c94
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.00403d74
mov eax, dword [ebp - 8]
inc dword [ebp - 0xc]
dec esi
jne 0x47adb3
test bl, bl
jne 0x47ad14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47ae01
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ae1e
lea eax, [ebp - 0x20]
call fcn.00403aec
ret
Function at 0x47ae40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00403f20
xor eax, eax
push ebp
push 0x47aef1
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 4]
push 0x47af0c
push 0x47af18
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403e2c
mov eax, dword [ebp - 0xc]
call fcn.00403f30
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00403ca4
mov eax, dword [ebp - 0x10]
call fcn.00403d6c
mov esi, eax
push 0
lea eax, [ebp - 8]
push eax
push esi
push ebx
mov eax, dword [edi + 0x1c]
push eax
call sub.kernel32.dll_WriteFile_1
neg eax
sbb eax, eax
neg eax
mov ebx, eax
test bl, bl
je 0x47aec6
cmp esi, dword [ebp - 8]
je 0x47aeca
xor eax, eax
jmp 0x47aecc
mov al, 1
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47aef8
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00403b10
lea eax, [ebp - 4]
call fcn.00403aec
ret