joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c780
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [0x140054080]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.14001c980
mov rax, qword [rsp + 0x2a0]
mov eax, dword [rax + 8]
or eax, 0x2001f
mov r9d, eax
mov r8, qword [rsp + 0x2a8]
mov rax, qword [rsp + 0x2a0]
mov rdx, qword [rax]
lea rcx, [rsp + 0x58]
call fcn.14001c6b0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x14001c805
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x58]
call fcn.14001ca10
mov eax, dword [rsp + 0x48]
jmp 0x14001c8c3
mov dword [rsp + 0x44], 0x100
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14001c892
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x58]
call fcn.14001c780
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x14001c885
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x58]
call fcn.14001ca10
mov eax, dword [rsp + 0x4c]
jmp 0x14001c8c3
mov dword [rsp + 0x44], 0x100
jmp 0x14001c80d
lea rcx, [rsp + 0x58]
call fcn.14001c9c0
mov rdx, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x2a0]
call fcn.14001cb30
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x58]
call fcn.14001ca10
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140021d50
add rsp, 0x298
ret

Function at 0x14001ca70
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
je 0x14001cafc
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14001caaf
mov eax, 1
jmp 0x14001cb1e
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14001cafa
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x38]
jmp 0x14001cb1e
jmp 0x14001cb19
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0
je 0x14001cb19
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x14001cb1e
mov eax, 1
add rsp, 0x48
ret
Function at 0x14001cb30
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
jne 0x14001cb3e
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x10], 0
je 0x14001cb70
mov r8, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x10]
call fcn.14001ca70
jmp 0x14001cbf3
movzx eax, byte [0x1400578f8]
test eax, eax
jne 0x14001cbb5
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14001cbae
lea rdx, str.RegDeleteKeyExW
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400578f0], rax
mov byte [0x1400578f8], 1
cmp qword [0x1400578f0], 0
je 0x14001cbe0
xor r9d, r9d
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 8]
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [0x1400578f0]
jmp 0x14001cbf3
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add rsp, 0x38
ret
Function at 0x14001e7c0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x140054080]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rsi, rcx
mov qword [rbp - 0x29], rcx
xor r14d, r14d
mov dword [rbp - 0x39], r14d
mov dword [rcx], r14d
add rcx, 8
call fcn.140007d70
nop
mov byte [rsi + 0x28], r14b
lea rcx, [rbp - 0x21]
call fcn.140007d70
mov dword [rbp - 0x39], 1
lea rdx, str..pipe_
lea rcx, [rbp - 0x21]
call fcn.14000ed60
mov dword [rbp - 0x31], r14d
lea rdx, [rbp - 0x31]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea r15, [r14 - 1]
mov eax, dword [rbp - 0x31]
test eax, eax
je 0x14001e87d
lea ecx, [rax + 1]
mov eax, 2
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.140021de0
mov rbx, rax
lea rdx, [rbp - 0x31]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp dword [rbp - 0x31], r14d
ja 0x14001e896
mov rcx, rbx
call fcn.140021d70
lea rdx, [0x14004a848]
lea rcx, [rbp - 1]
call fcn.140001970
mov dword [rbp - 0x39], 3
jmp 0x14001e8c8
mov rdx, rbx
lea rcx, [rbp + 0x1f]
call fcn.140001970
mov rcx, rbx
call fcn.140021d70
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 1]
call fcn.140007ca0
mov dword [rbp - 0x39], 3
lea rcx, [rbp + 0x1f]
call fcn.140001940
nop
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x21]
call fcn.14000ed90
nop
lea rcx, [rbp - 1]
call fcn.140001940
lea rdx, [0x14004aedc]
lea rcx, [rbp - 0x21]
call fcn.14000ed60
lea rdx, [0x14004aee0]
lea rcx, [rbp - 0x21]
call fcn.14000ed60
lea rdi, [rsi + 0x30]
mov qword [rbp - 0x31], rdi
lea rcx, [rbp - 0x21]
call fcn.140001f00
mov rdx, rax
mov rcx, rdi
call fcn.140007d00
nop
mov qword [rdi + 0x20], r15
mov byte [rdi + 0x28], 0
mov qword [rdi + 0x30], 0x10000
mov ecx, 0x10000
call fcn.140021de0
mov rbx, rax
xor edx, edx
mov r8d, 0x10000
mov rcx, rax
call fcn.140024a30
mov qword [rbp - 0x39], rbx
lea rcx, [rbp - 0x39]
call fcn.140001f00
mov rcx, qword [rax]
mov qword [rdi + 0x38], rcx
mov qword [rdi + 0x40], r14
mov qword [rdi + 0x48], r14
lea rcx, [rbp - 0x21]
call fcn.140001940
mov rcx, rsi
call fcn.14001ea40
nop
mov rax, rsi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140021d50
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001ee90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x50
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x40], r9d
lea rbx, [rcx + 0x30]
mov rcx, rbx
call fcn.140020650
lea r8, [rsp + 0x38]
mov rdx, qword [rbx + 0x20]
mov rcx, rbx
call fcn.14001f1a0
mov rdi, qword [rbx + 0x20]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, 4
lea rdx, [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001ef36
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14001ef4d
mov r8, qword [rbx + 0x30]
xor edx, edx
mov rcx, qword [rbx + 0x38]
call fcn.140024a30
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, dword [rbx + 0x30]
mov rdx, qword [rbx + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001ef62
mov byte [rbx + 0x28], 0
mov eax, dword [rsp + 0x68]
jmp 0x14001ef42
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov dword [rsp + 0x30], eax
lea rdx, [0x140051e58]
lea rcx, [rsp + 0x30]
call fcn.140024db8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
lea rdx, [0x140051e58]
lea rcx, [rsp + 0x34]
call fcn.140024db8
int3

Function at 0x14001f1a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push r14
sub rsp, 0x50
mov r14, rdx
mov rbx, rcx
mov rdx, qword [rcx + 0x38]
mov qword [rsp + 0x38], rdx
movsd xmm0, qword [r8]
movsd qword [rdx], xmm0
mov eax, dword [r8 + 8]
mov dword [rdx + 8], eax
lea rsi, [rcx + 0x28]
mov qword [rsp + 0x40], rsi
cmp byte [rsi], 0
je 0x14001f1e5
mov r8, qword [rcx + 0x30]
jmp 0x14001f1eb
mov r8d, 0xc
mov qword [rsp + 0x88], r8
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001f273
cmp dword [rsp + 0x80], 0
jbe 0x14001f273
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
nop
jmp 0x14001f231
mov byte [rsi], 0
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x14001f26a
mov qword [rbx + 0x40], 0
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rcx, qword [rbx + 0x40]
mov qword [rbx + 0x40], 0
test rcx, rcx
je 0x14001f26a
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov dword [rsp + 0x30], eax
lea rdx, [0x140051e58]
lea rcx, [rsp + 0x30]
call fcn.140024db8
int3

Function at 0x140020760
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov rax, r9
mov qword [rsp + 0x20], 0
mov rbx, rdx
lea r9, [rsp + 0x50]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400207a8
cmp dword [rsp + 0x50], 0
jbe 0x1400207a8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140051e58]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x30]
call fcn.140024db8
int3
Function at 0x140022b18
Capabilities:
Parse pe header

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

Function at 0x14002c5b0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002c3ac

Function at 0x14003072c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140030742
mov al, 1
jmp 0x1400307a2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140030753
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400307a0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140036e7c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400307a0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400307a0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400307a0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400307a2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400320cc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140022730
sub rsp, rax
mov rax, qword [0x140054080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002fd60
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003211b
mov rax, rbp
jmp 0x140032223
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x56e90]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140031d08
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x56e90]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14003221f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003221f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140031d08
test rax, rax
js 0x14003221f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14003221f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140032211
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140032211
cmp byte [rcx], 0xd
jne 0x1400321f7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140032206
cmp byte [rcx + 1], 0xa
jne 0x140032206
inc rcx
jmp 0x140032206
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x54b60]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400321d9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140032223
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140021d50
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400367b8
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 0x14003683f
mov rsi, rbx
cmp word [rax], bp
je 0x1400367fe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400367e8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400367e4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400332c0
mov rdi, rax
test rax, rax
je 0x14003682c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140024390
mov rbp, rdi
xor ecx, ecx
call fcn.14002fd24
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 0x1400393d0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14002f9c4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140039471
cmp ebx, dword [rsp + 0x30]
je 0x14003946a
test esi, esi
je 0x14003946a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140039445
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140039452
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14003942f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140039456
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140039473
mov eax, 1
jmp 0x140039473
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140039784
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140056e90]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400397db
cmp word [rdx], r13w
jne 0x1400397db
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400397e0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140039905
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140039926
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140039819
mov rdx, r9
mov word [rbx], cx
jmp 0x140039840
cmp r9, r8
jae 0x140039850
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400397fa
jmp 0x140039905
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400398fa
cmp dword [rsp + 0x80], esi
je 0x1400398fa
lea r8, [0x140056e90]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400398d2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400398a2
mov word [rbx], r13w
jmp 0x140039902
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400398af
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140039902
cmp word [rsp + 0x70], r13w
jne 0x1400398df
cmp rbx, r14
je 0x14003989c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140031d10
cmp word [rsp + 0x70], r13w
je 0x140039905
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140056e90]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400398ff
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140039905
Function at 0x14003c3f8
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.140031d10
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140031d10
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14003c548
cmp rax, 0xffffffffffffffff
je 0x14003c548
xor edi, edi
test rbp, rbp
jle 0x14003c4f3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400319e4
mov rbx, rax
test rax, rax
jne 0x14003c480
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14003c4e9
mov edx, 0x8000
mov ecx, r14d
call fcn.14002d334
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.1400316dc
cmp eax, 0xffffffff
je 0x14003c4c9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14003c490
mov edx, r15d
mov ecx, r14d
call fcn.14002d334
jmp 0x14003c4e9
cmp byte [rsi + 0x38], dil
je 0x14003c4e0
cmp dword [rsi + 0x34], 5
jne 0x14003c4e0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14003c4e9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002fd24
jmp 0x14003c55c
jns 0x14003c55c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140031d10
cmp rax, 0xffffffffffffffff
jne 0x14003c514
cmp byte [rsi + 0x30], dil
je 0x14003c55c
mov edi, dword [rsi + 0x2c]
jmp 0x14003c55c
mov ecx, r14d
call fcn.140036e7c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14003c55c
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 0x14003c55c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14003c555
mov eax, dword [rsi + 0x2c]
jmp 0x14003c55a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140031d10
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 0x14003c9b0
Capabilities:
Parse pe header

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rax, rsp
sub rsp, 0x58
xor r13d, r13d
mov rsi, r8
mov rbp, rcx
cmp rcx, r13
mov dword [rax - 0x28], r13d
mov qword [rax - 0x20], r13
mov qword [rax - 0x18], r13
mov dword [rax + 0x60], r13d
mov rdi, r13
mov r14d, 0x80070000
je 0x30006369
cmp edx, r13d
je 0x30006369
cmp r8, r13
jne 0x30006373
mov ebx, 0x80070057
jmp 0x300064f8
movsxd rax, edx
mov dword [r8], r13d
lea r15, [0x3000c010]
lea r12, [rax + rax*4]
lea r8, [rsp + 0x30]
mov rdx, qword [r15 + r12*8]
call fcn.30004ce8
cmp eax, r13d
mov ebx, eax
jl 0x300064f8
invalid
cmp dword [rsp + 0x30], r13d
jne 0x300063ae
mov ebx, 1
jmp 0x300064f8
mov rdx, qword [r15 + r12*8]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, r14d
cmp eax, r13d
cmovle ebx, eax
cmp ebx, r13d
jl 0x300064f8
mov rdx, qword [0x3000c140]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, r14d
cmp eax, r13d
cmovle ebx, eax
cmp ebx, r13d
jl 0x300064f8
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0xb8]
lea r9, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r13
mov dword [rsp + 0xa0], r13d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, r14d
cmp eax, r13d
cmovle ebx, eax
mov eax, dword [rsp + 0xa0]
cmp ebx, r13d
cmovge eax, dword [rsp + 0xa0]
cmp ebx, r13d
mov dword [rsp + 0xa0], eax
jl 0x300064f8
mov edx, dword [rsp + 0xb8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp rax, r13
mov rdi, rax
jne 0x30006497
mov ebx, 0x8007000e
jmp 0x300064f8
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0xb8]
lea r8, [rsp + 0xa0]
mov r9, rdi
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.30003bd4
cmp eax, r13d
mov ebx, eax
jl 0x300064f8
cmp dword [rsp + 0xa0], 1
je 0x300064dd
cmp dword [rsp + 0xa0], 2
je 0x300064dd
mov ebx, 0x80004005
jmp 0x300064f8
mov rdx, qword [0x3000c1c8]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
mov ecx, r13d
cmp rax, r13
setne cl
mov dword [rsi], ecx
mov rcx, rdi
call fcn.300034e4
mov rcx, qword [rsp + 0x38]
cmp rcx, r13
je 0x3000652d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx ecx, ax
or ecx, r14d
cmp eax, r13d
cmovle ecx, eax
mov rax, qword [rsp + 0x38]
cmp ecx, r13d
cmovge rax, r13
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x40]
cmp rcx, r13
je 0x3000653d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140026050
Capabilities:
Encode data using xor

Disassembly:
test r8d, r8d
je 0x140026174
xchg rbx, r14
mov qword [rsp + 0x10], r14
xchg r14, rbx
mov qword [rsp + 0x18], rbp
nop
mov qword [rsp - 8], rsi
sub rsp, 8
sub rsp, 0x20
mov qword [rsp + 0x30], rdi
xchg r12, rbx
mov r12, rdx
xchg rbx, r12
xchg rdi, rcx
mov rcx, rdi
xchg rcx, rdi
mov esi, r8d
sub rdi, rdx
xchg rbp, rcx
mov rcx, rbp
xchg rbp, rcx
add rdi, 0x473cf612
sub rdi, 0x473cf522
dec rsi
shr rsi, 1
shr rsi, 1
shr rsi, 1
shr rsi, 1
inc rsi
nop dword [rax]
xchg r12, rbx
movups xmm0, xmmword [r12]
xchg r12, rbx
xchg rbp, r14
mov rdx, r14
xchg rbp, r14
xchg rcx, rbx
mov rbx, rcx
xchg rbx, rcx
call fcn.140026800
mov ecx, 0x38f1bc6
add ecx, 0x125c9d41
add ecx, 0x4753e477
sub ecx, 0x400bee79
sub ecx, 0x7ccaae2
xor ecx, 0x47d2f69d
xor ecx, 0x52b5f2ae
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi + rbx]
xor byte [rbx], al
inc rbx
sub rcx, 1
jne 0x140026118
nop
sub rdi, 0x47f37558
add rdi, 0x47f37548
movups xmmword [rbp + 0xf0], xmm0
sub rsi, 1
jne 0x1400260c0
xchg rdi, r15
mov r15, qword [rsp + 0x30]
xchg r15, rdi
mov rbx, qword [rsp + 0x38]
xchg rdi, rbp
mov rdi, qword [rsp + 0x40]
xchg rdi, rbp
add rsp, 0x20
nop
add rsp, 8
mov rsi, qword [rsp - 8]
ret

Function at 0x140026180
Capabilities:
Encode data using xor

Disassembly:
xchg rbx, r11
mov qword [rsp + 8], r11
xchg r11, rbx
mov qword [rsp + 0x10], rbp
xchg rsi, rbp
mov qword [rsp + 0x18], rbp
xchg rbp, rsi
nop
push r11
mov qword [rsp], rdi
sub rsp, 0x20
mov edi, r8d
xchg rbx, r12
mov r12, rdx
xchg rbx, r12
lea r9, [rcx + 0xf0]
xchg rcx, rdx
mov rsi, rdx
xchg rcx, rdx
test r8d, r8d
je 0x140026256
dec rdi
shr rdi, 3
shr rdi, 1
inc rdi
nop dword [rax]
nop word [rax + rax]
mov rax, rbx
sub r9, rbx
mov edx, 0x31305454
xor edx, 0xbc14317
add edx, 0x269b9764
sub edx, 0x19b8b0d7
add edx, 0x2e68d2bd
sub edx, 0x763cd07d
nop dword [rax + rax]
movzx ecx, byte [r9 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x140026213
xchg r8, rsi
mov rdx, r8
xchg rsi, r8
xchg rcx, rbx
mov rbx, rcx
xchg rcx, rbx
call fcn.140026310
xchg r15, r9
mov r15, rbx
xchg r15, r9
add rbx, 0x10
sub rdi, 1
jne 0x1400261e5
xchg r9, r11
movups xmm0, xmmword [r11]
xchg r11, r9
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
xchg rdx, rsi
movups xmmword [rdx + 0xf0], xmm0
xchg rsi, rdx
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
nop
add rsp, 8
mov rdi, qword [rsp - 8]
nop
add rsp, 8
jmp qword [rsp - 8]