joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001e0c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
movsxd r9, dword [rdx + 0x38]
mov rdi, rdx
mov r10d, dword [rdx + 0x90]
mov rbp, rcx
mov rbx, qword [rdx + 0x30]
mov al, r9b
mov r14d, dword [rdx + 0x4c]
and al, 0x3f
mov r15d, dword [rdx + 0x88]
btr rbx, 0x10
mov r12d, dword [rdx + 0x8c]
mov r13d, dword [rdx + 0x74]
mov rdx, r9
shr rdx, 6
movzx ecx, al
mov dword [rsp + 0xa0], r10d
mov rax, qword [rbp + rdx*8 + 0x1118]
mov edx, 0x10000
bt rax, rcx
jae 0x140001e8b
cmp dword [rdi + 0x1c], 1
jne 0x140001e8b
or rbx, rdx
mov eax, dword [rdi + 0x3c]
lea rsi, [rdi + 0x40]
mov r8d, dword [rdi + 0xb8]
test rdx, rbx
jne 0x140001f03
mov dword [rsp + 0x60], r10d
xor edx, edx
mov dword [rsp + 0x58], r13d
mov rcx, rbp
mov qword [rsp + 0x50], rsi
and dword [rsp + 0x48], 0
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r9d
mov r9, rbx
call fcn.140002d3c
mov rdx, rdi
mov rcx, rbp
call fcn.1400017e0
test al, al
je 0x140001f40
mov r8d, dword [rdi + 0xc0]
bts rbx, 0x10
mov eax, dword [rdi + 0x3c]
mov r9d, 2
mov r10d, dword [rsp + 0xa0]
mov dword [rsp + 0x60], r10d
mov dl, 1
mov dword [rsp + 0x58], r13d
mov rcx, rbp
mov qword [rsp + 0x50], rsi
and dword [rsp + 0x48], 0
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r9d
mov r9, rbx
call fcn.140002d3c
test al, al
je 0x140001f5e
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, [0x14002e200]
call fcn.14000330c
mov r9d, dword [rdi + 0xb8]
lea rcx, [0x14002e260]
mov rdx, rax
mov r8d, 0x694
call fcn.1400231e4
int3
Function at 0x140011b30
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14003d3a8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov edx, 2
lea r9, [rsp + 0x30]
mov rdi, rcx
mov r8d, edx
mov rcx, qword [rcx + 0x80]
call qword [sym.imp.ntoskrnl.exe_IoOpenDeviceRegistryKey]
mov edx, eax
mov esi, eax
mov eax, 0xc0000000
and edx, eax
cmp edx, eax
je 0x140011ce3
mov ecx, dword [rdi + 0x1244]
or rbx, 0xffffffffffffffff
shr ecx, 8
test cl, 1
je 0x140011b99
mov rcx, qword [rdi + 0x1610]
jmp 0x140011baf
mov eax, dword [rdi + 0x1608]
mov ecx, dword [rdi + 0x1600]
add rcx, rax
cmp rcx, rax
cmovb rcx, rbx
mov qword [rsp + 0x38], rcx
mov rax, rbx
mov rcx, qword [str.GeForce]
xor edi, edi
inc rax
cmp word [rcx + rax*2], di
jne 0x140011bc0
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, [0x14003d048]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [0x14003d070]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], di
jne 0x140011bfe
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, [0x14003d060]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 8
lea rdx, [0x14003d078]
mov r9d, 0xb
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [str.Nvidia_Dis]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], di
jne 0x140011c69
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, [0x14003d090]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [0x14003d0b8]
inc rbx
cmp word [rcx + rbx*2], di
jne 0x140011ca4
lea eax, [rbx*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, [0x14003d0a8]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400229d0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400171e8
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14003d3a8]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edx, edx
mov byte [rsp + 0x20], 0
lea r9, [0x140016f90]
mov rbx, rcx
lea r8d, [rdx + 4]
call fcn.140010dcc
xor r8d, r8d
lea rcx, [rbx + 0x3c10]
lea edx, [r8 + 1]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
lea rax, [0x140016fe0]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x40]
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1fffff
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
js 0x140017293
and qword [rsp + 0x28], 0
lea rcx, [rbx + 0x3c28]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
mov edx, 0x1fffff
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, 1
jmp 0x140017295
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400229d0
add rsp, 0x50
pop rbx
ret

Function at 0x140017a9c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov rax, qword [0x14003d3a8]
xor rax, rsp
mov qword [rbp + 0x17], rax
xor eax, eax
lea rsi, [rsp + 0x30]
mov qword [rbp - 0x79], rax
lea r14, str.Flags
mov qword [rbp - 0x71], rax
mov rbx, r9
mov dword [rbp - 0x75], 4
mov r12, r8
mov dword [rbp - 0x71], 4
mov r15, rdx
xor edi, edi
lea rdx, [rbp - 0x69]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, 0x78
lea rcx, [rsp + 0x48]
mov rdx, r12
mov word [rsp + 0x4a], ax
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
mov rdx, qword [r14]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
test eax, eax
jne 0x140017b91
lea rax, [rsp + 0x58]
mov r8d, 2
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x79]
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x20], 0x10
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jne 0x140017b91
mov eax, dword [rbp - 0x6d]
inc edi
mov dword [rsi], eax
add r14, 8
add rsi, 4
cmp edi, 5
jb 0x140017af0
mov eax, dword [rsp + 0x30]
mov dword [rbx + 4], eax
mov eax, dword [rsp + 0x34]
mov dword [rbx + 8], eax
mov eax, dword [rsp + 0x38]
mov dword [rbx + 0xc], eax
mov eax, dword [rsp + 0x3c]
mov dword [rbx + 0x10], eax
mov eax, dword [rsp + 0x40]
mov dword [rbx + 0x14], eax
mov byte [rbx], 1
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400229d0
add rsp, 0x100
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14001cf1c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x14003d3a8]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov r12d, 1
lea r9, [rsp + 0x30]
mov rdi, rdx
mov r14, rcx
mov rcx, qword [rcx + 0x80]
mov r8d, r12d
mov ebx, r12d
lea esi, [r12 + 1]
mov edx, esi
call qword [sym.imp.ntoskrnl.exe_IoOpenDeviceRegistryKey]
test eax, eax
jne 0x14001d0ef
and dword [rdi + 0xc0], eax
lea r9, [rsp + 0x38]
and dword [rsp + 0x74], eax
lea rdx, [rsp + 0x50]
and dword [rsp + 0x48], eax
mov r8d, esi
movups xmm0, xmmword [0x14003d370]
mov rcx, qword [rsp + 0x30]
xor eax, eax
and qword [rsp + 0x6c], 0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea eax, [rsi + 2]
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x10
mov qword [rsp + 0x60], 8
mov dword [rsp + 0x68], r12d
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jne 0x14001d008
mov eax, dword [rsp + 0x44]
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x70], eax
call fcn.14002cccc
mov ecx, dword [rsp + 0x70]
mov rbx, rax
mov dword [rdi + 0xc0], ecx
test dword [r14 + 0x1244], 0x114
cmove ebx, r12d
cmp ebx, r12d
cmovb ebx, r12d
xor esi, esi
mov dword [rdi + 0xc4], ebx
movups xmm0, xmmword [0x1400326e0]
lea rcx, [rbp - 0x58]
xor edx, edx
movsd xmm1, qword [0x1400326f0]
movaps xmmword [rbp - 0x70], xmm0
movsd qword [rbp - 0x60], xmm1
lea r8d, [rdx + 0x60]
call fcn.14002dd40
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, 0x14
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
mov word [rsp + 0x3a], ax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, 0x78
lea r8, [rsp + 0x38]
xor edx, edx
mov word [rsp + 0x52], ax
mov ecx, esi
call qword [sym.imp.ntoskrnl.exe_RtlIntegerToUnicodeString]
test eax, eax
jne 0x14001d0ef
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
test eax, eax
jne 0x14001d0ef
mov rdx, qword [rsp + 0x30]
lea rcx, [rsi + rsi*2]
lea r9, [rdi + rcx*8]
mov rcx, r14
lea r8, [rsp + 0x50]
call fcn.140017a9c
add esi, r12d
cmp esi, 8
jb 0x14001d026
cmp byte [r14 + 0x12ed], 0
je 0x14001d0e4
cmp ebx, r12d
jne 0x14001d0e4
and dword [rdi + 0x10], 0
and dword [rdi + 0x14], 0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400229d0
mov rbx, qword [rsp + 0x160]
add rsp, 0x120
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140022560
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14003d3a8]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor eax, eax
mov dword [r11 - 0x68], r9d
mov qword [r11 - 0x60], rax
mov rdi, rcx
mov eax, 0x30
lea rcx, [r11 - 0x60]
mov word [rsp + 0x3a], ax
mov rbx, r8
lea rax, [r11 - 0x50]
mov qword [r11 - 0x58], rax
call fcn.140018e00
mov esi, 0xc0000000
and eax, esi
cmp eax, esi
je 0x1400225eb
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140018f6c
and eax, esi
cmp eax, esi
je 0x1400225eb
mov r9d, 4
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], r9d
lea rdx, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400229d0
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret

Function at 0x140022a20
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x14003d3a8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov dword [rcx], 0x23003f
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
nop dword [rax + rax]
test eax, eax
js 0x140022a77
cmp dword [rsp + 0x24], 6
ja 0x140022a71
jne 0x140022a77
cmp dword [rsp + 0x28], 2
jb 0x140022a77
mov dword [rbx], 0x230047
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400229d0
add rsp, 0x150
pop rbx
ret

Function at 0x140022b20
Capabilities:
Install driver

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbp, rdx
mov r14, rcx
mov esi, 0xa
call fcn.140022a90
mov rdi, rax
test rax, rax
jne 0x140022b5a
mov ebx, 0xc0000017
jmp 0x140022c22
mov rdx, rdi
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ZwLoadDriver]
nop dword [rax + rax]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
nop dword [rax + rax]
mov eax, 0x80000000
mov r15d, 0xc000010e
lea ecx, [rbx + rax]
test eax, ecx
jne 0x140022ba9
cmp ebx, r15d
jne 0x140022c22
cmp ebx, r15d
lea rdx, str.DeviceDxgKrnl
lea rcx, [rsp + 0x30]
setne dil
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
nop dword [rax + rax]
mov r9, rbp
lea rcx, [rsp + 0x30]
mov r8, r14
mov edx, 0xc0000000
call qword [sym.imp.ntoskrnl.exe_IoGetDeviceObjectPointer]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x140022c1b
test dil, dil
jne 0x140022c14
lea r8, [rsp + 0x70]
mov qword [rsp + 0x70], 0xffffffffffff3cb0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_KeDelayExecutionThread]
nop dword [rax + rax]
add esi, 0xffffffff
jne 0x140022bc8
jmp 0x140022c22
call fcn.140022c40
jmp 0x140022c22
test dil, dil
cmove ebx, r15d
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140022c40
Capabilities:
Unload driver

Disassembly:
push rbx
sub rsp, 0x30
call fcn.140022a90
mov rbx, rax
test rax, rax
je 0x140022c89
mov rdx, rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ZwUnloadDriver]
nop dword [rax + rax]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
nop dword [rax + rax]
add rsp, 0x30
pop rbx
ret

Function at 0x14002b680
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov r14b, byte [rcx + 0x20]
xor r15b, r15b
mov r13d, r9d
mov r9d, r8d
mov ebx, edx
mov rbp, rcx
mov edi, edx
cmp r14b, 0x20
jne 0x14002b6b6
mov esi, 3
jmp 0x14002b6bd
movzx esi, r14b
shr esi, 3
movzx eax, r14b
mov r8d, ebx
imul eax, ebx
imul r8d, r13d
imul eax, r9d
cdq
and edx, 7
add eax, edx
mov edx, ebx
sar eax, 3
movsxd r12, eax
mov eax, dword [rcx + 0x18]
imul eax, ebx
imul edx, r9d
lea r9, [rsp + 0xa8]
imul eax, r13d
cdqe
add r12, rax
lea rax, [rsp + 0x98]
add r12, qword [rcx + 0x10]
mov qword [rsp + 0x20], rax
call fcn.14002c418
mov r8d, dword [rbp + 0x24]
mov r11, rax
mov qword [rsp + 0x90], rax
lea eax, [r8 - 1]
cdq
idiv ebx
cmp dword [rsp + 0xa0], eax
jne 0x14002b741
lea ecx, [rbx - 1]
add ecx, r8d
mov eax, ecx
cdq
idiv ebx
mov edi, edx
sub edi, ecx
add edi, r8d
add edi, ebx
mov r8d, dword [rbp + 0x28]
lea eax, [r8 - 1]
cdq
idiv ebx
cmp r13d, eax
jne 0x14002b763
lea ecx, [rbx - 1]
add ecx, r8d
mov eax, ecx
cdq
idiv ebx
sub edx, ecx
add edx, r8d
add ebx, edx
test ebx, ebx
jle 0x14002b870
mov eax, ebx
mov qword [rsp + 0x30], rax
test r15b, r15b
jne 0x14002b7df
mov rdx, r12
mov r9, r11
test edi, edi
jle 0x14002b84a
movsxd rax, dword [rsp + 0x98]
movzx r10d, r14b
shr r10, 3
mov qword [rsp + 0x38], rax
mov r13d, edi
test rsi, rsi
je 0x14002b7c6
mov r11, r9
mov r8, rdx
sub r11, rdx
mov rbx, rsi
mov cl, byte [r11 + r8]
xor cl, byte [r8]
inc r8
or r15b, cl
sub rbx, 1
jne 0x14002b7ae
mov rax, qword [rsp + 0x38]
add rdx, r10
add r9, rax
sub r13, 1
jne 0x14002b79d
mov r11, qword [rsp + 0x90]
test r15b, r15b
je 0x14002b84a
mov r10, r12
mov rcx, r11
test edi, edi
jle 0x14002b84a
movsxd r13, dword [rsp + 0x98]
mov ebx, edi
xor r11d, r11d
test rsi, rsi
je 0x14002b819
mov r8, r10
mov rdx, rcx
sub r8, rcx
mov r9, rsi
mov r11, rsi
mov al, byte [r8 + rdx]
mov byte [rdx], al
inc rdx
sub r9, 1
jne 0x14002b80a
cmp byte [rbp + 0x2d], 0
je 0x14002b82a
cmp byte [rbp + 0x20], 0x20
jne 0x14002b82a
mov byte [r11 + rcx], 0
movzx r14d, byte [rbp + 0x20]
add rcx, r13
mov eax, r14d
shr rax, 3
add r10, rax
sub rbx, 1
jne 0x14002b7f3
mov r11, qword [rsp + 0x90]
movsxd rax, dword [rbp + 0x18]
add r12, rax
movsxd rax, dword [rsp + 0xa8]
add r11, rax
sub qword [rsp + 0x30], 1
mov qword [rsp + 0x90], r11
jne 0x14002b772
test r15b, r15b
sete al
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14002d44c
Capabilities:
Reference the vmware io port

Disassembly:
mov eax, 0x5658
mov dword [rcx], 0x564d5868
mov word [rcx + 0x18], ax
jmp 0x14002d490
push rbx
push rsi
push rdi
mov rax, rcx
push rax
mov rdi, qword [rax + 0x28]
mov rsi, qword [rax + 0x20]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rax + 0x10]
mov rbx, qword [rax + 8]
mov rax, qword [rax]
in eax, dx
xchg qword [rsp], rax
mov qword [rax + 0x28], rdi
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], rdx
mov qword [rax + 0x10], rcx
mov qword [rax + 8], rbx
pop qword [rax]
pop rdi
pop rsi
pop rbx
ret

Function at 0x14004a000
Capabilities:
Check os version
Create device object

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x180
mov rax, qword [0x14003d3a8]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rbx, rcx
test rcx, rcx
je 0x14004a0f6
test rdx, rdx
je 0x14004a0f6
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x114
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
test eax, eax
js 0x14004a06f
cmp dword [rsp + 0x54], 6
ja 0x14004a05b
jne 0x14004a06f
cmp dword [rsp + 0x58], 2
jb 0x14004a06f
mov dword [0x14003fa60], 0x200
mov dword [0x14003fa64], 0x40000000
call fcn.140011edc
call fcn.1400125a0
call fcn.14002d628
lea rdx, [0x14004a1b0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [0x14003fa98]
mov r9d, 0x23
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov byte [rsp + 0x28], 0
xor edx, edx
and dword [rsp + 0x20], 0
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov edi, eax
test eax, eax
js 0x14004a0ef
lea rax, [0x140048390]
mov qword [rbx + 0x70], rax
mov qword [rbx + 0x80], rax
lea rax, [0x1400483e0]
mov qword [rbx + 0xe8], rax
lea rax, [0x1400484d0]
mov qword [rbx + 0x68], rax
jmp 0x14004a0fb
call fcn.140012650
jmp 0x14004a0fb
mov edi, 0xc000000d
mov eax, edi
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400229d0
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rdi
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140034150]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140034160]
mov dword [rax], 1
mov rax, qword [0x140034170]
mov dword [rax], 1
mov rax, qword [0x140034140]
mov dword [rax], 1
mov rax, qword [0x140033fc0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140034130]
mov dword [0x140039020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400340f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400340d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140033f70]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067
Function at 0x14000158a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
lea r8, section..rdata
mov edx, 0x65
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_FindResourceA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400015e7
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Resource_not_found
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov eax, 0
jmp 0x140001724
mov rax, qword [rbp - 8]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_LoadResource]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140001633
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Resource_cannot_be_loaded
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov eax, 0
jmp 0x140001724
mov rax, qword [rbp - 8]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SizeofResource]
call rax
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0
jne 0x14000167d
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Resource_size_is_zero
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov eax, 0
jmp 0x140001724
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LockResource]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x1400016c1
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Resource_cannot_be_locked
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov eax, 0
jmp 0x140001724
mov eax, dword [rbp - 0x14]
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0
jne 0x140001700
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Cannot_allocate_memory
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov eax, 0
jmp 0x140001724
mov ecx, dword [rbp - 0x14]
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x28]
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov edx, dword [rbp - 0x14]
mov rax, qword [rbp + 0x10]
mov qword [rax], rdx
mov rax, qword [rbp - 0x28]
add rsp, 0x50
pop rbp
ret
Function at 0x14000172a
Capabilities:
Create directory

Disassembly:
push rbp
sub rsp, 0x610
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x5a0], rcx
mov qword [rbp + 0x5a8], rdx
mov qword [rbp + 0x5b0], r8
lea rax, [rbp + 0x510]
mov r8d, 0x70
mov edx, 0
mov rcx, rax
call sym.memset
mov rdx, qword [rbp + 0x5a8]
lea rax, [rbp + 0x510]
mov r9d, 0
mov r8, rdx
mov rdx, qword [rbp + 0x5a0]
mov rcx, rax
call sym.mz_zip_reader_init_mem
test eax, eax
jne 0x1400017bf
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Cannot_open_ZIP_from_memory
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov eax, 0xffffffff
jmp 0x1400019b8
mov rax, qword [rbp + 0x5b0]
mov rcx, rax
call sym.mkdir
test eax, eax
je 0x14000181d
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov eax, dword [rax]
cmp eax, 0x11
je 0x14000181d
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Cannot_create_output_directory
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
lea rax, [rbp + 0x510]
mov rcx, rax
call sym.mz_zip_reader_end
mov eax, 0xffffffff
jmp 0x1400019b8
lea rax, [rbp + 0x510]
mov rcx, rax
call sym.mz_zip_reader_get_num_files
mov dword [rbp + 0x588], eax
mov dword [rbp + 0x58c], 0
jmp 0x140001992
mov edx, dword [rbp + 0x58c]
lea rcx, [rbp + 0xb0]
lea rax, [rbp + 0x510]
mov r8, rcx
mov rcx, rax
call sym.mz_zip_reader_file_stat
test eax, eax
jne 0x14000189f
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Cannot_get_file_stat
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
lea rax, [rbp + 0x510]
mov rcx, rax
call sym.mz_zip_reader_end
mov eax, 0xffffffff
jmp 0x1400019b8
mov edx, dword [rbp + 0x58c]
lea rax, [rbp + 0x510]
mov rcx, rax
call sym.mz_zip_reader_is_file_a_directory
test eax, eax
je 0x1400018fb
mov rcx, qword [rbp + 0x5b0]
lea rax, [rbp - 0x50]
lea rdx, [rbp + 0xb0]
add rdx, 0x50
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str._s__s
mov edx, 0x100
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.mkdir
jmp 0x14000198b
mov rcx, qword [rbp + 0x5b0]
lea rax, [rbp - 0x50]
lea rdx, [rbp + 0xb0]
add rdx, 0x50
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str._s__s
mov edx, 0x100
mov rcx, rax
call sym.snprintf
mov edx, dword [rbp + 0x58c]
lea rcx, [rbp - 0x50]
lea rax, [rbp + 0x510]
mov r9d, 0
mov r8, rcx
mov rcx, rax
call sym.mz_zip_reader_extract_to_file
test eax, eax
jne 0x14000198b
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Cannot_extract_file
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
lea rax, [rbp + 0x510]
mov rcx, rax
call sym.mz_zip_reader_end
mov eax, 0xffffffff
jmp 0x1400019b8
add dword [rbp + 0x58c], 1
mov eax, dword [rbp + 0x58c]
cmp eax, dword [rbp + 0x588]
jl 0x140001841
lea rax, [rbp + 0x510]
mov rcx, rax
call sym.mz_zip_reader_end
mov eax, 0
add rsp, 0x610
pop rbp
ret