joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400200d4
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, [0x14003f450]
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 0x14002012b
cmp word [rdx], r13w
jne 0x14002012b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140020130
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140020255
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140020276
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140020169
mov rdx, r9
mov word [rbx], cx
jmp 0x140020190
cmp r9, r8
jae 0x1400201a0
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 0x14002014a
jmp 0x140020255
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 0x14002024a
cmp dword [rsp + 0x80], esi
je 0x14002024a
lea r8, [0x14003f450]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140020222
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400201f2
mov word [rbx], r13w
jmp 0x140020252
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 0x1400201ff
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140020252
cmp word [rsp + 0x70], r13w
jne 0x14002022f
cmp rbx, r14
je 0x1400201ec
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140020d3c
cmp word [rsp + 0x70], r13w
je 0x140020255
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, [0x14003f450]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002024f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140020255
Function at 0x1400236fc
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14002372c
xor eax, eax
jmp 0x1400237ef
mov rbp, rbx
cmp word [rax], si
je 0x140023751
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140023738
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140023734
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140021cfc
movsxd r14, eax
test eax, eax
jne 0x14002378f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140023725
mov rcx, r14
call fcn.14001abe0
mov rdi, rax
test rax, rax
jne 0x1400237a8
xor ecx, ecx
call fcn.14001aba4
jmp 0x140023784
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140021cfc
test eax, eax
jne 0x1400237d9
mov rcx, rdi
call fcn.14001aba4
jmp 0x1400237e3
xor ecx, ecx
call fcn.14001aba4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400264b8
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.14001b888
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 0x140026559
cmp ebx, dword [rsp + 0x30]
je 0x140026552
test esi, esi
je 0x140026552
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002652d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002653a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140026517
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002653e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002655b
mov eax, 1
jmp 0x14002655b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140029414
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140016930
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002949e
cmp byte [rbp - 0x21], r15b
je 0x140029499
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400294d4
call fcn.14001beb0
test eax, eax
jne 0x1400294c0
cmp byte [rbp - 0x21], r15b
je 0x1400294b8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400294d4
cmp byte [rbp - 0x21], r15b
je 0x1400294d1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140016f0c
test eax, eax
jne 0x140029574
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140016930
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140029513
cmp byte [rbp - 0x21], r15b
je 0x140029548
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140029548
call fcn.14001beb0
test eax, eax
jne 0x140029534
cmp byte [rbp - 0x21], r15b
je 0x14002952d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140029548
cmp byte [rbp - 0x21], r15b
je 0x140029545
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140016f0c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140029574
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140029577
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140029585
mov rcx, rdi
call fcn.14001aba4
cmp byte [rbp + 0x3f], r15b
je 0x140029594
mov rcx, qword [rbp + 0x27]
call fcn.14001aba4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
push rcx
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
push r9
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140027ce0
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.14001b684
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b684
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027e30
cmp rax, 0xffffffffffffffff
je 0x140027e30
xor edi, edi
test rbp, rbp
jle 0x140027ddb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dc70
mov rbx, rax
test rax, rax
jne 0x140027d68
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027dd1
mov edx, 0x8000
mov ecx, r14d
call fcn.140015828
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.14001c360
cmp eax, 0xffffffff
je 0x140027db1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027d78
mov edx, r15d
mov ecx, r14d
call fcn.140015828
jmp 0x140027dd1
cmp byte [rsi + 0x38], dil
je 0x140027dc8
cmp dword [rsi + 0x34], 5
jne 0x140027dc8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027dd1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019d48
jmp 0x140027e44
jns 0x140027e44
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b684
cmp rax, 0xffffffffffffffff
jne 0x140027dfc
cmp byte [rsi + 0x30], dil
je 0x140027e44
mov edi, dword [rsi + 0x2c]
jmp 0x140027e44
mov ecx, r14d
call fcn.140016e28
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027e44
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 0x140027e44
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027e3d
mov eax, dword [rsi + 0x2c]
jmp 0x140027e42
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b684
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 0x1412e5be0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1412e5bea
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1412e5c13
pop rbp
sub rbp, 0x33
sub rbp, 0x12e5be0
sub rsp, 0x20
jmp 0x1412e5c32
mov rax, 0x12e5be0
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x5ac148a0
xor byte [rax], dl
inc rax
dec rcx
jne 0x1412e5c51
jmp 0x1412e5c68
call 0x16a59a596
pushfq
movabs al, byte [0xa0a1a86121e8a0a0]
movabs al, byte [0xa0a76067e849a1e8]
movabs al, byte [0xa0a0a0886267e8a0]
call 0xe3169ee5
invalid
Function at 0x14003f774
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
mov eax, dword [r9]
mov rbx, r8
mov rcx, qword [rcx]
add eax, eax
mov dword [rsp + 0x40], eax
mov rdi, r9
lea rax, [r11 + 8]
xor esi, esi
mov dword [r9], esi
xor r8d, r8d
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x20]
mov qword [r11 - 0x18], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14003f7ec
mov eax, dword [rsp + 0x58]
dec eax
cmp eax, 1
ja 0x14003f7e7
mov ecx, dword [rsp + 0x40]
test rbx, rbx
je 0x14003f800
test ecx, ecx
je 0x14003f7fd
test cl, 1
jne 0x14003f7e7
mov eax, ecx
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x14003f800
mov eax, SafeArrayGetDim
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov word [rbx], si
shr ecx, 1
mov dword [rdi], ecx
xor eax, eax
jmp 0x14003f7ec

Function at 0x140044050
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push r14
push r15
sub r12, r12
add r12, 0x60
mov r14, qword gs:[r12]
push r11
mov r11, qword [r14 + 0x10]

Function at 0x140044b00
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140044b4a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140044b4a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140044b4a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140044b4a
cmp dword [rcx + 0x84], 0xe
jbe 0x140044b4a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140044b4c
xor al, al
add rsp, 0x28
ret
Function at 0x14000e120
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax + 0x20], 0
mov rbp, rcx
lea rcx, [rax - 0x18]
mov rsi, r8
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor r9d, r9d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
and dword [rsp + 0x20], 0
mov rcx, rbp
lea r8d, [r9 + 2]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
cmp eax, 0x80000005
je 0x14000e17c
cmp eax, 0xc0000023
jne 0x14000e1e3
mov edx, dword [rsp + 0x68]
mov r8d, 0x62696c52
mov ecx, dword [0x140023120]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x14000e1de
mov ecx, dword [rsp + 0x68]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], ecx
mov r9, rdi
mov rcx, rbp
mov r8d, 2
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
test eax, eax
js 0x14000e1ce
mov qword [rsi], rdi
jmp 0x14000e1e3
lfence
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14000e1e3
mov ebx, 0xc000009a
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14000e54c
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x70
and qword [rax - 0x30], 0
mov rdi, r8
and qword [rax - 0x28], 0
lea r8, [rax - 0x38]
mov qword [rax - 0x48], rdx
xorps xmm0, xmm0
mov qword [rax - 0x50], rcx
xor r9d, r9d
and qword [rax - 0x58], 0
lea rcx, [rax + 0x20]
mov edx, 0x1fffff
mov dword [rax - 0x38], 0x30
mov dword [rax - 0x20], 0x200
movdqu xmmword [rax - 0x18], xmm0
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov ebx, eax
test eax, eax
js 0x14000e539
test rdi, rdi
je 0x14000e52b
and qword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [rsp + 0x98]
xor r8d, r8d
mov edx, 0x1fffff
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov ebx, eax
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
and qword [rcx + 0x30], 0
mov rsi, r8
xor r8d, r8d
mov byte [rcx + 0x38], 0
mov rbp, rdx
mov rbx, rcx
lea edx, [r8 + 1]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov rax, qword [0x140023220]
lea rcx, [rbx + 0x28]
test rax, rax
je 0x14000e597
call qword [case.0x140002ecf.0]
jmp 0x14000e59b
and qword [rcx], 0
lea rax, [rbx + 0x18]
mov rdx, rsi
lea r8, [rbx + 0x30]
mov qword [rax + 8], rax
mov rcx, rbp
mov qword [rax], rax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp 0x14000e4a8
Function at 0x140010b7c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov ebp, dword [rcx + 0x44]
mov rdi, rcx
mov r9d, dword [rcx + 0x9c]
mov edx, dword [rdi + 0x94]
mov esi, dword [rdi + 0x58]
mov ecx, dword [rdi + 0x44]
sub esi, edx
add ecx, 0xfffffefa
sub esi, r9d
add ecx, ebp
cmp edx, ecx
jb 0x140010c39
mov rcx, qword [rdi + 0x50]
mov r8, rbp
lea rdx, [rcx + rbp]
call fcn.140014b00
mov r9d, dword [rdi + 0x74]
mov rax, qword [rdi + 0x68]
sub dword [rdi + 0x98], ebp
sub dword [rdi + 0x94], ebp
sub dword [rdi + 0x84], ebp
lea r8, [rax + r9*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, bp
cmp edx, ebp
cmovae ax, cx
mov word [r8], ax
add r9d, 0xffffffff
jne 0x140010bec
mov rax, qword [rdi + 0x60]
mov r9d, ebp
lea r8, [rax + rbp*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, bp
cmp edx, ebp
cmovae ax, cx
mov word [r8], ax
add r9d, 0xffffffff
jne 0x140010c17
add esi, ebp
mov r14, qword [rdi]
mov ecx, dword [r14 + 8]
test ecx, ecx
je 0x140010cf9
mov edx, dword [rdi + 0x9c]
mov r15d, dword [rdi + 0x94]
add r15, rdx
add r15, qword [rdi + 0x50]
cmp ecx, esi
cmovbe esi, ecx
test esi, esi
je 0x140010ca5
mov rax, qword [r14 + 0x28]
sub ecx, esi
mov dword [r14 + 8], ecx
cmp dword [rax + 0x2c], 1
jne 0x140010c88
mov rdx, qword [r14]
mov r8d, esi
mov ecx, dword [r14 + 0x4c]
call fcn.1400121b8
mov dword [r14 + 0x4c], eax
mov rdx, qword [r14]
mov rcx, r15
mov r8d, esi
mov ebx, esi
call fcn.140014b00
add qword [r14], rbx
add dword [r14 + 0xc], esi
mov edx, dword [rdi + 0x9c]
lea r9d, [rdx + rsi]
mov dword [rdi + 0x9c], r9d
cmp r9d, 3
jb 0x140010ce3
mov eax, dword [rdi + 0x94]
mov rdx, qword [rdi + 0x50]
mov ecx, dword [rdi + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rdi + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rdi + 0x7c]
mov dword [rdi + 0x70], r8d
cmp r9d, 0x106
jae 0x140010cf9
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x140010ba1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14002e004
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r12, qword [rbp + 0x58]
mov rdi, rcx
and qword [rbp + 0x38], 0
lea rcx, [rbp - 0x10]
mov r14b, r9b
mov r15, r8
mov ebx, 0x100
and qword [r12], 0
test rdx, rdx
je 0x14002e04a
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
jmp 0x14002e060
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov al, r14b
neg al
sbb ebx, ebx
and ebx, 0xffffff80
add ebx, 0x180
mov r9d, dword [rbp + 0x50]
lea r8, [rbp - 0x10]
mov al, r14b
mov rcx, rdi
neg al
lea rax, [rbp + 0x38]
sbb esi, esi
mov qword [rsp + 0x30], rax
and esi, 0xfffffaf8
mov byte [rsp + 0x28], 0
add esi, 0x638
mov dword [rsp + 0x20], ebx
mov edx, esi
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov edi, eax
lfence
test eax, eax
js 0x14002e138
mov rcx, qword [rbp + 0x38]
xor edx, edx
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call fcn.140014dc0
mov rax, qword [rbp + 0x38]
mov rbx, qword [rax + 0x40]
lea rcx, [rbx + 8]
call fcn.14000dd28
mov byte [rbx + 0x40], r14b
mov rax, qword [rbp + 0x38]
and dword [rbx + 0x44], 0
and dword [rbx + 0x48], 0
mov qword [rbx], rax
mov dword [rbx + 0x50], 4
mov dword [rbx + 0x4c], 1
mov rax, qword [rbp + 0x38]
bts dword [rax + 0x30], 0xd
mov rax, qword [rbp + 0x38]
test r14b, r14b
je 0x14002e120
mov rbx, qword [rax + 0x40]
lea rcx, [rbx + 0xf0]
call qword [sym.imp.ntoskrnl.exe_KeInitializeGuardedMutex]
lea rax, [rbx + 0xe0]
mov qword [rbx + 0x58], r15
mov qword [rax + 8], rax
mov qword [rax], rax
jmp 0x14002e12e
mov rcx, qword [rax + 0x40]
mov qword [rcx + 0x58], r15
mov word [rcx + 0x70], 1
mov rax, qword [rbp + 0x38]
mov qword [r12], rax
mov eax, edi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140008e00
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400a5768]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebp, ebp
mov rsi, rcx
mov qword [rsp + 0x38], rbp
mov ebx, ebp
test rcx, rcx
je 0x140008f79
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bp
jne 0x140008e42
inc rax
cmp rax, 0x207
jae 0x140008f79
mov ecx, 0x438
call sym.spoolsv.exe_PrvDllAllocSplMem
mov rdi, rax
test rax, rax
je 0x140008f79
lea rcx, [rsp + 0x40]
call fcn.140009100
lea r9, str.PrintersConnections
mov edx, 0x21c
sub r9, rdi
mov rcx, rdi
lea rax, [rdx + 0x7ffffde2]
test rax, rax
je 0x140008eaf
movzx eax, word [r9 + rcx]
test ax, ax
je 0x140008eaf
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140008e8c
test rdx, rdx
lea rax, [rcx - 2]
lea rdx, [rdi + 0x2a]
mov r8d, 0x207
cmovne rax, rcx
mov rcx, rsi
mov word [rax], bp
mov eax, 0x5c
mov word [rdi + 0x28], ax
call sym.spoolsv.exe_PrvFormatPrinterForRegistryKey
mov ecx, 0x20019
call sym.spoolsv.exe_PrvSplGetClientUserHandle
mov rsi, rax
test rax, rax
je 0x140008f5d
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140008f54
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [0x14008a508]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x140013ba0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [0x1400a6ef0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rcx, [rsp + 0x40]
call fcn.140008fac
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400106e0
lea r11, [rsp + 0x270]
invalid

Function at 0x140008fac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx]
mov rbx, rcx
cmp rdx, 0xffffffffffffffff
je 0x140008fd3
test rdx, rdx
je 0x140008fd3
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadToken]
test eax, eax
je 0x140013bce
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140008b00
mov ecx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]