joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002943c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001cb04
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001cb04
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002958c
cmp rax, 0xffffffffffffffff
je 0x14002958c
xor edi, edi
test rbp, rbp
jle 0x140029537
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f430
mov rbx, rax
test rax, rax
jne 0x1400294c4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002952d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a438
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d7e0
cmp eax, 0xffffffff
je 0x14002950d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400294d4
mov edx, r15d
mov ecx, r14d
call fcn.14001a438
jmp 0x14002952d
cmp byte [rsi + 0x38], dil
je 0x140029524
cmp dword [rsi + 0x34], 5
jne 0x140029524
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002952d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b1cc
jmp 0x1400295a0
jns 0x1400295a0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001cb04
cmp rax, 0xffffffffffffffff
jne 0x140029558
cmp byte [rsi + 0x30], dil
je 0x1400295a0
mov edi, dword [rsi + 0x2c]
jmp 0x1400295a0
mov ecx, r14d
call fcn.1400188f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400295a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400295a0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029599
mov eax, dword [rsi + 0x2c]
jmp 0x14002959e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001cb04
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14077c791
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + r10], r8
lea r10, [0x14077ecc8]
movzx r8d, byte [rcx]
push 0xffffffffd6805289
xor r8d, edi
and r8d, 0xff
mov r8d, dword [r10 + r8*4]
shr edi, 8
xor edi, r8d
inc rcx
xor edi, 0xb791b2bc
dec rbx
push 0x3a3adf06
lea rsp, [rsp + 0x10]
jne 0x14077c79c
pop r8
Function at 0x140001130
Capabilities:
Enumerate process modules
Find taskbar
Get process image filename

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
mov eax, 0x2280
call fcn.14001b4a0
sub rsp, rax
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x2270], rax
mov r14, rcx
xor edx, edx
lea rcx, [0x140024a88]
call qword [sym.imp.USER32.dll_FindWindowW]
xor ebx, ebx
lea rdx, [rsp + 0x30]
mov rcx, rax
mov dword [rsp + 0x30], ebx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea r8, [rsp + 0x34]
mov dword [r14], ebx
mov edx, 0x2000
mov qword [r14 + 4], 0xffffffffffffffff
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
mov ebp, dword [rsp + 0x34]
shr rbp, 2
test rbp, rbp
je 0x140001250
mov qword [rsp + 0x2298], rdi
mov qword [rsp + 0x2290], rsi
mov edi, dword [rsp + rbx*4 + 0x60]
cmp edi, dword [rsp + 0x30]
jne 0x140001238
mov r8d, edi
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x140001238
mov r8d, 0x104
lea rdx, [rsp + 0x2060]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
lea rax, [rsp + 0x40]
mov rcx, rsi
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov rax, qword [rsp + 0x38]
cmp eax, dword [r14 + 4]
jae 0x14000122f
mov dword [r14], edi
mov qword [r14 + 4], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc rbx
cmp rbx, rbp
jl 0x1400011c2
mov rdi, qword [rsp + 0x2298]
mov rsi, qword [rsp + 0x2290]
mov rax, r14
mov rcx, qword [rsp + 0x2270]
xor rcx, rsp
call fcn.140005510
lea r11, [rsp + 0x2280]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x140001280
Capabilities:
Create restart manager session
Enumerate processes that use resource

Disassembly:
mov eax, 0x2a48
call fcn.14001b4a0
sub rsp, rax
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x2a30], rax
lea r8, [0x14002bda0]
xor edx, edx
lea rcx, [0x14002aa30]
call qword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x14000134b
lea rcx, [rsp + 0x40]
call fcn.140001130
mov ecx, dword [0x14002aa30]
mov r9d, 1
xor r8d, r8d
xor edx, edx
movsd xmm0, qword [rax]
movsd qword [rsp + 0x60], xmm0
mov eax, dword [rax + 8]
mov dword [rsp + 0x68], eax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
mov ecx, dword [0x14002aa30]
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], 0x10
lea rdx, [rsp + 0x58]
call qword [sym.imp.RstrtMgr.DLL_RmGetList]
cmp dword [rsp + 0x54], 0
jne 0x14000134b
mov ecx, dword [0x14002aa30]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.RstrtMgr.DLL_RmShutdown]
xor eax, eax
mov rcx, qword [rsp + 0x2a30]
xor rcx, rsp
call fcn.140005510
add rsp, 0x2a48
ret
Function at 0x140001660
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
sub rsp, 0x308
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 0x105
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, [0x140024ac0]
mov edx, 0x105
lea rcx, [rsp + 0xe0]
call fcn.14000ef48
xorps xmm0, xmm0
mov dword [rsp + 0x50], 0x68
lea rax, [rsp + 0xc0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0xe0]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 1
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
movups xmmword [rsp + 0x88], xmm0
movups xmmword [rsp + 0x98], xmm0
movups xmmword [rsp + 0xa8], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov r8d, eax
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140005510
add rsp, 0x308
ret
Function at 0x140001d30
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
lea rcx, [0x140025190]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001e2c
lea rdx, [0x1400251a8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001e2c
mov rcx, rbx
mov dword [rbx], 0x114
call rax
test eax, eax
jne 0x140001e2c
mov ebx, 0x5c
mov dword [rsp + 0x38], eax
mov edx, ebx
mov dword [rsp + 0x3c], 4
lea rcx, [0x1400251c0]
call fcn.140006220
movzx edx, bx
lea rcx, [rax + 2]
call fcn.140006220
movzx edx, bx
lea rcx, [rax + 2]
call fcn.140006220
lea rcx, [rsp + 0x30]
mov r9d, 0x20019
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, 0xffffffff80000002
lea rdx, [rax + 2]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001e15
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rdx, [0x140025240]
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140005510
add rsp, 0x50
pop rbx
ret
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140005510
add rsp, 0x50
pop rbx
ret
Function at 0x140002670
Capabilities:
Check if file exists
Copy file
Delete file
Extract resource via kernel32 functions
Move file
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x480
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rdi, r8
mov rsi, rdx
mov ebp, ecx
mov r8, r9
mov edx, 0x104
lea rcx, [rsp + 0x50]
mov rbx, r9
call fcn.14000eee0
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea r8, str..prev
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.14000ef48
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea rcx, [rsp + 0x50]
mov r14d, eax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test r14d, r14d
jne 0x1400026f0
test eax, eax
je 0x14000273a
jmp 0x1400026f4
test eax, eax
je 0x140002717
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140002712
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14000280e
test r14d, r14d
je 0x14000273a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000273a
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14000280e
test rdi, rdi
jne 0x140002777
test ebp, ebp
je 0x140002807
mov r8d, 0x104
lea rdx, [rsp + 0x260]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor r8d, r8d
lea rcx, [rsp + 0x260]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x140002810
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000280e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rdi
mov rcx, rsi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test ebp, ebp
je 0x140002807
xor esi, esi
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
test rax, rax
je 0x14000280e
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], esi
mov r8d, edi
mov qword [rsp + 0x20], rsi
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000280e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140002810
xor eax, eax
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140005510
add rsp, 0x480
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002830
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x14002a008]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rdx
mov r8, rcx
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.14000eee0
lea r8, [0x140024a80]
mov edx, 0x104
lea rcx, [rsp + 0x20]
call fcn.14000ef48
mov r8, rbx
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.14000ef48
lea r8, [rsp + 0x20]
mov edx, 0x104
lea rcx, [rsp + 0x230]
call fcn.14000eee0
lea rcx, [rsp + 0x230]
call qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea r8, str..prev
mov edx, 0x104
lea rcx, [rsp + 0x230]
call fcn.14000ef48
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea rcx, [rsp + 0x230]
mov ebx, eax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test ebx, ebx
jne 0x140002907
test eax, eax
jne 0x14000290b
mov eax, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140005510
add rsp, 0x450
pop rbx
ret
test eax, eax
je 0x14000292c
lea rcx, [rsp + 0x230]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140002928
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140002952
test ebx, ebx
je 0x1400028e9
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400028e9
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x1400028e9
xor eax, eax
jmp 0x1400028ee
Function at 0x140005f2c
Capabilities:
Parse pe header

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

Function at 0x140009790
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 0x1400095fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400095fb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400095fb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400095fb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400095fb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400095fb
cmp dword [rcx + 0xf8], 0
je 0x1400095fb
mov ecx, ebx
call fcn.1400096ac
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.140009488
nop
cmp dword [rbp + 0x20], 0
je 0x140009649
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140009654
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000958c
Function at 0x140014884
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001489a
mov al, 1
jmp 0x1400148fa
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400148ab
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400148f8
mov ecx, dword [rcx + 0x18]
nop
call fcn.140016228
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400148f8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400148f8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400148f8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400148fa
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140015ee0
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 0x140015f67
mov rsi, rbx
cmp word [rax], bp
je 0x140015f26
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140015f10
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140015f0c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140010ca4
mov rdi, rax
test rax, rax
je 0x140015f54
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140007570
mov rbp, rdi
xor ecx, ecx
call fcn.140010c68
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 0x14001b330
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001b358
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001b358
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x100001abc
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x350
mov rax, qword [0x100004110]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov eax, dword [rcx + 0x424]
mov rbx, rcx
cmp dword [rcx + 0x420], eax
je 0x100001ba5
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
lea rdx, [rcx + 0x218]
mov r9d, 4
lea r8, [0x1000012c8]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rax
call sub.SHLWAPI.dll_SHSetValueW
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x100001b40
mov edx, 0x40
xor ecx, ecx
call qword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
jmp 0x100001ba5
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov edx, 0x138
mov qword [rsp + 0x20], 0x80
call fcn.100001e48
test eax, eax
js 0x100001ba5
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x140]
xor r8d, r8d
mov edx, 0x139
mov qword [rsp + 0x20], 0x100
call fcn.100001e48
test eax, eax
js 0x100001ba5
mov rcx, qword [rbx]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x140]
mov r9d, 0x10
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.1000023a0
add rsp, 0x350
pop rbx
ret

Function at 0x100001df0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x58
lea rax, [r11 - 0x18]
lea r8, [0x1000012c8]
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x30], r9
and qword [r11 - 0x38], 0
mov r9d, 0x10
mov dword [rsp + 0x40], 4
call sub.SHLWAPI.dll_SHRegGetValueW
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
add rsp, 0x58
ret

Function at 0x100001ec4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
mov eax, edx
mov rsi, r9
xor r9d, r9d
lea r12d, [r9 + 1]
shr eax, 4
mov edi, edx
add ax, r12w
lea edx, [r9 + 6]
mov rbp, rcx
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
xor ebx, ebx
cmp rax, rbx
je 0x100001f88
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, rbx
je 0x100001f88
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r11, rax
cmp rax, rbx
je 0x100001f81
and edi, 0xf
jbe 0x100001f46
mov eax, edi
movzx ecx, word [r11]
add ecx, r12d
sub rax, r12
movsxd rcx, ecx
lea r11, [r11 + rcx*2]
jne 0x100001f33
cmp rsi, rbx
je 0x100001f6e
movzx r8d, word [r11]
lea rdx, [r11 + 2]
movzx eax, r8w
neg ax
mov rax, qword [rsp + 0x50]
sbb rcx, rcx
mov word [rax], r8w
and rcx, rdx
mov qword [rsi], rcx
jmp 0x100001fa3
mov rcx, qword [rsp + 0x50]
cmp rcx, rbx
je 0x100001fa3
movzx eax, word [r11]
mov word [rcx], ax
jmp 0x100001fa3
mov ebx, 0x80004005
jmp 0x100001fa3
call sub.KERNEL32.dll_GetLastError
cmp eax, ebx
cmove eax, r12d
movzx ecx, ax
or ecx, 0x80070000
cmp eax, ebx
cmovle ecx, eax
mov ebx, ecx
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r12
ret
Function at 0x1400021d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004390]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400021f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400021f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400021f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000224d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002244
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400021f0
add rax, 0x28
cmp rax, r9
jne 0x140002230
xor eax, eax
ret

Function at 0x140002250
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004390]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000226f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002278
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000226f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002310
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004390]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000232f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002338
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002670
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push rbx
sub rsp, 0x40
call fcn.140001500
mov r9d, 4
xor ecx, ecx
mov edx, dword [0x1400031a0]
mov r8d, 0x3000
mov dword [rsp + 0x3c], 0
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [0x1400031a0]
lea rdx, [0x140003080]
mov rbx, rax
mov rcx, rax
call sub.msvcrt.dll_memmove
mov edx, dword [0x1400031a0]
lea r9, [rsp + 0x3c]
mov rcx, rbx
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400026db
xor eax, eax
add rsp, 0x40
pop rbx
ret
xor eax, eax
xor edx, edx
xor ecx, ecx
xor r9d, r9d
mov dword [rsp + 0x20], edx
mov r8, rbx
xor edx, edx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x1400026d3
Function at 0x1000073f0
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100009100]
jne 0x10000740b
rol rcx, 0x10
test cx, 0xffff
jne 0x100007407
ret 0
ror rcx, 0x10
jmp 0x100007418
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
lea rsi, [0x1000091c0]
mov rcx, rsi
call sub.ntdll.dll_RtlCaptureContext
mov rdi, qword [0x1000092b8]
lea rdx, [rsp + 0x70]
mov rcx, rdi
xor r8d, r8d
call sub.ntdll.dll_RtlLookupFunctionEntry
test rax, rax
je 0x10000748b
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x80]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rdi
mov qword [rsp + 0x20], rsi
call sub.ntdll.dll_RtlVirtualUnwind
mov r11, qword [0x1000092b8]
jmp 0x1000074a7
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x1000092b8], r11
mov qword [0x100009258], rax
mov rax, qword [0x100009100]
mov qword [0x100009240], rbx
mov qword [0x100009130], r11
mov dword [0x100009124], 1
mov ebx, 0xc0000409
lea rcx, [0x100001340]
mov dword [0x100009120], ebx
mov qword [rsp + 0x40], rax
mov rax, qword [0x100009108]
mov qword [rsp + 0x48], rax
call sub.ntdll.dll_RtlUnhandledExceptionFilter
mov edx, ebx
or rcx, 0xffffffffffffffff
call sub.ntdll.dll_NtTerminateProcess
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x100007418
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100009100]
jne 0x10000740b
rol rcx, 0x10
test cx, 0xffff
jne 0x100007407
ret 0
ror rcx, 0x10
jmp 0x100007418
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
lea rsi, [0x1000091c0]
mov rcx, rsi
call sub.ntdll.dll_RtlCaptureContext
mov rdi, qword [0x1000092b8]
lea rdx, [rsp + 0x70]
mov rcx, rdi
xor r8d, r8d
call sub.ntdll.dll_RtlLookupFunctionEntry
test rax, rax
je 0x10000748b
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x80]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rdi
mov qword [rsp + 0x20], rsi
call sub.ntdll.dll_RtlVirtualUnwind
mov r11, qword [0x1000092b8]
jmp 0x1000074a7
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x1000092b8], r11
mov qword [0x100009258], rax
mov rax, qword [0x100009100]
mov qword [0x100009240], rbx
mov qword [0x100009130], r11
mov dword [0x100009124], 1
mov ebx, 0xc0000409
lea rcx, [0x100001340]
mov dword [0x100009120], ebx
mov qword [rsp + 0x40], rax
mov rax, qword [0x100009108]
mov qword [rsp + 0x48], rax
call sub.ntdll.dll_RtlUnhandledExceptionFilter
mov edx, ebx
or rcx, 0xffffffffffffffff
call sub.ntdll.dll_NtTerminateProcess
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1409930d9
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov rax, qword gs:[0x60]
mov r11, rcx
mov r9, qword [rax + 0x10]
movsxd rdx, dword [r9 + 0x3c]
lea rbx, [r9 + 0x6260b0]
add rdx, r9
movzx eax, word [rdx + 0x14]
mov r8d, dword [rax + rdx + 0x20]
mov r10d, dword [rax + rdx + 0x24]
xor edx, edx
test r8d, r8d
je 0x140993135
lea rax, [r9 + r10]
nop dword [rax]
mov ecx, edx
lea rax, [rax + 1]
and ecx, 0x1f
inc edx
movzx ecx, byte [rcx + r9 + 0x993149]
xor byte [rax - 1], cl
cmp edx, r8d
jb 0x140993119
mov rcx, r11
mov rax, rbx
pop rbx
jmp rax