joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4055ca
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b8a0
push esi
call fcn.004059dd
push esi
call fcn.0040557d
mov edi, eax
test edi, edi
jne 0x4055eb
xor eax, eax
jmp 0x40563d
push edi
call fcn.00405c19
test byte [0x42f030], 0x80
je 0x405604
mov al, byte [edi]
test al, al
je 0x4055e7
cmp al, 0x5c
je 0x4055e7
sub edi, esi
jmp 0x40561c
call fcn.00405cb2
test eax, eax
je 0x405616
test byte [eax], 0x10
je 0x4055e7
push esi
call fcn.00405531
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405608
call fcn.004054ea
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4056ae
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4056dd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405721
test edi, edi
jne 0x4056e8
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40571b
Function at 0x405725
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.00405cf0
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405751
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405897
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42c628], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42c628
je 0x405795
push 1
push 0
push esi
call fcn.004056ae
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40589d
cmp eax, edi
jg 0x40589d
mov esi, 0x42c0a0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40589d
cmp eax, edi
jg 0x40589d
push esi
push ebp
push str._s_s_r_n
push 0x42bca0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call sub.KERNEL32.dll_lstrcatA
xor eax, eax
push eax
push 0x8000080
push 4
push eax
push eax
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x405897
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405890
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405890
cmp edi, dword [esp + 0x18]
jne 0x405890
push str._Rename__r_n
push esi
call fcn.00405642
test eax, eax
jne 0x4058a4
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004059dd
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42bca0
push eax
call fcn.0040568e
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x42f0b0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409300
push eax
call fcn.00405642
test eax, eax
je 0x40585b
inc eax
lea edx, [esi + edi]
cmp eax, edx
mov ecx, eax
jae 0x4058cd
mov dl, byte [ecx]
mov byte [ecx + ebx], dl
inc ecx
lea edx, [esi + edi]
cmp ecx, edx
jb 0x4058c0
sub eax, esi
jmp 0x40585d
Function at 0x4058d1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405935
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405924
cmp dword [ebp + 0x14], 1
je 0x405926
cmp dword [ebp + 0x14], 2
je 0x405926
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4059ff
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x405a20
mov ecx, dword [0x42e7fc]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x42f058]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x42dfc0
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x405bf3
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405bf3
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x405c00
inc ebx
cmp cl, 0xfc
jbe 0x405be6
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, SHGetFileInfoA
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
or ecx, edx
or eax, edx
inc ebx
mov dword [ebp - 0x14], ecx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0xc], eax
jne 0x405b91
and dword [ebp + 0xc], 0
and byte [edi], 0
push 4
pop esi
cmp dword [ebp - 0x10], esi
jne 0x405ab4
mov dword [ebp + 0xc], str.MicrosoftInternet_ExplorerQuick_Launch
jmp 0x405b2c
mov eax, dword [ebp - 0x18]
cmp eax, 0x2b
jne 0x405ad3
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004058d1
jmp 0x405b27
cmp eax, 0x26
jne 0x405b03
push edi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004058d1
cmp byte [edi], 0
jne 0x405b89
push str.C:Program_Files
push edi
call fcn.004059dd
jmp 0x405b27
cmp eax, 0x25
jne 0x405b16
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405b27
cmp eax, 0x24
jne 0x405b2c
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
jne 0x405b89
cmp dword [0x42f0a4], 0
jne 0x405b38
push 2
pop esi
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x18]
push dword [0x42f024]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405b6e
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.0040524c
cmp dword [ebp - 8], 0
jne 0x405b75
jmp 0x405b71
and byte [edi], 0
test esi, esi
jne 0x405b38
cmp byte [edi], 0
je 0x405b89
cmp dword [ebp + 0xc], 0
je 0x405b89
push dword [ebp + 0xc]
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00405c19
jmp 0x405bd7
cmp byte [ebp + 0xf], 0xfd
jne 0x405bc5
cmp esi, 0x1b
jne 0x405baa
push dword [0x42f024]
push edi
call fcn.0040593b
jmp 0x405bbb
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.004059dd
add esi, 0xffffffeb
cmp esi, 6
jae 0x405bd7
jmp 0x405b89
cmp byte [ebp + 0xf], 0xff
jne 0x405bd7
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.004059ff
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x42dfc0
jmp 0x405bf3
jne 0x405bf0
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x405bf3
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405a4b
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405c15
push eax
push dword [ebp + 8]
call fcn.004059dd
leave
ret 8
Function at 0x405d4d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ca2c], 0
push esi
jne 0x405d84
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d5e
mov dword [ecx*4 + 0x42ca28], eax
inc ecx
cmp ecx, 0x100
jl 0x405d59
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405db5
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ca28]
xor eax, esi
inc ecx
dec edx
jne 0x405d97
pop edi
not eax
pop esi
ret 0xc
Function at 0x43b7e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x43b805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x43b878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x43b83a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x43b86d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x43b86b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x43b831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x43b7fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x409240
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [0x42b170]
push esi
cmp eax, 0xffffffff
mov byte [esp + 7], 0x2b
je 0x4092ec
mov eax, dword [0x4320fc]
test eax, eax
je 0x4092ec
cmp dword [esp + 0xc], 2
je 0x40927b
push eax
push str.INTERNAL:_Exiting_with__u_jobserver_tokens__should_be_0__
push 0
call fcn.00412600
add esp, 0xc
jmp 0x4092ec
dec eax
mov dword [0x4320fc], eax
mov ecx, dword [0x42b174]
lea eax, [esp + 7]
push 1
push eax
push ecx
call fcn.0041fe78
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x4092c4
call fcn.0041aafa
cmp dword [eax], 4
jne 0x4092c4
mov eax, dword [0x42b174]
lea edx, [esp + 7]
push 1
push edx
push eax
call fcn.0041fe78
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x40929e
cmp esi, 1
je 0x4092db
push 0x431ab0
push str.write
call fcn.00412720
add esp, 8
mov eax, dword [0x4320fc]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [0x4320fc], eax
jne 0x409281
mov eax, dword [0x432098]
test eax, eax
je 0x409363
mov edx, dword [0x42b174]
mov esi, 1
push edx
call fcn.00420a2e
mov ecx, dword [0x42b170]
lea eax, [esp + 0xb]
push esi
push eax
push ecx
call fcn.00420c15
add esp, 0x10
cmp eax, esi
jne 0x40933a
mov eax, dword [0x42b170]
lea edx, [esp + 7]
push 1
push edx
push eax
inc esi
call fcn.00420c15
add esp, 0xc
cmp eax, 1
je 0x40931f
mov eax, dword [0x432098]
cmp esi, eax
je 0x409354
push eax
push esi
push str.INTERNAL:_Exiting_with__u_jobserver_tokens_available__should_be__u_
push 0
call fcn.00412600
add esp, 0x10
mov ecx, dword [0x42b170]
push ecx
call fcn.00420a2e
add esp, 4
pop esi
pop ecx
ret

Function at 0x409370
Capabilities:
Terminate process

Disassembly:
mov al, byte [0x4320cc]
push edi
mov edi, dword [esp + 8]
test al, al
jne 0x4093fd
mov eax, dword [0x432090]
mov byte [0x4320cc], 1
test eax, eax
je 0x409393
call fcn.00409130
xor eax, eax
push esi
test edi, edi
setne al
mov esi, eax
mov eax, dword [0x4320ec]
test eax, eax
jbe 0x4093ba
push esi
push 1
call fcn.004095d0
mov eax, dword [0x4320ec]
add esp, 8
test eax, eax
ja 0x4093a6
call fcn.00412a60
push 0
call fcn.004043a0
mov eax, dword [0x432070]
add esp, 4
test eax, eax
pop esi
je 0x4093d8
call fcn.004091d0
push edi
call fcn.00409240
mov eax, dword [0x43286c]
add esp, 4
test eax, eax
je 0x4093f3
push eax
call fcn.00425728
add esp, 4
push 0
call fcn.00409410
add esp, 4
push edi
call fcn.0041ac32
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x40a590
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebx, 1
call fcn.004027d0
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push eax
push esi
call fcn.00419e40
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
jne 0x40a610
push eax
call fcn.00419550
push eax
push str.process_easy___failed_failed_to_launch_process__e_ld__n
push 0x42ea30
call fcn.0041b0c8
mov eax, dword [esi]
add esp, 0x10
xor edi, edi
test eax, eax
je 0x40a5f6
push eax
push 0x42cc90
push 0x42ea30
call fcn.0041b0c8
mov eax, dword [esi + 4]
add esi, 4
add esp, 0xc
inc edi
test eax, eax
jne 0x40a5d8
push edi
push str._nCounted__d_args_in_failed_launch_n
push 0x42ea30
call fcn.0041b0c8
add esp, 0xc
push 1
call fcn.0041ac32
call fcn.00419410
mov edi, eax
test edi, edi
je 0x40a670
push edi
call fcn.00419550
push edi
mov esi, eax
call fcn.00419570
add esp, 8
mov ebx, eax
test esi, esi
je 0x40a64d
push esi
call fcn.00419fb0
push eax
push ebx
push esi
push str.make__e_d__rc_d_:__s
push 0x42ea30
call fcn.0041b0c8
add esp, 0x18
push edi
call fcn.00419b10
add esp, 4
cmp edi, ebp
je 0x40a670
push ebp
push edi
push str.make_reaped_child_pid__ld__still_waiting_for_pid__ld_n
push 0x42ea30
call fcn.0041b0c8
add esp, 0x10
jmp 0x40a61b
push ebx
call fcn.0041ac32
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x40b020
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
mov eax, dword [esp + 0x418]
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
mov dword [esp + 0x18], 0x42be64
jne 0x40b047
mov dword [esp + 0x18], 0x42cf18
lea eax, [esp + 0x20]
mov dword [esp + 0x10], ebp
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [esp + 0x18]
mov esi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x424]
mov dword [esp + 0x14], ebp
not ecx
dec ecx
mov ebx, 1
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ebp
lea eax, [edx + ecx + 0xa]
mov dword [esp + 0x1c], eax
jne 0x40b0a9
lea ecx, [esp + 0x20]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [esp + 0x14], ebx
cmp esi, ebp
jbe 0x40b169
mov edx, dword [esp + 0x1c]
add edx, esi
cmp edx, 0x400
jae 0x40b169
cmp ebx, 0x10000
jae 0x40b169
mov al, byte [esp + esi + 0x1f]
cmp al, 0x5c
mov eax, 0x431ab0
je 0x40b0df
mov eax, 0x42c16c
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x424]
push ecx
push ebx
push edx
push eax
lea eax, [esp + esi + 0x30]
push str._s_s__x._s
push eax
call fcn.0041a5c5
add esp, 0x18
lea ecx, [esp + 0x20]
mov edi, eax
push 0
push 0x180
push 1
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40b1b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x40b160
cmp eax, 0xb7
je 0x40b160
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x40b1a2
lea edx, [esp + 0x20]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [esp + 0x14], 1
jmp 0x40b161
inc ebx
test esi, esi
ja 0x40b0af
mov edx, dword [esp + 0x42c]
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [edx], 0xffffffff
jne 0x40b186
mov dword [esp + 0x10], str.Cannot_create_a_temporary_file_n
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00412690
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret
push eax
call fcn.00419fb0
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x40b169
lea esi, [edi + esi + 1]
push esi
call fcn.00412780
mov ecx, esi
mov ebx, eax
mov eax, ecx
lea esi, [esp + 0x24]
mov edi, ebx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0041c061
mov ecx, dword [esp + 0x438]
add esp, 0xc
mov dword [ecx], eax
mov eax, dword [esp + 0x428]
test eax, eax
je 0x40b20c
movsx eax, byte [ebx]
test eax, eax
mov ecx, ebx
je 0x40b20c
cmp eax, 0x5c
jne 0x40b203
mov byte [ecx], 0x2f
movsx eax, byte [ecx + 1]
inc ecx
test eax, eax
jne 0x40b1fb
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x410
ret
Function at 0x40faa0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x60
push ebx
push esi
mov esi, dword [esp + 0x6c]
push edi
push eax
push 0x40fc10
push esi
call fcn.0040f720
mov ebx, eax
add esp, 0xc
test ebx, ebx
jge 0x40faca
pop edi
pop esi
pop ebx
add esp, 0x60
ret
jne 0x40fad8
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x60
ret
push 0x1b6
push 2
push esi
call fcn.004234e2
mov esi, eax
add esp, 0xc
test esi, esi
jge 0x40fafa
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
add esp, 0x60
ret
push 0
push ebx
push esi
call fcn.00422a7c
add esp, 0xc
test eax, eax
jl 0x40fbd6
lea ecx, [esp + 0x30]
push 0x3c
push ecx
push esi
call fcn.00420c15
add esp, 0xc
cmp eax, 0x3c
jne 0x40fbd6
push 0
push ebx
push esi
call fcn.00422a7c
add esp, 0xc
test eax, eax
jl 0x40fbd6
lea edx, [esp + 0x30]
push 0x3c
push edx
push esi
call fcn.0041fe78
add esp, 0xc
cmp eax, 0x3c
jne 0x40fbd6
lea eax, [esp + 0xc]
push eax
push esi
call fcn.004257ae
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x40fb88
call fcn.0041aafa
cmp dword [eax], 4
jne 0x40fb88
lea ecx, [esp + 0xc]
push ecx
push esi
call fcn.004257ae
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x40fb69
test edi, edi
jl 0x40fbd6
mov eax, dword [esp + 0x28]
mov edx, 0x20202020
mov dword [esp + 0x40], edx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x48], edx
push 0x4297f4
push ecx
mov dword [esp + 0x54], edx
call fcn.0041a5c5
push 0
push ebx
push esi
call fcn.00422a7c
add esp, 0x18
test eax, eax
jl 0x40fbd6
lea edx, [esp + 0x30]
push 0x3c
push edx
push esi
call fcn.0041fe78
add esp, 0xc
cmp eax, 0x3c
je 0x40fbf9
call fcn.0041aafa
mov edi, dword [eax]
push esi
call fcn.00420a2e
add esp, 4
call fcn.0041aafa
mov dword [eax], edi
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
add esp, 0x60
ret
push esi
call fcn.00420a2e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x60
ret
Function at 0x411120
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x432870]
sub esp, 0x24
test eax, eax
push ebx
mov ebx, dword [esp + 0x2c]
push esi
jne 0x411144
mov eax, dword [ebx]
push eax
push str.touch__s
push 0
call fcn.00412580
add esp, 0xc
mov ecx, dword [ebx]
push ecx
call fcn.00412a70
add esp, 4
test eax, eax
je 0x411164
mov edx, dword [ebx]
push edx
call fcn.00412c10
add esp, 4
pop esi
pop ebx
add esp, 0x24
ret
mov eax, dword [ebx]
push 0x1b6
push 0x102
push eax
call fcn.004234e2
mov esi, eax
add esp, 0xc
test esi, esi
jge 0x411187
mov ecx, dword [ebx]
push ecx
jmp 0x411292
lea edx, [esp + 8]
push edi
push edx
push esi
call fcn.004257ae
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x4111bc
call fcn.0041aafa
cmp dword [eax], 4
jne 0x4111bc
lea eax, [esp + 0xc]
push eax
push esi
call fcn.004257ae
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x41119d
test edi, edi
pop edi
jge 0x4111dc
mov ecx, dword [ebx]
push ecx
push str.touch:_fstat:
call fcn.00412720
add esp, 8
mov eax, 1
pop esi
pop ebx
add esp, 0x24
ret
lea edx, [esp + 0x30]
push 1
push edx
push esi
call fcn.00420c15
add esp, 0xc
test eax, eax
jge 0x41120b
mov eax, dword [ebx]
push eax
push str.touch:_read:
call fcn.00412720
add esp, 8
mov eax, 1
pop esi
pop ebx
add esp, 0x24
ret
push 0
push 0
push esi
call fcn.00422a7c
add esp, 0xc
test eax, eax
jge 0x411237
mov ecx, dword [ebx]
push ecx
push str.touch:_lseek:
call fcn.00412720
add esp, 8
mov eax, 1
pop esi
pop ebx
add esp, 0x24
ret
lea edx, [esp + 0x30]
push 1
push edx
push esi
call fcn.0041fe78
add esp, 0xc
test eax, eax
jge 0x411266
mov eax, dword [ebx]
push eax
push str.touch:_write:
call fcn.00412720
add esp, 8
mov eax, 1
pop esi
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4112aa
push esi
call fcn.00420a2e
mov ecx, dword [ebx]
push 0x1b6
push 0x202
push ecx
call fcn.004234e2
mov esi, eax
add esp, 0x10
test esi, esi
jge 0x4112aa
mov edx, dword [ebx]
push edx
push str.touch:_open:
call fcn.00412720
add esp, 8
mov eax, 1
pop esi
pop ebx
add esp, 0x24
ret
push esi
call fcn.00420a2e
add esp, 4
xor eax, eax
pop esi
pop ebx
add esp, 0x24
ret

Function at 0x411a70
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 8]
push esi
push eax
call fcn.00411fd0
mov esi, dword [esp + 0xc]
push eax
push 4
mov dword [esi + 4], eax
mov dword [esi + 0x10], eax
call fcn.0041c26f
xor ecx, ecx
add esp, 0xc
cmp eax, ecx
mov dword [esi], eax
jne 0x411ab8
mov ecx, dword [esi + 4]
shl ecx, 2
push ecx
push str.cant_allocate__ld_bytes_for_hash_table:_memory_exhausted
push 0x42ea30
call fcn.0041b0c8
add esp, 0xc
push 1
call fcn.0041ac32
mov eax, dword [esi + 4]
mov dword [esi + 0xc], ecx
mov edx, eax
mov dword [esi + 0x14], ecx
shr edx, 4
sub eax, edx
mov edx, dword [esp + 0x18]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], edx
pop esi
ret
Function at 0x414b50
Capabilities:
Create pipe

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
push 2
push 1
lea eax, [esp + 0x1c]
push 0
push eax
mov dword [esp + 0x30], 0xc
mov dword [esp + 0x38], 1
mov dword [esp + 0x34], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
push 0xfffffffffffffff6
call edi
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x414bb5
call ebp
push eax
push str.create_child_process:_DuplicateHandle_In__failed__e_ld__n
push 0
call fcn.00412690
add esp, 0xc
push 2
push 1
lea ecx, [esp + 0x20]
push 0
push ecx
call esi
push eax
push 0xfffffffffffffff4
call edi
push eax
call esi
push eax
call ebx
test eax, eax
jne 0x414be3
call ebp
push eax
push str.create_child_process:_DuplicateHandle_Err__failed__e_ld__n
push 0
call fcn.00412690
add esp, 0xc
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x414c10
call ebp
push eax
push str.CreatePipe___failed__e_ld__n
push 0
call fcn.00412690
add esp, 0xc
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
call fcn.00419590
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x414c3b
push str.windows32_openpipe___:_process_init_fd___failed_n
push eax
call fcn.00412690
add esp, 8
call fcn.004027d0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push 0
mov edx, dword [eax]
push edx
push ecx
push eax
push esi
call fcn.004195d0
add esp, 0x14
test eax, eax
push esi
jne 0x414c94
call fcn.004193e0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
push 0
push eax
mov dword [edx], esi
call fcn.0041c061
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
push 8
push ecx
mov dword [esi], eax
call fcn.0041c061
add esp, 0x14
mov dword [esi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
call fcn.00419b10
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword [eax + 4], 0xffffffff
mov dword [eax], 0xffffffff
mov eax, dword [esp + 0x28]
pop ebx
mov dword [eax], 0xffffffff
add esp, 0x1c
ret