joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a218
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [0x419f44]
push ebx
mov ecx, edx
mov ebx, dword [0x419d24]
xor ecx, eax
and ecx, 0xff
shr edx, 8
mov ecx, dword [ebx + ecx*4]
xor ecx, edx
mov dword [0x419f44], ecx
and ecx, 0xff
add dword [0x419f48], ecx
imul edx, dword [0x419f48], 0x8088405
inc edx
mov dword [0x419f48], edx
shr edx, 0x18
mov ecx, dword [0x419f4c]
xor edx, ecx
mov ebx, dword [0x419d24]
and edx, 0xff
shr ecx, 8
mov edx, dword [ebx + edx*4]
xor edx, ecx
mov dword [0x419f4c], edx
pop ebx
ret

Function at 0x40a460
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
test esi, esi
jne 0x40a474
xor eax, eax
jmp 0x40a56c
call fcn.0040a458
xor ebx, 0xffffffff
cmp edi, 8
jb 0x40a549
xor edx, edx
sub edi, 8
mov dl, byte [esi]
inc esi
xor edx, ebx
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
cmp edi, 8
mov ebx, ecx
jae 0x40a485
test edi, edi
je 0x40a567
xor edx, edx
mov dl, byte [esi]
inc esi
xor edx, ebx
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
dec edi
mov ebx, ecx
jne 0x40a54d
mov eax, ebx
xor eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
Function at 0x403c70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x46a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x208
push 0
push eax
call fcn.0042fb10
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x403cd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x403d45
mov esi, 0x80004005
jmp 0x403d45
push 0x5c
pop ecx
cmp cx, word [ebp + eax*2 - 0x20e]
je 0x403d04
push 1
push 0x44b7f8
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00403a8e
mov esi, eax
test esi, esi
js 0x403d45
mov esi, 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00403add
mov esi, eax
test esi, esi
js 0x403d45
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
je 0x403cb9
test edi, edi
je 0x403d45
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.004024cf
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e000
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40448c
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 0x404553
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4044bc
xor esi, esi
jmp 0x404553
cmp eax, 3
je 0x4044cd
push 0
push edi
call fcn.0040455b
test eax, eax
jne 0x4044b5
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x404540
push 0x5c
pop edx
cmp ax, dx
cmove ebx, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x4044dd
test ebx, ebx
je 0x404540
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call fcn.0040448c
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x404552
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40453c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40452c
xor esi, esi
inc esi
jmp 0x404552
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x404552
xor esi, esi
jmp 0x404552
mov esi, 0x80070003
push esi
push 0x72
push str.dirutil.cpp
call fcn.00403c59
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x40455b
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 0x40457f
test al, 0x10
je 0x40457f
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40457c
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x409deb
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.00407620
mov esi, eax
test esi, esi
jns 0x409e18
push str.Failed_to_format_variable_string.
jmp 0x409e8c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409e4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070002
je 0x409e4a
cmp esi, 0x80070003
jne 0x409e56
xor esi, esi
jmp 0x409e56
test al, 0x10
push 1
pop eax
cmovne edi, eax
test esi, esi
jns 0x409e6f
push dword [ebp - 4]
push dword [ebx]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.0044088f
add esp, 0x10
jmp 0x409e94
push 0
mov eax, edi
cdq
push edx
push eax
push dword [ebx + 4]
push dword [ebp + 0xc]
call fcn.004085a6
mov esi, eax
test esi, esi
jns 0x409e94
push str.Failed_to_set_variable.
push esi
call fcn.0044088f
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.00402ba3
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x409ea7
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.00407620
mov esi, eax
test esi, esi
jns 0x409edd
push str.Failed_to_format_variable_string.
push esi
call fcn.0044088f
pop ecx
pop ecx
jmp 0x409f67
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409f01
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x409f27
test al, 0x10
je 0x409f22
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.0040854a
mov esi, eax
test esi, esi
jns 0x409f27
push str.Failed_to_set_directory_search_path_variable.
jmp 0x409ed0
mov esi, 0x80070003
cmp esi, 0x80070002
je 0x409f50
cmp esi, 0x80070003
je 0x409f50
test esi, esi
jns 0x409f67
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.0044088f
add esp, 0x10
jmp 0x409f67
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.00440d7a
add esp, 0x14
xor esi, esi
push dword [ebp - 4]
call fcn.00402ba3
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x409f79
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.00407620
mov esi, eax
test esi, esi
jns 0x409fa9
push str.Failed_to_format_variable_string.
jmp 0x40a041
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40a01c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40a006
cmp eax, 3
je 0x40a006
test eax, eax
je 0x40a024
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x28b
push str.search.cpp
call fcn.00403c59
push dword [ebx + 0x14]
push str.Failed_get_to_file_attributes.__ls
push esi
call fcn.0044088f
add esp, 0xc
jmp 0x40a049
push dword [ebp - 4]
push dword [ebx]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.00440d7a
add esp, 0x10
jmp 0x40a024
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.004085a6
mov esi, eax
test esi, esi
jns 0x40a049
push str.Failed_to_set_variable.
push esi
call fcn.0044088f
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.00402ba3
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40a05c
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.00407620
mov esi, eax
test esi, esi
jns 0x40a092
push str.Failed_to_format_variable_string.
push esi
call fcn.0044088f
pop ecx
pop ecx
jmp 0x40a114
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40a0dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070002
je 0x40a0fe
cmp esi, 0x80070003
je 0x40a0fe
test esi, esi
jns 0x40a114
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_file_search:__ls__for_path:__ls
push esi
call fcn.0044088f
add esp, 0x10
jmp 0x40a114
test al, 0x10
jne 0x40a0fe
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.0040854a
mov esi, eax
test esi, esi
jns 0x40a0b4
push str.Failed_to_set_variable_to_file_search_path.
jmp 0x40a085
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.00440d7a
add esp, 0x10
xor esi, esi
push dword [ebp - 4]
call fcn.00402ba3
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40a59b
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.00407620
mov esi, eax
test esi, esi
jns 0x40a5f0
push str.Failed_to_format_key_string.
push esi
call fcn.0044088f
pop ecx
pop ecx
jmp 0x40a6f0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebx + 0x18]
call fcn.004415a6
mov esi, eax
test esi, esi
js 0x40a6a4
cmp dword [ebx + 0x20], 0
je 0x40a6c0
push 0
lea eax, [ebp - 8]
push eax
push dword [ebx + 0x20]
push dword [ebp + 0xc]
call fcn.00407620
mov esi, eax
test esi, esi
jns 0x40a634
push str.Failed_to_format_value_string.
jmp 0x40a5e3
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 0x40a6c0
dec ecx
sub ecx, 1
je 0x40a68d
test eax, eax
je 0x40a6c0
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x322
push str.search.cpp
call fcn.00403c59
push str.Failed_to_query_registry_key_value.
jmp 0x40a5e3
push dword [ebp - 8]
push dword [ebp - 4]
push str.Registry_value_not_found._Key___ls__Value___ls
push 2
call fcn.00440d7a
add esp, 0x10
jmp 0x40a6be
push dword [ebp - 4]
cmp esi, 0x80070002
jne 0x40a6e2
push str.Registry_key_not_found._Key___ls
push 2
call fcn.00440d7a
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.004085a6
mov esi, eax
test esi, esi
jns 0x40a707
push str.Failed_to_set_variable.
jmp 0x40a5e3
push str.Failed_to_open_registry_key._Key___ls
push esi
call fcn.0044088f
add esp, 0xc
test esi, esi
jns 0x40a707
push esi
push dword [ebp - 4]
push str.RegistrySearchExists_failed:_ID__ls__HRESULT_0x_x
push 2
call fcn.00440d7a
add esp, 0x10
push dword [ebp - 4]
call fcn.00402ba3
push dword [ebp - 8]
call fcn.00402ba3
cmp dword [ebp - 0xc], 0
je 0x40a726
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 0x40b524
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 0x40b578
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
push edi
push 0x140
push str.section.cpp
call fcn.00403c59
push str.Failed_to_get_module_handle_to_process.
push edi
call fcn.0044088f
pop ecx
pop ecx
jmp 0x40b6c5
mov eax, 0x5a4d
cmp ax, word [esi]
je 0x40b5a1
mov esi, 0x8007000d
push esi
push 0x14a
push str.section.cpp
mov edi, esi
call fcn.00403c59
push str.Failed_to_find_valid_DOS_image_header_in_buffer.
push esi
jmp 0x40b56c
mov ecx, dword [esi + 0x3c]
cmp dword [ecx + esi], 0x4550
je 0x40b5cb
mov esi, 0x8007000d
push esi
push 0x155
push str.section.cpp
mov edi, esi
call fcn.00403c59
push str.Failed_to_find_valid_NT_image_header_in_buffer.
jmp 0x40b59e
movzx eax, word [ecx + esi + 0x14]
push ebx
add eax, ecx
lea ebx, [esi + 0x18]
push 8
add ebx, eax
push 0x44f054
push ebx
call fcn.0042fdb8
add esp, 0xc
test eax, eax
je 0x40b610
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 6]
xor eax, eax
inc eax
cmp eax, ecx
jae 0x40b637
add ebx, 0x28
inc eax
cmp dword [ebx], 0x7869772e
jne 0x40b5f7
cmp dword [ebx + 4], 0x6e727562
jne 0x40b5f7
cmp dword [ebx + 0x10], 0x34
jae 0x40b655
mov esi, 0x8007000d
push esi
push 0x17a
push str.section.cpp
mov edi, esi
call fcn.00403c59
push dword [ebx + 0x10]
push str.Failed_to_read_section_info__data_to_short:__u
jmp 0x40b67f
mov esi, 0x8007000d
push esi
push 0x16e
push str.section.cpp
mov edi, esi
call fcn.00403c59
push str.Failed_to_find_Burn_section.
jmp 0x40b6bc
mov ebx, dword [ebx + 0xc]
add ebx, esi
cmp dword [ebx + 4], 2
je 0x40b68a
mov esi, 0x8007000d
push esi
push 0x184
push str.section.cpp
mov edi, esi
call fcn.00403c59
push dword [ebx + 4]
push str.Failed_to_read_section_info__unsupported_version:__08x
push esi
call fcn.0044088f
add esp, 0xc
jmp 0x40b6c4
mov edx, dword [ebp + 8]
mov ecx, edi
mov eax, dword [edx + ecx*4]
cmp eax, dword [ebx + ecx*4 + 8]
jne 0x40b6a0
inc ecx
cmp ecx, 4
jne 0x40b68f
jmp 0x40b6c4
mov esi, 0x8007000d
push esi
push 0x18a
push str.section.cpp
mov edi, esi
call fcn.00403c59
push str.Bundle_guid_didnt_match_the_guid_in_the_PE_Header_in_memory.
push esi
call fcn.0044088f
pop ecx
pop ecx
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x413e1a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x46a008]
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.0042fb10
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 0x413eb8
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 0x271
push str.logging.cpp
call fcn.00403c59
push str.Failed_to_get_temp_folder.
push esi
call fcn.0044088f
pop ecx
pop ecx
jmp 0x413fa5
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00401eca
mov esi, eax
test esi, esi
jns 0x413ed9
push str.Failed_to_get_length_of_temp_folder.
jmp 0x413eab
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 0x413f7d
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push 0x453ea4
push eax
call fcn.00402232
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x413f1d
push str.Failed_to_format_session_id_as_a_string.
jmp 0x413f9c
lea eax, [ebp - 0x214]
push eax
push SysReAllocString
push dword [ebp - 0x210]
call fcn.00401eca
mov esi, eax
test esi, esi
jns 0x413f41
push str.Failed_to_get_length_of_session_id_string.
jmp 0x413f9c
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 0x413f83
mov edi, dword [ebp - 0x218]
push edi
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004024cf
mov esi, eax
test esi, esi
jns 0x413fa4
push str.Failed_to_copy_temp_folder.
push esi
call fcn.0044088f
pop ecx
pop ecx
pop edi
cmp dword [ebp - 0x210], 0
je 0x413fb9
push dword [ebp - 0x210]
call fcn.00445c98
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e000
mov esp, ebp
pop ebp
ret 4
Function at 0x414b57
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 0x414bb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x414ba0
xor esi, esi
jmp 0x414bb7
cmp eax, 0x6d
je 0x414c1c
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x414bfd
add ebx, dword [ebp - 4]
cmp ebx, 8
jb 0x414b6d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [edi], ecx
mov dword [edi + 4], eax
test eax, eax
je 0x414c7e
push 0
push eax
call fcn.00403d5a
mov dword [edi + 0xc], eax
test eax, eax
jne 0x414c2b
mov esi, 0x8007000e
push esi
push 0x323
push str.pipe.cpp
call fcn.00403c59
push str.Failed_to_allocate_data_for_message.
jmp 0x414c12
push esi
push 0x318
push str.pipe.cpp
call fcn.00403c59
push str.Failed_to_read_message_from_pipe.
push esi
call fcn.0044088f
pop ecx
pop ecx
jmp 0x414c7e
xor ecx, ecx
xor eax, eax
xor esi, esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
inc esi
jmp 0x414bc5
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 0x414c77
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 0x327
push str.pipe.cpp
call fcn.00403c59
push str.Failed_to_read_data_for_message.
jmp 0x414c12
mov dword [edi + 8], 1
cmp dword [edi + 8], 0
jne 0x414c92
cmp dword [edi + 0xc], 0
je 0x414c92
push dword [edi + 0xc]
call fcn.00403e21
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x414c9d
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.00414869
mov esi, eax
test esi, esi
jns 0x414ccf
push str.Failed_to_allocate_message_to_write.
jmp 0x414d30
mov dword [ebp + 0x14], edi
cmp dword [ebp - 4], edi
jbe 0x414d38
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 0x414cfd
add edi, dword [ebp + 0x14]
cmp edi, dword [ebp - 4]
jb 0x414cd7
jmp 0x414d38
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 0x2f0
push str.pipe.cpp
call fcn.00403c59
push str.Failed_to_write_message_type_to_pipe.
push esi
call fcn.0044088f
pop ecx
pop ecx
cmp dword [ebp - 8], 0
je 0x414d46
push dword [ebp - 8]
call fcn.00403e21
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x415105
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 0x41518c
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 0x41517c
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 0x116
push str.pipe.cpp
call fcn.00403c59
push str.Failed_to_create_the_security_descriptor_for_the_connection_event_and_pipe.
push esi
call fcn.0044088f
pop ecx
pop ecx
jmp 0x4152c7
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.00402232
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x4151bd
push dword [edi]
push str.Failed_to_allocate_full_name_of_pipe:__ls
push esi
call fcn.0044088f
add esp, 0xc
jmp 0x4152c7
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 0x415222
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 0x126
push str.pipe.cpp
call fcn.00403c59
push dword [ebp - 4]
push str.Failed_to_create_pipe:__ls
jmp 0x4151af
cmp dword [ebp + 0xc], 0
je 0x4152b8
push dword [edi]
lea eax, [ebp - 4]
push str..pipe_ls.Cache
push eax
call fcn.00402232
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x41524e
push dword [edi]
push str.Failed_to_allocate_full_name_of_cache_pipe:__ls
jmp 0x4152a6
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 0x4152bb
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 0x132
push str.pipe.cpp
call fcn.00403c59
push dword [ebp - 4]
push str.Failed_to_create_pipe:__ls
push esi
call fcn.0044088f
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4152c7
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 0x4152d5
push dword [ebp - 4]
call fcn.00445c98
cmp dword [ebp - 8], 0
je 0x4152e4
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