joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40613a
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.0043131c
mov ebx, eax
cmp ebx, esi
jge 0x40618a
mov eax, str.per_machine
cmp dword [ebp + 8], esi
jne 0x406179
mov eax, str.per_user
push eax
push str.Failed_to_find_local__hs_appdata_directory.
push ebx
call fcn.0042eef6
add esp, 0xc
jmp 0x4061f4
mov dword [ebp - 0x10], esi
cmp dword [edi + 4], esi
jbe 0x4061f4
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.00431352
mov ebx, eax
test ebx, ebx
js 0x4061e5
lea eax, [ebp - 8]
push eax
push dword [esi]
push dword [ebp - 4]
call fcn.00431352
mov ebx, eax
test ebx, ebx
js 0x4061e5
push dword [ebp - 8]
call fcn.00434eaa
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 0x406195
jmp 0x4061f2
push str.Failed_to_allocate_regid_folder_path.
push ebx
call fcn.0042eef6
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 8], esi
je 0x406201
push dword [ebp - 8]
call fcn.0042f657
cmp dword [ebp - 4], esi
je 0x40620e
push dword [ebp - 4]
call fcn.0042f657
cmp dword [ebp - 0xc], esi
je 0x40621b
push dword [ebp - 0xc]
call fcn.0042f657
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x407298
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.00408a61
mov esi, eax
cmp esi, ebx
jge 0x4072c4
push str.Failed_to_format_variable_string.
jmp 0x40733d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4072fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4072e6
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, 0x80070002
je 0x4072f8
cmp esi, 0x80070003
jne 0x407307
xor esi, esi
jmp 0x407307
test al, 0x10
je 0x407307
mov dword [ebp - 8], 1
cmp esi, ebx
jge 0x407320
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.0042eef6
add esp, 0x10
jmp 0x407345
mov eax, dword [ebp - 8]
push ebx
cdq
push edx
push eax
push dword [edi + 4]
push dword [ebp + 8]
call fcn.0040a569
mov esi, eax
cmp esi, ebx
jge 0x407345
push str.Failed_to_set_variable.
push esi
call fcn.0042eef6
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
je 0x407352
push dword [ebp - 4]
call fcn.0042f657
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x40735a
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.00408a61
mov esi, eax
test esi, esi
jns 0x407381
push str.Failed_to_format_variable_string.
jmp 0x4073c6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4073a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4073a3
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x4073d5
test al, 0x10
je 0x4073d0
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 8]
call fcn.0040a5a8
mov esi, eax
test esi, esi
jns 0x4073d5
push str.Failed_to_set_directory_search_path_variable.
push esi
call fcn.0042eef6
pop ecx
pop ecx
jmp 0x407415
mov esi, 0x80070003
cmp esi, 0x80070002
je 0x4073fe
cmp esi, 0x80070003
je 0x4073fe
test esi, esi
jns 0x407415
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.0042eef6
add esp, 0x10
jmp 0x407415
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.0042eb12
add esp, 0x14
xor esi, esi
cmp dword [ebp - 4], 0
je 0x407423
push dword [ebp - 4]
call fcn.0042f657
mov eax, esi
pop esi
leave
ret 4
Function at 0x40742a
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.00408a61
mov esi, eax
test esi, esi
jns 0x407455
push str.Failed_to_format_variable_string.
jmp 0x4074ee
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4074c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4074b1
cmp eax, 3
je 0x4074b1
test eax, eax
je 0x4074d1
jle 0x407483
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x40748e
mov esi, 0x80004005
push esi
push 0x28d
push str.search.cpp
call fcn.0043166e
push dword [edi + 0x14]
push str.Failed_get_to_file_attributes.__ls
push esi
call fcn.0042eef6
add esp, 0xc
jmp 0x4074f6
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.0042eb12
add esp, 0x10
jmp 0x4074d1
and eax, 0x10
cmp al, 0x10
je 0x4074d1
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.0040a569
mov esi, eax
test esi, esi
jns 0x4074f6
push str.Failed_to_set_variable.
push esi
call fcn.0042eef6
pop ecx
pop ecx
cmp dword [ebp - 4], 0
je 0x407504
push dword [ebp - 4]
call fcn.0042f657
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x4075bc
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.00408a61
mov esi, eax
test esi, esi
jns 0x4075e3
push str.Failed_to_format_variable_string.
jmp 0x40764f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407630
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x407605
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, 0x80070002
je 0x407659
cmp esi, 0x80070003
je 0x407659
test esi, esi
jns 0x40766f
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_file_search:__ls__for_path:__ls
push esi
call fcn.0042eef6
add esp, 0x10
jmp 0x40766f
test al, 0x10
jne 0x407659
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 8]
call fcn.0040a5a8
mov esi, eax
test esi, esi
jns 0x407607
push str.Failed_to_set_variable_to_file_search_path.
push esi
call fcn.0042eef6
pop ecx
pop ecx
jmp 0x40766f
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.0042eb12
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], 0
je 0x40767d
push dword [ebp - 4]
call fcn.0042f657
mov eax, esi
pop esi
leave
ret 4
Function at 0x407684
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 0x4076ad
mov dword [ebp - 0xc], 0x101
push ebx
lea eax, [ebp - 4]
push eax
push dword [esi + 0x1c]
push dword [ebp + 8]
call fcn.00408a61
mov edi, eax
cmp edi, ebx
jge 0x4076cd
push str.Failed_to_format_key_string.
jmp 0x4077cd
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [esi + 0x18]
call fcn.00432aef
mov edi, eax
cmp edi, ebx
jl 0x407715
mov eax, dword [esi + 0x20]
mov dword [ebp - 0xc], 1
cmp eax, ebx
je 0x4077b0
push ebx
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 8]
call fcn.00408a61
mov edi, eax
cmp edi, ebx
jge 0x407740
push str.Failed_to_format_value_string.
jmp 0x4077cd
cmp edi, 0x80070002
jne 0x40772a
push dword [esi + 4]
push dword [ebp - 4]
push str.Registry_key_not_found._Key___ls__variable___ls
jmp 0x40779a
push dword [ebp - 4]
push str.Failed_to_open_registry_key._Key___ls
push edi
call fcn.0042eef6
add esp, 0xc
jmp 0x4077d5
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 0x4077a9
dec ecx
dec ecx
je 0x40778f
cmp eax, ebx
je 0x4077b0
jle 0x40776d
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x407778
mov edi, 0x80004005
push edi
push 0x31f
push str.search.cpp
call fcn.0043166e
push str.Failed_to_query_registry_key_value.
jmp 0x4077cd
push dword [ebp - 8]
push dword [ebp - 4]
push str.Registry_value_not_found._Key___ls__Value___ls
push 2
call fcn.0042eb12
add esp, 0x10
mov dword [ebp - 0xc], ebx
jmp 0x4077b0
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.0040a569
mov edi, eax
cmp edi, ebx
jge 0x4077ec
push str.Failed_to_set_variable.
push edi
call fcn.0042eef6
pop ecx
pop ecx
cmp edi, ebx
jge 0x4077ec
push edi
push dword [ebp - 4]
push str.RegistrySearchExists_failed:_ID__ls__HRESULT_0x_x
push 2
call fcn.0042eb12
add esp, 0x10
cmp dword [ebp - 4], ebx
je 0x4077f9
push dword [ebp - 4]
call fcn.0042f657
cmp dword [ebp - 8], ebx
je 0x407806
push dword [ebp - 8]
call fcn.0042f657
cmp dword [ebp - 0x10], ebx
je 0x407814
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
leave
ret 4
Function at 0x40b566
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
push ebx
stosd dword es:[edi], eax

Function at 0x40ba73
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
call fcn.0040a5f6
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x40ba92

Function at 0x410d4b
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 0x410a1e
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 0x410e1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x410df4
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, esi
jl 0x410dff
mov ebx, 0x80004005
push ebx
push 0x417
push str.elevation.cpp
call fcn.0043166e
push str.Failed_to_create_elevated_cache_thread.
push ebx
call fcn.0042eef6
pop ecx
pop ecx
jmp 0x410e65
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x410acb
push dword [ebp + 0xc]
call fcn.004033fe
mov ebx, eax
cmp ebx, esi
jge 0x410e48
push str.Failed_to_pump_messages_in_child_process.
push ebx
call fcn.0042eef6
pop ecx
pop ecx
jmp 0x410e5e
push edi
call fcn.0040e5ff
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 0x411143
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 0x4111aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x411186
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x411194
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x3b
push str.uithread.cpp
call fcn.0043166e
push str.Failed_to_create_initialization_event.
jmp 0x411209
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 0x410f8f
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 0x411215
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4111e7
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x4111f5
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x44
push str.uithread.cpp
call fcn.0043166e
push str.Failed_to_create_the_UI_thread.
push dword [ebp - 4]
call fcn.0042eef6
pop ecx
pop ecx
jmp 0x411230
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 0x411243
push dword [ebp - 8]
call esi
mov dword [ebp - 8], ebx
cmp dword [ebp - 0xc], ebx
je 0x41124d
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x411925
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4530d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004272a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x218], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4119b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x411994
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x41199f
mov esi, 0x80004005
push esi
push 0x25a
push str.logging.cpp
call fcn.0043166e
push str.Failed_to_get_temp_folder.
jmp 0x411a9b
lea eax, [ebp - 0x214]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00411870
mov esi, eax
cmp esi, edi
jge 0x4119dd
push str.Failed_to_get_length_of_temp_folder.
jmp 0x411a9b
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 0x411a7d
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push 0x442fd8
push eax
call fcn.00430aad
mov esi, eax
add esp, 0xc
cmp esi, edi
jge 0x411a20
push str.Failed_to_format_session_id_as_a_string.
jmp 0x411a9b
lea eax, [ebp - 0x218]
push eax
push SysReAllocString
push dword [ebp - 0x210]
call fcn.00411870
mov esi, eax
cmp esi, edi
jge 0x411a44
push str.Failed_to_get_length_of_session_id_string.
jmp 0x411a9b
push dword [ebp - 0x218]
mov esi, dword [ebp - 0x214]
push dword [ebp - 0x210]
sub esi, dword [ebp - 0x218]
push dword [ebp - 0x218]
lea eax, [ebp + esi*2 - 0x20c]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x411a7d
mov dword [ebp - 0x214], esi
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004304a4
mov esi, eax
cmp esi, edi
jge 0x411aa3
push str.Failed_to_copy_temp_folder.
push esi
call fcn.0042eef6
pop ecx
pop ecx
cmp dword [ebp - 0x210], edi
je 0x411ab6
push dword [ebp - 0x210]
call fcn.0042f657
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042731a
leave
ret
Function at 0x415c1e
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 eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
push edi
push edi
push 1
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0xc], eax
cmp eax, edi
jne 0x415c80
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x415c61
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x415c6c
mov esi, 0x80004005
push esi
push 0x41
push str.splashscreen.cpp
call fcn.0043166e
push str.Failed_to_create_modal_event.
jmp 0x415ce3
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 0x415a5c
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x415ced
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x415cc6
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x415cd1
mov esi, 0x80004005
push esi
push 0x4a
push str.splashscreen.cpp
call fcn.0043166e
push str.Failed_to_create_UI_thread.
push esi
call fcn.0042eef6
pop ecx
pop ecx
jmp 0x415cfc
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 0x415d0f
push dword [ebp - 8]
call esi
mov dword [ebp - 8], edi
cmp dword [ebp - 0xc], edi
je 0x415d19
push dword [ebp - 0xc]
call esi
pop edi
pop esi
leave
ret 0xc

Function at 0x416ee5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4530d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
mov esi, ecx
call fcn.004272a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x416f5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x416f3b
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x416f46
mov esi, 0x80004005
push esi
push 0x42f
push str.cache.cpp
call fcn.0043166e
push str.Failed_to_get_temp_path_for_working_folder.
jmp 0x416f7e
push esi
lea eax, [ebp - 0x20c]
push eax
push str._ls_ls_
push edi
call fcn.00430aad
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x416f86
push str.Failed_to_append_bundle_id_on_to_temp_path_for_working_folder.
push esi
call fcn.0042eef6
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042731a
leave
ret
Function at 0x417091
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov ecx, 0x20000004
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x41711c
lea eax, [ebp - 4]
push eax
push 0x1a
call fcn.00416fe4
mov esi, eax
cmp esi, edi
jge 0x4170c7
push str.Failed_to_allocate_administrator_SID.
jmp 0x41710d
push 2
push 8
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x417117
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x4170ed
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x4170f8
mov esi, 0x80004005
push esi
push 0x56b
push str.cache.cpp
call fcn.0043166e
push str.Failed_to_initialize_ACL.
push esi
call fcn.0042eef6
pop ecx
pop ecx
jmp 0x417147
mov ecx, 0x20000005
push 0x7d0
push 3
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 4]
push ecx
push 1
push dword [ebp + 0xc]
call fcn.0042ef0a
push 0x80
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 4], edi
je 0x417154
push dword [ebp - 4]
call fcn.00431a27
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x4183a8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4530d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push 0x250
lea eax, [ebp - 0x254]
push ebx
push eax
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x25c], ebx
call fcn.004272a0
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push str..unverified
push dword [ebp + 8]
call fcn.00416cd0
test eax, eax
js 0x41840e
push 7
push dword [ebp - 0x258]
call fcn.004359b5
cmp dword [ebp + 8], ebx
jne 0x4184f8
push edi
lea edi, [ebp - 0x258]
mov ecx, esi
call fcn.00416ee5
pop edi
test eax, eax
js 0x4184f8
lea eax, [ebp - 0x260]
push eax
push 0x446360
push dword [ebp - 0x258]
call fcn.00431352
test eax, eax
js 0x4184f8
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4184f8
test byte [ebp - 0x254], 0x10
jne 0x4184db
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 0x4184b3
push 0x2e
add eax, eax
pop ecx
cmp cx, word [ebp + eax - 0x22c]
jne 0x4184b3
movzx eax, word [ebp + eax - 0x22a]
push 0x52
pop ecx
cmp cx, ax
je 0x4184db
push 0x72
pop ecx
cmp cx, ax
je 0x4184db
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x258]
call fcn.00431352
test eax, eax
js 0x4184db
push dword [ebp - 0x25c]
call fcn.00434eaa
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41846b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x25c], ebx
je 0x41850b
push dword [ebp - 0x25c]
call fcn.0042f657
cmp dword [ebp - 0x260], ebx
je 0x41851e
push dword [ebp - 0x260]
call fcn.0042f657
cmp dword [ebp - 0x258], ebx
pop esi
pop ebx
je 0x418533
push dword [ebp - 0x258]
call fcn.0042f657
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042731a
leave
ret 8
Function at 0x41ddbc
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4530d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push edx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x41de27
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41ddff
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x41de0a
mov esi, 0x80004005
push esi
push 0x1ef
push str.msuengine.cpp
call fcn.0043166e
push str.Failed_to_stop_wusa_service.
push esi
call fcn.0042eef6
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042731a
leave
ret