joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414b2d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x469004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 0xc]
push 0x208
push 0
push eax
call fcn.0042b370
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x414ba9
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x468
push str.cache.cpp
call fcn.0043bf09
push str.Failed_to_get_temp_path_for_working_folder.
jmp 0x414bca
push esi
lea eax, [ebp - 0x20c]
push eax
push str._ls_ls_
push edi
call fcn.0044036c
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x414bd2
push str.Failed_to_append_bundle_id_on_to_temp_path_for_working_folder.
push esi
call fcn.0043ccee
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042a807
mov esp, ebp
pop ebp
ret 8

Function at 0x415307
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
mov eax, 0x20000004
push esi
push edi
mov edi, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
cmp dword [ebp + 8], ebx
je 0x415399
lea eax, [ebp - 4]
push eax
push 0x1a
call fcn.00414a82
mov esi, eax
test esi, esi
jns 0x41534a
push str.Failed_to_allocate_administrator_SID.
push esi
call fcn.0043ccee
mov edi, dword [ebp - 4]
pop ecx
pop ecx
jmp 0x4153c2
push 2
push 8
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x415391
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x5f0
push str.cache.cpp
call fcn.0043bf09
push str.Failed_to_initialize_ACL.
jmp 0x41533d
mov edi, dword [ebp - 4]
mov eax, 0x20000005
push 0x7d0
push 3
push ebx
lea ecx, [ebp - 0xc]
push ecx
push ebx
push edi
push eax
push 1
push dword [ebp + 0xc]
call fcn.00444e66
push 0x80
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test edi, edi
je 0x4153cc
push edi
call fcn.0043d427
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4161cd
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x469004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push 0x250
push eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x254]
push eax
call fcn.0042b370
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push str..unverified
push dword [ebp + 8]
call fcn.00416a43
test eax, eax
js 0x416232
push 7
push dword [ebp - 0x258]
call fcn.004441b5
cmp dword [ebp + 8], 0
jne 0x416315
lea eax, [ebp - 0x258]
push eax
push esi
call fcn.00414b2d
test eax, eax
js 0x416315
lea eax, [ebp - 0x260]
push eax
push 0x455744
push dword [ebp - 0x258]
call fcn.0043d844
test eax, eax
js 0x416315
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x416315
test byte [ebp - 0x254], 0x10
jne 0x4162fc
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 0x4162d4
push 0x2e
pop ecx
cmp cx, word [ebp + eax*2 - 0x22c]
jne 0x4162d4
movzx eax, word [ebp + eax*2 - 0x22a]
push 0x52
pop ecx
cmp cx, ax
je 0x4162fc
push 0x72
pop ecx
cmp cx, ax
je 0x4162fc
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x258]
call fcn.0043d844
test eax, eax
js 0x4162fc
push dword [ebp - 0x25c]
call fcn.0044333a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41628e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x25c], 0
pop esi
je 0x41632a
push dword [ebp - 0x25c]
call fcn.00444e5d
cmp dword [ebp - 0x260], 0
je 0x41633e
push dword [ebp - 0x260]
call fcn.00444e5d
cmp dword [ebp - 0x258], 0
je 0x416352
push dword [ebp - 0x258]
call fcn.00444e5d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a807
mov esp, ebp
pop ebp
ret 8
Function at 0x41988c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x2c
xor ebx, ebx
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.0042b370
push 0x2c
lea eax, [ebp - 0x34]
push ebx
push eax
call fcn.0042b370
mov eax, dword [ebp + 0x10]
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x2c]
mov edi, dword [ebp + 0x24]
mov esi, dword [ebp + 0x28]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x34], ecx
xor ecx, ecx
push ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x1c]
push ecx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x60]
push eax
push 0x4173b0
push ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0x20]
push ecx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x419973
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x469
push str.elevation.cpp
call fcn.0043bf09
push str.Failed_to_create_elevated_cache_thread.
push esi
call fcn.0043ccee
pop ecx
pop ecx
jmp 0x4199bd
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x418e0e
push dword [ebp + 0xc]
call fcn.00411c79
mov esi, eax
test esi, esi
jns 0x41999d
push str.Failed_to_pump_messages_in_child_process.
push esi
call fcn.0043ccee
pop ecx
pop ecx
jmp 0x4199b6
push dword [ebp - 8]
push edi
call fcn.00419566
mov ecx, dword [ebp + 0x38]
mov eax, dword [ebp - 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x3c]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x38
Function at 0x41ac66
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 edi, edi
push edi
push edi
push 1
push edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x41acce
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x44
push str.splashscreen.cpp
call fcn.0043bf09
push str.Failed_to_create_modal_event.
push esi
call fcn.0043ccee
pop ecx
pop ecx
jmp 0x41ad41
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 0x41a9e9
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
test eax, eax
jne 0x41ad32
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x4d
push str.splashscreen.cpp
call fcn.0043bf09
push str.Failed_to_create_UI_thread.
jmp 0x41acc4
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 0x41ad54
push dword [ebp - 8]
call esi
mov dword [ebp - 8], edi
cmp dword [ebp - 0xc], edi
je 0x41ad5e
push dword [ebp - 0xc]
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41b097
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
lea edi, [ebp - 0x14]
xor eax, eax
mov dword [ebp - 8], ebx
stosd dword es:[edi], eax
mov esi, ebx
push ebx
push ebx
push 1
stosd dword es:[edi], eax
push ebx
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x41b101
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x3e
push str.uithread.cpp
call fcn.0043bf09
push str.Failed_to_create_initialization_event.
push esi
call fcn.0043ccee
mov eax, dword [ebp - 4]
pop ecx
pop ecx
jmp 0x41b179
mov edi, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0x41add5
push ebx
push ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
test eax, eax
jne 0x41b15c
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x47
push str.uithread.cpp
call fcn.0043bf09
push str.Failed_to_create_the_UI_thread.
jmp 0x41b0f4
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [ebp - 4]
mov dword [edi + 0x3e4], eax
mov eax, ebx
mov dword [ebp - 4], eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41b189
push eax
call edi
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
je 0x41b193
push dword [ebp - 8]
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41dbf2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
or dword [edi + 0x3c], 0xffffffff
lea eax, [edi + 0x1c]
push eax
call fcn.004405ef
mov esi, eax
test esi, esi
jns 0x41dc1e
push str.Failed_to_copy_file_name.
jmp 0x41dd0a
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
call esi
mov dword [edi + 0x24], eax
test eax, eax
jne 0x41dc6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x97
push str.cabextract.cpp
call fcn.0043bf09
push str.Failed_to_create_begin_operation_event.
jmp 0x41dd0a
push ebx
push ebx
push 1
push ebx
call esi
mov dword [edi + 0x28], eax
test eax, eax
jne 0x41dcad
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x9a
push str.cabextract.cpp
call fcn.0043bf09
push str.Failed_to_create_operation_complete_event.
jmp 0x41dd0a
push ebx
push ebx
push edi
push 0x41d5b1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x20], eax
test eax, eax
jne 0x41dcf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x9e
push str.cabextract.cpp
call fcn.0043bf09
push str.Failed_to_create_extraction_thread.
jmp 0x41dd0a
push edi
call fcn.0041d992
mov esi, eax
test esi, esi
jns 0x41dd12
push str.Failed_to_wait_for_operation_complete.
push esi
call fcn.0043ccee
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x423091
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x469004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push esi
push edi
push 7
pop ecx
lea edi, [ebp - 0x20]
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4230fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x207
push str.msuengine.cpp
call fcn.0043bf09
push str.Failed_to_stop_wusa_service.
push esi
call fcn.0043ccee
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042a807
mov esp, ebp
pop ebp
ret 4
Function at 0x426152
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
mov ebx, 0x44a510
mov eax, dword [edi + 4]
test eax, eax
je 0x426171
mov edx, dword [eax]
jmp 0x42617e
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x42617c
mov edx, dword [ecx]
jmp 0x42617e
mov edx, ebx
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x426187
mov ebx, dword [ecx]
test eax, eax
je 0x426199
xor eax, eax
test ecx, ecx
setne al
add eax, 0x20000150
jmp 0x4261a7
cmp dword [edi + 8], esi
mov eax, 0x2000014f
lea ecx, [eax + 3]
cmovne eax, ecx
push dword [ebp + 0xc]
push str.copy
push ebx
push edx
push eax
push 2
call fcn.00402297
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
add esp, 0x18
push eax
push ebx
call fcn.0044361f
test eax, eax
je 0x426225
mov eax, dword [ebp - 4]
test al, 1
je 0x426225
and eax, 0xfffffffe
push eax
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x426225
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x54c
push str.apply.cpp
call fcn.0043bf09
push ebx
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.0043ccee
add esp, 0xc
jmp 0x4262a3
push esi
lea eax, [edi + 0x20]
push eax
push edi
push fcn.00426037
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x4262a3
cmp dword [edi + 0x20], esi
je 0x426263
mov esi, 0x80070642
push esi
push 0x556
push str.apply.cpp
call fcn.0043bf09
push ebx
push dword [ebp + 0xc]
push str.BA_aborted_copy_of_payload_from:__ls_to:__ls.
jmp 0x42629a
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x55a
push str.apply.cpp
call fcn.0043bf09
push ebx
push dword [ebp + 0xc]
push str.Failed_attempt_to_copy_payload_from:__ls_to:__ls.
push esi
call fcn.0043ccee
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42671a
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
and dword [ebp - 4], 0
mov eax, 0x44a510
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 8], eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x42673d
mov eax, dword [ecx]
jmp 0x426746
mov edx, dword [esi + 8]
test edx, edx
je 0x426746
mov eax, dword [edx]
mov edx, dword [esi + 0xc]
mov dword [ebp + 8], eax
test edx, edx
je 0x426755
mov eax, dword [edx]
mov dword [ebp - 8], eax
lea ebx, [ecx + 0x2c]
test ecx, ecx
jne 0x426795
mov eax, dword [edx + 0x10]
lea ebx, [edx + 0x40]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0x14]
and dword [ebp - 0x18], 0
lea edi, [ebp - 0x24]
and dword [ebp - 0x14], 0
mov dword [ebp - 0xc], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test ecx, ecx
je 0x4267a0
xor eax, eax
test edx, edx
setne al
add eax, 0x20000150
jmp 0x4267af
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x1c]
jmp 0x426768
cmp dword [esi + 8], 0
mov eax, 0x2000014f
lea ecx, [eax + 3]
cmovne eax, ecx
push dword [ebx]
push str.download
push dword [ebp - 8]
push dword [ebp + 8]
push eax
push 2
call fcn.00402297
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
add esp, 0x18
push eax
push edi
call fcn.0044361f
test eax, eax
je 0x426833
mov eax, dword [ebp - 4]
test al, 1
je 0x426833
and eax, 0xfffffffe
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x426833
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x57c
push str.apply.cpp
call fcn.0043bf09
push edi
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.0043ccee
add esp, 0xc
jmp 0x4268dc
and dword [ebp - 0x20], 0
mov dword [ebp - 0x24], fcn.00426037
mov dword [ebp - 0x1c], esi
mov eax, dword [ebx]
push 0x62
pop ecx
cmp cx, word [eax]
jne 0x426892
push 0x69
pop ecx
cmp cx, word [eax + 2]
jne 0x426892
push 0x74
pop ecx
cmp cx, word [eax + 4]
jne 0x426892
push 0x73
pop edx
cmp dx, word [eax + 6]
jne 0x426892
movzx ecx, word [eax + 8]
mov dword [ebp + 0xc], 0x3a
cmp word [ebp + 0xc], cx
je 0x426885
cmp dx, cx
jne 0x426892
mov ecx, dword [ebp + 0xc]
cmp cx, word [eax + 0xa]
jne 0x426892
push edi
push ebx
lea eax, [ebp - 0x24]
push eax
call fcn.0042a3a9
jmp 0x4268c5
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], 0x425f50
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
call fcn.00445c9c
mov esi, eax
test esi, esi
jns 0x4268dc
push edi
push dword [ebx]
push str.Failed_attempt_to_download_URL:__ls_to:__ls
push esi
call fcn.0043ccee
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x43bf20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x469004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x208
push 0
push eax
call fcn.0042b370
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x43bf88
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x43bff5
mov esi, 0x80004005
jmp 0x43bff5
push 0x5c
pop ecx
cmp cx, word [ebp + eax*2 - 0x20e]
je 0x43bfb4
push 1
push 0x45ff94
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0043bdbc
mov esi, eax
test esi, esi
js 0x43bff5
mov esi, 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0043be0b
mov esi, eax
test esi, esi
js 0x43bff5
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
je 0x43bf69
test edi, edi
je 0x43bff5
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.004405ef
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a807
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43c520
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.004492a0
mov eax, dword [0x469004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1014], eax
xor eax, eax
push 0x1000
push eax
mov esi, eax
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x1008], eax
mov dword [ebp - 0x100c], eax
lea eax, [ebp - 0x1004]
push eax
call fcn.0042b370
add esp, 0xc
lea eax, [ebp - 0x1010]
push 0xf0000040
push dword [ebp + 0xc]
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x43c5b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xde
jmp 0x43c66f
lea eax, [ebp - 0x1008]
push eax
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x43c62b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xe4
jmp 0x43c66f
push 0
cmp dword [ebp - 0x100c], esi
je 0x43c6e0
push dword [ebp - 0x100c]
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x43c6ba
push 0
lea eax, [ebp - 0x100c]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43c5fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xec
push str.cryputil.cpp
call fcn.0043bf09
cmp dword [ebp - 0x1008], 0
je 0x43c68e
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x1010], 0
je 0x43c6a5
push 0
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a807
mov esp, ebp
pop ebp
ret 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xf7
jmp 0x43c66f
lea eax, [ebp + 0x18]
push eax
push dword [ebp - 0x1014]
push 2
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x43c725
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xfe
jmp 0x43c66f
test ebx, ebx
je 0x43c679
push 1
push ebx
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x43c679
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x105
jmp 0x43c66f
Function at 0x43c76c
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46a4fc
push str.AdvApi32.dll
call fcn.0043bf0c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43c7af
push str.SystemFunction040
push dword [0x46a4fc]
call edi
push str.SystemFunction041
push dword [0x46a4fc]
mov dword [0x46a504], eax
call edi
mov dword [0x46a508], eax
jmp 0x43c7b4
mov eax, dword [0x46a508]
cmp dword [0x46a504], 0
je 0x43c7c5
test eax, eax
jne 0x43c86c
push 0x46a500
push str.Crypt32.dll
call fcn.0043bf0c
mov esi, eax
test esi, esi
js 0x43c876
push str.CryptProtectMemory
push dword [0x46a500]
call edi
cmp dword [0x46a504], 0
mov dword [0x46a50c], eax
jne 0x43c82a
test eax, eax
jne 0x43c82a
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x33
push str.cryputil.cpp
call fcn.0043bf09
jmp 0x43c876
push str.CryptUnprotectMemory
push dword [0x46a500]
call edi
cmp dword [0x46a508], 0
mov dword [0x46a510], eax
jne 0x43c86c
test eax, eax
jne 0x43c86c
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x38
jmp 0x43c81e
mov dword [0x46a514], 1
pop edi
mov eax, esi
pop esi
ret