joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001d484
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
xor r14d, r14d
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rsi, rdx
movsxd rdi, r9d
mov rbp, rcx
test r9d, r9d
jle 0x14001d675
lea rbx, [r8 + 0x20]
xor r13d, r13d
lea r8d, [r14 + 1]
mov r11d, pe_nt_image_headers64
xorps xmm7, xmm7
movss xmm6, dword [rbx - 0x20]
comiss xmm6, xmm7
jbe 0x14001d526
movsxd r10, dword [rsi + 0x24]
mov r9, qword [rsi + 8]
movsx ecx, r11w
movzx eax, byte [r10 + r9 + 7]
movzx edx, byte [r10 + r9 + 6]
imul edx, ecx
movsx ecx, r11w
add dx, ax
movzx eax, byte [r10 + r9 + 5]
movsx r8d, dx
movzx edx, byte [r10 + r9 + 4]
imul edx, ecx
add ax, dx
cwde
sub eax, r8d
mov r8d, 1
movd xmm0, eax
jmp 0x14001d548
movsxd rdx, dword [rsi + 0x1c]
mov rax, qword [rsi + 8]
xorps xmm6, xmmword [0x140040b70]
movzx ecx, byte [rdx + rax + 0x12]
movzx eax, byte [rdx + rax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
mov al, byte [rbp + 0x20]
xor r15d, r15d
cvtdq2ps xmm0, xmm0
mov byte [rbx], al
mov al, byte [rbp + 0x24]
mov byte [rbx + 1], al
divss xmm6, xmm0
cmp dword [rbx - 0x10], r15d
jle 0x14001d668
mov rcx, qword [rsp + 0xe0]
mov rax, r13
shl rax, 4
add rcx, 6
xor r12d, r12d
add rcx, rax
mov qword [rsp + 0x60], rcx
mov rax, qword [rbx - 0x18]
test rax, rax
jne 0x14001d596
mov edx, dword [rbx - 0x1c]
add edx, r15d
jmp 0x14001d59a
mov edx, dword [rax + r12]
mov rcx, rsi
call fcn.14001cbf0
mov edx, eax
xorps xmm3, xmm3
mov eax, dword [rbp + 0x24]
xorps xmm2, xmm2
mov rcx, rsi
cvtsi2ss xmm3, rax
mov eax, dword [rbp + 0x20]
cvtsi2ss xmm2, rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x30], rax
movss dword [rsp + 0x28], xmm7
mulss xmm3, xmm6
mulss xmm2, xmm6
movss dword [rsp + 0x20], xmm7
call fcn.14001d028
mov rcx, qword [rsp + 0x60]
mov r8d, 1
movzx eax, word [rbp + 0x20]
add r14d, r8d
sub ax, word [rsp + 0xd8]
add r13, r8
add ax, word [rbp + 0x1c]
add r15d, r8d
add ax, word [rsp + 0x50]
add r12, 4
sub ax, r8w
mov word [rcx - 2], ax
movzx eax, word [rbp + 0x24]
sub ax, word [rsp + 0x54]
add ax, word [rbp + 0x1c]
add ax, word [rsp + 0x58]
sub ax, r8w
mov word [rcx], ax
add rcx, 0x10
mov qword [rsp + 0x60], rcx
cmp r15d, dword [rbx - 0x10]
jl 0x14001d585
mov r11d, pe_nt_image_headers64
add rbx, 0x28
sub rdi, r8
jne 0x14001d4d4
movaps xmm7, xmmword [rsp + 0x70]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov eax, r14d
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14001e7d4
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140062fc0]
xor rax, rsp
mov qword [rbp - 8], rax
call fcn.1400089c8
mov rcx, qword [0x1400635a8]
lea rdx, [rbp - 0x18]
mov rdi, rax
call qword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [rbp - 0x10]
sub ecx, dword [rbp - 0x18]
movd xmm1, ecx
mov ecx, dword [rbp - 0xc]
sub ecx, dword [rbp - 0x14]
cvtdq2ps xmm1, xmm1
movd xmm0, ecx
lea rcx, [rbp - 0x20]
cvtdq2ps xmm0, xmm0
movss dword [rdi + 8], xmm1
movss dword [rdi + 0xc], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbp - 0x20]
xorps xmm1, xmm1
sub rax, qword [0x1400635b0]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x1400635b8]
mov ecx, 0x11
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x10], xmm1
mov rax, qword [rbp - 0x20]
mov qword [0x1400635b0], rax
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov bl, 1
and al, bl
mov ecx, 0x10
mov byte [rdi + 0x128], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, bl
mov byte [rdi + 0x129], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, bl
mov byte [rdi + 0x12b], 0
mov byte [rdi + 0x12a], al
call fcn.1400089c8
cmp byte [rax + 0x3a7], 0
lea rbx, [rax + 0x110]
je 0x14001e8fd
cvttss2si ecx, dword [rbx]
lea rdx, [rbp - 0x30]
cvttss2si eax, dword [rax + 0x114]
mov dword [rbp - 0x30], ecx
mov rcx, qword [0x1400635a8]
mov dword [rbp - 0x2c], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rbp - 0x2c]
mov ecx, dword [rbp - 0x30]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov eax, 0xff7fffff
mov dword [rbx], eax
mov dword [rbx + 4], eax
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [0x1400635a8]
jne 0x14001e952
lea rcx, [rbp - 0x28]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14001e952
mov rcx, qword [0x1400635a8]
lea rdx, [rbp - 0x28]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x14001e952
movd xmm0, dword [rbp - 0x28]
movd xmm1, dword [rbp - 0x24]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx], xmm0
movss dword [rbx + 4], xmm1
cmp byte [rdi + 0xc8], 0
je 0x14001e960
or eax, 0xffffffff
jmp 0x14001e965
call fcn.140008a04
cmp dword [0x14004b188], eax
je 0x14001e978
mov dword [0x14004b188], eax
call fcn.14001e9a0
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14003da60
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
Function at 0x140036a74
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x88
mov rax, qword [0x140062fc0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x30], 0
cmp dword [rsp + 0x90], 0
jl 0x140036acd
cmp dword [rsp + 0x90], 0x7c
jge 0x140036acd
lea r8, [rsp + 0x30]
mov edx, dword [rsp + 0x90]
lea rcx, [0x140061bc0]
call fcn.140036c44
lea rcx, [rsp + 0x50]
call fcn.14002ce5c
nop
cmp qword [rsp + 0x30], 0
jne 0x140036af3
lea rdx, [0x140045d78]
lea rcx, [rsp + 0x50]
call fcn.14002dce8
jmp 0x140036b02
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14002dce8
cmp dword [rsp + 0xa0], 1
jne 0x140036b1d
lea rdx, [0x140045d88]
lea rcx, [rsp + 0x50]
call fcn.14002dce8
movss xmm2, dword [0x140044868]
movss xmm1, dword [0x140046528]
lea rcx, [rsp + 0x48]
call fcn.14002d294
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x50]
call fcn.140039030
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call fcn.140022070
movzx eax, al
test eax, eax
je 0x140036b92
cmp dword [rsp + 0xa0], 0
jne 0x140036b92
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
lea rcx, [rsp + 0x50]
call fcn.14002d908
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14003da60
add rsp, 0x88
ret
Function at 0x14003a16c
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
mov rax, qword [0x140062fc0]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x130
rep stosb byte [rdi], al
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0x130
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x14003a208
mov rdx, qword [rsp + 0x188]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x14003a1f5
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
jmp 0x14003a215
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x14003a1cd
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14003da60
add rsp, 0x170
pop rdi
ret
Function at 0x14003b1cc
Capabilities:
Hash data using fnv

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
movsx eax, byte [rsp + 0x10]
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x1000193
ret

Function at 0x14003b8a0
Capabilities:
Create thread
Hide graphical window

Disassembly:
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140037ff8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
xor ecx, ecx
call qword [sym.imp.GDI32.dll_GetStockObject]
mov qword [rsp + 0xa0], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x88], 0
lea rax, [0x1400384b0]
mov qword [rsp + 0x78], rax
lea rax, [0x140045078]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x70], 3
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_RegisterClassA]
movzx eax, ax
test eax, eax
jne 0x14003b958
lea rdx, str._n_n_FireFox
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140028b84
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x60], eax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x80000000
xor r8d, r8d
lea rdx, str.FireFox_29.1.5
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [0x1400640a8], rax
mov edx, 5
mov rcx, qword [0x1400640a8]
call qword [sym.imp.USER32.dll_ShowWindow]
lea rdx, [0x140045068]
mov rcx, qword [0x1400640a8]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov r8d, 0x800a0
mov edx, 0xffffffec
mov rcx, qword [0x1400640a8]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x1400640a8]
call qword [sym.imp.USER32.dll_UpdateWindow]
add rsp, 0xc0
pop rdi
ret
Function at 0x14003e168
Capabilities:
Parse pe header

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

Disassembly:
add byte [0xa8ca374d], 0x82
cmpsd dword [rsi], dword [rdi]
fiadd dword [rax + 0x69d2a635]
sub byte [rsp + rbx - 0x6d54ade7], ah
mov esi, dword [rsi - 0x4318e647]
leave
stc
fdiv st(4)
cdq
add edi, eax
in al, dx
mov ecx, 0x276dca87
sub bh, byte [rdx - 0x1ac75149]
sub al, 0x52
or eax, 0x58b58669
cmp cl, byte [rdx - 0x7b]
invalid

Function at 0x639da058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.639da1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x639da089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x639da06f
add dl, dl
jne 0x639da096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x639da0f6
xor eax, eax
add dl, dl
jne 0x639da0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x639da1ad
add dl, dl
jne 0x639da0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x639da0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x639da0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x639da0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x639da0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x639da07e
mov eax, 1
add dl, dl
jne 0x639da106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x639da113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x639da0fb
sub eax, ebx
mov ebx, 1
jne 0x639da14c
mov ecx, 1
add dl, dl
jne 0x639da12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x639da13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x639da123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x639da07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x639da168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x639da175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x639da15d
cmp eax, 0x7d00
jae 0x639da19b
cmp eax, 0x500
jb 0x639da196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x639da07e
cmp eax, 0x7f
ja 0x639da19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x639da07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x639da1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x639da07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x18000b0e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rdi, rdx
mov rbx, rcx
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
movzx r8d, word [rbx + 0x1c]
mov r9, rdi
lea rdx, str._c:_s
lea rcx, [rsp + 0x50]
call fcn.180004720
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18000b178
xor r9d, r9d
mov r8, rbx
mov edx, 0x2005
mov ecx, 0x800
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000b1ee
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x18000b1ee
test al, 0x10
je 0x18000b1a8
xor r9d, r9d
mov r8, rbx
mov edx, 0x1005
lea ecx, [r9 + 4]
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
xor r9d, r9d
mov r8, rbx
mov edx, 0x1005
lea ecx, [r9 + 8]
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp 0x18000b1d3
xor r9d, r9d
mov r8, rbx
mov edx, 0x1005
lea ecx, [r9 + 0x10]
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
xor r9d, r9d
mov r8, rbx
mov edx, 0x1005
lea ecx, [r9 + 2]
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000b1ee
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x18000c360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x18000c393
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x18000c3d7
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x18000c3d2
cmp rbx, r11
jae 0x18000c3d7
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x18000c3c0
cmp rbx, r11
jb 0x18000c3db
xor eax, eax
jmp 0x18000c3e7
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18000c690
Capabilities:
Get disk information

Disassembly:
sub rsp, 0x118
mov rax, qword [0x18002a090]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov eax, dword [0x180023488]
lea rcx, [rsp + 0x20]
mov r8d, 0x64
mov dword [rcx], eax
movzx eax, word [0x18002348c]
mov word [rcx + 4], ax
mov word [rsp + 0x20], dx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x18000c6fd
call fcn.1800048d0
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.180013990
add rsp, 0x118
ret
lea rcx, str.DeviceKZipVirtualDisk
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [rsp + 0x30]
lea rcx, str.DeviceKZipVirtualDisk
movsxd r8, eax
call fcn.180014420
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.180013990
add rsp, 0x118
ret
Function at 0x18000d170
Capabilities:
Create thread
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x70
mov rbx, rcx
xor esi, esi
lea rcx, str..KZDriver
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 0x18], rax
cmp rax, 0xffffffffffffffff
jne 0x18000d1c9
call fcn.1800048d0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rsi
ret
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
je 0x18000d1b6
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x80], rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x60]
mov edi, esi
add eax, eax
je 0x18000d232
nop
lea r8, [0x18000d330]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x60]
inc edi
add eax, eax
cmp edi, eax
jb 0x18000d200
lea rcx, str.KZModule.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, qword [rsp + 0x80]
mov qword [rbx + 0x20], rax
mov rbx, qword [rsp + 0x88]
xor eax, eax
add rsp, 0x70
pop rsi
ret

Function at 0x18000d820
Capabilities:
Get memory capacity

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov dword [rsp + 0x28], 0x38
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov r11, qword [rsp + 0x38]
shr r11, 1
mov edi, 0x2000000
cmp r11, rdi
jb 0x18000d868
mov rdi, r11
mov eax, 0x40000000
cmp r11, rax
cmova rdi, rax
mov qword [rsp + 0x70], 0
mov rbx, qword [0x18002c8b8]
test rbx, rbx
je 0x18000d886
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov qword [rsp + 0x70], rbx
test rbx, rbx
je 0x18000d89d
mov rax, qword [rbx]
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x18]
nop
test rbx, rbx
je 0x18000d8ab
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x18000e0c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x30
mov r12, rcx
mov ecx, 0x38
mov rdi, r8
mov rbp, rdx
call fcn.1800140a8
xor esi, esi
mov rbx, rax
test rax, rax
je 0x18000e109
mov qword [rax + 0x28], 7
mov qword [rax + 0x20], rsi
mov word [rax + 0x10], si
jmp 0x18000e10c
mov rbx, rsi
or rcx, 0xffffffffffffffff
mov qword [rbx + 0x30], rdi
xor eax, eax
mov qword [rbx], r12
mov rdi, rbp
mov rdx, rbp
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbx + 8]
call fcn.1800037c0
lea r8, [0x18000e2c0]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop r12
ret
Function at 0x180012d50
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x18002a090]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov edi, edx
lea rcx, [rsp + 0x42]
xor esi, esi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], si
call fcn.180014980
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x180012dc1
cmp eax, 0x104
ja 0x180012dc1
lea rdx, str.KZCache_
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x180012dd7
call fcn.1800048d0
test eax, eax
js 0x180012e62
cmp eax, 1
je 0x180012e62
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x180012dff
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180012dff
call fcn.1800048d0
jmp 0x180012e62
lea rdx, [0x1800238b8]
lea rcx, [rsp + 0x40]
mov r9, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x180012df8
mov dword [rbx + 0x210], edi
mov qword [rsp + 0x30], rsi
neg edi
sbb eax, eax
mov edx, 0xc0000000
mov rcx, rbx
and eax, 0x20000000
xor r9d, r9d
xor r8d, r8d
bts eax, 0x1a
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 0x208], rax
cmp rax, 0xffffffffffffffff
je 0x180012df8
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180013990
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180012f20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, r9
mov edi, r8d
mov r10, rdx
mov rbx, rcx
test r8d, r8d
je 0x180013090
mov rcx, qword [rcx + 0x208]
cmp rcx, 0xffffffffffffffff
je 0x1800130a2
test r9, r9
je 0x1800130a2
cmp dword [rbx + 0x210], 0
je 0x180012fb1
mov rax, qword [rdx]
cqo
and edx, 0x1ff
add rax, rdx
and eax, 0x1ff
cmp rax, rdx
jne 0x180012f87
test edi, 0x1ff
je 0x180012fb1
mov r9d, edi
mov r8, rsi
mov rdx, r10
mov rcx, rbx
mov qword [rsp + 0x20], 0
call fcn.180013260
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rdx, qword [r10]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x180012fd9
call fcn.1800048d0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx + 0x208]
lea r9, [rsp + 0x50]
mov r8d, edi
mov rdx, rsi
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180013090
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x18001303e
cmp eax, 0x3e6
je 0x18001303e
test eax, eax
jle 0x1800130a7
movzx eax, ax
or eax, 0x80070000
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov edx, edi
mov rcx, rbx
call fcn.180012e90
test eax, eax
js 0x1800130a7
cmp eax, 1
je 0x1800130a7
mov rdx, qword [rbx + 0x218]
mov rcx, qword [rbx + 0x208]
lea r9, [rsp + 0x50]
mov r8d, edi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180012fc4
mov rdx, qword [rbx + 0x218]
mov r8, rdi
mov rcx, rsi
call fcn.180015520
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, 0x80070057
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret