joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4036fd
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test ebx, ebx
sete al
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4037e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x403743
cmp eax, 0x50
je 0x40373b
cmp eax, 0xb7
jne 0x403743
xor esi, esi
inc esi
jmp 0x4037e4
cmp eax, 3
jne 0x4037d3
movzx eax, word [edi]
mov ebx, esi
mov ecx, edi
test ax, ax
je 0x4037cc
push 0x5c
mov edx, eax
pop edi
cmp dx, di
jne 0x403764
mov ebx, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x40375d
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x4037cc
push esi
xor eax, eax
push edi
mov word [ebx], ax
call fcn.00401b27
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x4037e4
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4037e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4037b8
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x4037e4
push esi
push 0x454
push str.c:_agent_work36_swix_srclibsdutil_fileutil.cpp
call fcn.004013b3
jmp 0x4037e4
mov esi, 0x80070003
jmp 0x4037e4
test eax, eax
jg 0x4037db
mov esi, eax
jmp 0x4037e4
movzx esi, ax
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x40383e
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 8]
xor esi, esi
call fcn.00403b2c
test eax, eax
je 0x4038c7
test byte [ebp - 4], 7
push ebx
mov ebx, 0x80070000
je 0x403894
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x403894
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40388a
movzx esi, si
or esi, ebx
test esi, esi
jns 0x403894
push esi
push 0x5c4
jmp 0x4038bc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4038c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4038b4
movzx esi, si
or esi, ebx
test esi, esi
jns 0x4038c6
push esi
push 0x5ca
push str.c:_agent_work36_swix_srclibsdutil_fileutil.cpp
call fcn.004013b3
pop ebx
mov eax, esi
pop esi
leave
ret 4
Function at 0x4038ce
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
xor esi, esi
cmp dword [ebp + 0x10], ebx
setne bl
cmp dword [ebp + 0x14], esi
je 0x4038e5
or ebx, 2
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4039e2
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [ebp + 0x10], esi
jne 0x40391d
cmp edi, 0x50
je 0x403915
cmp edi, 0xb7
jne 0x40391d
xor esi, esi
inc esi
jmp 0x4039e1
cmp edi, 2
jne 0x403936
push esi
push dword [ebp + 8]
call fcn.00403b2c
test eax, eax
je 0x4039d8
push 3
pop edi
cmp edi, 3
jne 0x4039d0
mov edi, dword [ebp + 0xc]
mov ecx, esi
mov edx, edi
movzx eax, word [edi]
test ax, ax
je 0x4039c9
push 0x5c
mov edi, eax
pop esi
cmp di, si
jne 0x40395a
mov ecx, edx
add edx, 2
movzx eax, word [edx]
mov edi, eax
test ax, ax
jne 0x403953
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], ecx
push 0
pop esi
test ecx, ecx
je 0x4039c9
push esi
xor eax, eax
push edi
mov word [ecx], ax
call fcn.00401b27
mov esi, eax
mov eax, dword [ebp + 0x10]
push 0x5c
pop ecx
mov word [eax], cx
test esi, esi
js 0x4039e1
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4039e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4039b5
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x4039e1
push esi
push 0x4d4
push str.c:_agent_work36_swix_srclibsdutil_fileutil.cpp
call fcn.004013b3
jmp 0x4039e1
mov esi, 0x80070003
jmp 0x4039e1
test edi, edi
jg 0x4039d8
mov esi, edi
jmp 0x4039e1
movzx esi, di
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x404143
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor eax, eax
push esi
push edi
mov esi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x40419e
call ebx
mov esi, eax
test esi, esi
jle 0x404187
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x40419e
push esi
push 0x115
push str.c:_agent_work36_swix_srclibsdutil_fileutil.cpp
call fcn.004013b3
jmp 0x404242
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x4041ba
mov esi, 0x8007000e
push esi
push 0x119
jmp 0x40418f
push edi
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4041f4
call ebx
mov esi, eax
test esi, esi
jle 0x4041e0
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x4041f4
push esi
push 0x11d
push str.c:_agent_work36_swix_srclibsdutil_fileutil.cpp
call fcn.004013b3
jmp 0x40423b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x44e564
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x404228
call ebx
mov esi, eax
test esi, esi
jle 0x40421e
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x404228
push esi
push 0x122
jmp 0x4041e8
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [edx + 0xc]
mov dword [ecx], edx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40450a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
and dword [ebp - 4], esi
push edi
xor edi, edi
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, edi
push eax
lea eax, [edi + ebx]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x404551
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40454f
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x40455b
add edi, dword [ebp - 4]
cmp edi, dword [ebp + 0x10]
jb 0x40451b
jmp 0x40456b
push esi
push 0x3ef
push str.c:_agent_work36_swix_srclibsdutil_fileutil.cpp
call fcn.004013b3
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40b7dc
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.00408ff8
mov esi, eax
test esi, esi
jns 0x40b807
push str.Failed_to_format_variable_string.
jmp 0x40b881
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
cmp edx, 0xffffffff
jne 0x40b842
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40b82c
movzx esi, si
or esi, 0x80070000
cmp esi, 0x80070002
je 0x40b83c
cmp esi, 0x80070003
jne 0x40b83e
xor esi, esi
xor eax, eax
jmp 0x40b84c
xor eax, eax
xor ecx, ecx
test dl, 0x10
je 0x40b84e
inc eax
xor ecx, ecx
test esi, esi
jns 0x40b867
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.004453e7
add esp, 0x10
jmp 0x40b889
push 0
push ecx
push eax
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00409fb1
mov esi, eax
test esi, esi
jns 0x40b889
push str.Failed_to_set_variable.
push esi
call fcn.004453e7
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.00403251
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x40b899
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.00408ff8
mov esi, eax
test esi, esi
jns 0x40b8cf
push str.Failed_to_format_variable_string.
push esi
call fcn.004453e7
pop ecx
pop ecx
jmp 0x40b95a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40b8f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40b91a
movzx esi, si
or esi, 0x80070000
jmp 0x40b91a
test al, 0x10
je 0x40b915
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00409f57
mov esi, eax
test esi, esi
jns 0x40b91a
push str.Failed_to_set_directory_search_path_variable.
jmp 0x40b8c2
mov esi, 0x80070003
cmp esi, 0x80070002
je 0x40b943
cmp esi, 0x80070003
je 0x40b943
test esi, esi
jns 0x40b95a
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.004453e7
add esp, 0x10
jmp 0x40b95a
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.004458ce
add esp, 0x14
xor esi, esi
push dword [ebp - 4]
call fcn.00403251
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x40b96a
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.00408ff8
mov esi, eax
test esi, esi
jns 0x40b998
push str.Failed_to_format_variable_string.
jmp 0x40ba36
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
cmp edx, 0xffffffff
jne 0x40ba0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x40b9f5
cmp esi, 3
je 0x40b9f5
test esi, esi
je 0x40ba09
jle 0x40b9cb
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x40b9d2
mov esi, 0x80004005
push esi
push 0x28b
push str.c:_agent_work36_swix_src_burnengine_search.cpp
call fcn.004013b3
push dword [edi + 0x14]
push str.Failed_get_to_file_attributes.__ls
push esi
call fcn.004453e7
add esp, 0xc
jmp 0x40ba3e
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.004458ce
add esp, 0x10
xor eax, eax
jmp 0x40ba1a
xor eax, eax
xor ecx, ecx
test edx, 0x10
jne 0x40ba1c
inc eax
xor ecx, ecx
push 0
push ecx
push eax
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00409fb1
mov esi, eax
test esi, esi
jns 0x40ba3e
push str.Failed_to_set_variable.
push esi
call fcn.004453e7
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.00403251
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x40ba4e
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.00408ff8
mov esi, eax
test esi, esi
jns 0x40ba84
push str.Failed_to_format_variable_string.
push esi
call fcn.004453e7
pop ecx
pop ecx
jmp 0x40bb07
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40bad0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40baa7
movzx esi, si
or esi, 0x80070000
cmp esi, 0x80070002
je 0x40baf1
cmp esi, 0x80070003
je 0x40baf1
test esi, esi
jns 0x40bb07
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_file_search:__ls__for_path:__ls
push esi
call fcn.004453e7
add esp, 0x10
jmp 0x40bb07
test al, 0x10
jne 0x40baf1
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00409f57
mov esi, eax
test esi, esi
jns 0x40baa7
push str.Failed_to_set_variable_to_file_search_path.
jmp 0x40ba77
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.004458ce
add esp, 0x10
xor esi, esi
push dword [ebp - 4]
call fcn.00403251
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x40bf86
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.00408ff8
mov esi, eax
test esi, esi
jns 0x40bfc3
push str.Failed_to_format_key_string.
jmp 0x40c0ca
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.0040582c
mov esi, eax
test esi, esi
jns 0x40c016
push dword [ebp - 4]
cmp esi, 0x80070002
jne 0x40c003
push str.Registry_key_not_found._Key___ls
push 2
call fcn.004458ce
add esp, 0xc
jmp 0x40c0ac
push str.Failed_to_open_registry_key._Key___ls
push esi
call fcn.004453e7
add esp, 0xc
jmp 0x40c0d2
xor edi, edi
xor eax, eax
inc edi
cmp dword [ebx + 0x20], eax
je 0x40c0b0
push eax
lea eax, [ebp - 8]
push eax
push dword [ebx + 0x20]
push dword [ebp + 0xc]
call fcn.00408ff8
mov esi, eax
test esi, esi
jns 0x40c044
push str.Failed_to_format_value_string.
jmp 0x40c0ca
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 0x40c0ae
dec eax
sub eax, 1
je 0x40c097
xor eax, eax
test esi, esi
je 0x40c0b0
jle 0x40c079
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x40c080
mov esi, 0x80004005
push esi
push 0x322
push str.c:_agent_work36_swix_src_burnengine_search.cpp
call fcn.004013b3
push str.Failed_to_query_registry_key_value.
jmp 0x40c0ca
push dword [ebp - 8]
push dword [ebp - 4]
push str.Registry_value_not_found._Key___ls__Value___ls
push 2
call fcn.004458ce
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.00409fb1
mov esi, eax
test esi, esi
jns 0x40c0e9
push str.Failed_to_set_variable.
push esi
call fcn.004453e7
pop ecx
pop ecx
test esi, esi
jns 0x40c0e9
push esi
push dword [ebp - 4]
push str.RegistrySearchExists_failed:_ID__ls__HRESULT_0x_x
push 2
call fcn.004458ce
add esp, 0x10
push dword [ebp - 4]
call fcn.00403251
push dword [ebp - 8]
call fcn.00403251
cmp dword [ebp - 0xc], 0
je 0x40c108
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 0x40cf14
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 0x40cf68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x40cf3f
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x40cf46
mov edi, 0x80004005
push edi
push 0x140
push str.c:_agent_work36_swix_src_burnengine_section.cpp
call fcn.004013b3
push str.Failed_to_get_module_handle_to_process.
push edi
call fcn.004453e7
pop ecx
pop ecx
jmp 0x40d0b5
mov eax, 0x5a4d
cmp ax, word [esi]
je 0x40cf91
mov esi, 0x8007000d
push esi
push 0x14a
push str.c:_agent_work36_swix_src_burnengine_section.cpp
mov edi, esi
call fcn.004013b3
push str.Failed_to_find_valid_DOS_image_header_in_buffer.
push esi
jmp 0x40cf5c
mov ecx, dword [esi + 0x3c]
cmp dword [ecx + esi], 0x4550
je 0x40cfbb
mov esi, 0x8007000d
push esi
push 0x155
push str.c:_agent_work36_swix_src_burnengine_section.cpp
mov edi, esi
call fcn.004013b3
push str.Failed_to_find_valid_NT_image_header_in_buffer.
jmp 0x40cf8e
movzx eax, word [ecx + esi + 0x14]
push ebx
add eax, ecx
lea ebx, [esi + 0x18]
push 8
add ebx, eax
push 0x452394
push ebx
call fcn.00431c7d
add esp, 0xc
test eax, eax
je 0x40d000
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 6]
xor eax, eax
inc eax
cmp eax, ecx
jae 0x40d027
add ebx, 0x28
inc eax
cmp dword [ebx], 0x7869772e
jne 0x40cfe7
cmp dword [ebx + 4], 0x6e727562
jne 0x40cfe7
cmp dword [ebx + 0x10], 0x34
jae 0x40d045
mov esi, 0x8007000d
push esi
push 0x17a
push str.c:_agent_work36_swix_src_burnengine_section.cpp
mov edi, esi
call fcn.004013b3
push dword [ebx + 0x10]
push str.Failed_to_read_section_info__data_to_short:__u
jmp 0x40d06f
mov esi, 0x8007000d
push esi
push 0x16e
push str.c:_agent_work36_swix_src_burnengine_section.cpp
mov edi, esi
call fcn.004013b3
push str.Failed_to_find_Burn_section.
jmp 0x40d0ac
mov ebx, dword [ebx + 0xc]
add ebx, esi
cmp dword [ebx + 4], 2
je 0x40d07a
mov esi, 0x8007000d
push esi
push 0x184
push str.c:_agent_work36_swix_src_burnengine_section.cpp
mov edi, esi
call fcn.004013b3
push dword [ebx + 4]
push str.Failed_to_read_section_info__unsupported_version:__08x
push esi
call fcn.004453e7
add esp, 0xc
jmp 0x40d0b4
mov edx, dword [ebp + 8]
mov ecx, edi
mov eax, dword [edx + ecx*4]
cmp eax, dword [ebx + ecx*4 + 8]
jne 0x40d090
inc ecx
cmp ecx, 4
jne 0x40d07f
jmp 0x40d0b4
mov esi, 0x8007000d
push esi
push 0x18a
push str.c:_agent_work36_swix_src_burnengine_section.cpp
mov edi, esi
call fcn.004013b3
push str.Bundle_guid_didnt_match_the_guid_in_the_PE_Header_in_memory.
push esi
call fcn.004453e7
pop ecx
pop ecx
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x41580f
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.00430ec0
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 0x4158ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x415884
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x41588b
mov esi, 0x80004005
push esi
push 0x28d
push str.c:_agent_work36_swix_src_burnenginelogging.cpp
call fcn.004013b3
push str.Failed_to_get_temp_folder.
push esi
call fcn.004453e7
pop ecx
pop ecx
jmp 0x41599e
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.004026cb
mov esi, eax
test esi, esi
jns 0x4158ce
push str.Failed_to_get_length_of_temp_folder.
jmp 0x4158a0
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 0x415976
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push 0x457478
push eax
call fcn.004029f6
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x415915
push str.Failed_to_format_session_id_as_a_string.
jmp 0x415995
lea eax, [ebp - 0x214]
push eax
push SysReAllocString
push dword [ebp - 0x210]
call fcn.004026cb
mov esi, eax
test esi, esi
jns 0x415939
push str.Failed_to_get_length_of_session_id_string.
jmp 0x415995
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 0x41597c
mov esi, edi
jmp 0x41597c
mov esi, dword [ebp - 0x218]
push esi
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00402c72
mov esi, eax
test esi, esi
jns 0x41599d
push str.Failed_to_copy_temp_folder.
push esi
call fcn.004453e7
pop ecx
pop ecx
pop edi
cmp dword [ebp - 0x210], 0
je 0x4159b2
push dword [ebp - 0x210]
call fcn.00403136
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00430093
leave
ret 4
Function at 0x4165f1
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 0x416653
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xea
jne 0x41663d
xor esi, esi
jmp 0x416653
cmp esi, 0x6d
je 0x4166b8
test esi, esi
jle 0x416651
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x416699
add ebx, dword [ebp - 4]
cmp ebx, 8
jb 0x416607
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [edi], ecx
mov dword [edi + 4], eax
test eax, eax
je 0x41671a
push 0
push eax
call fcn.004050e9
mov dword [edi + 0xc], eax
test eax, eax
jne 0x4166c7
mov esi, 0x8007000e
push esi
push 0x323
push str.c:_agent_work36_swix_src_burnenginepipe.cpp
call fcn.004013b3
push str.Failed_to_allocate_data_for_message.
jmp 0x4166ae
push esi
push 0x318
push str.c:_agent_work36_swix_src_burnenginepipe.cpp
call fcn.004013b3
push str.Failed_to_read_message_from_pipe.
push esi
call fcn.004453e7
pop ecx
pop ecx
jmp 0x41671a
xor ecx, ecx
xor eax, eax
xor esi, esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
inc esi
jmp 0x416661
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 0x416713
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4166f5
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4166fc
mov esi, 0x80004005
push esi
push 0x327
push str.c:_agent_work36_swix_src_burnenginepipe.cpp
call fcn.004013b3
push str.Failed_to_read_data_for_message.
jmp 0x4166ae
mov dword [edi + 8], 1
cmp dword [edi + 8], 0
jne 0x41672e
cmp dword [edi + 0xc], 0
je 0x41672e
push dword [edi + 0xc]
call fcn.004051ae
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x416737
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.00416306
mov esi, eax
test esi, esi
jns 0x416769
push str.Failed_to_allocate_message_to_write.
jmp 0x4167ca
mov dword [ebp + 0x14], edi
cmp dword [ebp - 4], edi
jbe 0x4167d2
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 0x416797
add edi, dword [ebp + 0x14]
cmp edi, dword [ebp - 4]
jb 0x416771
jmp 0x4167d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4167ae
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4167b5
mov esi, 0x80004005
push esi
push 0x2f0
push str.c:_agent_work36_swix_src_burnenginepipe.cpp
call fcn.004013b3
push str.Failed_to_write_message_type_to_pipe.
push esi
call fcn.004453e7
pop ecx
pop ecx
cmp dword [ebp - 8], 0
je 0x4167e0
push dword [ebp - 8]
call fcn.004051ae
pop edi
mov eax, esi
pop esi
leave
ret 0x10