joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487910
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4b1120]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, dword [esp + 0x134]
push 0x110
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], 0x114
call fcn.00447660
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc], 5
push edi
jb 0x487983
push esi
call fcn.004876f0
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00447645
add esp, 0x118
ret
mov edx, dword [esp + 0x134]
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x12c]
push edx
push eax
push ecx
push esi
call fcn.00487360
mov ecx, dword [esp + 0x130]
add esp, 0x14
pop edi
pop esi
xor ecx, esp
call fcn.00447645
add esp, 0x118
ret
Function at 0x4026c9
Capabilities:
Terminate process

Disassembly:
sub esp, 0
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.0040246b
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x41786b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x425458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408dc5
mov dword [ebp - 0x14], eax
cmp dword [0x4be9d8], esi
jne 0x41795e
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4178eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x417a3e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x417a3e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417a3e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4be9d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4be9dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4be9e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4be9e8], eax
test eax, eax
je 0x41795b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4be9e4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x417983
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x417976
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x417998
push 4
pop eax
jmp 0x417a40
cmp dword [ebp - 0x14], esi
je 0x417998
push dword [0x4be9d8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41797d
mov eax, dword [0x4be9e4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4179f6
cmp dword [0x4be9e8], edi
je 0x4179f6
push eax
call ebx
push dword [0x4be9e8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4179f6
test eax, eax
je 0x4179f6
call ecx
test eax, eax
je 0x4179eb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4179eb
test byte [ebp - 8], 1
jne 0x4179f6
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x417a26
mov eax, dword [0x4be9dc]
cmp eax, edi
je 0x417a23
push eax
call ebx
test eax, eax
je 0x417a23
call eax
mov esi, eax
test esi, esi
je 0x417a23
mov eax, dword [0x4be9e0]
cmp eax, edi
je 0x417a23
push eax
call ebx
test eax, eax
je 0x417a23
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4be9d8]
call ebx
test eax, eax
je 0x417a3e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x417a40
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406f87
mov esp, ebp
pop ebp
ret
Function at 0x4017b2
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
cmp dword [edi + 0x498], 2
jne 0x40181a
lea ebx, [edi + 0x4a8]
lea eax, [edi + 0x4a4]
push ebx
push eax
call fcn.00411795
mov esi, eax
test esi, esi
jns 0x4017f1
push str.Failed_to_create_implicit_elevated_connection_name_and_secret.
jmp 0x401964
push dword [edi + 0x4d8]
push dword [ebx]
push dword [edi + 0x4a4]
push dword [edi + 0x2c]
push dword [ebp + 0xc]
call fcn.00411bb2
mov esi, eax
test esi, esi
jns 0x40181a
push str.Failed_to_launch_unelevated_process.
jmp 0x401964
push 1
lea eax, [edi + 0x4a4]
push eax
call fcn.00411532
mov esi, eax
test esi, esi
jns 0x401838
push str.Failed_to_connect_to_unelevated_process.
jmp 0x401964
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 0x49c], eax
cmp eax, 0xffffffff
jne 0x401881
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 0x1d1
push str.engine.cpp
call fcn.0043bf09
push str.Failed_to_allocate_thread_local_storage_for_logging.
jmp 0x401964
push dword [edi + 0x4b4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x4018ca
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 0x1d6
push str.engine.cpp
call fcn.0043bf09
push str.Failed_to_set_elevated_pipe_into_thread_local_storage_for_logging.
jmp 0x401964
push edi
push dword [ebp + 8]
call fcn.0041b097
mov esi, eax
test esi, esi
jns 0x4018e3
push str.Failed_to_create_the_message_window.
jmp 0x401964
push 1
call fcn.0043f601
push edi
push 0x401415
call fcn.0043d14d
lea eax, [edi + 0x18]
push eax
lea eax, [edi + 0xf8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [edi + 0xb8]
push eax
lea eax, [edi + 0x100]
push eax
lea eax, [edi + 0x88]
push eax
lea eax, [edi + 0x2b8]
push eax
lea eax, [edi + 0x2c0]
push eax
lea eax, [edi + 0x2a8]
push eax
lea eax, [edi + 0x3d8]
push eax
push dword [edi + 0x4b8]
push dword [edi + 0x4b4]
push dword [edi + 0x49c]
call fcn.0041988c
push 0
push 0
mov esi, eax
call fcn.0043d14d
test esi, esi
jns 0x40196c
push str.Failed_to_pump_messages_from_parent_process.
push esi
call fcn.0043ccee
pop ecx
pop ecx
push 0
push 0
call fcn.0043d14d
push edi
call fcn.0041b058
cmp dword [ebp - 8], 0
je 0x401986
call fcn.004199c8
cmp dword [ebp - 4], 0
je 0x40199e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4066c8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push eax
push dword [ebx + 0x14]
push dword [ebp + 0xc]
call fcn.00403f48
mov esi, eax
test esi, esi
jns 0x4066f5
push str.Failed_to_format_variable_string.
jmp 0x406769
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40672b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070002
je 0x406727
cmp esi, 0x80070003
jne 0x406733
xor esi, esi
jmp 0x406733
test al, 0x10
push 1
pop eax
cmovne edi, eax
test esi, esi
jns 0x40674c
push dword [ebp - 4]
push dword [ebx]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.0043ccee
add esp, 0x10
jmp 0x406771
push 0
mov eax, edi
cdq
push edx
push eax
push dword [ebx + 4]
push dword [ebp + 0xc]
call fcn.00404e81
mov esi, eax
test esi, esi
jns 0x406771
push str.Failed_to_set_variable.
push esi
call fcn.0043ccee
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.00440bcd
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.00403f48
mov esi, eax
test esi, esi
jns 0x4067ba
push str.Failed_to_format_variable_string.
push esi
call fcn.0043ccee
pop ecx
pop ecx
jmp 0x40684a
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, 0x80070003
cmp eax, 0xffffffff
jne 0x4067e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x40680d
test al, 0x10
je 0x40680b
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00404e2c
mov esi, eax
test esi, esi
jns 0x40680d
push str.Failed_to_set_directory_search_path_variable.
push esi
call fcn.0043ccee
pop ecx
pop ecx
jmp 0x406849
mov esi, ebx
cmp esi, 0x80070002
je 0x406832
cmp esi, ebx
je 0x406832
test esi, esi
jns 0x406849
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.0043ccee
add esp, 0x10
jmp 0x406849
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.0043d1dc
add esp, 0x14
xor esi, esi
pop ebx
push dword [ebp - 4]
call fcn.00440bcd
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40685c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push eax
push dword [ebx + 0x14]
push dword [ebp + 0xc]
call fcn.00403f48
mov esi, eax
test esi, esi
jns 0x40688c
push str.Failed_to_format_variable_string.
jmp 0x406924
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4068ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4068e9
cmp eax, 3
je 0x4068e9
test eax, eax
je 0x406907
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x296
push str.search.cpp
call fcn.0043bf09
push dword [ebx + 0x14]
push str.Failed_get_to_file_attributes.__ls
push esi
call fcn.0043ccee
add esp, 0xc
jmp 0x40692c
push dword [ebp - 4]
push dword [ebx]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.0043d1dc
add esp, 0x10
jmp 0x406907
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.00404e81
mov esi, eax
test esi, esi
jns 0x40692c
push str.Failed_to_set_variable.
push esi
call fcn.0043ccee
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.00440bcd
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.00403f48
mov esi, eax
test esi, esi
jns 0x406975
push str.Failed_to_format_variable_string.
push esi
call fcn.0043ccee
pop ecx
pop ecx
jmp 0x4069f5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4069c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070002
je 0x4069df
cmp esi, 0x80070003
je 0x4069df
test esi, esi
jns 0x4069f5
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_file_search:__ls__for_path:__ls
push esi
call fcn.0043ccee
add esp, 0x10
jmp 0x4069f5
test al, 0x10
jne 0x4069df
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00404e2c
mov esi, eax
test esi, esi
jns 0x406997
push str.Failed_to_set_variable_to_file_search_path.
jmp 0x406968
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.0043d1dc
add esp, 0x10
xor esi, esi
push dword [ebp - 4]
call fcn.00440bcd
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x406e7f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edx
inc edi
mov dword [ebp - 8], edx
cmp dword [ebx + 0x24], edx
mov ecx, 0x101
mov eax, edi
mov dword [ebp - 0xc], edx
cmovne eax, ecx
mov dword [ebp - 0x10], edx
push edx
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
push dword [ebx + 0x1c]
push dword [ebp + 0xc]
call fcn.00403f48
mov esi, eax
test esi, esi
jns 0x406ed4
push str.Failed_to_format_key_string.
push esi
call fcn.0043ccee
pop ecx
pop ecx
jmp 0x406fd4
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebx + 0x18]
call fcn.0043e929
mov esi, eax
test esi, esi
js 0x406f88
cmp dword [ebx + 0x20], 0
je 0x406fa4
push 0
lea eax, [ebp - 8]
push eax
push dword [ebx + 0x20]
push dword [ebp + 0xc]
call fcn.00403f48
mov esi, eax
test esi, esi
jns 0x406f18
push str.Failed_to_format_value_string.
jmp 0x406ec7
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 0x406fa4
dec ecx
sub ecx, 1
je 0x406f71
test eax, eax
je 0x406fa4
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x32d
push str.search.cpp
call fcn.0043bf09
push str.Failed_to_query_registry_key_value.
jmp 0x406ec7
push dword [ebp - 8]
push dword [ebp - 4]
push str.Registry_value_not_found._Key___ls__Value___ls
push 2
call fcn.0043d1dc
add esp, 0x10
jmp 0x406fa2
push dword [ebp - 4]
cmp esi, 0x80070002
jne 0x406fc6
push str.Registry_key_not_found._Key___ls
push 2
call fcn.0043d1dc
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.00404e81
mov esi, eax
test esi, esi
jns 0x406feb
push str.Failed_to_set_variable.
jmp 0x406ec7
push str.Failed_to_open_registry_key._Key___ls
push esi
call fcn.0043ccee
add esp, 0xc
test esi, esi
jns 0x406feb
push esi
push dword [ebp - 4]
push str.RegistrySearchExists_failed:_ID__ls__HRESULT_0x_x
push 2
call fcn.0043d1dc
add esp, 0x10
push dword [ebp - 4]
call fcn.00440bcd
push dword [ebp - 8]
call fcn.00440bcd
cmp dword [ebp - 0xc], 0
je 0x40700a
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41050b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x469004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push 0x208
xor esi, esi
push esi
push eax
call fcn.0042b370
add esp, 0xc
mov dword [ebp - 0x21c], esi
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4105a9
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 0x27e
push str.logging.cpp
call fcn.0043bf09
push str.Failed_to_get_temp_folder.
push esi
call fcn.0043ccee
pop ecx
pop ecx
jmp 0x410696
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.004106be
mov esi, eax
test esi, esi
jns 0x4105ca
push str.Failed_to_get_length_of_temp_folder.
jmp 0x41059c
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 0x41066e
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push 0x452834
push eax
call fcn.0044036c
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x41060e
push str.Failed_to_format_session_id_as_a_string.
jmp 0x41068d
lea eax, [ebp - 0x214]
push eax
push SysReAllocString
push dword [ebp - 0x210]
call fcn.004106be
mov esi, eax
test esi, esi
jns 0x410632
push str.Failed_to_get_length_of_session_id_string.
jmp 0x41068d
push dword [ebp - 0x214]
mov edi, dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x210]
mov esi, edi
sub esi, dword [ebp - 0x214]
push dword [ebp - 0x214]
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 0x410674
mov edi, dword [ebp - 0x218]
push edi
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004405ef
mov esi, eax
test esi, esi
jns 0x410695
push str.Failed_to_copy_temp_folder.
push esi
call fcn.0043ccee
pop ecx
pop ecx
pop edi
cmp dword [ebp - 0x210], 0
je 0x4106aa
push dword [ebp - 0x210]
call fcn.00444e5d
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a807
mov esp, ebp
pop ebp
ret 4
Function at 0x411339
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
xor ebx, ebx
push edi
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 0x411399
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x411382
xor esi, esi
jmp 0x411399
cmp eax, 0x6d
je 0x4113fe
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x4113df
add ebx, dword [ebp - 4]
cmp ebx, 8
jb 0x41134f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [edi], ecx
mov dword [edi + 4], eax
test eax, eax
je 0x411460
push 0
push eax
call fcn.0043d360
mov dword [edi + 0xc], eax
test eax, eax
jne 0x41140d
mov esi, 0x8007000e
push esi
push 0x32b
push str.pipe.cpp
call fcn.0043bf09
push str.Failed_to_allocate_data_for_message.
jmp 0x4113f4
push esi
push 0x320
push str.pipe.cpp
call fcn.0043bf09
push str.Failed_to_read_message_from_pipe.
push esi
call fcn.0043ccee
pop ecx
pop ecx
jmp 0x411460
xor ecx, ecx
xor eax, eax
xor esi, esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
inc esi
jmp 0x4113a7
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 0x411459
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.0043bf09
push str.Failed_to_read_data_for_message.
jmp 0x4113f4
mov dword [edi + 8], 1
cmp dword [edi + 8], 0
jne 0x411474
cmp dword [edi + 0xc], 0
je 0x411474
push dword [edi + 0xc]
call fcn.0043d427
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41147f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push dword [ebp + 0x14]
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0041104b
mov esi, eax
test esi, esi
jns 0x4114b1
push str.Failed_to_allocate_message_to_write.
jmp 0x411512
mov dword [ebp + 0x14], edi
cmp dword [ebp - 4], edi
jbe 0x41151a
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 0x4114df
add edi, dword [ebp + 0x14]
cmp edi, dword [ebp - 4]
jb 0x4114b9
jmp 0x41151a
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.0043bf09
push str.Failed_to_write_message_type_to_pipe.
push esi
call fcn.0043ccee
pop ecx
pop ecx
cmp dword [ebp - 8], 0
je 0x411528
push dword [ebp - 8]
call fcn.0043d427
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4118e7
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
or dword [ebp - 0xc], 0xffffffff
xor eax, eax
push ebx
push esi
push edi
lea edi, [ebp - 0x18]
xor ebx, ebx
stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp dword [ebp + 0xc], ebx
jne 0x41196e
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 0x41195e
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.0043bf09
push str.Failed_to_create_the_security_descriptor_for_the_connection_event_and_pipe.
push esi
call fcn.0043ccee
pop ecx
pop ecx
jmp 0x411aa9
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 str..pipe_ls
push eax
call fcn.0044036c
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x41199f
push dword [edi]
push str.Failed_to_allocate_full_name_of_pipe:__ls
push esi
call fcn.0043ccee
add esp, 0xc
jmp 0x411aa9
xor ecx, ecx
lea eax, [ebp - 0x18]
cmp dword [ebp - 8], ecx
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 0x411a04
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.0043bf09
push dword [ebp - 4]
push str.Failed_to_create_pipe:__ls
jmp 0x411991
cmp dword [ebp + 0xc], 0
je 0x411a9a
push dword [edi]
lea eax, [ebp - 4]
push str..pipe_ls.Cache
push eax
call fcn.0044036c
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x411a30
push dword [edi]
push str.Failed_to_allocate_full_name_of_cache_pipe:__ls
jmp 0x411a88
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 0x411a9d
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.0043bf09
push dword [ebp - 4]
push str.Failed_to_create_pipe:__ls
push esi
call fcn.0043ccee
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411aa9
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 0x411ab7
push dword [ebp - 4]
call fcn.00444e5d
cmp dword [ebp - 8], 0
je 0x411ac6
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc