joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40635b
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.00403b39
mov esi, eax
test esi, esi
jns 0x4063a8
push str.Failed_to_format_key_string.
jmp 0x40643e
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebx + 0x18]
call fcn.0043633e
mov esi, eax
test esi, esi
js 0x40645f
cmp dword [ebx + 0x20], 0
je 0x40647b
push 0
lea eax, [ebp - 8]
push eax
push dword [ebx + 0x20]
push dword [ebp + 0xc]
call fcn.00403b39
mov esi, eax
test esi, esi
jns 0x4063ec
push str.Failed_to_format_value_string.
jmp 0x40643e
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 0x40647b
dec ecx
dec ecx
je 0x406448
test eax, eax
je 0x40647b
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x30f
push str.search.cpp
call fcn.00433f1c
push str.Failed_to_query_registry_key_value.
push esi
call fcn.004348ae
pop ecx
pop ecx
jmp 0x4064a8
push dword [ebp - 8]
push dword [ebp - 4]
push str.Registry_value_not_found._Key___ls__Value___ls
push 2
call fcn.00434d87
add esp, 0x10
jmp 0x406479
push dword [ebp - 4]
cmp esi, 0x80070002
jne 0x40649a
push str.Registry_key_not_found._Key___ls
push 2
call fcn.00434d87
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.00404695
mov esi, eax
test esi, esi
jns 0x4064bf
push str.Failed_to_set_variable.
jmp 0x40643e
push str.Failed_to_open_registry_key._Key___ls
push esi
call fcn.004348ae
add esp, 0xc
test esi, esi
jns 0x4064bf
push esi
push dword [ebp - 4]
push str.RegistrySearchExists_failed:_ID__ls__HRESULT_0x_x
push 2
call fcn.00434d87
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x4064cd
push dword [ebp - 4]
call fcn.0043bfd9
cmp dword [ebp - 8], 0
je 0x4064db
push dword [ebp - 8]
call fcn.0043bfd9
cmp dword [ebp - 0xc], 0
je 0x4064ea
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 0x409fc2
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push esi
push edi
push eax
push 0x1c
pop eax
xor edi, edi
test ebx, ebx
push 0x23
pop ecx
cmovne eax, ecx
mov dword [ebp - 0xc], edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.00435b60
mov esi, eax
test esi, esi
jns 0x40a014
mov eax, str.per_user
test ebx, ebx
mov ecx, str.per_machine
cmove ecx, eax
push ecx
push str.Failed_to_find_local__hs_appdata_directory.
push esi
call fcn.004348ae
add esp, 0xc
jmp 0x40a083
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 4], edi
jbe 0x40a083
mov eax, edi
mov dword [ebp + 8], edi
mov ecx, dword [ebx]
add ecx, eax
lea eax, [ebp - 4]
push eax
mov dword [ebp + 0xc], ecx
push dword [ecx + 4]
push dword [ebp - 0xc]
call fcn.004352fa
mov esi, eax
test esi, esi
js 0x40a076
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp - 4]
call fcn.004352fa
mov esi, eax
test esi, esi
js 0x40a076
push dword [ebp - 8]
call fcn.0043a71d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [ebp + 8]
inc edi
add eax, 0xc
mov dword [ebp + 8], eax
cmp edi, dword [ebx + 4]
jb 0x40a021
jmp 0x40a083
push str.Failed_to_allocate_regid_folder_path.
push esi
call fcn.004348ae
pop ecx
pop ecx
cmp dword [ebp - 8], 0
je 0x40a091
push dword [ebp - 8]
call fcn.0043bfd9
cmp dword [ebp - 4], 0
je 0x40a09f
push dword [ebp - 4]
call fcn.0043bfd9
cmp dword [ebp - 0xc], 0
je 0x40a0ad
push dword [ebp - 0xc]
call fcn.0043bfd9
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40a1df
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
push ebx
push esi
mov dword [ebp - 4], eax
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043a097
cmp dword [ebp - 0xc], 5
mov ebx, 0x444c38
mov edi, dword [ebp + 0xc]
cmovge ebx, esi
test edi, edi
je 0x40a25c
push dword [ebp + 0x10]
push str.Resume
push edi
call fcn.00436839
mov esi, eax
test esi, esi
jns 0x40a239
push str.Failed_to_write_Resume_value.
jmp 0x40a33f
cmp dword [ebp + 0x10], 3
jne 0x40a25c
push 1
push str.Installed
push edi
call fcn.00436839
mov esi, eax
test esi, esi
jns 0x40a262
push str.Failed_to_write_Installed_value.
jmp 0x40a33f
cmp dword [ebp + 0x10], 1
je 0x40a2de
cmp dword [ebp + 0x14], 0
jne 0x40a2de
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x20006
push ebx
push dword [edi + 0x4c]
call fcn.0043633e
mov esi, eax
cmp esi, 0x80070002
je 0x40a2da
cmp esi, 0x80070003
je 0x40a2da
push dword [edi + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
cmp eax, 2
cmove eax, ecx
test eax, eax
je 0x40a347
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x49c
push str.registration.cpp
call fcn.00433f1c
push str.Failed_to_delete_run_key_value.
jmp 0x40a33f
xor esi, esi
jmp 0x40a347
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push 0x440530
push dword [edi + 0x58]
push str._ls___ls
push eax
call fcn.00437bd9
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x40a307
push str.Failed_to_format_resume_command_line_for_RunOnce.
jmp 0x40a33f
lea eax, [ebp - 4]
push eax
push 0x20006
push ebx
push dword [edi + 0x4c]
call fcn.00435f89
mov esi, eax
test esi, esi
jns 0x40a326
push str.Failed_to_create_run_key.
jmp 0x40a33f
push dword [ebp - 8]
push dword [edi + 0xc]
push dword [ebp - 4]
call fcn.00436887
mov esi, eax
test esi, esi
jns 0x40a347
push str.Failed_to_write_run_key_value.
push esi
call fcn.004348ae
pop ecx
pop ecx
cmp dword [ebp - 8], 0
je 0x40a355
push dword [ebp - 8]
call fcn.0043bfd9
cmp dword [ebp - 4], 0
je 0x40a364
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40e17b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x45b010]
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.00426ad0
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 0x40e20e
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x25d
push str.logging.cpp
call fcn.00433f1c
push str.Failed_to_get_temp_folder.
jmp 0x40e22d
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0040e32e
mov esi, eax
test esi, esi
jns 0x40e23a
push str.Failed_to_get_length_of_temp_folder.
push esi
call fcn.004348ae
pop ecx
pop ecx
jmp 0x40e306
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 0x40e2de
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push 0x447c44
push eax
call fcn.00437bd9
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x40e27e
push str.Failed_to_format_session_id_as_a_string.
jmp 0x40e2fd
lea eax, [ebp - 0x214]
push eax
push SysReAllocString
push dword [ebp - 0x210]
call fcn.0040e32e
mov esi, eax
test esi, esi
jns 0x40e2a2
push str.Failed_to_get_length_of_session_id_string.
jmp 0x40e2fd
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 0x40e2e4
mov edi, dword [ebp - 0x218]
push edi
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00437e7f
mov esi, eax
test esi, esi
jns 0x40e305
push str.Failed_to_copy_temp_folder.
push esi
call fcn.004348ae
pop ecx
pop ecx
pop edi
cmp dword [ebp - 0x210], 0
je 0x40e31a
push dword [ebp - 0x210]
call fcn.0043bfd9
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00426ab9
mov esp, ebp
pop ebp
ret 4
Function at 0x40eeae
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 0x40ef0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40eef7
xor esi, esi
jmp 0x40ef0e
cmp eax, 0x6d
je 0x40ef6b
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40ef54
add ebx, dword [ebp - 4]
cmp ebx, 8
jb 0x40eec4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [edi], ecx
mov dword [edi + 4], eax
test eax, eax
je 0x40efd5
push 0
push eax
call fcn.00434ed9
mov dword [edi + 0xc], eax
test eax, eax
jne 0x40ef7a
mov esi, 0x8007000e
push esi
push 0x32b
push str.pipe.cpp
call fcn.00433f1c
push str.Failed_to_allocate_data_for_message.
jmp 0x40efc4
push esi
push 0x320
push str.pipe.cpp
call fcn.00433f1c
push str.Failed_to_read_message_from_pipe.
jmp 0x40efc4
xor ecx, ecx
xor eax, eax
xor esi, esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
inc esi
jmp 0x40ef1c
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 0x40efce
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.00433f1c
push str.Failed_to_read_data_for_message.
push esi
call fcn.004348ae
pop ecx
pop ecx
jmp 0x40efd5
mov dword [edi + 8], 1
cmp dword [edi + 8], 0
jne 0x40efe9
cmp dword [edi + 0xc], 0
je 0x40efe9
push dword [edi + 0xc]
call fcn.00434f9a
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40eff4
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.0040ebc0
mov esi, eax
test esi, esi
jns 0x40f026
push str.Failed_to_allocate_message_to_write.
jmp 0x40f087
mov dword [ebp + 0x14], edi
cmp dword [ebp - 4], edi
jbe 0x40f08f
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 0x40f054
add edi, dword [ebp + 0x14]
cmp edi, dword [ebp - 4]
jb 0x40f02e
jmp 0x40f08f
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.00433f1c
push str.Failed_to_write_message_type_to_pipe.
push esi
call fcn.004348ae
pop ecx
pop ecx
cmp dword [ebp - 8], 0
je 0x40f09d
push dword [ebp - 8]
call fcn.00434f9a
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40f451
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 0x40f4d8
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 0x40f4c8
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.00433f1c
push str.Failed_to_create_the_security_descriptor_for_the_connection_event_and_pipe.
push esi
call fcn.004348ae
pop ecx
pop ecx
jmp 0x40f613
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 0x447cd0
push eax
call fcn.00437bd9
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x40f509
push dword [edi]
push str.Failed_to_allocate_full_name_of_pipe:__ls
push esi
call fcn.004348ae
add esp, 0xc
jmp 0x40f613
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 0x40f56e
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.00433f1c
push dword [ebp - 4]
push str.Failed_to_create_pipe:__ls
jmp 0x40f4fb
cmp dword [ebp + 0xc], 0
je 0x40f604
push dword [edi]
lea eax, [ebp - 4]
push str..pipe_ls.Cache
push eax
call fcn.00437bd9
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x40f59a
push dword [edi]
push str.Failed_to_allocate_full_name_of_cache_pipe:__ls
jmp 0x40f5f2
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 0x40f607
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.00433f1c
push dword [ebp - 4]
push str.Failed_to_create_pipe:__ls
push esi
call fcn.004348ae
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40f613
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 0x40f621
push dword [ebp - 4]
call fcn.0043bfd9
cmp dword [ebp - 8], 0
je 0x40f630
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
Function at 0x412167
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x45b010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 0xc]
push 0x208
push 0
push eax
call fcn.00426ad0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4121e3
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 0x426
push str.cache.cpp
call fcn.00433f1c
push str.Failed_to_get_temp_path_for_working_folder.
jmp 0x412204
push esi
lea eax, [ebp - 0x20c]
push eax
push str._ls_ls_
push edi
call fcn.00437bd9
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x41220c
push str.Failed_to_append_bundle_id_on_to_temp_path_for_working_folder.
push esi
call fcn.004348ae
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00426ab9
mov esp, ebp
pop ebp
ret 8

Function at 0x412730
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
mov eax, 0x20000004
push esi
push edi
mov edi, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
cmp dword [ebp + 8], ebx
je 0x4127c2
lea eax, [ebp - 4]
push eax
push 0x1a
call fcn.004120bc
mov esi, eax
test esi, esi
jns 0x412768
push str.Failed_to_allocate_administrator_SID.
jmp 0x4127ad
push 2
push 8
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x4127ba
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 0x562
push str.cache.cpp
call fcn.00433f1c
push str.Failed_to_initialize_ACL.
push esi
call fcn.004348ae
mov edi, dword [ebp - 4]
pop ecx
pop ecx
jmp 0x4127eb
mov edi, dword [ebp - 4]
mov eax, 0x20000005
push 0x7d0
push 3
push ebx
lea ecx, [ebp - 0xc]
push ecx
push ebx
push edi
push eax
push 1
push dword [ebp + 0xc]
call fcn.0043bfe2
push 0x80
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test edi, edi
je 0x4127f5
push edi
call fcn.00434f9a
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41358b
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x45b010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push 0x250
push eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x254]
push eax
call fcn.00426ad0
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push str..unverified
push dword [ebp + 8]
call fcn.00413d6a
test eax, eax
js 0x4135f0
push 7
push dword [ebp - 0x258]
call fcn.0043b328
cmp dword [ebp + 8], 0
jne 0x4136d3
lea eax, [ebp - 0x258]
push eax
push esi
call fcn.00412167
test eax, eax
js 0x4136d3
lea eax, [ebp - 0x260]
push eax
push 0x44a74c
push dword [ebp - 0x258]
call fcn.004352fa
test eax, eax
js 0x4136d3
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4136d3
test byte [ebp - 0x254], 0x10
jne 0x4136ba
xor eax, eax
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jbe 0x413692
push 0x2e
pop ecx
cmp cx, word [ebp + eax*2 - 0x22c]
jne 0x413692
movzx eax, word [ebp + eax*2 - 0x22a]
push 0x52
pop ecx
cmp cx, ax
je 0x4136ba
push 0x72
pop ecx
cmp cx, ax
je 0x4136ba
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x258]
call fcn.004352fa
test eax, eax
js 0x4136ba
push dword [ebp - 0x25c]
call fcn.0043a71d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41364c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x25c], 0
pop esi
je 0x4136e8
push dword [ebp - 0x25c]
call fcn.0043bfd9
cmp dword [ebp - 0x260], 0
je 0x4136fc
push dword [ebp - 0x260]
call fcn.0043bfd9
cmp dword [ebp - 0x258], 0
je 0x413710
push dword [ebp - 0x258]
call fcn.0043bfd9
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426ab9
mov esp, ebp
pop ebp
ret 8
Function at 0x4164d5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
xor eax, eax
mov esi, dword [ebp + 8]
and dword [ebp - 8], eax
lea edi, [ebp - 0x58]
and dword [ebp - 4], eax
push 0xa
pop ecx
rep stosd dword es:[edi], eax
push 0xa
mov edx, dword [ebp + 0x24]
lea edi, [ebp - 0x30]
mov ebx, dword [ebp + 0x1c]
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x28]
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0xc], ecx
xor ecx, ecx
push ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
push ecx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x58]
push eax
push 0x41451c
push ecx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x30], esi
mov esi, dword [ebp + 0xc]
push ecx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x4165ab
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 0x3ec
push str.elevation.cpp
call fcn.00433f1c
push str.Failed_to_create_elevated_cache_thread.
push esi
call fcn.004348ae
pop ecx
pop ecx
jmp 0x4165f3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x415b23
push esi
call fcn.0040f7e3
mov esi, eax
test esi, esi
jns 0x4165d3
push str.Failed_to_pump_messages_in_child_process.
push esi
call fcn.004348ae
pop ecx
pop ecx
jmp 0x4165ec
push dword [ebp - 8]
push edi
call fcn.004161bb
mov ecx, dword [ebp + 0x34]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x38]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x34
Function at 0x417638
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
push edi
push edi
push 1
push edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x417698
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 0x44
push str.splashscreen.cpp
call fcn.00433f1c
push str.Failed_to_create_modal_event.
jmp 0x4176fa
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push 0x4173bd
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
test eax, eax
jne 0x417704
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 0x4d
push str.splashscreen.cpp
call fcn.00433f1c
push str.Failed_to_create_UI_thread.
push esi
call fcn.004348ae
pop ecx
pop ecx
jmp 0x417713
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], edi
je 0x417726
push dword [ebp - 8]
call esi
mov dword [ebp - 8], edi
cmp dword [ebp - 0xc], edi
je 0x417730
push dword [ebp - 0xc]
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc