joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401928
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov edi, ebx
test eax, eax
je 0x4019eb
cmp word [eax], bx
je 0x4019eb
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
jne 0x4019a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x20f
push str.engine.cpp
call fcn.004300d9
push str.Failed_to_get_command_line.
push esi
call fcn.00430a57
pop ecx
pop ecx
jmp 0x401a48
mov esi, ebx
cmp dword [ebp - 0x10], ebx
jle 0x4019eb
mov ecx, dword [edi + esi*4]
movzx eax, word [ecx]
cmp eax, 0x2d
je 0x4019bd
cmp eax, 0x2f
jne 0x4019d9
push 0xffffffffffffffff
push 0x43b530
push 0xffffffffffffffff
lea eax, [ecx + 2]
push eax
push 1
push 0x7f
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x4019e5
push dword [edi + esi*4]
lea eax, [ebp - 4]
push eax
call fcn.004312a7
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x4019ad
push ebx
lea eax, [ebp - 8]
push eax
call fcn.00431c19
mov esi, eax
test esi, esi
jns 0x401a0a
push str.Failed_to_get_current_process_path.
push esi
call fcn.00430a57
pop ecx
pop ecx
jmp 0x401a3d
cmp dword [ebp - 4], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
mov eax, 0x43b580
cmova eax, dword [ebp - 4]
push eax
push dword [ebp - 8]
call fcn.00431ece
mov esi, eax
test esi, esi
jns 0x401a3d
push dword [ebp - 8]
push str.Failed_to_re_launch_bundle_process_after_RunOnce:__ls
push esi
call fcn.00430a57
add esp, 0xc
test edi, edi
je 0x401a48
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc], ebx
je 0x401a59
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 4], ebx
je 0x401a66
push dword [ebp - 4]
call fcn.004380ab
cmp dword [ebp - 8], ebx
je 0x401a73
push dword [ebp - 8]
call fcn.004380ab
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x405b42
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push dword [ebx + 0x14]
push dword [ebp + 0xc]
call fcn.00403a92
mov esi, eax
test esi, esi
jns 0x405b6f
push str.Failed_to_format_variable_string.
jmp 0x405be3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405ba5
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070002
je 0x405ba1
cmp esi, 0x80070003
jne 0x405bad
xor esi, esi
jmp 0x405bad
test al, 0x10
push 1
pop eax
cmovne edi, eax
test esi, esi
jns 0x405bc6
push dword [ebp - 4]
push dword [ebx]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.00430a57
add esp, 0x10
jmp 0x405beb
push 0
mov eax, edi
cdq
push edx
push eax
push dword [ebx + 4]
push dword [ebp + 0xc]
call fcn.004045df
mov esi, eax
test esi, esi
jns 0x405beb
push str.Failed_to_set_variable.
push esi
call fcn.00430a57
pop ecx
pop ecx
cmp dword [ebp - 4], 0
je 0x405bf9
push dword [ebp - 4]
call fcn.004380ab
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x405c02
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.00403a92
mov esi, eax
test esi, esi
jns 0x405c2d
push str.Failed_to_format_variable_string.
jmp 0x405c70
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405c51
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x405c7f
test al, 0x10
je 0x405c7a
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.0040461f
mov esi, eax
test esi, esi
jns 0x405c7f
push str.Failed_to_set_directory_search_path_variable.
push esi
call fcn.00430a57
pop ecx
pop ecx
jmp 0x405cbf
mov esi, 0x80070003
cmp esi, 0x80070002
je 0x405ca8
cmp esi, 0x80070003
je 0x405ca8
test esi, esi
jns 0x405cbf
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.00430a57
add esp, 0x10
jmp 0x405cbf
push esi
push dword [ebp - 4]
push dword [edi]
push str.Directory_search:__ls__did_not_find_path:__ls__reason:_0x_x
push 2
call fcn.00430f28
add esp, 0x14
xor esi, esi
cmp dword [ebp - 4], 0
je 0x405ccd
push dword [ebp - 4]
call fcn.004380ab
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x405cd5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push dword [ebx + 0x14]
push dword [ebp + 0xc]
call fcn.00403a92
mov esi, eax
test esi, esi
jns 0x405d05
push str.Failed_to_format_variable_string.
jmp 0x405d9d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405d78
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x405d62
cmp eax, 3
je 0x405d62
test eax, eax
je 0x405d80
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x27d
push str.search.cpp
call fcn.004300d9
push dword [ebx + 0x14]
push str.Failed_get_to_file_attributes.__ls
push esi
call fcn.00430a57
add esp, 0xc
jmp 0x405da5
push dword [ebp - 4]
push dword [ebx]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.00430f28
add esp, 0x10
jmp 0x405d80
test al, 0x10
push 1
pop eax
cmove edi, eax
push 0
mov eax, edi
cdq
push edx
push eax
push dword [ebx + 4]
push dword [ebp + 0xc]
call fcn.004045df
mov esi, eax
test esi, esi
jns 0x405da5
push str.Failed_to_set_variable.
push esi
call fcn.00430a57
pop ecx
pop ecx
cmp dword [ebp - 4], 0
je 0x405db3
push dword [ebp - 4]
call fcn.004380ab
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x405dbc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.00403a92
mov esi, eax
test esi, esi
jns 0x405de7
push str.Failed_to_format_variable_string.
jmp 0x405e51
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405e32
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070002
je 0x405e5b
cmp esi, 0x80070003
je 0x405e5b
test esi, esi
jns 0x405e71
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_file_search:__ls__for_path:__ls
push esi
call fcn.00430a57
add esp, 0x10
jmp 0x405e71
test al, 0x10
jne 0x405e5b
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.0040461f
mov esi, eax
test esi, esi
jns 0x405e09
push str.Failed_to_set_variable_to_file_search_path.
push esi
call fcn.00430a57
pop ecx
pop ecx
jmp 0x405e71
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.00430f28
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], 0
je 0x405e7f
push dword [ebp - 4]
call fcn.004380ab
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x406286
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edx, edx
xor edi, edi
inc edi
cmp dword [ebx + 0x24], edx
mov ecx, 0x101
mov eax, edi
cmovne eax, ecx
push edx
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
push dword [ebx + 0x1c]
mov dword [ebp - 4], edx
push dword [ebp + 0xc]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
call fcn.00403a92
mov esi, eax
test esi, esi
jns 0x4062d3
push str.Failed_to_format_key_string.
jmp 0x406369
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebx + 0x18]
call fcn.004324d5
mov esi, eax
test esi, esi
js 0x40638a
cmp dword [ebx + 0x20], 0
je 0x4063a6
push 0
lea eax, [ebp - 8]
push eax
push dword [ebx + 0x20]
push dword [ebp + 0xc]
call fcn.00403a92
mov esi, eax
test esi, esi
jns 0x406317
push str.Failed_to_format_value_string.
jmp 0x406369
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
sub ecx, 0
je 0x4063a6
dec ecx
dec ecx
je 0x406373
test eax, eax
je 0x4063a6
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x30f
push str.search.cpp
call fcn.004300d9
push str.Failed_to_query_registry_key_value.
push esi
call fcn.00430a57
pop ecx
pop ecx
jmp 0x4063d3
push dword [ebp - 8]
push dword [ebp - 4]
push str.Registry_value_not_found._Key___ls__Value___ls
push 2
call fcn.00430f28
add esp, 0x10
jmp 0x4063a4
push dword [ebp - 4]
cmp esi, 0x80070002
jne 0x4063c5
push str.Registry_key_not_found._Key___ls
push 2
call fcn.00430f28
add esp, 0xc
xor edi, edi
push 0
mov eax, edi
cdq
push edx
push eax
push dword [ebx + 4]
push dword [ebp + 0xc]
call fcn.004045df
mov esi, eax
test esi, esi
jns 0x4063ea
push str.Failed_to_set_variable.
jmp 0x406369
push str.Failed_to_open_registry_key._Key___ls
push esi
call fcn.00430a57
add esp, 0xc
test esi, esi
jns 0x4063ea
push esi
push dword [ebp - 4]
push str.RegistrySearchExists_failed:_ID__ls__HRESULT_0x_x
push 2
call fcn.00430f28
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x4063f8
push dword [ebp - 4]
call fcn.004380ab
cmp dword [ebp - 8], 0
je 0x406406
push dword [ebp - 8]
call fcn.004380ab
cmp dword [ebp - 0xc], 0
je 0x406415
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x409edf
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push 0x1c
pop eax
xor edi, edi
push 0x23
pop ecx
test ebx, ebx
cmovne eax, ecx
push eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.00431d07
mov esi, eax
test esi, esi
jns 0x409f31
mov eax, str.per_user
mov ecx, str.per_machine
test ebx, ebx
cmove ecx, eax
push ecx
push str.Failed_to_find_local__hs_appdata_directory.
push esi
call fcn.00430a57
add esp, 0xc
jmp 0x409fa0
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 4], edi
jbe 0x409fa0
mov eax, edi
mov dword [ebp + 8], edi
mov ecx, dword [ebx]
add ecx, eax
lea eax, [ebp - 4]
push eax
push dword [ecx + 4]
mov dword [ebp + 0xc], ecx
push dword [ebp - 0xc]
call fcn.004314a9
mov esi, eax
test esi, esi
js 0x409f93
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp - 4]
call fcn.004314a9
mov esi, eax
test esi, esi
js 0x409f93
push dword [ebp - 8]
call fcn.00436816
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [ebp + 8]
inc edi
add eax, 0xc
mov dword [ebp + 8], eax
cmp edi, dword [ebx + 4]
jb 0x409f3e
jmp 0x409fa0
push str.Failed_to_allocate_regid_folder_path.
push esi
call fcn.00430a57
pop ecx
pop ecx
cmp dword [ebp - 8], 0
je 0x409fae
push dword [ebp - 8]
call fcn.004380ab
cmp dword [ebp - 4], 0
je 0x409fbc
push dword [ebp - 4]
call fcn.004380ab
cmp dword [ebp - 0xc], 0
je 0x409fca
push dword [ebp - 0xc]
call fcn.004380ab
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x40a0f6
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
push ebx
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
call fcn.00436186
cmp dword [ebp - 0xc], 5
mov edi, dword [ebp + 0xc]
mov ebx, 0x43fc38
cmovge ebx, esi
test edi, edi
je 0x40a173
push dword [ebp + 0x10]
push str.Resume
push edi
call fcn.004329c8
mov esi, eax
test esi, esi
jns 0x40a150
push str.Failed_to_write_Resume_value.
jmp 0x40a256
cmp dword [ebp + 0x10], 3
jne 0x40a173
push 1
push str.Installed
push edi
call fcn.004329c8
mov esi, eax
test esi, esi
jns 0x40a179
push str.Failed_to_write_Installed_value.
jmp 0x40a256
cmp dword [ebp + 0x10], 1
je 0x40a1f5
cmp dword [ebp + 0x14], 0
jne 0x40a1f5
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x20006
push ebx
push dword [edi + 0x4c]
call fcn.004324d5
mov esi, eax
cmp esi, 0x80070002
je 0x40a1f1
cmp esi, 0x80070003
je 0x40a1f1
push dword [edi + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
cmp eax, 2
cmove eax, ecx
test eax, eax
je 0x40a25e
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x49c
push str.registration.cpp
call fcn.004300d9
push str.Failed_to_delete_run_key_value.
jmp 0x40a256
xor esi, esi
jmp 0x40a25e
mov edi, dword [ebp + 8]
push 0x43b530
push dword [edi + 0x58]
lea eax, [ebp - 8]
push str._ls___ls
push eax
call fcn.00433cea
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x40a21e
push str.Failed_to_format_resume_command_line_for_RunOnce.
jmp 0x40a256
lea eax, [ebp - 4]
push eax
push 0x20006
push ebx
push dword [edi + 0x4c]
call fcn.00432129
mov esi, eax
test esi, esi
jns 0x40a23d
push str.Failed_to_create_run_key.
jmp 0x40a256
push dword [ebp - 8]
push dword [edi + 0xc]
push dword [ebp - 4]
call fcn.00432a16
mov esi, eax
test esi, esi
jns 0x40a25e
push str.Failed_to_write_run_key_value.
push esi
call fcn.00430a57
pop ecx
pop ecx
cmp dword [ebp - 8], 0
je 0x40a26c
push dword [ebp - 8]
call fcn.004380ab
cmp dword [ebp - 4], 0
je 0x40a27b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40e054
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4560d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004267c0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40e0e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x25d
push str.logging.cpp
call fcn.004300d9
push str.Failed_to_get_temp_folder.
jmp 0x40e106
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0040e205
mov esi, eax
test esi, esi
jns 0x40e113
push str.Failed_to_get_length_of_temp_folder.
push esi
call fcn.00430a57
pop ecx
pop ecx
jmp 0x40e1df
push edi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40e1b7
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push 0x442c44
push eax
call fcn.00433cea
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x40e157
push str.Failed_to_format_session_id_as_a_string.
jmp 0x40e1d6
lea eax, [ebp - 0x214]
push eax
push SysReAllocString
push dword [ebp - 0x210]
call fcn.0040e205
mov esi, eax
test esi, esi
jns 0x40e17b
push str.Failed_to_get_length_of_session_id_string.
jmp 0x40e1d6
push dword [ebp - 0x214]
mov edi, dword [ebp - 0x218]
push dword [ebp - 0x210]
mov esi, edi
sub esi, dword [ebp - 0x214]
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
lea eax, [eax + esi*2]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
cmove edi, esi
jmp 0x40e1bd
mov edi, dword [ebp - 0x218]
push edi
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00433f88
mov esi, eax
test esi, esi
jns 0x40e1de
push str.Failed_to_copy_temp_folder.
push esi
call fcn.00430a57
pop ecx
pop ecx
pop edi
cmp dword [ebp - 0x210], 0
je 0x40e1f3
push dword [ebp - 0x210]
call fcn.004380ab
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004267af
leave
ret 4
Function at 0x40ed7f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
and dword [ebp - 0xc], esi
and dword [ebp - 8], esi
and dword [ebp - 4], esi
push edi
xor ebx, ebx
push 0
lea eax, [ebp - 4]
push eax
push 8
pop eax
sub eax, ebx
push eax
lea eax, [ebp - 0xc]
add eax, ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x40eddf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40edc8
xor esi, esi
jmp 0x40eddf
cmp eax, 0x6d
je 0x40ee3c
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40ee25
add ebx, dword [ebp - 4]
cmp ebx, 8
jb 0x40ed95
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [edi], ecx
mov dword [edi + 4], eax
test eax, eax
je 0x40eea6
push 0
push eax
call fcn.00431078
mov dword [edi + 0xc], eax
test eax, eax
jne 0x40ee4b
mov esi, 0x8007000e
push esi
push 0x32b
push str.pipe.cpp
call fcn.004300d9
push str.Failed_to_allocate_data_for_message.
jmp 0x40ee95
push esi
push 0x320
push str.pipe.cpp
call fcn.004300d9
push str.Failed_to_read_message_from_pipe.
jmp 0x40ee95
xor ecx, ecx
xor eax, eax
xor esi, esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
inc esi
jmp 0x40eded
push 0
lea ecx, [ebp - 4]
push ecx
push dword [edi + 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ee9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x32f
push str.pipe.cpp
call fcn.004300d9
push str.Failed_to_read_data_for_message.
push esi
call fcn.00430a57
pop ecx
pop ecx
jmp 0x40eea6
mov dword [edi + 8], 1
cmp dword [edi + 8], 0
jne 0x40eeba
cmp dword [edi + 0xc], 0
je 0x40eeba
push dword [edi + 0xc]
call fcn.00431137
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x40eec3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
xor edi, edi
push dword [ebp + 0x10]
mov dword [ebp - 8], edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call fcn.0040ea93
mov esi, eax
test esi, esi
jns 0x40eef5
push str.Failed_to_allocate_message_to_write.
jmp 0x40ef56
mov dword [ebp + 0x14], edi
cmp dword [ebp - 4], edi
jbe 0x40ef5e
push 0
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp - 4]
sub eax, edi
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ef23
add edi, dword [ebp + 0x14]
cmp edi, dword [ebp - 4]
jb 0x40eefd
jmp 0x40ef5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x2f8
push str.pipe.cpp
call fcn.004300d9
push str.Failed_to_write_message_type_to_pipe.
push esi
call fcn.00430a57
pop ecx
pop ecx
cmp dword [ebp - 8], 0
je 0x40ef6c
push dword [ebp - 8]
call fcn.00431137
pop edi
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x40f31a
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
or dword [ebp - 0xc], 0xffffffff
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
xor ebx, ebx
stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
jne 0x40f3a1
push ebx
lea eax, [ebp - 8]
push eax
push 1
push str.D:_A__GA___SY__A__GA___BA__A__GRGW0x00100000___WD_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x40f391
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x121
push str.pipe.cpp
call fcn.004300d9
push str.Failed_to_create_the_security_descriptor_for_the_connection_event_and_pipe.
push esi
call fcn.00430a57
pop ecx
pop ecx
jmp 0x40f4dc
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push dword [edi]
push 0x442cd0
push eax
call fcn.00433cea
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x40f3d2
push dword [edi]
push str.Failed_to_allocate_full_name_of_pipe:__ls
push esi
call fcn.00430a57
add esp, 0xc
jmp 0x40f4dc
xor ecx, ecx
cmp dword [ebp - 8], ecx
lea eax, [ebp - 0x18]
cmove eax, ecx
push eax
push 1
mov eax, 0x10000
push eax
push eax
push 1
push ebx
push 0x80003
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40f437
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x131
push str.pipe.cpp
call fcn.004300d9
push dword [ebp - 4]
push str.Failed_to_create_pipe:__ls
jmp 0x40f3c4
cmp dword [ebp + 0xc], 0
je 0x40f4cd
push dword [edi]
lea eax, [ebp - 4]
push str..pipe_ls.Cache
push eax
call fcn.00433cea
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x40f463
push dword [edi]
push str.Failed_to_allocate_full_name_of_cache_pipe:__ls
jmp 0x40f4bb
push 0
push 1
mov eax, 0x10000
push eax
push eax
push 1
push 0
push 0x80003
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
jne 0x40f4d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x13d
push str.pipe.cpp
call fcn.004300d9
push dword [ebp - 4]
push str.Failed_to_create_pipe:__ls
push esi
call fcn.00430a57
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40f4dc
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], ebx
and dword [eax], 0
cmp dword [ebp - 4], 0
je 0x40f4ea
push dword [ebp - 4]
call fcn.004380ab
cmp dword [ebp - 8], 0
je 0x40f4f9
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc