joyce8/EMBER2024-capa huggingface dataset:
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.004028db
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.00402a19
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.004038b6
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 0x1c6
push str.engine.cpp
call fcn.0043294e
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 0x1cb
push str.engine.cpp
call fcn.0043294e
push str.Failed_to_set_elevated_pipe_into_thread_local_storage_for_logging.
jmp 0x401722
push esi
push dword [ebp + 8]
call fcn.0041152b
mov edi, eax
test edi, edi
jns 0x4016a8
push str.Failed_to_create_the_message_window.
jmp 0x401722
push 1
call fcn.00432fff
push esi
push 0x40131f
call fcn.0042f0e3
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.00411133
push 0
push 0
mov edi, eax
call fcn.0042f0e3
test edi, edi
jns 0x40172a
push str.Failed_to_pump_messages_from_parent_process.
push edi
call fcn.0042fa86
pop ecx
pop ecx
xor ebx, ebx
push ebx
push ebx
call fcn.0042f0e3
push esi
call fcn.00411256
cmp dword [ebp - 8], ebx
je 0x401743
call fcn.0040e886
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 0x402f42
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.00402ea6
mov ebx, eax
cmp ebx, edi
jge 0x402f7c
push str.Failed_to_allocate_message_to_write.
push ebx
call fcn.0042fa86
pop ecx
pop ecx
jmp 0x402fe9
push esi
xor esi, esi
mov dword [ebp + 0x14], edi
cmp dword [ebp - 4], edi
jbe 0x402fe8
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 0x402fac
add esi, dword [ebp + 0x14]
cmp esi, dword [ebp - 4]
jb 0x402f87
jmp 0x402fe8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x402fc0
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, edi
jl 0x402fcb
mov ebx, 0x80004005
push ebx
push 0x309
push str.pipe.cpp
call fcn.0043294e
push str.Failed_to_write_message_type_to_pipe.
push ebx
call fcn.0042fa86
pop ecx
pop ecx
pop esi
cmp dword [ebp - 8], edi
je 0x402ff6
push dword [ebp - 8]
call fcn.004324f6
pop edi
mov eax, ebx
pop ebx
leave
ret 0x10
Function at 0x402ffe
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 0x403063
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x403049
and dword [ebp - 4], 0
jmp 0x403063
cmp eax, 0x6d
je 0x4030ae
test eax, eax
jle 0x40305c
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
test eax, eax
jl 0x4030be
add esi, dword [ebp - 8]
cmp esi, 8
jb 0x403018
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 0x403139
push esi
push eax
call fcn.0043233b
mov dword [ebx + 0xc], eax
cmp eax, esi
jne 0x4030d7
mov esi, 0x8007000e
push esi
push 0x33c
push str.pipe.cpp
mov dword [ebp - 4], esi
call fcn.0043294e
push str.Failed_to_allocate_data_for_message.
push esi
jmp 0x403129
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], 1
jmp 0x40306b
push dword [ebp - 4]
push 0x331
push str.pipe.cpp
call fcn.0043294e
push str.Failed_to_read_message_from_pipe.
jmp 0x403126
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 0x403132
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x403101
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, esi
jl 0x40310f
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x340
push str.pipe.cpp
call fcn.0043294e
push str.Failed_to_read_data_for_message.
push dword [ebp - 4]
call fcn.0042fa86
pop ecx
pop ecx
jmp 0x403139
mov dword [ebx + 8], 1
cmp dword [ebx + 8], 0
jne 0x40314c
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x40314c
push ebx
call fcn.004324f6
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x405fe4
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.00431fe9
mov ebx, eax
cmp ebx, esi
jge 0x406034
mov eax, str.per_machine
cmp dword [ebp + 8], esi
jne 0x406023
mov eax, str.per_user
push eax
push str.Failed_to_find_local__hs_appdata_directory.
push ebx
call fcn.0042fa86
add esp, 0xc
jmp 0x40609e
mov dword [ebp - 0x10], esi
cmp dword [edi + 4], esi
jbe 0x40609e
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.0043201f
mov ebx, eax
test ebx, ebx
js 0x40608f
lea eax, [ebp - 8]
push eax
push dword [esi]
push dword [ebp - 4]
call fcn.0043201f
mov ebx, eax
test ebx, ebx
js 0x40608f
push dword [ebp - 8]
call fcn.00435bbe
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 0x40603f
jmp 0x40609c
push str.Failed_to_allocate_regid_folder_path.
push ebx
call fcn.0042fa86
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 8], esi
je 0x4060ab
push dword [ebp - 8]
call fcn.004301e8
cmp dword [ebp - 4], esi
je 0x4060b8
push dword [ebp - 4]
call fcn.004301e8
cmp dword [ebp - 0xc], esi
je 0x4060c5
push dword [ebp - 0xc]
call fcn.004301e8
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x406893
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.00411879
push eax
push dword [ebp + 0xc]
call fcn.00411879
push eax
push ebx
call fcn.00411a53
push eax
push dword [esi + 0x50]
push 0x20000173
push 2
call fcn.00401566
add esp, 0x18
cmp dword [ebp + 8], edi
je 0x406916
push ebx
push str.Resume
push dword [ebp + 8]
call fcn.0043362a
mov edi, eax
test edi, edi
jns 0x4068f2
push str.Failed_to_write_Resume_value.
jmp 0x406a78
cmp ebx, 3
jne 0x406916
push 1
push str.Installed
push dword [ebp + 8]
call fcn.0043362a
mov edi, eax
test edi, edi
jns 0x40691b
push str.Failed_to_write_Installed_value.
jmp 0x406a78
cmp ebx, 1
je 0x406925
cmp dword [ebp + 0xc], 0
je 0x4069c0
cmp dword [esi + 8], 0
jne 0x4069c0
push str.burn.runonce
push dword [esi + 0x54]
lea eax, [ebp - 8]
push str.__ls____ls
push eax
call fcn.0043177a
mov edi, eax
add esp, 0x10
test edi, edi
jns 0x406958
push str.Failed_to_format_resume_command_line_for_RunOnce.
jmp 0x406a78
lea eax, [ebp - 4]
push eax
push 0x20006
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push dword [esi + 0x4c]
call fcn.004336cb
mov edi, eax
test edi, edi
jns 0x40697e
push str.Failed_to_create_run_key.
jmp 0x406a78
push dword [ebp - 8]
push dword [esi + 0x10]
push dword [ebp - 4]
call fcn.00433b02
mov edi, eax
test edi, edi
jns 0x40699c
push str.Failed_to_write_run_key_value.
jmp 0x406a78
push dword [esi + 0x58]
push str.BundleResumeCommandLine
push dword [ebp + 8]
call fcn.00433b02
mov edi, eax
test edi, edi
jns 0x406a80
push str.Failed_to_write_resume_command_line_value.
jmp 0x406a78
lea eax, [ebp - 4]
push eax
push 0x20006
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push dword [esi + 0x4c]
call fcn.0043378b
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
cmp edi, 0x80070002
je 0x406a2f
cmp edi, 0x80070003
je 0x406a2f
push dword [esi + 0x10]
push dword [ebp - 4]
call ebx
cmp eax, 2
jne 0x4069fd
xor eax, eax
test eax, eax
je 0x406a31
jle 0x406a0d
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x406a18
mov edi, 0x80004005
push edi
push 0x4af
push str.registration.cpp
call fcn.0043294e
push str.Failed_to_delete_run_key_value.
jmp 0x406a78
xor edi, edi
cmp dword [ebp + 8], 0
je 0x406a80
push str.BundleResumeCommandLine
push dword [ebp + 8]
call ebx
cmp eax, 2
jne 0x406a48
xor eax, eax
test eax, eax
je 0x406a80
jle 0x406a58
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x406a63
mov edi, 0x80004005
push edi
push 0x4b9
push str.registration.cpp
call fcn.0043294e
push str.Failed_to_delete_resume_command_line_value.
push edi
call fcn.0042fa86
pop ecx
pop ecx
cmp dword [ebp - 8], 0
je 0x406a8e
push dword [ebp - 8]
call fcn.004301e8
cmp dword [ebp - 4], 0
je 0x406a9d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
leave
ret 8
Function at 0x40741b
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.00408c14
mov esi, eax
cmp esi, ebx
jge 0x407447
push str.Failed_to_format_variable_string.
jmp 0x4074c0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40747f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x407469
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, 0x80070002
je 0x40747b
cmp esi, 0x80070003
jne 0x40748a
xor esi, esi
jmp 0x40748a
test al, 0x10
je 0x40748a
mov dword [ebp - 8], 1
cmp esi, ebx
jge 0x4074a3
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.0042fa86
add esp, 0x10
jmp 0x4074c8
mov eax, dword [ebp - 8]
push ebx
cdq
push edx
push eax
push dword [edi + 4]
push dword [ebp + 8]
call fcn.0040a6f5
mov esi, eax
cmp esi, ebx
jge 0x4074c8
push str.Failed_to_set_variable.
push esi
call fcn.0042fa86
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
je 0x4074d5
push dword [ebp - 4]
call fcn.004301e8
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x4074dd
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.00408c14
mov esi, eax
test esi, esi
jns 0x407504
push str.Failed_to_format_variable_string.
jmp 0x407549
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40752a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x407526
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x407558
test al, 0x10
je 0x407553
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 8]
call fcn.0040a734
mov esi, eax
test esi, esi
jns 0x407558
push str.Failed_to_set_directory_search_path_variable.
push esi
call fcn.0042fa86
pop ecx
pop ecx
jmp 0x407598
mov esi, 0x80070003
cmp esi, 0x80070002
je 0x407581
cmp esi, 0x80070003
je 0x407581
test esi, esi
jns 0x407598
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.0042fa86
add esp, 0x10
jmp 0x407598
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.0042f6a2
add esp, 0x14
xor esi, esi
cmp dword [ebp - 4], 0
je 0x4075a6
push dword [ebp - 4]
call fcn.004301e8
mov eax, esi
pop esi
leave
ret 4
Function at 0x4075ad
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.00408c14
mov esi, eax
test esi, esi
jns 0x4075d8
push str.Failed_to_format_variable_string.
jmp 0x407671
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40764a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x407634
cmp eax, 3
je 0x407634
test eax, eax
je 0x407654
jle 0x407606
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x407611
mov esi, 0x80004005
push esi
push 0x28d
push str.search.cpp
call fcn.0043294e
push dword [edi + 0x14]
push str.Failed_get_to_file_attributes.__ls
push esi
call fcn.0042fa86
add esp, 0xc
jmp 0x407679
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.0042f6a2
add esp, 0x10
jmp 0x407654
and eax, 0x10
cmp al, 0x10
je 0x407654
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.0040a6f5
mov esi, eax
test esi, esi
jns 0x407679
push str.Failed_to_set_variable.
push esi
call fcn.0042fa86
pop ecx
pop ecx
cmp dword [ebp - 4], 0
je 0x407687
push dword [ebp - 4]
call fcn.004301e8
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x40773f
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.00408c14
mov esi, eax
test esi, esi
jns 0x407766
push str.Failed_to_format_variable_string.
jmp 0x4077d2
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4077b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x407788
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, 0x80070002
je 0x4077dc
cmp esi, 0x80070003
je 0x4077dc
test esi, esi
jns 0x4077f2
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_file_search:__ls__for_path:__ls
push esi
call fcn.0042fa86
add esp, 0x10
jmp 0x4077f2
test al, 0x10
jne 0x4077dc
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 8]
call fcn.0040a734
mov esi, eax
test esi, esi
jns 0x40778a
push str.Failed_to_set_variable_to_file_search_path.
push esi
call fcn.0042fa86
pop ecx
pop ecx
jmp 0x4077f2
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.0042f6a2
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], 0
je 0x407800
push dword [ebp - 4]
call fcn.004301e8
mov eax, esi
pop esi
leave
ret 4
Function at 0x407807
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 0x407830
mov dword [ebp - 0xc], 0x101
push ebx
lea eax, [ebp - 4]
push eax
push dword [esi + 0x1c]
push dword [ebp + 8]
call fcn.00408c14
mov edi, eax
cmp edi, ebx
jge 0x407850
push str.Failed_to_format_key_string.
jmp 0x407950
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [esi + 0x18]
call fcn.0043378b
mov edi, eax
cmp edi, ebx
jl 0x407898
mov eax, dword [esi + 0x20]
mov dword [ebp - 0xc], 1
cmp eax, ebx
je 0x407933
push ebx
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 8]
call fcn.00408c14
mov edi, eax
cmp edi, ebx
jge 0x4078c3
push str.Failed_to_format_value_string.
jmp 0x407950
cmp edi, 0x80070002
jne 0x4078ad
push dword [esi + 4]
push dword [ebp - 4]
push str.Registry_key_not_found._Key___ls__variable___ls
jmp 0x40791d
push dword [ebp - 4]
push str.Failed_to_open_registry_key._Key___ls
push edi
call fcn.0042fa86
add esp, 0xc
jmp 0x407958
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 0x40792c
dec ecx
dec ecx
je 0x407912
cmp eax, ebx
je 0x407933
jle 0x4078f0
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x4078fb
mov edi, 0x80004005
push edi
push 0x31f
push str.search.cpp
call fcn.0043294e
push str.Failed_to_query_registry_key_value.
jmp 0x407950
push dword [ebp - 8]
push dword [ebp - 4]
push str.Registry_value_not_found._Key___ls__Value___ls
push 2
call fcn.0042f6a2
add esp, 0x10
mov dword [ebp - 0xc], ebx
jmp 0x407933
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.0040a6f5
mov edi, eax
cmp edi, ebx
jge 0x40796f
push str.Failed_to_set_variable.
push edi
call fcn.0042fa86
pop ecx
pop ecx
cmp edi, ebx
jge 0x40796f
push edi
push dword [ebp - 4]
push str.RegistrySearchExists_failed:_ID__ls__HRESULT_0x_x
push 2
call fcn.0042f6a2
add esp, 0x10
cmp dword [ebp - 4], ebx
je 0x40797c
push dword [ebp - 4]
call fcn.004301e8
cmp dword [ebp - 8], ebx
je 0x407989
push dword [ebp - 8]
call fcn.004301e8
cmp dword [ebp - 0x10], ebx
je 0x407997
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
leave
ret 4
Function at 0x411133
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 0x410e3a
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 0x411206
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x4111dc
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, esi
jl 0x4111e7
mov ebx, 0x80004005
push ebx
push 0x428
push str.elevation.cpp
call fcn.0043294e
push str.Failed_to_create_elevated_cache_thread.
push ebx
call fcn.0042fa86
pop ecx
pop ecx
jmp 0x41124d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x410ee7
push dword [ebp + 0xc]
call fcn.004033b1
mov ebx, eax
cmp ebx, esi
jge 0x411230
push str.Failed_to_pump_messages_in_child_process.
push ebx
call fcn.0042fa86
pop ecx
pop ecx
jmp 0x411246
push edi
call fcn.0040e8a3
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
Function at 0x41152b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
push ebx
push ebx
stosd dword es:[edi], eax
push 1
push ebx
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x411592
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x41156e
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x41157c
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x3b
push str.uithread.cpp
call fcn.0043294e
push str.Failed_to_create_initialization_event.
jmp 0x4115f1
mov esi, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0x411377
push ebx
push ebx
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x4115fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4115cf
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x4115dd
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x44
push str.uithread.cpp
call fcn.0043294e
push str.Failed_to_create_the_UI_thread.
push dword [ebp - 4]
call fcn.0042fa86
pop ecx
pop ecx
jmp 0x411618
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [ebp - 8]
mov dword [esi + 0x3d4], eax
mov dword [ebp - 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x41162b
push dword [ebp - 8]
call esi
mov dword [ebp - 8], ebx
cmp dword [ebp - 0xc], ebx
je 0x411635
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8