joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40419a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40426b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4041ca
xor esi, esi
jmp 0x40426b
cmp eax, 3
je 0x4041db
push 0
push edi
call fcn.00404273
test eax, eax
jne 0x4041c3
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x404258
push 0x5c
mov edx, eax
pop edi
cmp dx, di
jne 0x4041f4
mov ebx, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4041ed
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x404258
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call fcn.0040419a
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x40426a
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x404254
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x404245
xor esi, esi
inc esi
jmp 0x40426a
test esi, esi
jle 0x40426a
movzx esi, si
or esi, 0x80070000
jmp 0x40426a
xor esi, esi
jmp 0x40426a
mov esi, 0x80070003
push esi
push 0x72
push str.c:_agent_work13_s_srclibsdutildirutil.cpp
call fcn.004038f5
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404297
test al, 0x10
je 0x404297
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x404294
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x409b90
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.004073aa
mov esi, eax
test esi, esi
jns 0x409bbb
push str.Failed_to_format_variable_string.
jmp 0x409c35
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
cmp edx, 0xffffffff
jne 0x409bf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x409be0
movzx esi, si
or esi, 0x80070000
cmp esi, 0x80070002
je 0x409bf0
cmp esi, 0x80070003
jne 0x409bf2
xor esi, esi
xor eax, eax
jmp 0x409c00
xor eax, eax
xor ecx, ecx
test dl, 0x10
je 0x409c02
inc eax
xor ecx, ecx
test esi, esi
jns 0x409c1b
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.0044311f
add esp, 0x10
jmp 0x409c3d
push 0
push ecx
push eax
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00408363
mov esi, eax
test esi, esi
jns 0x409c3d
push str.Failed_to_set_variable.
push esi
call fcn.0044311f
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.004028a8
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x409c4d
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.004073aa
mov esi, eax
test esi, esi
jns 0x409c83
push str.Failed_to_format_variable_string.
push esi
call fcn.0044311f
pop ecx
pop ecx
jmp 0x409d0e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409ca8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x409cce
movzx esi, si
or esi, 0x80070000
jmp 0x409cce
test al, 0x10
je 0x409cc9
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00408309
mov esi, eax
test esi, esi
jns 0x409cce
push str.Failed_to_set_directory_search_path_variable.
jmp 0x409c76
mov esi, 0x80070003
cmp esi, 0x80070002
je 0x409cf7
cmp esi, 0x80070003
je 0x409cf7
test esi, esi
jns 0x409d0e
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.0044311f
add esp, 0x10
jmp 0x409d0e
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.00443606
add esp, 0x14
xor esi, esi
push dword [ebp - 4]
call fcn.004028a8
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x409d1e
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.004073aa
mov esi, eax
test esi, esi
jns 0x409d4c
push str.Failed_to_format_variable_string.
jmp 0x409dea
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
cmp edx, 0xffffffff
jne 0x409dc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x409da9
cmp esi, 3
je 0x409da9
test esi, esi
je 0x409dbd
jle 0x409d7f
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x409d86
mov esi, 0x80004005
push esi
push 0x28b
push str.c:_agent_work13_s_src_burnengine_search.cpp
call fcn.004038f5
push dword [edi + 0x14]
push str.Failed_get_to_file_attributes.__ls
push esi
call fcn.0044311f
add esp, 0xc
jmp 0x409df2
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.00443606
add esp, 0x10
xor eax, eax
jmp 0x409dce
xor eax, eax
xor ecx, ecx
test edx, 0x10
jne 0x409dd0
inc eax
xor ecx, ecx
push 0
push ecx
push eax
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00408363
mov esi, eax
test esi, esi
jns 0x409df2
push str.Failed_to_set_variable.
push esi
call fcn.0044311f
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.004028a8
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x409e02
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.004073aa
mov esi, eax
test esi, esi
jns 0x409e38
push str.Failed_to_format_variable_string.
push esi
call fcn.0044311f
pop ecx
pop ecx
jmp 0x409ebb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409e84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x409e5b
movzx esi, si
or esi, 0x80070000
cmp esi, 0x80070002
je 0x409ea5
cmp esi, 0x80070003
je 0x409ea5
test esi, esi
jns 0x409ebb
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_file_search:__ls__for_path:__ls
push esi
call fcn.0044311f
add esp, 0x10
jmp 0x409ebb
test al, 0x10
jne 0x409ea5
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00408309
mov esi, eax
test esi, esi
jns 0x409e5b
push str.Failed_to_set_variable_to_file_search_path.
jmp 0x409e2b
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.00443606
add esp, 0x10
xor esi, esi
push dword [ebp - 4]
call fcn.004028a8
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x40a33a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push eax
mov edi, dword [ebx + 0x24]
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push dword [ebx + 0x1c]
push dword [ebp + 0xc]
call fcn.004073aa
mov esi, eax
test esi, esi
jns 0x40a377
push str.Failed_to_format_key_string.
jmp 0x40a47e
neg edi
lea eax, [ebp - 0xc]
push eax
sbb edi, edi
and edi, 0x100
inc edi
push edi
push dword [ebp - 4]
push dword [ebx + 0x18]
call fcn.00443efe
mov esi, eax
test esi, esi
jns 0x40a3ca
push dword [ebp - 4]
cmp esi, 0x80070002
jne 0x40a3b7
push str.Registry_key_not_found._Key___ls
push 2
call fcn.00443606
add esp, 0xc
jmp 0x40a460
push str.Failed_to_open_registry_key._Key___ls
push esi
call fcn.0044311f
add esp, 0xc
jmp 0x40a486
xor edi, edi
xor eax, eax
inc edi
cmp dword [ebx + 0x20], eax
je 0x40a464
push eax
lea eax, [ebp - 8]
push eax
push dword [ebx + 0x20]
push dword [ebp + 0xc]
call fcn.004073aa
mov esi, eax
test esi, esi
jns 0x40a3f8
push str.Failed_to_format_value_string.
jmp 0x40a47e
xor ecx, ecx
lea eax, [ebp - 0x10]
push ecx
push ecx
push eax
push ecx
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
sub eax, 0
je 0x40a462
dec eax
sub eax, 1
je 0x40a44b
xor eax, eax
test esi, esi
je 0x40a464
jle 0x40a42d
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x40a434
mov esi, 0x80004005
push esi
push 0x322
push str.c:_agent_work13_s_src_burnengine_search.cpp
call fcn.004038f5
push str.Failed_to_query_registry_key_value.
jmp 0x40a47e
push dword [ebp - 8]
push dword [ebp - 4]
push str.Registry_value_not_found._Key___ls__Value___ls
push 2
call fcn.00443606
add esp, 0x10
xor edi, edi
xor eax, eax
push 0
push eax
push edi
push dword [ebx + 4]
push dword [ebp + 0xc]
call fcn.00408363
mov esi, eax
test esi, esi
jns 0x40a49d
push str.Failed_to_set_variable.
push esi
call fcn.0044311f
pop ecx
pop ecx
test esi, esi
jns 0x40a49d
push esi
push dword [ebp - 4]
push str.RegistrySearchExists_failed:_ID__ls__HRESULT_0x_x
push 2
call fcn.00443606
add esp, 0x10
push dword [ebp - 4]
call fcn.004028a8
push dword [ebp - 8]
call fcn.004028a8
cmp dword [ebp - 0xc], 0
je 0x40a4bc
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 0x40b2c8
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x40b31c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x40b2f3
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x40b2fa
mov edi, 0x80004005
push edi
push 0x140
push str.c:_agent_work13_s_src_burnengine_section.cpp
call fcn.004038f5
push str.Failed_to_get_module_handle_to_process.
push edi
call fcn.0044311f
pop ecx
pop ecx
jmp 0x40b469
mov eax, 0x5a4d
cmp ax, word [esi]
je 0x40b345
mov esi, 0x8007000d
push esi
push 0x14a
push str.c:_agent_work13_s_src_burnengine_section.cpp
mov edi, esi
call fcn.004038f5
push str.Failed_to_find_valid_DOS_image_header_in_buffer.
push esi
jmp 0x40b310
mov ecx, dword [esi + 0x3c]
cmp dword [ecx + esi], 0x4550
je 0x40b36f
mov esi, 0x8007000d
push esi
push 0x155
push str.c:_agent_work13_s_src_burnengine_section.cpp
mov edi, esi
call fcn.004038f5
push str.Failed_to_find_valid_NT_image_header_in_buffer.
jmp 0x40b342
movzx eax, word [ecx + esi + 0x14]
push ebx
add eax, ecx
lea ebx, [esi + 0x18]
push 8
add ebx, eax
push 0x4521e0
push ebx
call fcn.0042f9d3
add esp, 0xc
test eax, eax
je 0x40b3b4
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 6]
xor eax, eax
inc eax
cmp eax, ecx
jae 0x40b3db
add ebx, 0x28
inc eax
cmp dword [ebx], 0x7869772e
jne 0x40b39b
cmp dword [ebx + 4], 0x6e727562
jne 0x40b39b
cmp dword [ebx + 0x10], 0x34
jae 0x40b3f9
mov esi, 0x8007000d
push esi
push 0x17a
push str.c:_agent_work13_s_src_burnengine_section.cpp
mov edi, esi
call fcn.004038f5
push dword [ebx + 0x10]
push str.Failed_to_read_section_info__data_to_short:__u
jmp 0x40b423
mov esi, 0x8007000d
push esi
push 0x16e
push str.c:_agent_work13_s_src_burnengine_section.cpp
mov edi, esi
call fcn.004038f5
push str.Failed_to_find_Burn_section.
jmp 0x40b460
mov ebx, dword [ebx + 0xc]
add ebx, esi
cmp dword [ebx + 4], 2
je 0x40b42e
mov esi, 0x8007000d
push esi
push 0x184
push str.c:_agent_work13_s_src_burnengine_section.cpp
mov edi, esi
call fcn.004038f5
push dword [ebx + 4]
push str.Failed_to_read_section_info__unsupported_version:__08x
push esi
call fcn.0044311f
add esp, 0xc
jmp 0x40b468
mov edx, dword [ebp + 8]
mov ecx, edi
mov eax, dword [edx + ecx*4]
cmp eax, dword [ebx + ecx*4 + 8]
jne 0x40b444
inc ecx
cmp ecx, 4
jne 0x40b433
jmp 0x40b468
mov esi, 0x8007000d
push esi
push 0x18a
push str.c:_agent_work13_s_src_burnengine_section.cpp
mov edi, esi
call fcn.004038f5
push str.Bundle_guid_didnt_match_the_guid_in_the_PE_Header_in_memory.
push esi
call fcn.0044311f
pop ecx
pop ecx
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x413bc4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x46e008]
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.0042f710
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 0x413c62
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x413c39
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x413c40
mov esi, 0x80004005
push esi
push 0x28d
push str.c:_agent_work13_s_src_burnenginelogging.cpp
call fcn.004038f5
push str.Failed_to_get_temp_folder.
push esi
call fcn.0044311f
pop ecx
pop ecx
jmp 0x413d53
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00401cc3
mov esi, eax
test esi, esi
jns 0x413c83
push str.Failed_to_get_length_of_temp_folder.
jmp 0x413c55
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 0x413d2b
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push 0x457290
push eax
call fcn.0040204d
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x413cca
push str.Failed_to_format_session_id_as_a_string.
jmp 0x413d4a
lea eax, [ebp - 0x214]
push eax
push SysReAllocString
push dword [ebp - 0x210]
call fcn.00401cc3
mov esi, eax
test esi, esi
jns 0x413cee
push str.Failed_to_get_length_of_session_id_string.
jmp 0x413d4a
push dword [ebp - 0x214]
mov esi, dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x210]
mov edi, esi
sub edi, dword [ebp - 0x214]
push dword [ebp - 0x214]
lea eax, [eax + edi*2]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x413d31
mov esi, edi
jmp 0x413d31
mov esi, dword [ebp - 0x218]
push esi
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004022c9
mov esi, eax
test esi, esi
jns 0x413d52
push str.Failed_to_copy_temp_folder.
push esi
call fcn.0044311f
pop ecx
pop ecx
pop edi
cmp dword [ebp - 0x210], 0
je 0x413d67
push dword [ebp - 0x210]
call fcn.0040278d
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042de30
leave
ret 4
Function at 0x4149a6
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 0x414a08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xea
jne 0x4149f2
xor esi, esi
jmp 0x414a08
cmp esi, 0x6d
je 0x414a6d
test esi, esi
jle 0x414a06
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x414a4e
add ebx, dword [ebp - 4]
cmp ebx, 8
jb 0x4149bc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [edi], ecx
mov dword [edi + 4], eax
test eax, eax
je 0x414acf
push 0
push eax
call fcn.00403a1a
mov dword [edi + 0xc], eax
test eax, eax
jne 0x414a7c
mov esi, 0x8007000e
push esi
push 0x323
push str.c:_agent_work13_s_src_burnenginepipe.cpp
call fcn.004038f5
push str.Failed_to_allocate_data_for_message.
jmp 0x414a63
push esi
push 0x318
push str.c:_agent_work13_s_src_burnenginepipe.cpp
call fcn.004038f5
push str.Failed_to_read_message_from_pipe.
push esi
call fcn.0044311f
pop ecx
pop ecx
jmp 0x414acf
xor ecx, ecx
xor eax, eax
xor esi, esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
inc esi
jmp 0x414a16
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 0x414ac8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x414aaa
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x414ab1
mov esi, 0x80004005
push esi
push 0x327
push str.c:_agent_work13_s_src_burnenginepipe.cpp
call fcn.004038f5
push str.Failed_to_read_data_for_message.
jmp 0x414a63
mov dword [edi + 8], 1
cmp dword [edi + 8], 0
jne 0x414ae3
cmp dword [edi + 0xc], 0
je 0x414ae3
push dword [edi + 0xc]
call fcn.00403adf
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x414aec
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.004146bb
mov esi, eax
test esi, esi
jns 0x414b1e
push str.Failed_to_allocate_message_to_write.
jmp 0x414b7f
mov dword [ebp + 0x14], edi
cmp dword [ebp - 4], edi
jbe 0x414b87
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 0x414b4c
add edi, dword [ebp + 0x14]
cmp edi, dword [ebp - 4]
jb 0x414b26
jmp 0x414b87
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x414b63
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x414b6a
mov esi, 0x80004005
push esi
push 0x2f0
push str.c:_agent_work13_s_src_burnenginepipe.cpp
call fcn.004038f5
push str.Failed_to_write_message_type_to_pipe.
push esi
call fcn.0044311f
pop ecx
pop ecx
cmp dword [ebp - 8], 0
je 0x414b95
push dword [ebp - 8]
call fcn.00403adf
pop edi
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x414f5a
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 0x414fe1
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 0x414fd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x414fa8
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x414faf
mov esi, 0x80004005
push esi
push 0x116
push str.c:_agent_work13_s_src_burnenginepipe.cpp
call fcn.004038f5
push str.Failed_to_create_the_security_descriptor_for_the_connection_event_and_pipe.
push esi
call fcn.0044311f
pop ecx
pop ecx
jmp 0x41511d
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.0040204d
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x415012
push dword [edi]
push str.Failed_to_allocate_full_name_of_pipe:__ls
push esi
call fcn.0044311f
add esp, 0xc
jmp 0x41511d
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x18]
neg eax
sbb eax, eax
and 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 0x415078
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x415057
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x41505e
mov esi, 0x80004005
push esi
push 0x126
push str.c:_agent_work13_s_src_burnenginepipe.cpp
call fcn.004038f5
push dword [ebp - 4]
push str.Failed_to_create_pipe:__ls
jmp 0x415004
cmp dword [ebp + 0xc], 0
je 0x41510e
push dword [edi]
lea eax, [ebp - 4]
push str..pipe_ls.Cache
push eax
call fcn.0040204d
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x4150a4
push dword [edi]
push str.Failed_to_allocate_full_name_of_cache_pipe:__ls
jmp 0x4150fc
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 0x415111
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4150dd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4150e4
mov esi, 0x80004005
push esi
push 0x132
push str.c:_agent_work13_s_src_burnenginepipe.cpp
call fcn.004038f5
push dword [ebp - 4]
push str.Failed_to_create_pipe:__ls
push esi
call fcn.0044311f
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41511d
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 0x41512b
push dword [ebp - 4]
call fcn.0040278d
cmp dword [ebp - 8], 0
je 0x41513a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4182a6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x46e008]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x270], 0
lea eax, [ebp - 0x25c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x208
push 0
push eax
call fcn.0042f710
xor eax, eax
lea edi, [ebp - 0x26c]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x46eb90]
test eax, eax
jne 0x418468
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00443757
cmp dword [ebp - 0x270], 0
lea eax, [ebp - 0x25c]
je 0x4183a3
mov edi, 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x418364
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x418343
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x41834a
mov esi, 0x80004005
push esi
push 0x460
push str.c:_agent_work13_s_src_burnenginecache.cpp
call fcn.004038f5
push str.Failed_to_get_windows_path_for_working_folder.
jmp 0x41847c
push edi
lea eax, [ebp - 0x25c]
push eax
call fcn.004034a9
mov esi, eax
test esi, esi
jns 0x418381
push str.Failed_to_ensure_windows_path_for_working_folder_ended_in_backslash.
jmp 0x41847c
push str.Temp_
push edi
lea eax, [ebp - 0x25c]
push eax
call fcn.004037c6
mov esi, eax
test esi, esi
jns 0x4183eb
push str.Failed_to_concat_Temp_directory_on_windows_path_for_working_folder.
jmp 0x41847c
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4183eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4183ca
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4183d1
mov esi, 0x80004005
push esi
push 0x46b
push str.c:_agent_work13_s_src_burnenginecache.cpp
call fcn.004038f5
push str.Failed_to_get_temp_path_for_working_folder.
jmp 0x41847c
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
mov esi, eax
or esi, 1
jge 0x418406
push str.Failed_to_create_working_folder_guid.
jmp 0x41847c
push 0x27
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x418439
mov esi, 0x8007000e
push esi
push 0x475
push str.c:_agent_work13_s_src_burnenginecache.cpp
call fcn.004038f5
push str.Failed_to_convert_working_folder_guid_into_string.
jmp 0x41847c
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x25c]
push eax
push str._ls_ls_
push 0x46eb90
call fcn.0040204d
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x418463
push str.Failed_to_append_bundle_id_on_to_temp_path_for_working_folder.
jmp 0x41847c
mov eax, dword [0x46eb90]
push 0
push eax
push ebx
call fcn.004022c9
mov esi, eax
test esi, esi
jns 0x418484
push str.Failed_to_copy_working_folder_path.
push esi
call fcn.0044311f
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042de30
leave
ret 8