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

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10074273
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.10072309
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100722e1
jmp 0x1007427f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x1007592d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x1007596f
call fcn.1007b2c5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1007596f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10075966
xor eax, eax
jmp 0x10075977
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1007597d
pop edi
pop esi
pop ebx
ret 4
Function at 0x407458
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x407562
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x4074ab
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.00403424
jmp 0x407549
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.0040740c
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.0040742c
mov ebx, eax
test esi, esi
je 0x4074d3
dec esi
test esi, esi
jl 0x4074d3
cmp edi, ebx
jne 0x4074b2
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.004034f4
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.00403788
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403584
cmp eax, 2
jl 0x407549
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x407549
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403584
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x407549
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403584
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.00403788
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407569
lea eax, [ebp - 0x110]
call fcn.00403340
ret

Function at 0x4075a4
Capabilities:
Get file attributes

Disassembly:
call fcn.00405c98
push eax
call sub.kernel32.dll_GetFileAttributesA
and al, 0x10
sete al
ret

Function at 0x4075fc
Capabilities:
Get file attributes

Disassembly:
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x40760b
dec eax
and al, 0x10
setne al
ret

Function at 0x4078a8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407912
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.004034f4
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.004076bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407919
lea eax, [ebp - 0x10c]
call fcn.00403340
ret

Function at 0x407920
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40798a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.004034f4
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.004076bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407991
lea eax, [ebp - 0x10c]
call fcn.00403340
ret
Function at 0x407998
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407a02
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.004034f4
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.004076bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407a09
lea eax, [ebp - 0x10c]
call fcn.00403340
ret

Function at 0x407a10
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov edi, ecx
mov esi, edx
mov ebx, eax
push esp
push 0
mov eax, esi
call fcn.00403748
push eax
mov eax, ebx
call fcn.00403748
push eax
call sub.kernel32.dll_GetTempFileNameA
mov eax, edi
mov edx, esp
mov ecx, 0x105
call fcn.0040356c
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x407a50
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403738
mov eax, dword [ebp - 8]
call fcn.00403738
xor eax, eax
push ebp
push 0x407ba0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00403340
cmp dword [ebp - 4], 0
je 0x407ab8
mov eax, dword [ebp - 4]
call fcn.00403584
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x407ab8
lea eax, [ebp - 4]
mov edx, 0x407bb8
call fcn.0040358c
cmp dword [ebp - 8], 0
je 0x407ae7
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407ae7
lea ecx, [ebp - 0x150]
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.004071b4
mov edx, dword [ebp - 0x150]
lea eax, [ebp - 8]
call fcn.004033d8
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004035d0
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403748
push eax
call sub.kernel32.dll_FindFirstFileA
mov esi, eax
test esi, esi
setne al
jmp 0x407b70
test dword [ebp - 0x14c], 0x10
ja 0x407b5d
cmp dword [ebx], 0
je 0x407b30
mov eax, ebx
mov edx, 0x407bc4
call fcn.0040358c
push dword [ebx]
push dword [ebp - 4]
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.0040356c
push dword [ebp - 0x150]
mov eax, ebx
mov edx, 3
call fcn.00403644
lea eax, [ebp - 0x14c]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
neg eax
sbb eax, eax
neg eax
test al, al
jne 0x407b13
push esi
call sub.kernel32.dll_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407ba7
lea eax, [ebp - 0x150]
call fcn.00403340
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403364
ret
Function at 0x407c74
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x24], edx
mov edi, eax
xor eax, eax
push ebp
push 0x407d65
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00403584
mov ebx, eax
lea eax, [ebx + 2]
call fcn.00402600
mov esi, eax
mov eax, edi
call fcn.00403748
mov edx, eax
mov eax, esi
call fcn.004070cc
mov byte [esi + ebx + 1], 0
cmp ebx, 0
jl 0x407ccf
cmp byte [esi + ebx], 0x3b
jne 0x407cc9
mov byte [esi + ebx], 0
dec ebx
cmp ebx, 0xffffffff
jne 0x407cbf
lea eax, [ebp - 0x1e]
xor ecx, ecx
mov edx, 0x1e
call fcn.00402808
cmp dword [0x4754fc], 0
je 0x407cf2
mov eax, dword [0x4754fc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], 3
mov dword [ebp - 0x16], esi
mov word [ebp - 0xe], 0x50
mov dword [ebp - 0xc], 0xffffffff
push 0x407d80
push edi
push 0x407d90
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00403644
mov eax, dword [ebp - 0x24]
call fcn.00403748
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1e]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
test bl, bl
je 0x407d48
mov ebx, dword [ebp - 0xc]
cmp ebx, 1
sbb ebx, ebx
neg ebx
mov eax, esi
call fcn.00402618
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407d6c
lea eax, [ebp - 0x24]
call fcn.00403340
ret

Function at 0x408104
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov ebx, eax
pushal
call fcn.00407e00
call fcn.00405f00
mov dword [ebx + 0x18], eax
popal
pushal
lea eax, [ebx + 0x1c]
call fcn.00403394
popal
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x408203
pushal
lea edx, [ebx + 0x1c]
mov eax, dword [edx]
call fcn.004076bc
mov eax, dword [ebx + 0x20]
test eax, eax
jne 0x408179
call fcn.0040c818
mov dword [ebx + 0x20], eax
popal
pushal
push ecx
xchg ecx, eax
mov edx, 0x40816b
call fcn.004073a4
test al, al
pop edx
jne 0x408161
mov edx, 0x408177
mov eax, dword [ebx + 0x20]
call fcn.0040c844
jmp 0x408179
popal
add esp, 0xfffffec0
xor edx, edx
push edx
push edx
xchg ecx, eax
mov edx, esp
call fcn.00407e28
lea eax, [esp + 4]
mov edx, dword [ebx + 0x1c]
pop ecx
push ecx
call fcn.004035d0
call fcn.00405cbc
pop eax
mov edx, esp
push eax
push edx
push eax
call sub.kernel32.dll_FindFirstFileA
mov edi, eax
inc eax
mov eax, esp
pushfd
call fcn.00403340
popfd
pop ecx
je 0x4081fd
mov ecx, dword [esp]
push dword [ebp + 8]
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.00407e60
test al, al
je 0x4081ec
mov eax, 0x140
push eax
call fcn.00402600
push eax
xchg edx, eax
mov eax, dword [ebx + 0x18]
call fcn.00405f7c
pop edx
pop ecx
mov eax, esp
call fcn.004026d4
push esp
push edi
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4081b9
push edi
call sub.kernel32.dll_FindClose
add esp, 0x140
xor eax, eax
xchg dword [ebx + 0x20], eax
call fcn.00405e84
pop edi
pop ebx
pop ebp
ret 4
Function at 0x408244
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00403748
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete al
pop ebp
ret

Function at 0x408470
Capabilities:
Create thread

Disassembly:
push ebx
mov eax, dword [0x4749b0]
mov byte [eax], 1
mov edx, dword [0x405afc]
xor eax, eax
call fcn.00405e3c
mov ebx, eax
mov byte [ebx + 0x18], 1
lea eax, [ebx + 0x1e]
push eax
push 4
push ebx
push 0x408460
push 0
push 0
call sub.kernel32.dll_CreateThread
mov dword [ebx + 0x1a], eax
mov eax, ebx
pop ebx
ret

Function at 0x408500
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov byte [ebx + 0x18], 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jbe 0x40851b
mov byte [ebx + 0x18], 1
pop ebx
ret
cmp word [ebx + 0x2c], 0
je 0x40852a
mov edx, ebx
mov eax, dword [ebx + 0x2e]
call dword [ebx + 0x2a]
pop ebx
ret

Function at 0x40852c
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, dword [ebx + 0x1a]
push eax
call sub.kernel32.dll_TerminateThread
mov byte [ebx + 0x19], 1
pop ebx
ret

Function at 0x4088cc
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408964
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x18], 0
jne 0x408919
mov eax, dword [ebx + 0x19]
call fcn.00403748
push eax
push esi
mov eax, edi
call fcn.00403748
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403748
push eax
call sub.kernel32.dll_GetPrivateProfileIntA
mov dword [ebp - 4], eax
jmp 0x40894e
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x19]
call fcn.00403748
push eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.00407044
mov eax, dword [ebp - 8]
call fcn.00403748
push eax
mov eax, edi
call fcn.00403748
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403748
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40896b
lea eax, [ebp - 8]
call fcn.00403340
ret
Function at 0x408978
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 8
add esp, 0xfffff004
push eax
dec eax
jne 0x408981
mov eax, dword [ebp - 4]
add esp, 4
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp byte [ebx + 0x18], 0
jne 0x4089ef
mov byte [ebp - 0x8000], 0
mov eax, dword [ebx + 0x19]
call fcn.00403748
push eax
push 0x8000
lea eax, [ebp - 0x8000]
push eax
mov eax, esi
call fcn.00403748
push eax
mov eax, edi
call fcn.00403748
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403748
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x8000]
mov ecx, 0x8000
call fcn.0040356c
jmp 0x408a20
mov eax, dword [ebp + 8]
mov edx, esi
call fcn.004033d8
mov eax, dword [ebx + 0x19]
call fcn.00403748
push eax
mov eax, esi
call fcn.00403748
push eax
mov eax, edi
call fcn.00403748
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403748
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b2b8
Capabilities:
Get graphical window text

Disassembly:
xchg edx, eax
movzx ecx, byte [edx + 0x3a]
jecxz 0x40b2c7
mov edx, dword [edx + 0x36]
jmp fcn.004034f4
mov ecx, dword [edx + 0x18]
jecxz 0x40b2bf
push ebx
push esi
xchg ebx, eax
mov esi, ecx
push esi
call sub.user32.dll_GetWindowTextLengthA
mov edx, eax
inc eax
push eax
mov eax, ebx
call fcn.004038b4
pop edx
mov ecx, dword [ebx]
jecxz 0x40b2ef
push edx
push ecx
push esi
call sub.user32.dll_GetWindowTextA
pop esi
pop ebx
ret

Function at 0x40b360
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x27], 0xef
test dl, dl
je 0x40b36c
or byte [eax + 0x27], 0x10
mov byte [eax + 0x4e], dl
mov ecx, dword [eax + 0x18]
jecxz 0x40b388
push eax
je 0x40b389
call dword [0x472164]
pop eax
push 5
push dword [eax + 0x18]
call sub.user32.dll_ShowWindow
ret
mov byte [eax + 0x15a], dl
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x472164]
ret

Function at 0x40ddf4
Capabilities:
Capture screenshot

Disassembly:
push ebx
mov ebx, eax
call fcn.0040d774
je 0x40de39
mov eax, ebx
push edx
call fcn.0040e1cc
pop edx
cmp eax, edx
je 0x40de39
test edx, edx
mov eax, ebx
jne 0x40de18
pop ebx
inc edx
jmp fcn.0040e1bc
mov byte [ebx + 0x49], dl
cmp dl, 5
jne 0x40de21
dec edx
push edx
xor edx, edx
call fcn.0040e1bc
mov eax, dword [ebx + 0x3d]
movzx eax, word [eax + 0xe]
call fcn.0040d204
pop edx
cmp al, dl
xchg ebx, eax
pop ebx
jne fcn.0040ded4
ret
Function at 0x40ebcc
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
cmp byte [0x4724e0], 0xff
je 0x40ebe2
mov al, byte [0x4724e0]
jmp 0x40ec42
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x40ec1b
mov al, 3
mov edx, dword [esp + 4]
cmp edx, 6
jb 0x40ec07
mov al, 6
jmp 0x40ec3d
cmp edx, 5
jb 0x40ec3d
cmp dword [esp + 8], 1
jb 0x40ec17
mov al, 5
jmp 0x40ec3d
mov al, 4
jmp 0x40ec3d
cmp eax, 1
jne 0x40ec3b
mov al, 1
cmp dword [esp + 4], 4
ja 0x40ec37
cmp dword [esp + 4], 4
jne 0x40ec3d
cmp dword [esp + 8], 0xa
jb 0x40ec3d
mov al, 2
jmp 0x40ec3d
xor eax, eax
mov byte [0x4724e0], al
add esp, 0x94
ret
Function at 0x419a14
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, dword [0x4749bc]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
push eax
call sub.user32.dll_OpenClipboard
xor eax, eax
push ebp
push 0x419aad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xc]
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x419a55
call fcn.00402ef8
jmp 0x419ab4
mov dword [ebx + 0x1c8], esi
mov ax, word [0x475628]
mov word [ebp - 0x18], ax
mov dword [ebp - 0x10], 1
mov dword [ebp - 8], 1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.0041982c
test eax, eax
jne 0x419a96
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [0x475628]
push eax
call sub.user32.dll_SetClipboardData
jmp 0x419a9a
mov byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419ab4
call sub.user32.dll_CloseClipboard
ret
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41b160
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41b22e
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor eax, eax
mov dword [ebx + 0x2c], eax
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402808
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
xor eax, eax
mov al, byte [ebx + 0x38]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0x4000000
push 0
push 0
push 0
push edi
push 0x41b248
push dword [ebp - 4]
lea eax, [ebp - 0x60]
mov edx, 3
call fcn.00403644
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.0040717c
mov eax, dword [ebp - 0x5c]
call fcn.00403748
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x41b213
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0x2c], eax
mov esi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b235
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.00403364
ret
Function at 0x41b42c
Capabilities:
Create pipe

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov esi, eax
cmp dword [esi + 8], 0
je 0x41b441
mov bl, 1
jmp 0x41b4eb
mov dword [esp], 0xc
mov dword [esp + 8], 0xffffffff
xor eax, eax
mov dword [esp + 4], eax
push 0
lea eax, [esp + 4]
push eax
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 8]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x41b4a4
push 0x2000
lea eax, [esp + 4]
push eax
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x10]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
je 0x41b4a4
push 0x2000
lea eax, [esp + 4]
push eax
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 0x18]
push eax
call sub.kernel32.dll_CreatePipe
test eax, eax
jne 0x41b4a8
xor ebx, ebx
jmp 0x41b4aa
mov bl, 1
test bl, bl
je 0x41b4d7
push 0
push 1
mov eax, dword [esi + 0x10]
push eax
call sub.kernel32.dll_SetHandleInformation
push 0
push 1
mov eax, dword [esi + 0x18]
push eax
call sub.kernel32.dll_SetHandleInformation
push 0
push 1
mov eax, dword [esi + 0xc]
push eax
call sub.kernel32.dll_SetHandleInformation
jmp 0x41b4eb
call sub.kernel32.dll_GetLastError_1
mov edi, eax
mov eax, esi
call fcn.0041b4f4
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x41b7a8
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41b920
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 4], 0
jne 0x41b905
xor eax, eax
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [ebx + 0x28], eax
mov eax, ebx
call fcn.0041b42c
test al, al
jne 0x41b803
call sub.kernel32.dll_GetLastError_1
mov edx, eax
lea eax, [ebx + 0xa0]
call fcn.0040ff3c
jmp 0x41b905
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x44
call fcn.00402808
mov dword [ebp - 0x44], 0x44
mov dword [ebp - 0x18], 0x101
xor eax, eax
mov al, byte [ebx + 0x38]
mov word [ebp - 0x14], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0x10
push 0xffffffffffffffff
push 0
push 0
push esi
push 0x41b938
push edi
lea eax, [ebp - 0x5c]
mov edx, 3
call fcn.00403644
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
call fcn.0040717c
mov eax, dword [ebp - 0x58]
call fcn.00403748
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x41b8e8
mov eax, dword [ebp - 0x4c]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x50]
push eax
call sub.kernel32.dll_CloseHandle_1
cmp byte [ebx + 0x39], 1
jne 0x41b8d4
cmp dword [ebx + 0x20], 0
jne 0x41b8b5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x94]
call fcn.00410144
mov eax, ebx
call fcn.0041b550
push 0xffffffffffffffff
mov eax, dword [ebx + 0x20]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x41b905
lea eax, [ebx + 0x94]
call fcn.00410144
mov eax, ebx
call fcn.0041b550
jmp 0x41b905
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x44], eax
mov eax, ebx
call fcn.0041b4f4
lea eax, [ebx + 0xa0]
mov edx, dword [ebp - 0x44]
call fcn.0040ff3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b927
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00403364
ret