joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001bee0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14001b9b1
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x14001b9a1
mov rax, qword [rbx + 0x10]
mov ecx, 2
lea rsi, [rax + rax]
lea rdx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x14001b9a1
mov rcx, rax
mov qword [rsp + 0x30], rbp
call qword [sym.imp.KERNEL32.dll_GlobalLock]
cmp qword [rbx + 0x18], 7
mov rbp, rax
jbe case.default.0x14001b99a
mov rbx, qword [rbx]
mov r8, rsi
mov rdx, rbx
mov rcx, rbp
call fcn.140087290
xor eax, eax
mov rcx, rdi
mov word [rsi + rbp], ax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rdi
mov ecx, InitCommonControls
call qword [sym.imp.USER32.dll_SetClipboardData]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_CloseClipboard]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbx
ret
add rcx, 8
jmp 0x14001b8f0
out dx, al
xor al, 0x33
push rbp
clc
jae 0x140143db5
invalid
invalid
jrcxz 0x140143de0
mov bh, 0xd
ja 0x140143d73
insd dword [rdi], dx
invalid
stosd dword [rdi], eax
stosd dword [rdi], eax
jrcxz 0x140143e10
cwde
retf 0x9f20
stosb byte [rdi], al
and al, 0xf9
sbb dl, byte [rdx - 0x46]
jbe 0x140143e20
and al, 0x5c
pop rsi
invalid
jns 0x140143e13
invalid
adc dword ds:[rax], esi
mov ds, word [rbx]
loope 0x140143e23
invalid
cmp al, 0xed
in eax, dx
sbb cl, ah
int1
cmp r15b, byte [rax]
pushfq
mov cs, word [rbp + rbp*4 - 0x43]
in al, 0xe
cmpsb byte [rsi], byte [rdi]
sub al, 0xf1
invalid
adc al, 0x5b
invalid
xchg edi, eax
or ecx, dword [rdx + rbp*8 + 0xc]
jrcxz 0x140143e89
invalid
push rdi
jg 0x140143e64
in al, 0xdc
mov eax, 0x91a03989
xchg ecx, eax
or bl, bl
push rbp
adc bh, byte [rax]
movabs dword [0x602034a0265025ea], eax
add edi, dword [rdx]
test dword [rax - 0x6d91cfff], r13d
out dx, eax
retf
push rax
shr byte [rdi], 2
stc
xchg edi, eax
stc
int3
jo 0x140143ec4
lahf
mov esi, 0xd54afc3e
mov esi, 0xd54afc3e
xchg esi, eax
pushfq
mov eax, 0x23da6629
invalid
invalid
pop rsi
invalid
Function at 0x140022740
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, qword [rsi + 0x10]
cmp rax, rcx
je 0x140022780
cmp rdi, qword [rsi + 0x120]
je 0x140022780
test rdi, rdi
je 0x140022780
call qword [sym.imp.USER32.dll_SetFocus]
mov rbx, qword [rsi + 0x120]
cmp rdi, rbx
je 0x1400228f8
mov qword [rsp + 0x70], r14
xor r14d, r14d
test rbx, rbx
je 0x140022828
mov qword [rbp - 0x38], rbx
mov dword [rbp - 0x40], 3
mov word [rbp - 0x24], r14w
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r14
mov dword [rbp - 0x10], r14d
mov qword [rbp - 0x2c], r14
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbp - 0x30], eax
lea rdx, [rbp - 0x40]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x1a0]
mov rbx, qword [rsi + 0x120]
mov rax, qword [rsi + 0x148]
mov qword [rbp - 0x2c], rax
mov qword [rsi + 0x120], r14
mov word [rbp - 0x24], r14w
mov dword [rbp - 0x10], r14d
mov qword [rbp - 0x38], rbx
mov dword [rbp - 0x40], 0x25
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rdx, [rbp - 0x40]
mov qword [rbp - 0x20], r14
mov dword [rbp - 0x30], eax
mov rcx, rbx
mov rax, qword [rbx]
mov qword [rbp - 0x18], r14
call qword [rax + 0x1a0]
test rdi, rdi
je 0x1400228f3
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
cmp rax, rsi
jne 0x1400228f3
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x28]
test al, al
je 0x1400228f3
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x110]
test al, al
je 0x1400228f3
mov qword [rsi + 0x120], rdi
mov qword [rbp - 0x38], rdi
mov dword [rbp - 0x40], 2
mov word [rbp - 0x24], r14w
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r14
mov dword [rbp - 0x10], r14d
mov qword [rbp - 0x2c], r14
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbp - 0x30], eax
lea rdx, [rbp - 0x40]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x1a0]
mov rbx, qword [rsi + 0x120]
test rbx, rbx
je 0x1400228f3
mov rax, qword [rsi + 0x148]
mov qword [rbp - 0x2c], rax
mov word [rbp - 0x24], r14w
mov dword [rbp - 0x10], r14d
mov qword [rbp - 0x38], rbx
mov dword [rbp - 0x40], 0x24
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rdx, [rbp - 0x40]
mov qword [rbp - 0x20], r14
mov dword [rbp - 0x30], eax
mov rcx, rbx
mov rax, qword [rbx]
mov qword [rbp - 0x18], r14
call qword [rax + 0x1a0]
mov r14, qword [rsp + 0x70]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x14002dd90
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rdx, qword [rcx + 0x300]
test rdx, rdx
je 0x14002dda9
mov rax, qword [rdx]
mov rcx, rdx
jmp qword [rax + 0x148]
cmp byte [rcx + 0xbf], 0
jne 0x14002ddc6
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x14002ddc6
mov rdx, rcx
mov rcx, rax
jmp fcn.140022740
ret
Function at 0x1400376f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [rcx + 0xbf], 0
jne 0x14003770d
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x14003770d
mov rdx, rcx
mov rcx, rax
jmp fcn.140022740
ret
Function at 0x140053190
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x38]
lea rcx, [rbx + 0xc0]
sub rax, qword [rcx]
xorps xmm1, xmm1
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rbx + 0xc8]
cvtsi2sd xmm1, rax
mulsd xmm1, qword [0x1400a45e0]
divsd xmm1, xmm0
addsd xmm1, qword [rbx + 0x30]
movsd qword [rbx + 0x30], xmm1
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
mov rcx, qword [rbx + 0x78]
mov edi, eax
test rcx, rcx
je 0x140053267
mov eax, dword [rbx + 0x1c]
mov qword [rsp + 0x40], rsi
mov esi, dword [rbx + 0x20]
cmp esi, eax
jle 0x140053210
cmp edi, esi
jge 0x140053216
cmp esi, eax
jge 0x140053240
cmp edi, esi
jg 0x140053240
mov dword [rsp + 0x30], esi
lea rdx, [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
mov rcx, rbx
call fcn.140053280
mov dword [rbx + 0x24], esi
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
cmp edi, dword [rbx + 0x24]
je 0x140053254
mov dword [rsp + 0x30], edi
lea rdx, [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
mov rsi, qword [rsp + 0x40]
mov dword [rbx + 0x24], edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov dword [rbx + 0x24], edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400622e4
Capabilities:
Parse pe header

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

Function at 0x1400731e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140073217
call fcn.14006b680
mov dword [rax], 0x16
call fcn.14006a6a0
xor eax, eax
jmp 0x1400732a5
mov rdx, r9
mov rcx, r8
call fcn.14007317c
mov rbx, rax
test rax, rax
je 0x1400732a2
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400730a8]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14007328f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14006b5f4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140073276
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140073285
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140078964
jmp 0x1400732a2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14007329f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14007457c
Capabilities:
Parse pe header

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

Function at 0x14007701c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140077032
mov al, 1
jmp 0x140077092
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140077043
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140077090
mov ecx, dword [rcx + 0x18]
nop
call fcn.14007fe7c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140077090
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140077090
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140077090
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140077092
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140079ee8
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.140061e00
sub rsp, rax
mov rax, qword [0x1400b8080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140076e00
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140079f37
mov rax, rbp
jmp 0x14007a03f
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 + 0xbd9b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14007ae34
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xbd9b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14007a03b
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 0x14007a03b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14007ae34
test rax, rax
js 0x14007a03b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14007a03b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14007a02d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14007a02d
cmp byte [rcx], 0xd
jne 0x14007a013
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14007a022
cmp byte [rcx + 1], 0xa
jne 0x14007a022
inc rcx
jmp 0x14007a022
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xb84b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140079ff5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14007a03f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140061510
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 0x14007a1d4
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, [0x1400bd9b0]
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 0x14007a22b
cmp word [rdx], r13w
jne 0x14007a22b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14007a230
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14007a355
mov r11d, InitCommonControls
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14007a376
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14007a269
mov rdx, r9
mov word [rbx], cx
jmp 0x14007a290
cmp r9, r8
jae 0x14007a2a0
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 0x14007a24a
jmp 0x14007a355
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 0x14007a34a
cmp dword [rsp + 0x80], esi
je 0x14007a34a
lea r8, [0x1400bd9b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14007a322
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14007a2f2
mov word [rbx], r13w
jmp 0x14007a352
mov ecx, InitCommonControls
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 0x14007a2ff
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14007a352
cmp word [rsp + 0x70], r13w
jne 0x14007a32f
cmp rbx, r14
je 0x14007a2ec
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14007ae3c
cmp word [rsp + 0x70], r13w
je 0x14007a355
mov ecx, InitCommonControls
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, [0x1400bd9b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14007a34f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14007a355
Function at 0x14007f624
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 0x14007f6ab
mov rsi, rbx
cmp word [rax], bp
je 0x14007f66a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14007f654
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14007f650
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14007aee0
mov rdi, rax
test rax, rax
je 0x14007f698
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140087290
mov rbp, rdi
xor ecx, ecx
call fcn.140078964
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 0x1400823d0
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.1400775a8
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 0x140082471
cmp ebx, dword [rsp + 0x30]
je 0x14008246a
test esi, esi
je 0x14008246a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140082445
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140082452
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14008242f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140082456
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140082473
mov eax, 1
jmp 0x140082473
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140085d54
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.14007ae3c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14007ae3c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140085ea4
cmp rax, 0xffffffffffffffff
je 0x140085ea4
xor edi, edi
test rbp, rbp
jle 0x140085e4f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140078f50
mov rbx, rax
test rax, rax
jne 0x140085ddc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140085e45
mov edx, 0x8000
mov ecx, r14d
call fcn.1400752d4
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.14007865c
cmp eax, 0xffffffff
je 0x140085e25
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140085dec
mov edx, r15d
mov ecx, r14d
call fcn.1400752d4
jmp 0x140085e45
cmp byte [rsi + 0x38], dil
je 0x140085e3c
cmp dword [rsi + 0x34], 5
jne 0x140085e3c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], InitCommonControls
cmp byte [rsi + 0x30], dil
je 0x140085e45
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140078964
jmp 0x140085eb8
jns 0x140085eb8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14007ae3c
cmp rax, 0xffffffffffffffff
jne 0x140085e70
cmp byte [rsi + 0x30], dil
je 0x140085eb8
mov edi, dword [rsi + 0x2c]
jmp 0x140085eb8
mov ecx, r14d
call fcn.14007fe7c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140085eb8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, InitCommonControls
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], InitCommonControls
jmp 0x140085eb8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140085eb1
mov eax, dword [rsi + 0x2c]
jmp 0x140085eb6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14007ae3c
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 0x140086df0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140086e18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140086e18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400080d0
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa0
xor ebx, ebx
mov rbp, r8
mov rsi, rcx
cmp r9d, 1
jne 0x140008106
lea rdi, [rcx + 0x70]
lea ecx, [rbx + 0x1b]
lea rax, [0x140009470]
rep stosq qword [rdi], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rbx
call fcn.140009088
mov rdx, rbp
lea rcx, [rsp + 0x70]
call fcn.140009144
lea rcx, [rsp + 0x48]
call fcn.140017168
xor edx, edx
mov r8, rax
lea rax, [rsp + 0x40]
mov rcx, rsi
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], bl
lea r9d, [rdx + 0x22]
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x14000819a
mov rax, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [0x140027448], rax
call fcn.140017168
lea rcx, [rsp + 0x70]
mov rdi, rax
call fcn.140017168
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
test eax, eax
js 0x14000818f
mov bl, 1
jmp 0x14000819a
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
lea rcx, [rsp + 0x70]
call fcn.1400164b8
lea rcx, [rsp + 0x48]
call fcn.1400164b8
lea r11, [rsp + 0xa0]
mov al, bl
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140009478
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
xor eax, eax
mov qword [r11 - 0x28], rdx
mov qword [r11 - 0x30], rcx
xor ebx, ebx
mov qword [r11 - 0x18], rax
lea rcx, [r11 + 0x18]
mov qword [r11 - 0x10], rax
xor r9d, r9d
lea rax, [r11 - 0x18]
mov qword [r11 + 0x18], rbx
xor r8d, r8d
mov qword [r11 - 0x38], rax
mov edx, 0x1fffff
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov rcx, qword [rsp + 0x70]
test eax, eax
cmovne rcx, rbx
mov rax, rcx
add rsp, 0x50
pop rbx
ret

Function at 0x140011eb4
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
mov eax, dword [rcx + 0x70]
mov rbx, rcx
and qword [r11 - 0x18], 0
xor r9d, r9d
mov qword [r11 + 8], rax
lea rax, [rcx + 0x60]
lea rcx, [r11 + 8]
mov qword [r11 - 0x20], rcx
mov rcx, qword [rbx]
mov dword [r11 - 0x28], r8d
xor r8d, r8d
mov qword [r11 - 0x30], rdx
xor edx, edx
mov qword [r11 - 0x38], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
test eax, eax
js 0x140011efe
mov rax, qword [rbx + 0x68]
jmp 0x140011f02
or rax, 0xffffffffffffffff
add rsp, 0x50
pop rbx
ret

Function at 0x140012f4c
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x70
and qword [rcx], 0
mov r14, rdx
and dword [rcx + 0xc], 0
mov rbx, rcx
and dword [rcx + 8], 0
mov r13d, 0x400
mov edx, r13d
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov edx, r13d
mov ecx, 1
mov rsi, rax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r9d, r13d
mov r8, rsi
mov rbp, rax
mov edx, 2
lea rax, [rsp + 0x90]
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
test eax, eax
js 0x14001306e
xor edi, edi
cmp dword [rsi + 0x14], edi
jbe 0x14001306e
lea rax, [rsp + 0x90]
mov r9, rbp
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, edi
mov dword [rsp + 0x20], r13d
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
test eax, eax
js 0x140013063
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x30]
movzx eax, word [rbp + 0xc]
lea rcx, [rsp + 0x40]
mov word [rsp + 0x30], ax
mov word [rsp + 0x32], ax
call fcn.1400163cc
mov ecx, dword [rbx + 8]
mov edx, dword [rbx + 0xc]
cmp ecx, edx
jne 0x14001303b
lea edx, [rdx*2 + 0x32]
mov rcx, rbx
call fcn.140011f08
mov ecx, dword [rbx + 8]
lea eax, [rcx + 1]
mov dword [rbx + 8], eax
lea rdx, [rsp + 0x40]
movsxd rax, ecx
lea rcx, [rax + rax*4]
mov rax, qword [rbx]
lea rcx, [rax + rcx*8]
call fcn.140016570
lea rcx, [rsp + 0x40]
call fcn.1400164b8
inc edi
cmp edi, dword [rsi + 0x14]
jb 0x140012fd2
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea r11, [rsp + 0x70]
mov rax, rbx
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rdi
ret