joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414520
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47e318
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
mov ebp, ecx
mov eax, esi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 8]
push edi
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0xc]
xor edi, edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], vtable.CBrush.0
cmp dword [0x4aae88], 7
mov dword [esp + 0x30], edi
jne 0x414587
call fcn.004120e0
test eax, eax
jne 0x414587
push 0xf
jmp 0x414589
push 4
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
call ebx
cmp dword [esp + 0x40], edi
jne 0x4145ac
fld qword [0x485700]
sub esp, 8
fstp qword [esp]
push eax
call fcn.00411b70
add esp, 0xc
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x14]
call fcn.0045cc7b
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x38]
mov edx, dword [edi + 4]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x10]
call fcn.0045ccd2
cmp dword [0x4aae88], 2
jl 0x4145fa
mov ecx, dword [edi + 4]
push 0xf
push 2
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [esp + 0x44]
test eax, eax
push 7
jne 0x41461e
call ebx
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi]
add edx, 4
push edx
add eax, 4
push eax
push edi
mov ecx, ebp
call fcn.00413e20
jmp 0x414636
call ebx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
add ecx, 4
push ecx
add edx, 5
push edx
push edi
mov ecx, ebp
call fcn.00413d00
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x10], vtable.CGdiObject.0
call fcn.0045ccd2
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10

Function at 0x414ab0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.00472506
movzx ebx, word [esp + 0x14]
mov edi, dword [eax + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 2
push ebx
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x414ae1
push 2
push ebx
xor edi, edi
push edi
call ebp
mov esi, eax
test esi, esi
je 0x414b12
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x414b12
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x414b12
push eax
call fcn.00412080
add esp, 4
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp bp, 0x10
je 0x414b19
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push esi
push edi
call fcn.004630c5
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x415f30
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47e488
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x2c]
test edi, edi
mov esi, ecx
je 0x415ff6
lea ecx, [esp + 8]
call fcn.0044e678
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
push 1
push 1
push 0xff
push eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0
call fcn.0044e9fc
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x415f99
mov eax, dword [esi + 0x38]
mov edi, dword [edi + 4]
mov edx, dword [esp + 0xc]
push eax
push edi
push edx
jmp 0x415fab
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [edi + 4]
push eax
mov eax, dword [esp + 0x10]
push edi
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00415460
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x18], 0xffffffff
call fcn.0044e9f1
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
push 0
push 0
push edx
push eax
push ecx
mov ecx, esi
call fcn.00415460
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10

Function at 0x416650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.00472506
mov ebx, dword [esp + 0x18]
mov esi, dword [eax + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0xf1
push ebx
push esi
call ebp
test eax, eax
jne 0x416685
push 0xf1
push ebx
xor esi, esi
push esi
call ebp
test eax, eax
je 0x4166a2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esp + 0x10], eax
je 0x4166a2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4166ac
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
movzx eax, word [esi + 6]
shl eax, 2
push eax
call fcn.00456408
mov ebx, eax
xor eax, eax
add esp, 4
cmp word [esi + 6], ax
jbe 0x4166e2
lea ecx, [esi + 8]
lea esp, [esp]
movzx edx, word [ecx]
mov dword [ebx + eax*4], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 2
cmp eax, edx
jl 0x4166d0
movzx eax, word [esi + 6]
push eax
push ebx
mov ecx, edi
call fcn.004731ab
push ebx
mov ebp, eax
call fcn.0045640d
add esp, 4
test ebp, ebp
je 0x416739
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea ebx, [ecx + 7]
push eax
lea edx, [eax + 7]
push ebx
push edx
mov ecx, edi
call fcn.00473425
movzx ecx, word [esi + 2]
mov eax, dword [esp + 0x18]
mov dword [edi + 0xb4], ecx
movzx edx, word [esi + 4]
push eax
mov ecx, edi
mov dword [edi + 0xb8], edx
call fcn.00415030
mov ebp, eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x41c540
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47e9f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
push 0
mov esi, ecx
push 0x8d
mov dword [esp + 0x18], esi
call fcn.004580f6
mov dword [esp + 0x1c], 0
mov dword [esi], 0x4857c0
lea edi, [esi + 0x70]
call fcn.00456579
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x1c], 1
lea ebx, [esi + 0x78]
call fcn.00456579
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x1c], 2
lea ebp, [esi + 0x7c]
call fcn.00456579
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp], eax
mov eax, dword [esp + 0x24]
push eax
mov ecx, edi
mov byte [esp + 0x20], 3
call fcn.00406d40
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x74], ecx
push edx
mov ecx, ebx
call fcn.00406d40
mov eax, dword [esp + 0x30]
push eax
mov ecx, ebp
call fcn.00406d40
mov ecx, dword [esp + 0x14]
pop edi
mov dword [esi + 0x80], 0
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x41c6c0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47ea38
mov eax, dword fs:[0]
push eax
mov eax, 0x1070
mov dword fs:[0], esp
call fcn.00437870
mov eax, dword [0x4a9e6c]
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [esp + 0x1088]
mov dword [esp + 0x1074], eax
mov dword [esp + 0xc], ebx
push ebx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1090], ebx
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x41c770
push 0x483e6c
mov ecx, ebp
call fcn.00406f90
mov eax, dword [esp + 0x108c]
add eax, 0xfffffff0
mov dword [esp + 0x1080], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41c891
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x41c891
push esi
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x1090]
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
mov word [esp + 0x54], bx
mov dword [esp + 0x50], 0x101
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0xfff
or eax, ecx
jge 0x41c7d2
push 0xfff
lea ecx, [esp + 0x1094]
call fcn.00404140
mov esi, dword [esp + 0x1090]
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x41c819
push 0x483e6c
mov ecx, ebp
call fcn.00406f90
lea eax, [esi - 0x10]
mov dword [esp + 0x1084], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x41c886
mov eax, dword [esp + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x7c]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x41c840
mov eax, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x28]
push ecx
push 0xfff
lea edx, [esp + 0x88]
push edx
push eax
call edi
test eax, eax
jne 0x41c840
lea ecx, [esp + 0x7c]
push ecx
mov ecx, ebp
call fcn.00406f90
lea eax, [esi - 0x10]
mov dword [esp + 0x1088], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
pop edi
test ecx, ecx
jg 0x41c890
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
mov ecx, dword [esp + 0x1078]
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1070]
pop ebx
call fcn.004368a4
add esp, 0x107c
ret
Function at 0x41e130
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47ebe8
push eax
mov dword fs:[0], esp
sub esp, 0x10
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareGreenGreenSettings
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41e204
push esi
push edi
push 0x100
call fcn.00456408
mov esi, eax
add esp, 4
xor eax, eax
mov ecx, 0x40
mov edi, esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push esi
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x24], 0x100
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41e1f9
push esi
lea ecx, [esp + 0x18]
call fcn.0040bc50
mov ecx, dword [esp + 0x2c]
push eax
mov dword [esp + 0x24], 0
call fcn.00406d40
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41e1f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
call fcn.0045640d
add esp, 4
pop edi
pop esi
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x41f7d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47edf8
push eax
mov dword fs:[0], esp
sub esp, 0x10
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareGreenGreenSettings
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41f8a4
push esi
push edi
push 0x100
call fcn.00456408
mov esi, eax
add esp, 4
xor eax, eax
mov ecx, 0x40
mov edi, esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push esi
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x24], 0x100
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41f899
push esi
lea ecx, [esp + 0x18]
call fcn.0040bc50
mov ecx, dword [esp + 0x2c]
push eax
mov dword [esp + 0x24], 0
call fcn.00406d40
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41f899
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
call fcn.0045640d
add esp, 4
pop edi
pop esi
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x420b60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x4a9e6c]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push esi
mov dword [esp + 0x110], eax
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x420bd4
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x120]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
call fcn.004368a4
add esp, 0x110
ret 0xc

Function at 0x4216c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x47f0a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x80]
test eax, eax
jne 0x4217c6
push esi
call fcn.00456579
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x14], 0
jge 0x42172b
push 0x104
lea ecx, [esp + 0xc]
call fcn.00404140
mov esi, dword [esp + 8]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test esi, esi
jne 0x42173f
xor eax, eax
jmp 0x421753
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421744
sub eax, edx
js 0x4217d6
cmp eax, dword [esi - 8]
jg 0x4217d6
push edi
push 0xd
mov dword [esi - 0xc], eax
push 0x483e58
lea ecx, [esp + 0x14]
mov byte [eax + esi], 0
call fcn.00404a90
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x42179b
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x42179b
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 0x80], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x4217c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
mov ecx, dword [esp + 8]
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0x80070057
call fcn.004013c0
int3
Function at 0x4231f0
Capabilities:
Delete file
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47f230
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov dl, byte [esp + 0x24]
xor eax, eax
test dl, dl
setne al
push str.main.backup
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 1
lea eax, [eax + eax + 2]
mov edi, eax
call fcn.00406f90
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push edi
push edx
push esi
call ebx
test eax, eax
jne 0x4232ca
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42326f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov byte [esp + 0x14], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42328e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4232b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor al, al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0xc
push edi
mov edi, dword [esp + 0x24]
push esi
push edi
call ebx
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423300
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov byte [esp + 0x14], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42331f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423341
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov al, bl
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0xc
Function at 0x423a50
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
sub esp, 0x54
push esi
mov edx, dword [esp + 0x68]
push edi
mov esi, ecx
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x54], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x10
push 1
push 0
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x7c]
push 0
push edx
push 0
mov dword [esp + 0x40], 0x44
mov word [esp + 0x70], 0
mov dword [esp + 0x6c], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x423ac2
pop edi
pop esi
add esp, 0x54
ret 0x10
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
push edx
mov dword [esi + 0x20], eax
mov dword [esi + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x54
ret 0x10

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

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4a9e6c]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
xor ebx, ebx
push ebx
mov dword [esp + 0x11c], eax
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
mov esi, ecx
mov ecx, dword [esi + 0x1c]
push ebx
push ecx
mov dword [esp + 0x28], ebx
call edi
test eax, eax
je 0x423b91
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ecx]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x423bc9
cmp eax, 0xff
mov dword [esp + 0x14], ebx
jbe 0x423b4c
mov eax, 0xff
mov ecx, dword [esi + 0x1c]
push ebx
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x24]
push eax
push ecx
call ebp
test eax, eax
je 0x423b91
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x423b91
mov edx, dword [esi]
mov byte [esp + eax + 0x18], bl
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call dword [edx + 0xc]
mov edx, dword [esi + 0x1c]
push ebx
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
push ebx
push edx
mov dword [esp + 0x28], ebx
call edi
test eax, eax
jne 0x423b30
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x423be5
cmp eax, 0xe8
je 0x423be5
mov eax, dword [esi]
push str.Read_stdout_pipe_error_r_n
mov ecx, esi
call dword [eax + 0x10]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x108]
call fcn.004368a4
add esp, 0x10c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x108]
call fcn.004368a4
add esp, 0x10c
ret
mov edx, dword [esi]
push str._r_n_TEST_INFO_:_Child_process_ended_r_n
mov ecx, esi
call dword [edx + 0xc]
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.004368a4
add esp, 0x10c
ret
Function at 0x423d30
Capabilities:
Create pipe
Create thread
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x486f50
push 0x438f44
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [0x4a9e6c]
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x60], esi
mov eax, dword [esi]
call dword [eax + 0x14]
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x70], 0xc
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 4], ebx
push ebx
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x423eab
push 2
push 1
push ebx
lea ecx, [ebp - 0x58]
push ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call edi
push eax
mov edx, dword [ebp - 0x48]
push edx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x423eab
push ebx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x423eab
push 2
push ebx
push ebx
lea eax, [esi + 0x1c]
push eax
call edi
push eax
mov ecx, dword [ebp - 0x50]
push ecx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x423eab
push 2
push ebx
push ebx
lea edx, [esi + 0x18]
push edx
call edi
push eax
mov eax, dword [ebp - 0x54]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x423eab
lea ecx, [ebp - 0x50]
push ecx
mov ecx, esi
call fcn.00423c10
lea edx, [ebp - 0x54]
push edx
mov ecx, esi
call fcn.00423c10
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.00423a50
test eax, eax
je 0x423eab
lea ecx, [ebp - 0x48]
push ecx
mov ecx, esi
call fcn.00423c10
lea edx, [ebp - 0x4c]
push edx
mov ecx, esi
call fcn.00423c10
lea eax, [ebp - 0x58]
push eax
mov ecx, esi
call fcn.00423c10
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 8], eax
lea ecx, [esi + 0xc]
push ecx
push ebx
push esi
push 0x423c50
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x423eab
mov dword [ebp - 0x5c], 1
mov dword [ebp - 4], 0xffffffff
call fcn.00423eda
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.004368a4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x424000
Capabilities:
Terminate thread

Disassembly:
mov dword [ecx], method.CCommandLineInfo.virtual_0
jmp fcn.00423f60
Function at 0x424030
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47f288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x424064
xor eax, eax
pop edi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push esi
call fcn.00456579
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
call fcn.00408140
mov esi, dword [esp + 0x1c]
mov eax, dword [esi - 0xc]
push 0
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [edi + 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x4240d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 8]
mov eax, edi
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret