joyce8/EMBER2024-capa huggingface dataset:
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.00432955
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.00432f68
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.00432f68
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.00432f68
push str.Failed_to_read_data_for_message.
push dword [ebp - 4]
call fcn.004300f7
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.00432b10
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.00432603
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.004300f7
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.00432639
mov ebx, eax
test ebx, ebx
js 0x406097
lea eax, [ebp - 8]
push eax
push dword [esi]
push dword [ebp - 4]
call fcn.00432639
mov ebx, eax
test ebx, ebx
js 0x406097
push dword [ebp - 8]
call fcn.0043622f
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.004300f7
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 8], esi
je 0x4060b3
push dword [ebp - 8]
call fcn.00430858
cmp dword [ebp - 4], esi
je 0x4060c0
push dword [ebp - 4]
call fcn.00430858
cmp dword [ebp - 0xc], esi
je 0x4060cd
push dword [ebp - 0xc]
call fcn.00430858
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x4068e9
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.004118ef
push eax
push dword [ebp + 0xc]
call fcn.004118ef
push eax
push ebx
call fcn.00411ac9
push eax
push dword [esi + 0x50]
push 0x20000173
push 2
call fcn.00401566
add esp, 0x18
cmp dword [ebp + 8], edi
je 0x40696c
push ebx
push str.Resume
push dword [ebp + 8]
call fcn.00433c9b
mov edi, eax
test edi, edi
jns 0x406948
push str.Failed_to_write_Resume_value.
jmp 0x406ace
cmp ebx, 3
jne 0x40696c
push 1
push str.Installed
push dword [ebp + 8]
call fcn.00433c9b
mov edi, eax
test edi, edi
jns 0x406971
push str.Failed_to_write_Installed_value.
jmp 0x406ace
cmp ebx, 1
je 0x40697b
cmp dword [ebp + 0xc], 0
je 0x406a16
cmp dword [esi + 8], 0
jne 0x406a16
push str.burn.runonce
push dword [esi + 0x54]
lea eax, [ebp - 8]
push str.__ls____ls
push eax
call fcn.00431d94
mov edi, eax
add esp, 0x10
test edi, edi
jns 0x4069ae
push str.Failed_to_format_resume_command_line_for_RunOnce.
jmp 0x406ace
lea eax, [ebp - 4]
push eax
push 0x20006
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push dword [esi + 0x4c]
call fcn.00433d3c
mov edi, eax
test edi, edi
jns 0x4069d4
push str.Failed_to_create_run_key.
jmp 0x406ace
push dword [ebp - 8]
push dword [esi + 0x10]
push dword [ebp - 4]
call fcn.00434173
mov edi, eax
test edi, edi
jns 0x4069f2
push str.Failed_to_write_run_key_value.
jmp 0x406ace
push dword [esi + 0x58]
push str.BundleResumeCommandLine
push dword [ebp + 8]
call fcn.00434173
mov edi, eax
test edi, edi
jns 0x406ad6
push str.Failed_to_write_resume_command_line_value.
jmp 0x406ace
lea eax, [ebp - 4]
push eax
push 0x20006
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push dword [esi + 0x4c]
call fcn.00433dfc
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
cmp edi, 0x80070002
je 0x406a85
cmp edi, 0x80070003
je 0x406a85
push dword [esi + 0x10]
push dword [ebp - 4]
call ebx
cmp eax, 2
jne 0x406a53
xor eax, eax
test eax, eax
je 0x406a87
jle 0x406a63
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x406a6e
mov edi, 0x80004005
push edi
push 0x4b9
push str.registration.cpp
call fcn.00432f68
push str.Failed_to_delete_run_key_value.
jmp 0x406ace
xor edi, edi
cmp dword [ebp + 8], 0
je 0x406ad6
push str.BundleResumeCommandLine
push dword [ebp + 8]
call ebx
cmp eax, 2
jne 0x406a9e
xor eax, eax
test eax, eax
je 0x406ad6
jle 0x406aae
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x406ab9
mov edi, 0x80004005
push edi
push 0x4c3
push str.registration.cpp
call fcn.00432f68
push str.Failed_to_delete_resume_command_line_value.
push edi
call fcn.004300f7
pop ecx
pop ecx
cmp dword [ebp - 8], 0
je 0x406ae4
push dword [ebp - 8]
call fcn.00430858
cmp dword [ebp - 4], 0
je 0x406af3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
leave
ret 8
Function at 0x407471
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.00408c6a
mov esi, eax
cmp esi, ebx
jge 0x40749d
push str.Failed_to_format_variable_string.
jmp 0x407516
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4074d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4074bf
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, 0x80070002
je 0x4074d1
cmp esi, 0x80070003
jne 0x4074e0
xor esi, esi
jmp 0x4074e0
test al, 0x10
je 0x4074e0
mov dword [ebp - 8], 1
cmp esi, ebx
jge 0x4074f9
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.004300f7
add esp, 0x10
jmp 0x40751e
mov eax, dword [ebp - 8]
push ebx
cdq
push edx
push eax
push dword [edi + 4]
push dword [ebp + 8]
call fcn.0040a74b
mov esi, eax
cmp esi, ebx
jge 0x40751e
push str.Failed_to_set_variable.
push esi
call fcn.004300f7
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
je 0x40752b
push dword [ebp - 4]
call fcn.00430858
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x407533
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.00408c6a
mov esi, eax
test esi, esi
jns 0x40755a
push str.Failed_to_format_variable_string.
jmp 0x40759f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407580
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40757c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x4075ae
test al, 0x10
je 0x4075a9
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 8]
call fcn.0040a78a
mov esi, eax
test esi, esi
jns 0x4075ae
push str.Failed_to_set_directory_search_path_variable.
push esi
call fcn.004300f7
pop ecx
pop ecx
jmp 0x4075ee
mov esi, 0x80070003
cmp esi, 0x80070002
je 0x4075d7
cmp esi, 0x80070003
je 0x4075d7
test esi, esi
jns 0x4075ee
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.004300f7
add esp, 0x10
jmp 0x4075ee
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.0042fd12
add esp, 0x14
xor esi, esi
cmp dword [ebp - 4], 0
je 0x4075fc
push dword [ebp - 4]
call fcn.00430858
mov eax, esi
pop esi
leave
ret 4
Function at 0x407603
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.00408c6a
mov esi, eax
test esi, esi
jns 0x40762e
push str.Failed_to_format_variable_string.
jmp 0x4076c7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4076a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40768a
cmp eax, 3
je 0x40768a
test eax, eax
je 0x4076aa
jle 0x40765c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x407667
mov esi, 0x80004005
push esi
push 0x28d
push str.search.cpp
call fcn.00432f68
push dword [edi + 0x14]
push str.Failed_get_to_file_attributes.__ls
push esi
call fcn.004300f7
add esp, 0xc
jmp 0x4076cf
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.0042fd12
add esp, 0x10
jmp 0x4076aa
and eax, 0x10
cmp al, 0x10
je 0x4076aa
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.0040a74b
mov esi, eax
test esi, esi
jns 0x4076cf
push str.Failed_to_set_variable.
push esi
call fcn.004300f7
pop ecx
pop ecx
cmp dword [ebp - 4], 0
je 0x4076dd
push dword [ebp - 4]
call fcn.00430858
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x407795
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.00408c6a
mov esi, eax
test esi, esi
jns 0x4077bc
push str.Failed_to_format_variable_string.
jmp 0x407828
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407809
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4077de
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, 0x80070002
je 0x407832
cmp esi, 0x80070003
je 0x407832
test esi, esi
jns 0x407848
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_file_search:__ls__for_path:__ls
push esi
call fcn.004300f7
add esp, 0x10
jmp 0x407848
test al, 0x10
jne 0x407832
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 8]
call fcn.0040a78a
mov esi, eax
test esi, esi
jns 0x4077e0
push str.Failed_to_set_variable_to_file_search_path.
push esi
call fcn.004300f7
pop ecx
pop ecx
jmp 0x407848
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.0042fd12
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], 0
je 0x407856
push dword [ebp - 4]
call fcn.00430858
mov eax, esi
pop esi
leave
ret 4
Function at 0x40785d
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 0x407886
mov dword [ebp - 0xc], 0x101
push ebx
lea eax, [ebp - 4]
push eax
push dword [esi + 0x1c]
push dword [ebp + 8]
call fcn.00408c6a
mov edi, eax
cmp edi, ebx
jge 0x4078a6
push str.Failed_to_format_key_string.
jmp 0x4079a6
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [esi + 0x18]
call fcn.00433dfc
mov edi, eax
cmp edi, ebx
jl 0x4078ee
mov eax, dword [esi + 0x20]
mov dword [ebp - 0xc], 1
cmp eax, ebx
je 0x407989
push ebx
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 8]
call fcn.00408c6a
mov edi, eax
cmp edi, ebx
jge 0x407919
push str.Failed_to_format_value_string.
jmp 0x4079a6
cmp edi, 0x80070002
jne 0x407903
push dword [esi + 4]
push dword [ebp - 4]
push str.Registry_key_not_found._Key___ls__variable___ls
jmp 0x407973
push dword [ebp - 4]
push str.Failed_to_open_registry_key._Key___ls
push edi
call fcn.004300f7
add esp, 0xc
jmp 0x4079ae
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 0x407982
dec ecx
dec ecx
je 0x407968
cmp eax, ebx
je 0x407989
jle 0x407946
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x407951
mov edi, 0x80004005
push edi
push 0x31f
push str.search.cpp
call fcn.00432f68
push str.Failed_to_query_registry_key_value.
jmp 0x4079a6
push dword [ebp - 8]
push dword [ebp - 4]
push str.Registry_value_not_found._Key___ls__Value___ls
push 2
call fcn.0042fd12
add esp, 0x10
mov dword [ebp - 0xc], ebx
jmp 0x407989
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.0040a74b
mov edi, eax
cmp edi, ebx
jge 0x4079c5
push str.Failed_to_set_variable.
push edi
call fcn.004300f7
pop ecx
pop ecx
cmp edi, ebx
jge 0x4079c5
push edi
push dword [ebp - 4]
push str.RegistrySearchExists_failed:_ID__ls__HRESULT_0x_x
push 2
call fcn.0042fd12
add esp, 0x10
cmp dword [ebp - 4], ebx
je 0x4079d2
push dword [ebp - 4]
call fcn.00430858
cmp dword [ebp - 8], ebx
je 0x4079df
push dword [ebp - 8]
call fcn.00430858
cmp dword [ebp - 0x10], ebx
je 0x4079ed
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
leave
ret 4
Function at 0x4111a9
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 0x410eb0
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 0x41127c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x411252
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, esi
jl 0x41125d
mov ebx, 0x80004005
push ebx
push 0x428
push str.elevation.cpp
call fcn.00432f68
push str.Failed_to_create_elevated_cache_thread.
push ebx
call fcn.004300f7
pop ecx
pop ecx
jmp 0x4112c3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x410f5d
push dword [ebp + 0xc]
call fcn.004033b9
mov ebx, eax
cmp ebx, esi
jge 0x4112a6
push str.Failed_to_pump_messages_in_child_process.
push ebx
call fcn.004300f7
pop ecx
pop ecx
jmp 0x4112bc
push edi
call fcn.0040e916
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 0x4115a1
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 0x411608
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4115e4
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x4115f2
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x3b
push str.uithread.cpp
call fcn.00432f68
push str.Failed_to_create_initialization_event.
jmp 0x411667
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 0x4113ed
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 0x411673
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x411645
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x411653
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x44
push str.uithread.cpp
call fcn.00432f68
push str.Failed_to_create_the_UI_thread.
push dword [ebp - 4]
call fcn.004300f7
pop ecx
pop ecx
jmp 0x41168e
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 + 0x3dc], eax
mov dword [ebp - 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x4116a1
push dword [ebp - 8]
call esi
mov dword [ebp - 8], ebx
cmp dword [ebp - 0xc], ebx
je 0x4116ab
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x411de9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x456130]
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.004284a0
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 0x411e7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x411e58
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x411e63
mov esi, 0x80004005
push esi
push 0x278
push str.logging.cpp
call fcn.00432f68
push str.Failed_to_get_temp_folder.
jmp 0x411f5f
lea eax, [ebp - 0x214]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00411d34
mov esi, eax
cmp esi, edi
jge 0x411ea1
push str.Failed_to_get_length_of_temp_folder.
jmp 0x411f5f
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 0x411f41
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push 0x445448
push eax
call fcn.00431d94
mov esi, eax
add esp, 0xc
cmp esi, edi
jge 0x411ee4
push str.Failed_to_format_session_id_as_a_string.
jmp 0x411f5f
lea eax, [ebp - 0x218]
push eax
push SysReAllocString
push dword [ebp - 0x210]
call fcn.00411d34
mov esi, eax
cmp esi, edi
jge 0x411f08
push str.Failed_to_get_length_of_session_id_string.
jmp 0x411f5f
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 0x411f41
mov dword [ebp - 0x214], esi
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0043178b
mov esi, eax
cmp esi, edi
jge 0x411f67
push str.Failed_to_copy_temp_folder.
push esi
call fcn.004300f7
pop ecx
pop ecx
cmp dword [ebp - 0x210], edi
je 0x411f7a
push dword [ebp - 0x210]
call fcn.00430858
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042851a
leave
ret
Function at 0x41665b
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 0x4166bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x41669e
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x4166a9
mov esi, 0x80004005
push esi
push 0x47
push str.splashscreen.cpp
call fcn.00432f68
push str.Failed_to_create_modal_event.
jmp 0x416720
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 0x416459
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x41672a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x416703
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x41670e
mov esi, 0x80004005
push esi
push 0x50
push str.splashscreen.cpp
call fcn.00432f68
push str.Failed_to_create_UI_thread.
push esi
call fcn.004300f7
pop ecx
pop ecx
jmp 0x416739
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 0x41674c
push dword [ebp - 8]
call esi
mov dword [ebp - 8], edi
cmp dword [ebp - 0xc], edi
je 0x416756
push dword [ebp - 0xc]
call esi
pop edi
pop esi
leave
ret 0xc

Function at 0x4178ca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x456130]
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.004284a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x417942
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x417920
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x41792b
mov esi, 0x80004005
push esi
push 0x443
push str.cache.cpp
call fcn.00432f68
push str.Failed_to_get_temp_path_for_working_folder.
jmp 0x417963
push esi
lea eax, [ebp - 0x20c]
push eax
push str._ls_ls_
push edi
call fcn.00431d94
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x41796b
push str.Failed_to_append_bundle_id_on_to_temp_path_for_working_folder.
push esi
call fcn.004300f7
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042851a
leave
ret