joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404ba8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404c0e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004040b4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c9c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404bf8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404c15
lea eax, [ebp - 0x10]
call fcn.00403e60
ret

Function at 0x406a2c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406a65
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f50
jmp 0x406a6e
mov eax, ebx
mov edx, esi
call fcn.00403eb4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406a78
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406a99
mov al, byte [esp]
jmp 0x406a9b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x407120
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406f98
mov eax, dword [0x4093b4]
cmp byte [eax], 0
je 0x40719c
mov eax, dword [0x409304]
call fcn.004029cc
call fcn.0040262c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00405f20
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4071e4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4071d2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4092e4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40a660]
call fcn.004045f8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x407b90
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x407bf4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004040b4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405df4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407bfb
lea eax, [ebp - 0xc]
call fcn.00403e60
ret
Function at 0x40157c
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
cmp dword [esi + 0x488], 2
push ebx
push edi
jne 0x4015e0
lea ebx, [esi + 0x498]
lea eax, [esi + 0x494]
push ebx
push eax
call fcn.004028e3
mov edi, eax
test edi, edi
jns 0x4015b7
push str.Failed_to_create_implicit_elevated_connection_name_and_secret.
jmp 0x401722
push dword [esi + 0x4c8]
push dword [ebx]
push dword [esi + 0x494]
push dword [esi + 0x2c]
push dword [ebp + 0xc]
call fcn.00402a21
mov edi, eax
test edi, edi
jns 0x4015e0
push str.Failed_to_launch_unelevated_process.
jmp 0x401722
push 1
lea eax, [esi + 0x494]
push eax
call fcn.004038be
mov edi, eax
test edi, edi
jns 0x4015fe
push str.Failed_to_connect_to_unelevated_process.
jmp 0x401722
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 0x48c], eax
cmp eax, 0xffffffff
jne 0x401648
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x401623
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x40162e
mov edi, 0x80004005
push edi
push 0x1c7
push str.engine.cpp
call fcn.00432f06
push str.Failed_to_allocate_thread_local_storage_for_logging.
jmp 0x401722
push dword [esi + 0x4a4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x401692
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40166d
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x401678
mov edi, 0x80004005
push edi
push 0x1cc
push str.engine.cpp
call fcn.00432f06
push str.Failed_to_set_elevated_pipe_into_thread_local_storage_for_logging.
jmp 0x401722
push esi
push dword [ebp + 8]
call fcn.00411534
mov edi, eax
test edi, edi
jns 0x4016a8
push str.Failed_to_create_the_message_window.
jmp 0x401722
push 1
call fcn.0043360e
push esi
push 0x40131f
call fcn.0042f783
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0xf4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0xb8]
push eax
lea eax, [esi + 0xf8]
push eax
lea eax, [esi + 0x88]
push eax
lea eax, [esi + 0x2b0]
push eax
lea eax, [esi + 0x2b8]
push eax
lea eax, [esi + 0x2a0]
push eax
push dword [esi + 0x4a8]
push dword [esi + 0x4a4]
push dword [esi + 0x48c]
call fcn.0041113c
push 0
push 0
mov edi, eax
call fcn.0042f783
test edi, edi
jns 0x40172a
push str.Failed_to_pump_messages_from_parent_process.
push edi
call fcn.00430126
pop ecx
pop ecx
xor ebx, ebx
push ebx
push ebx
call fcn.0042f783
push esi
call fcn.0041125f
cmp dword [ebp - 8], ebx
je 0x401743
call fcn.0040e88f
cmp dword [ebp - 4], ebx
je 0x40175a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebx
leave
ret 8
Function at 0x402f4a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
xor edi, edi
push dword [ebp + 0x10]
mov dword [ebp - 8], edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call fcn.00402eae
mov ebx, eax
cmp ebx, edi
jge 0x402f84
push str.Failed_to_allocate_message_to_write.
push ebx
call fcn.00430126
pop ecx
pop ecx
jmp 0x402ff1
push esi
xor esi, esi
mov dword [ebp + 0x14], edi
cmp dword [ebp - 4], edi
jbe 0x402ff0
push edi
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp - 4]
sub eax, esi
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fb4
add esi, dword [ebp + 0x14]
cmp esi, dword [ebp - 4]
jb 0x402f8f
jmp 0x402ff0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x402fc8
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, edi
jl 0x402fd3
mov ebx, 0x80004005
push ebx
push 0x309
push str.pipe.cpp
call fcn.00432f06
push str.Failed_to_write_message_type_to_pipe.
push ebx
call fcn.00430126
pop ecx
pop ecx
pop esi
cmp dword [ebp - 8], edi
je 0x402ffe
push dword [ebp - 8]
call fcn.00432aae
pop edi
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x403006
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
mov ebx, eax
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
stosd dword es:[edi], eax
mov dword [ebp - 8], esi
push 0
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, esi
push eax
lea eax, [ebp + esi - 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40306b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x403051
and dword [ebp - 4], 0
jmp 0x40306b
cmp eax, 0x6d
je 0x4030b6
test eax, eax
jle 0x403064
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jl 0x4030c6
add esi, dword [ebp - 8]
cmp esi, 8
jb 0x403020
mov eax, dword [ebp - 0x10]
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
xor esi, esi
mov dword [ebx + 4], eax
cmp eax, esi
je 0x403141
push esi
push eax
call fcn.004328f3
mov dword [ebx + 0xc], eax
cmp eax, esi
jne 0x4030df
mov esi, 0x8007000e
push esi
push 0x33c
push str.pipe.cpp
mov dword [ebp - 4], esi
call fcn.00432f06
push str.Failed_to_allocate_data_for_message.
push esi
jmp 0x403131
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], 1
jmp 0x403073
push dword [ebp - 4]
push 0x331
push str.pipe.cpp
call fcn.00432f06
push str.Failed_to_read_message_from_pipe.
jmp 0x40312e
push esi
lea ecx, [ebp - 8]
push ecx
push dword [ebx + 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40313a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x403109
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, esi
jl 0x403117
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x340
push str.pipe.cpp
call fcn.00432f06
push str.Failed_to_read_data_for_message.
push dword [ebp - 4]
call fcn.00430126
pop ecx
pop ecx
jmp 0x403141
mov dword [ebx + 8], 1
cmp dword [ebx + 8], 0
jne 0x403154
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x403154
push ebx
call fcn.00432aae
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x405fec
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
xor esi, esi
neg eax
sbb eax, eax
and eax, 7
add eax, 0x1c
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.004325a1
mov ebx, eax
cmp ebx, esi
jge 0x40603c
mov eax, str.per_machine
cmp dword [ebp + 8], esi
jne 0x40602b
mov eax, str.per_user
push eax
push str.Failed_to_find_local__hs_appdata_directory.
push ebx
call fcn.00430126
add esp, 0xc
jmp 0x4060a6
mov dword [ebp - 0x10], esi
cmp dword [edi + 4], esi
jbe 0x4060a6
mov dword [ebp + 8], esi
mov esi, dword [edi]
add esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
push dword [ebp - 0xc]
call fcn.004325d7
mov ebx, eax
test ebx, ebx
js 0x406097
lea eax, [ebp - 8]
push eax
push dword [esi]
push dword [ebp - 4]
call fcn.004325d7
mov ebx, eax
test ebx, ebx
js 0x406097
push dword [ebp - 8]
call fcn.004361cd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add dword [ebp + 8], 0xc
cmp eax, dword [edi + 4]
jb 0x406047
jmp 0x4060a4
push str.Failed_to_allocate_regid_folder_path.
push ebx
call fcn.00430126
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 8], esi
je 0x4060b3
push dword [ebp - 8]
call fcn.00430887
cmp dword [ebp - 4], esi
je 0x4060c0
push dword [ebp - 4]
call fcn.00430887
cmp dword [ebp - 0xc], esi
je 0x4060cd
push dword [ebp - 0xc]
call fcn.00430887
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x40689b
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push dword [esi + 8]
xor edi, edi
mov ebx, eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.00411882
push eax
push dword [ebp + 0xc]
call fcn.00411882
push eax
push ebx
call fcn.00411a5c
push eax
push dword [esi + 0x50]
push 0x20000173
push 2
call fcn.00401566
add esp, 0x18
cmp dword [ebp + 8], edi
je 0x40691e
push ebx
push str.Resume
push dword [ebp + 8]
call fcn.00433c39
mov edi, eax
test edi, edi
jns 0x4068fa
push str.Failed_to_write_Resume_value.
jmp 0x406a80
cmp ebx, 3
jne 0x40691e
push 1
push str.Installed
push dword [ebp + 8]
call fcn.00433c39
mov edi, eax
test edi, edi
jns 0x406923
push str.Failed_to_write_Installed_value.
jmp 0x406a80
cmp ebx, 1
je 0x40692d
cmp dword [ebp + 0xc], 0
je 0x4069c8
cmp dword [esi + 8], 0
jne 0x4069c8
push str.burn.runonce
push dword [esi + 0x54]
lea eax, [ebp - 8]
push str.__ls____ls
push eax
call fcn.00431d32
mov edi, eax
add esp, 0x10
test edi, edi
jns 0x406960
push str.Failed_to_format_resume_command_line_for_RunOnce.
jmp 0x406a80
lea eax, [ebp - 4]
push eax
push 0x20006
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push dword [esi + 0x4c]
call fcn.00433cda
mov edi, eax
test edi, edi
jns 0x406986
push str.Failed_to_create_run_key.
jmp 0x406a80
push dword [ebp - 8]
push dword [esi + 0x10]
push dword [ebp - 4]
call fcn.00434111
mov edi, eax
test edi, edi
jns 0x4069a4
push str.Failed_to_write_run_key_value.
jmp 0x406a80
push dword [esi + 0x58]
push str.BundleResumeCommandLine
push dword [ebp + 8]
call fcn.00434111
mov edi, eax
test edi, edi
jns 0x406a88
push str.Failed_to_write_resume_command_line_value.
jmp 0x406a80
lea eax, [ebp - 4]
push eax
push 0x20006
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push dword [esi + 0x4c]
call fcn.00433d9a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
cmp edi, 0x80070002
je 0x406a37
cmp edi, 0x80070003
je 0x406a37
push dword [esi + 0x10]
push dword [ebp - 4]
call ebx
cmp eax, 2
jne 0x406a05
xor eax, eax
test eax, eax
je 0x406a39
jle 0x406a15
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x406a20
mov edi, 0x80004005
push edi
push 0x4af
push str.registration.cpp
call fcn.00432f06
push str.Failed_to_delete_run_key_value.
jmp 0x406a80
xor edi, edi
cmp dword [ebp + 8], 0
je 0x406a88
push str.BundleResumeCommandLine
push dword [ebp + 8]
call ebx
cmp eax, 2
jne 0x406a50
xor eax, eax
test eax, eax
je 0x406a88
jle 0x406a60
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x406a6b
mov edi, 0x80004005
push edi
push 0x4b9
push str.registration.cpp
call fcn.00432f06
push str.Failed_to_delete_resume_command_line_value.
push edi
call fcn.00430126
pop ecx
pop ecx
cmp dword [ebp - 8], 0
je 0x406a96
push dword [ebp - 8]
call fcn.00430887
cmp dword [ebp - 4], 0
je 0x406aa5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
leave
ret 8
Function at 0x407423
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push dword [edi + 0x14]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call fcn.00408c1c
mov esi, eax
cmp esi, ebx
jge 0x40744f
push str.Failed_to_format_variable_string.
jmp 0x4074c8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407487
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x407471
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, 0x80070002
je 0x407483
cmp esi, 0x80070003
jne 0x407492
xor esi, esi
jmp 0x407492
test al, 0x10
je 0x407492
mov dword [ebp - 8], 1
cmp esi, ebx
jge 0x4074ab
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.00430126
add esp, 0x10
jmp 0x4074d0
mov eax, dword [ebp - 8]
push ebx
cdq
push edx
push eax
push dword [edi + 4]
push dword [ebp + 8]
call fcn.0040a6fd
mov esi, eax
cmp esi, ebx
jge 0x4074d0
push str.Failed_to_set_variable.
push esi
call fcn.00430126
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
je 0x4074dd
push dword [ebp - 4]
call fcn.00430887
mov eax, esi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 0x14]
push dword [ebp + 8]
call fcn.00408c1c
mov esi, eax
test esi, esi
jns 0x40750c
push str.Failed_to_format_variable_string.
jmp 0x407551
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407532
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40752e
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x407560
test al, 0x10
je 0x40755b
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 8]
call fcn.0040a73c
mov esi, eax
test esi, esi
jns 0x407560
push str.Failed_to_set_directory_search_path_variable.
push esi
call fcn.00430126
pop ecx
pop ecx
jmp 0x4075a0
mov esi, 0x80070003
cmp esi, 0x80070002
je 0x407589
cmp esi, 0x80070003
je 0x407589
test esi, esi
jns 0x4075a0
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.00430126
add esp, 0x10
jmp 0x4075a0
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.0042fd42
add esp, 0x14
xor esi, esi
cmp dword [ebp - 4], 0
je 0x4075ae
push dword [ebp - 4]
call fcn.00430887
mov eax, esi
pop esi
leave
ret 4
Function at 0x4075b5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push dword [edi + 0x14]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.00408c1c
mov esi, eax
test esi, esi
jns 0x4075e0
push str.Failed_to_format_variable_string.
jmp 0x407679
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407652
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40763c
cmp eax, 3
je 0x40763c
test eax, eax
je 0x40765c
jle 0x40760e
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x407619
mov esi, 0x80004005
push esi
push 0x28d
push str.search.cpp
call fcn.00432f06
push dword [edi + 0x14]
push str.Failed_get_to_file_attributes.__ls
push esi
call fcn.00430126
add esp, 0xc
jmp 0x407681
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.0042fd42
add esp, 0x10
jmp 0x40765c
and eax, 0x10
cmp al, 0x10
je 0x40765c
xor ebx, ebx
inc ebx
push 0
mov eax, ebx
cdq
push edx
push eax
push dword [edi + 4]
push dword [ebp + 8]
call fcn.0040a6fd
mov esi, eax
test esi, esi
jns 0x407681
push str.Failed_to_set_variable.
push esi
call fcn.00430126
pop ecx
pop ecx
cmp dword [ebp - 4], 0
je 0x40768f
push dword [ebp - 4]
call fcn.00430887
mov eax, esi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 0x14]
push dword [ebp + 8]
call fcn.00408c1c
mov esi, eax
test esi, esi
jns 0x40776e
push str.Failed_to_format_variable_string.
jmp 0x4077da
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4077bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x407790
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, 0x80070002
je 0x4077e4
cmp esi, 0x80070003
je 0x4077e4
test esi, esi
jns 0x4077fa
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_file_search:__ls__for_path:__ls
push esi
call fcn.00430126
add esp, 0x10
jmp 0x4077fa
test al, 0x10
jne 0x4077e4
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 8]
call fcn.0040a73c
mov esi, eax
test esi, esi
jns 0x407792
push str.Failed_to_set_variable_to_file_search_path.
push esi
call fcn.00430126
pop ecx
pop ecx
jmp 0x4077fa
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.0042fd42
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], 0
je 0x407808
push dword [ebp - 4]
call fcn.00430887
mov eax, esi
pop esi
leave
ret 4
Function at 0x40780f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], 1
cmp dword [esi + 0x24], ebx
je 0x407838
mov dword [ebp - 0xc], 0x101
push ebx
lea eax, [ebp - 4]
push eax
push dword [esi + 0x1c]
push dword [ebp + 8]
call fcn.00408c1c
mov edi, eax
cmp edi, ebx
jge 0x407858
push str.Failed_to_format_key_string.
jmp 0x407958
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [esi + 0x18]
call fcn.00433d9a
mov edi, eax
cmp edi, ebx
jl 0x4078a0
mov eax, dword [esi + 0x20]
mov dword [ebp - 0xc], 1
cmp eax, ebx
je 0x40793b
push ebx
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 8]
call fcn.00408c1c
mov edi, eax
cmp edi, ebx
jge 0x4078cb
push str.Failed_to_format_value_string.
jmp 0x407958
cmp edi, 0x80070002
jne 0x4078b5
push dword [esi + 4]
push dword [ebp - 4]
push str.Registry_key_not_found._Key___ls__variable___ls
jmp 0x407925
push dword [ebp - 4]
push str.Failed_to_open_registry_key._Key___ls
push edi
call fcn.00430126
add esp, 0xc
jmp 0x407960
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
sub ecx, ebx
je 0x407934
dec ecx
dec ecx
je 0x40791a
cmp eax, ebx
je 0x40793b
jle 0x4078f8
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x407903
mov edi, 0x80004005
push edi
push 0x31f
push str.search.cpp
call fcn.00432f06
push str.Failed_to_query_registry_key_value.
jmp 0x407958
push dword [ebp - 8]
push dword [ebp - 4]
push str.Registry_value_not_found._Key___ls__Value___ls
push 2
call fcn.0042fd42
add esp, 0x10
mov dword [ebp - 0xc], ebx
jmp 0x40793b
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
push ebx
cdq
push edx
push eax
push dword [esi + 4]
push dword [ebp + 8]
call fcn.0040a6fd
mov edi, eax
cmp edi, ebx
jge 0x407977
push str.Failed_to_set_variable.
push edi
call fcn.00430126
pop ecx
pop ecx
cmp edi, ebx
jge 0x407977
push edi
push dword [ebp - 4]
push str.RegistrySearchExists_failed:_ID__ls__HRESULT_0x_x
push 2
call fcn.0042fd42
add esp, 0x10
cmp dword [ebp - 4], ebx
je 0x407984
push dword [ebp - 4]
call fcn.00430887
cmp dword [ebp - 8], ebx
je 0x407991
push dword [ebp - 8]
call fcn.00430887
cmp dword [ebp - 0x10], ebx
je 0x40799f
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
leave
ret 4
Function at 0x41113c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov esi, dword [ebp + 0x1c]
push 0xa
pop ecx
xor eax, eax
push 0xa
mov ebx, dword [ebp + 0x24]
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
pop ecx
mov edx, dword [ebp + 0x18]
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x10]
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x18], esi
xor esi, esi
push esi
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x58]
push eax
push 0x410e43
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp + 0x28]
push esi
push esi
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
jne 0x41120f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x4111e5
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, esi
jl 0x4111f0
mov ebx, 0x80004005
push ebx
push 0x428
push str.elevation.cpp
call fcn.00432f06
push str.Failed_to_create_elevated_cache_thread.
push ebx
call fcn.00430126
pop ecx
pop ecx
jmp 0x411256
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x410ef0
push dword [ebp + 0xc]
call fcn.004033b9
mov ebx, eax
cmp ebx, esi
jge 0x411239
push str.Failed_to_pump_messages_in_child_process.
push ebx
call fcn.00430126
pop ecx
pop ecx
jmp 0x41124f
push edi
call fcn.0040e8ac
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x38]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x34