joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402e52dc
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov r12, r8
mov rsi, rdx
and qword [rbp - 0x20], 0
and dword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
xor edi, edi
mov r9d, 0x2001f
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionRun
test ecx, ecx
lea rcx, [rbp - 0x20]
je 0x1402e546c
mov rbx, 0xffffffff80000001
mov rdx, rbx
call fcn.1400114d4
test eax, eax
je 0x1402e535f
mov r9d, 0x2001f
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.140010dd0
mov edi, eax
test eax, eax
jne 0x1402e548e
lea rcx, [rbp - 0x30]
call fcn.1402e520c
nop
mov r8, rax
lea rdx, [0x14034dbb8]
lea rcx, [rbp - 0x38]
call fcn.14000d30c
nop
lea r8, [0x14035e15c]
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.14001c3e0
nop
mov r8, r12
mov rdx, rax
lea rcx, [rbp + 0x38]
call fcn.14001c3e0
nop
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
or r12d, 0xffffffff
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1402e53c6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1402e53e7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1402e5407
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp + 0x38]
xor eax, eax
test rbx, rbx
setne al
test eax, eax
jne 0x1402e541c
lea edi, [rax + 0xd]
jmp 0x1402e544e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rbx, qword [rbp + 0x38]
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1402e548e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1402e548e
mov rdx, 0xffffffff80000001
call fcn.1400114d4
test eax, eax
jne 0x1402e548e
mov rdx, rsi
mov rbx, qword [rbp - 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x1402e5492
mov rbx, qword [rbp - 0x20]
test rbx, rbx
je 0x1402e54a0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x1402e5ae8
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rdi, r8
call fcn.14023e07c
test al, al
jne 0x1402e5b35
call qword [sym.imp.USER32.dll_GetDesktopWindow]
lea r8, [0x14034f3e8]
lea rdx, str.CCleaner_requires_Windows_XP_or_later.
mov rcx, rax
mov r9d, 0x30
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x1402e5caa
lea rcx, [rbp - 0x51]
call fcn.14023dc9c
cmp dword [rbp - 0x51], 0
je 0x1402e5c5e
lea rcx, [rbp - 0x41]
call fcn.1402e54b8
lea rcx, [rbp - 0x59]
mov rdx, qword [rax]
call fcn.14000cb18
mov rdx, qword [rbp - 0x41]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1402e5b7c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, str.CCleaner64.exe
lea rcx, [rbp - 0x59]
call fcn.14000f884
xor edx, edx
lea rcx, [rbp - 0x11]
lea r8d, [rdx + 0x60]
mov dword [rbp - 0x19], 0x68
call fcn.1400c7360
xor edx, edx
lea rcx, [rbp - 0x39]
lea r8d, [rdx + 0x18]
call fcn.1400c7360
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov rbx, qword [rbp - 0x59]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea rax, [rbp - 0x39]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x19]
xor r8d, r8d
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1402e5c3f
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x59]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1402e5b2e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1402e5b2e
mov rdx, qword [rbp - 0x59]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1402e5c5e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor ecx, ecx
call qword [sym.imp.ole32.dll_OleInitialize]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_DefWindowProcW]
lea rcx, [rbp - 0x49]
mov dword [rbp - 0x49], 8
mov dword [rbp - 0x45], 0x2f
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.14000fb58
mov rcx, rdi
call fcn.1402e55a8
mov ebx, eax
call fcn.14000fa30
call qword [sym.imp.ole32.dll_OleUninitialize]
mov eax, ebx
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1402e5cc0
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
push rbx
push rdi
push r12
lea rbp, [rsp - 0x3f]
sub rsp, 0xa8
mov qword [rbp - 0x49], 0xfffffffffffffffe
lea r8, [rbp + 0x77]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1402e5cf9
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1402e5d07
lea rdx, [rbp + 0x77]
mov ecx, 1
call fcn.140110914
lea rcx, [rbp - 0x31]
call fcn.140016ee0
nop
lea rcx, [rbp - 0x31]
call fcn.1402430dc
cmp qword [rbp - 0x21], 0
je 0x1402e5e87
lea rcx, [rbp + 0xf]
call fcn.140016ee0
nop
lea rcx, [rbp - 0x11]
call fcn.140016ee0
nop
mov rax, qword [rbp - 0x29]
mov rbx, qword [rax]
mov qword [rbp + 0x7f], rax
or r12, 0xffffffffffffffff
mov qword [rbp + 0x6f], rbx
cmp rbx, qword [rbp + 0x7f]
je 0x1402e5e73
mov rax, qword [rbx + 0x20]
mov qword [rbp - 0x41], rax
mov rdi, qword [rbx + 0x28]
mov qword [rbp - 0x39], rdi
test rdi, rdi
je 0x1402e5d7b
lock inc dword [rdi + 8]
mov rbx, qword [rbp + 0x6f]
mov rdi, qword [rbp - 0x39]
mov rax, qword [rbp - 0x41]
test rax, rax
je 0x1402e5def
mov r8d, dword [rax]
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x1402e5de9
mov r8, r12
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
mov ebx, eax
lea rcx, section..data
mov rdx, qword [section..data]
call qword [rdx + 0x18]
mov rdi, rax
test ebx, ebx
jne 0x1402e5dc4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rdi
mov eax, r12d
lock xadd dword [rdi + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1402e5ddf
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp + 0x6f]
mov rdi, qword [rbp - 0x39]
jmp 0x1402e5def
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rdi, rdi
je 0x1402e5e29
mov eax, r12d
lock xadd dword [rdi + 8], eax
add eax, r12d
jne 0x1402e5e25
mov rbx, qword [rbp - 0x39]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
add eax, r12d
jne 0x1402e5e25
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rbx, qword [rbp + 0x6f]
cmp byte [rbx + 0x31], 0
jne 0x1402e5d4c
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x31], 0
jne 0x1402e5e4e
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x31], 0
je 0x1402e5e3d
jmp 0x1402e5d48
mov rax, qword [rbx + 8]
jmp 0x1402e5e61
cmp rbx, qword [rax + 0x10]
jne 0x1402e5e67
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x31], 0
je 0x1402e5e54
mov rbx, rax
mov qword [rbp + 0x6f], rax
jmp 0x1402e5d4c
lea rcx, [rbp - 0x11]
call fcn.140001268
nop
lea rcx, [rbp + 0xf]
call fcn.140001268
nop
lea rcx, [rbp - 0x31]
call fcn.140001268
add rsp, 0xa8
pop r12
pop rdi
pop rbx
pop rbp
ret
Function at 0x140546920
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
mov dword [rsp + 8], 0xffffffff
mov dword [rsp + 0xc], 0
jmp 0x140546952
mov eax, dword [rsp + 0xc]
inc eax
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0xc], eax
jae 0x1405469fa
mov eax, dword [rsp + 0xc]
mov rcx, qword [rsp]
movzx eax, byte [rcx + rax]
movzx ecx, byte [rsp + 8]
xor eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 8]
shr eax, 8
mov dword [rsp + 8], eax
mov dword [rsp + 0x14], 0
jmp 0x140546996
mov eax, dword [rsp + 0x14]
inc eax
mov dword [rsp + 0x14], eax
cmp dword [rsp + 0x14], 8
jge 0x1405469e5
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x1405469b2
mov dword [rsp + 0x1c], 1
jmp 0x1405469ba
mov dword [rsp + 0x1c], 0
movzx eax, byte [rsp + 0x1c]
mov byte [rsp + 0x18], al
mov eax, dword [rsp + 0x10]
shr eax, 1
mov dword [rsp + 0x10], eax
movzx eax, byte [rsp + 0x18]
test eax, eax
je 0x1405469e3
mov eax, dword [rsp + 0x10]
xor eax, 0xedb88320
mov dword [rsp + 0x10], eax
jmp 0x14054698c
mov eax, dword [rsp + 0x10]
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 8], eax
jmp 0x140546948
mov eax, dword [rsp + 8]
not eax
add rsp, 0x28
ret

Function at 0x140546ff0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process filename

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x40], 0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x50], rax
mov eax, 0x6b
mov word [rsp + 0x20], ax
mov eax, 0x65
mov word [rsp + 0x22], ax
mov eax, 0x72
mov word [rsp + 0x24], ax
mov eax, VarBstrFromCy
mov word [rsp + 0x26], ax
mov eax, 0x65
mov word [rsp + 0x28], ax
mov eax, VarBstrFromCy
mov word [rsp + 0x2a], ax
mov eax, 0x33
mov word [rsp + 0x2c], ax
mov eax, 0x32
mov word [rsp + 0x2e], ax
mov eax, 0x2e
mov word [rsp + 0x30], ax
mov eax, 0x64
mov word [rsp + 0x32], ax
mov eax, VarBstrFromCy
mov word [rsp + 0x34], ax
mov eax, VarBstrFromCy
mov word [rsp + 0x36], ax
xor eax, eax
mov word [rsp + 0x38], ax
lea rdx, [rsp + 0x20]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x60]
call fcn.140546a10
test eax, eax
jne 0x1405470c3
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x40], rax
jmp 0x1405470ec
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x30], 0
je 0x1405470ec
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x10]
cmp qword [rsp + 0x50], rax
jne 0x14054709c
mov rax, qword [rsp + 0x40]
add rsp, 0x68
ret
Function at 0x1400020b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x1400021ab
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x1400021b3
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400021ea
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x1400021c0
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x140002215
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14000223b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x140002220
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a350
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14002d008]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14000a3f5
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14000a3ad
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14000a3a0
cmp rcx, 1
jb 0x14000a426
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14000a3c3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14000fbbc
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14000a390
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000b770
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14000f880
int3
Function at 0x14000a4b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002d008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a4f5
xor al, al
jmp 0x14000a542
cmp word [rbx], 0
je 0x14000a50d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a500
cmp word [rsp + 0x30], 0
je 0x14000a53b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a563
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a520
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b770
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000f880
int3
Function at 0x14000acf0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001f050
sub rsp, rax
mov rax, qword [0x14002d008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002ed74]
lea rsi, [0x140031db0]
mov rdi, rcx
test r11d, r11d
jne 0x14000ad69
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a570
test al, al
je 0x14000ae4f
lea rcx, [rsp + 0x20]
call fcn.140013dd8
movsxd r11, dword [0x14002ed74]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002ed74], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000ada4
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ad94
add rax, 2
test ecx, ecx
jne 0x14000ad80
test edx, edx
je 0x14000adc7
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ad74
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000adb0
cmp rax, 2
jne 0x14000adcb
cmp word [rdi + 2], 0x3a
jne 0x14000adcb
mov al, 1
jmp 0x14000ae2e
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000adf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000adf8
mov bl, 1
jmp 0x14000adfc
test bl, bl
je 0x14000ae23
cmp dword [0x14002ed74], 0x400
jge 0x14000ae23
mov rcx, rdi
call fcn.140013dd8
movsxd rdx, dword [0x14002ed74]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002ed74], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b770
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000ab90
int3
Function at 0x14000af70
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002ed78]
test rcx, rcx
je 0x14000afab
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000af9e
mov rcx, qword [0x14002ed78]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002ed78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140035db2], 0
je 0x14000b09e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140028848]
mov qword [rsp + 0x80], rsi
lea rsi, [0x14002f5b0]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b07f
test al, 0x10
je 0x14000b07f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b025
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000c078
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c0c2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000c0c2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000c0c2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c0c2
cmp dword [rcx + 0x84], 0xe
jbe 0x14000c0c2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000c0c4
xor al, al
add rsp, 0x28
ret

Function at 0x14000f874
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000f6d3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f6d3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f6d3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f6d3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f6d3
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f6d3
cmp dword [rcx + 0xf8], 0
je 0x14000f6d3
mov ecx, ebx
call fcn.14000f790
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f560
nop
cmp dword [rbp + 0x20], 0
je 0x14000f721
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f72c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f664
Function at 0x140018b44
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140018bcb
mov rsi, rbx
cmp word [rax], bp
je 0x140018b8a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018b74
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140018b70
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016384
mov rdi, rax
test rax, rax
je 0x140018bb8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d640
mov rbp, rdi
xor ecx, ecx
call fcn.1400154b4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001ef60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001ef88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001ef88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001000
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 7
syscall
ret