joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407339
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.0040874b
mov esi, eax
test esi, esi
jns 0x407364
push str.Failed_to_format_variable_string.
jmp 0x4073fd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4073d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4073c0
cmp eax, 3
je 0x4073c0
test eax, eax
je 0x4073e0
jle 0x407392
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x40739d
mov esi, 0x80004005
push esi
push 0x27d
push str.search.cpp
call fcn.0042fdc3
push dword [edi + 0x14]
push str.Failed_get_to_file_attributes.__ls
push esi
call fcn.0042d996
add esp, 0xc
jmp 0x407405
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.0042d5b2
add esp, 0x10
jmp 0x4073e0
and eax, 0x10
cmp al, 0x10
je 0x4073e0
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.0040a133
mov esi, eax
test esi, esi
jns 0x407405
push str.Failed_to_set_variable.
push esi
call fcn.0042d996
pop ecx
pop ecx
cmp dword [ebp - 4], 0
je 0x407413
push dword [ebp - 4]
call fcn.0042dd7e
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x4074cb
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.0040874b
mov esi, eax
test esi, esi
jns 0x4074f2
push str.Failed_to_format_variable_string.
jmp 0x40755e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40753f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x407514
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, 0x80070002
je 0x407568
cmp esi, 0x80070003
je 0x407568
test esi, esi
jns 0x40757e
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_file_search:__ls__for_path:__ls
push esi
call fcn.0042d996
add esp, 0x10
jmp 0x40757e
test al, 0x10
jne 0x407568
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 8]
call fcn.0040a172
mov esi, eax
test esi, esi
jns 0x407516
push str.Failed_to_set_variable_to_file_search_path.
push esi
call fcn.0042d996
pop ecx
pop ecx
jmp 0x40757e
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.0042d5b2
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], 0
je 0x40758c
push dword [ebp - 4]
call fcn.0042dd7e
mov eax, esi
pop esi
leave
ret 4
Function at 0x407593
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
push esi
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 [edi + 0x24], ebx
je 0x4075bc
mov dword [ebp - 0xc], 0x101
push ebx
lea eax, [ebp - 4]
push eax
push dword [edi + 0x1c]
push dword [ebp + 8]
call fcn.0040874b
mov esi, eax
cmp esi, ebx
jge 0x4075dc
push str.Failed_to_format_key_string.
jmp 0x4076e0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [edi + 0x18]
call fcn.004311ee
mov esi, eax
cmp esi, ebx
jl 0x407624
mov eax, dword [edi + 0x20]
mov dword [ebp - 0xc], 1
cmp eax, ebx
je 0x4076c3
push ebx
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp + 8]
call fcn.0040874b
mov esi, eax
cmp esi, ebx
jge 0x407653
push str.Failed_to_format_value_string.
jmp 0x4076e0
push dword [ebp - 4]
cmp esi, 0x80070002
jne 0x407640
push str.Registry_key_not_found._Key___ls
push 2
call fcn.0042d5b2
add esp, 0xc
jmp 0x4076b7
push str.Failed_to_open_registry_key._Key___ls
push esi
call fcn.0042d996
add esp, 0xc
jmp 0x4076e8
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 0x4076bc
dec ecx
dec ecx
je 0x4076a2
cmp eax, ebx
je 0x4076c3
jle 0x407680
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x40768b
mov esi, 0x80004005
push esi
push 0x30f
push str.search.cpp
call fcn.0042fdc3
push str.Failed_to_query_registry_key_value.
jmp 0x4076e0
push dword [ebp - 8]
push dword [ebp - 4]
push str.Registry_value_not_found._Key___ls__Value___ls
push 2
call fcn.0042d5b2
add esp, 0x10
mov dword [ebp - 0xc], ebx
jmp 0x4076c3
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
push ebx
cdq
push edx
push eax
push dword [edi + 4]
push dword [ebp + 8]
call fcn.0040a133
mov esi, eax
cmp esi, ebx
jge 0x4076ff
push str.Failed_to_set_variable.
push esi
call fcn.0042d996
pop ecx
pop ecx
cmp esi, ebx
jge 0x4076ff
push esi
push dword [ebp - 4]
push str.RegistrySearchExists_failed:_ID__ls__HRESULT_0x_x
push 2
call fcn.0042d5b2
add esp, 0x10
cmp dword [ebp - 4], ebx
je 0x40770c
push dword [ebp - 4]
call fcn.0042dd7e
cmp dword [ebp - 8], ebx
je 0x407719
push dword [ebp - 8]
call fcn.0042dd7e
cmp dword [ebp - 0x10], ebx
je 0x407727
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x410436
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 0x410125
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 0x410509
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x4104df
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
cmp ebx, esi
jl 0x4104ea
mov ebx, 0x80004005
push ebx
push 0x3ec
push str.elevation.cpp
call fcn.0042fdc3
push str.Failed_to_create_elevated_cache_thread.
push ebx
call fcn.0042d996
pop ecx
pop ecx
jmp 0x410550
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x4101d2
push dword [ebp + 0xc]
call fcn.004033e1
mov ebx, eax
cmp ebx, esi
jge 0x410533
push str.Failed_to_pump_messages_in_child_process.
push ebx
call fcn.0042d996
pop ecx
pop ecx
jmp 0x410549
push edi
call fcn.0040df1d
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 0x41082e
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 0x410895
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x410871
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x41087f
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x3e
push str.uithread.cpp
call fcn.0042fdc3
push str.Failed_to_create_initialization_event.
jmp 0x4108f4
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 0x41067a
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 0x410900
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4108d2
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x4108e0
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x47
push str.uithread.cpp
call fcn.0042fdc3
push str.Failed_to_create_the_UI_thread.
push dword [ebp - 4]
call fcn.0042d996
pop ecx
pop ecx
jmp 0x41091b
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 + 0x3ac], eax
mov dword [ebp - 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x41092e
push dword [ebp - 8]
call esi
mov dword [ebp - 8], ebx
cmp dword [ebp - 0xc], ebx
je 0x410938
push dword [ebp - 0xc]
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x411010
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4510d0]
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.00425d30
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 0x4110a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x41107f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x41108a
mov esi, 0x80004005
push esi
push 0x25d
push str.logging.cpp
call fcn.0042fdc3
push str.Failed_to_get_temp_folder.
jmp 0x411186
lea eax, [ebp - 0x214]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00410f5b
mov esi, eax
cmp esi, edi
jge 0x4110c8
push str.Failed_to_get_length_of_temp_folder.
jmp 0x411186
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 0x411168
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push 0x441958
push eax
call fcn.0042f202
mov esi, eax
add esp, 0xc
cmp esi, edi
jge 0x41110b
push str.Failed_to_format_session_id_as_a_string.
jmp 0x411186
lea eax, [ebp - 0x218]
push eax
push SysReAllocString
push dword [ebp - 0x210]
call fcn.00410f5b
mov esi, eax
cmp esi, edi
jge 0x41112f
push str.Failed_to_get_length_of_session_id_string.
jmp 0x411186
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 0x411168
mov dword [ebp - 0x214], esi
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0042ecb2
mov esi, eax
cmp esi, edi
jge 0x41118e
push str.Failed_to_copy_temp_folder.
push esi
call fcn.0042d996
pop ecx
pop ecx
cmp dword [ebp - 0x210], edi
je 0x4111a1
push dword [ebp - 0x210]
call fcn.0042dd7e
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00425daa
leave
ret
Function at 0x414f3f
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 0x414fa1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x414f82
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x414f8d
mov esi, 0x80004005
push esi
push 0x44
push str.splashscreen.cpp
call fcn.0042fdc3
push str.Failed_to_create_modal_event.
jmp 0x415004
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 0x414d7a
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x41500e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x414fe7
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x414ff2
mov esi, 0x80004005
push esi
push 0x4d
push str.splashscreen.cpp
call fcn.0042fdc3
push str.Failed_to_create_UI_thread.
push esi
call fcn.0042d996
pop ecx
pop ecx
jmp 0x41501d
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 0x415030
push dword [ebp - 8]
call esi
mov dword [ebp - 8], edi
cmp dword [ebp - 0xc], edi
je 0x41503a
push dword [ebp - 0xc]
call esi
pop edi
pop esi
leave
ret 0xc

Function at 0x416205
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4510d0]
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.00425d30
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x41627d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41625b
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x416266
mov esi, 0x80004005
push esi
push 0x424
push str.cache.cpp
call fcn.0042fdc3
push str.Failed_to_get_temp_path_for_working_folder.
jmp 0x41629e
push esi
lea eax, [ebp - 0x20c]
push eax
push str._ls_ls_
push edi
call fcn.0042f202
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x4162a6
push str.Failed_to_append_bundle_id_on_to_temp_path_for_working_folder.
push esi
call fcn.0042d996
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00425daa
leave
ret
Function at 0x4163b1
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 0x41643c
lea eax, [ebp - 4]
push eax
push 0x1a
call fcn.00416304
mov esi, eax
cmp esi, edi
jge 0x4163e7
push str.Failed_to_allocate_administrator_SID.
jmp 0x41642d
push 2
push 8
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x416437
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x41640d
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x416418
mov esi, 0x80004005
push esi
push 0x560
push str.cache.cpp
call fcn.0042fdc3
push str.Failed_to_initialize_ACL.
push esi
call fcn.0042d996
pop ecx
pop ecx
jmp 0x416467
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.00434d63
push 0x80
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 4], edi
je 0x416474
push dword [ebp - 4]
call fcn.004300fa
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x4176c8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4510d0]
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.00425d30
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push str..unverified
push dword [ebp + 8]
call fcn.00415ff0
test eax, eax
js 0x41772e
push 7
push dword [ebp - 0x258]
call fcn.0043408e
cmp dword [ebp + 8], ebx
jne 0x417818
push edi
lea edi, [ebp - 0x258]
mov ecx, esi
call fcn.00416205
pop edi
test eax, eax
js 0x417818
lea eax, [ebp - 0x260]
push eax
push 0x444b68
push dword [ebp - 0x258]
call fcn.0042faa7
test eax, eax
js 0x417818
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x417818
test byte [ebp - 0x254], 0x10
jne 0x4177fb
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 0x4177d3
push 0x2e
add eax, eax
pop ecx
cmp cx, word [ebp + eax - 0x22c]
jne 0x4177d3
movzx eax, word [ebp + eax - 0x22a]
push 0x52
pop ecx
cmp cx, ax
je 0x4177fb
push 0x72
pop ecx
cmp cx, ax
je 0x4177fb
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x258]
call fcn.0042faa7
test eax, eax
js 0x4177fb
push dword [ebp - 0x25c]
call fcn.004335a9
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41778b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x25c], ebx
je 0x41782b
push dword [ebp - 0x25c]
call fcn.0042dd7e
cmp dword [ebp - 0x260], ebx
je 0x41783e
push dword [ebp - 0x260]
call fcn.0042dd7e
cmp dword [ebp - 0x258], ebx
pop esi
pop ebx
je 0x417853
push dword [ebp - 0x258]
call fcn.0042dd7e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425daa
leave
ret 8
Function at 0x41fd0a
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 4]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov edi, 0x4385b4
cmp eax, ebx
je 0x41fd28
mov ecx, dword [eax]
jmp 0x41fd35
mov ecx, dword [esi + 8]
cmp ecx, ebx
je 0x41fd33
mov ecx, dword [ecx]
jmp 0x41fd35
mov ecx, edi
mov edx, dword [esi + 0xc]
test edx, edx
je 0x41fd3e
mov edi, dword [edx]
test eax, eax
je 0x41fd50
xor eax, eax
test edx, edx
setne al
add eax, 0x20000150
jmp 0x41fd5f
mov eax, dword [esi + 8]
neg eax
sbb eax, eax
and eax, 3
add eax, 0x2000014f
push dword [ebp + 8]
push str.copy
push edi
push ecx
push eax
push 2
call fcn.004015e7
add esp, 0x18
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.004330fb
test eax, eax
je 0x41fde3
test byte [ebp - 4], 1
je 0x41fde3
and dword [ebp - 4], 0xfffffffe
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x41fde3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41fdb2
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x41fdbd
mov ebx, 0x80004005
push ebx
push 0x540
push str.apply.cpp
call fcn.0042fdc3
push dword [ebp + 0xc]
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push ebx
call fcn.0042d996
add esp, 0xc
jmp 0x41fe6b
push 0
lea edi, [esi + 0x20]
push edi
push esi
push fcn.0041f539
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x41fe6b
cmp dword [edi], ebx
je 0x41fe28
mov esi, 0x80070642
push esi
push 0x54a
push str.apply.cpp
mov ebx, esi
call fcn.0042fdc3
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.BA_aborted_copy_of_payload_from:__ls_to:__ls.
push esi
jmp 0x41fe63
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41fe3c
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x41fe47
mov ebx, 0x80004005
push ebx
push 0x54e
push str.apply.cpp
call fcn.0042fdc3
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.Failed_attempt_to_copy_payload_from:__ls_to:__ls.
push ebx
call fcn.0042d996
add esp, 0x10
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x41fe74
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push ebx
push esi
mov esi, eax
mov ecx, dword [esi + 4]
push edi
mov edi, 0x4385b4
test ecx, ecx
je 0x41fe93
mov eax, dword [ecx]
jmp 0x41fe9c
mov eax, dword [esi + 8]
test eax, eax
je 0x41fea1
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41fea4
mov dword [ebp - 8], edi
mov edx, dword [esi + 0xc]
test edx, edx
je 0x41feb2
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
jmp 0x41feb5
mov dword [ebp - 0xc], edi
lea ebx, [ecx + 0x2c]
test ecx, ecx
jne 0x41fee5
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 0x14]
lea ebx, [edx + 0x40]
mov dword [ebp - 0x10], eax
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test ecx, ecx
je 0x41fef0
xor eax, eax
test edx, edx
setne al
add eax, 0x20000150
jmp 0x41feff
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x1c]
jmp 0x41fec8
mov eax, dword [esi + 8]
neg eax
sbb eax, eax
and eax, 3
add eax, 0x2000014f
push dword [ebx]
push str.download
push dword [ebp - 0xc]
push dword [ebp - 8]
push eax
push 2
call fcn.004015e7
mov edi, dword [ebp + 8]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push edi
call fcn.004330fb
test eax, eax
je 0x41ff83
test byte [ebp - 4], 1
je 0x41ff83
and dword [ebp - 4], 0xfffffffe
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x41ff83
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41ff54
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x41ff5f
mov esi, 0x80004005
push esi
push 0x56e
push str.apply.cpp
call fcn.0042fdc3
push edi
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.0042d996
add esp, 0xc
jmp 0x420010
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], fcn.0041f539
mov dword [ebp - 0x18], esi
mov eax, dword [ebx]
push 0x62
pop ecx
cmp cx, word [eax]
jne 0x41ffe0
push 0x69
pop ecx
cmp cx, word [eax + 2]
jne 0x41ffe0
push 0x74
pop ecx
cmp cx, word [eax + 4]
jne 0x41ffe0
push 0x73
pop ecx
cmp cx, word [eax + 6]
jne 0x41ffe0
movzx ecx, word [eax + 8]
push 0x3a
pop edx
cmp dx, cx
je 0x41ffd3
push 0x73
pop edx
cmp dx, cx
jne 0x41ffe0
push 0x3a
pop ecx
cmp cx, word [eax + 0xa]
jne 0x41ffe0
push edi
push ebx
lea eax, [ebp - 0x20]
push eax
call fcn.00425959
jmp 0x41fff9
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push dword [ebp - 0x14]
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
push eax
push dword [esi]
call fcn.004251cd
mov esi, eax
test esi, esi
jns 0x420010
push edi
push dword [ebx]
push str.Failed_attempt_to_download_URL:__ls_to:__ls
push esi
call fcn.0042d996
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4