joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140022ab0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1400a1c08]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140022af4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140022b5a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140022b91
test eax, eax
js 0x140022b6b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140022b84
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14001c5f0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140015590
mov ecx, 7
int 0x29
ud2
Function at 0x140029c60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
sub esp, 0x88

Function at 0x14002abd0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14002ac13
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14001b7b0]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14003b540
ud2

Function at 0x14002b280
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
invalid
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x1400ae181]
mov ecx, 0x10
mov edx, 8
Function at 0x140038e90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x140038f0a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140038f00
cmp r11, r10
ja 0x140038fa3
cmp r10, rdx
ja 0x140038fb7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140038f02
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140038ee0
jmp 0x140038f77
ja 0x140038f0a
mov r11, r10
cmp rax, r8
jne 0x140038eb2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140038f7b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140038f50
mov r8, r10
sub ecx, r9d
jns 0x140038f6e
jmp 0x140038f7d
cmp r10, rdx
je 0x140038f89
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140038f7d
xor al, 1
cmp r8, rdx
jne 0x140038f30
jmp 0x140038f7d
xor eax, eax
jmp 0x140038f7d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14003b5f0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14003bac0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14003ba40
ud2

Function at 0x14003a68c
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x138]
sub rsp, 0x210
mov rax, r8
mov r15, rdx
mov r8d, 0x40
mov r12, rcx
cmp r9, r8
lea rcx, [rbp - 0x40]
mov rdx, rax
mov rbx, r9
cmovb r8, r9
call fcn.140024930
xor edi, edi
mov dword [rbp + rbx - 0x40], 0x1000000
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rdi
lea r9, [rbx + 4]
mov qword [rsp + 0x30], rdi
lea r8, [rbp - 0x40]
mov qword [rsp + 0x28], rdi
mov rdx, r15
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.140006e64
lea r13d, [rdi + 0x20]
mov r8d, r13d
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x68]
call fcn.140024930
mov eax, dword [rbp + 0x178]
lea rsi, [rbp - 0x80]
dec eax
mov byte [rbp + 0x178], dil
mov dword [rsp + 0x50], eax
lea r14d, [r13 - 0x1d]
mov rax, qword [rbp + 0x160]
mov qword [rbp - 0x80], rax
mov rax, qword [rbp + 0x168]
mov qword [rbp - 0x78], rax
mov rax, qword [rbp + 0x170]
mov byte [rbp + 0x160], dil
lea rdi, [rsp + 0x50]
mov qword [rbp - 0x70], rax
mov dword [rsp + 0x54], 0x10
mov dword [rsp + 0x58], 0x10
cmp dword [rdi], 0
jbe 0x1400072cf
mov ebx, dword [rdi]
lea rax, [rbp + 0x178]
mov r9, r13
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x60]
lea rax, [rbp + 0x30]
mov rdx, r15
mov qword [rsp + 0x38], rax
mov rcx, r12
lea rax, [rbp + 0x160]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
call fcn.140006e64
mov r8, r13
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x60]
call fcn.140024930
xor eax, eax
lea ecx, [rax + 2]
movdqu xmm0, xmmword [rbp + rax - 0x68]
movdqu xmm1, xmmword [rsp + rax + 0x60]
lea rax, [rax + 0x10]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax - 0x78], xmm1
sub rcx, 1
jne 0x1400072a5
sub rbx, 1
jne 0x140007246
mov rcx, qword [rsi]
lea rdx, [rbp - 0x68]
mov r8, r13
call fcn.140024930
add rdi, 4
add rsi, 8
sub r14, 1
jne 0x14000723b
lea edx, [r14 + 0x44]
lea rcx, [rbp - 0x40]
call fcn.140010d80
mov rdx, r13
lea rcx, [rbp - 0x68]
call fcn.140010d80
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.140010d80
mov rdx, r13
lea rcx, [rbp + 0x10]
call fcn.140010d80
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret

Function at 0x14000dd0c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, r8d
mov rsi, r9
mov r10b, bl
cmp r8d, 1
jbe 0x14000dd40
lea rcx, [rdx + 1]
lea r8d, [rdi - 1]
xor r10b, byte [rcx]
inc rcx
sub r8, 1
jne 0x14000dd34
cmp r10b, byte [rdx]
jne 0x14000dd7c
mov r8, rdi
or ecx, 0xffffffff
call fcn.140006380
lea rdx, [0x140048060]
not eax
mov rcx, rdx
cmp dword [rcx + 4], eax
jne 0x14000dd65
cmp dword [rcx], edi
je 0x14000dd72
inc ebx
add rcx, 0xc
cmp ebx, 6
jae 0x14000dd7c
jmp 0x14000dd5c
lea rcx, [rbx + rbx*2]
mov eax, dword [rdx + rcx*4 + 8]
mov dword [rsi], eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140012298
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
and dword [rbp + 0x18], 0
lea rax, [rbp + 0x20]
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x18]
and dword [rsp + 0x48], 0
mov r9d, 0x220
and dword [rsp + 0x40], 0
mov r8d, 0x20
and dword [rsp + 0x38], 0
mov dl, 2
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov word [rbp + 0x1c], 0x500
call qword [0x140071038]
mov dword [rbp + 0x10], eax
test eax, eax
je 0x140012317
mov rdx, qword [rbp + 0x20]
lea r8, [rbp + 0x10]
xor ecx, ecx
call qword [0x140071008]
neg eax
sbb ecx, ecx
and dword [rbp + 0x10], ecx
mov rcx, qword [rbp + 0x20]
call qword [0x140071058]
mov eax, dword [rbp + 0x10]
test eax, eax
setne al
add rsp, 0x60
pop rbp
ret
Function at 0x14001f230
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov ebx, edx
lea rcx, [rsp + 0x58]
call qword [0x140071120]
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, ebx
xor ecx, ecx
call qword [0x140071110]
xor ecx, ecx
test eax, eax
sete bl
test eax, eax
jne 0x14001f29c
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
call qword [0x140071108]
mov rcx, qword [rsp + 0x58]
cmp eax, 1
mov rdx, qword [rsp + 0x50]
sete bl
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [0x1400384e0]
jmp 0x14001f29f
mov word [rdi], cx
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140021f04
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x20
and dword [0x1400528a0], 0
mov edx, 1
mov rbx, rcx
mov byte [0x1400528a5], 1
mov byte [0x1400528a6], 1
call qword [0x1400712e8]
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 2]
call fcn.140001374
cmp qword [0x14006a330], 0
jne 0x140021f4f
cmp byte [0x1400528bf], 0
je 0x140021f58
cmp dword [0x1400528b8], 0
jne 0x140021f6d
xor r9d, r9d
mov edx, 0x111
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [0x1400711f8]
add rsp, 0x20
pop rbx
ret

Function at 0x140022040
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1050
call fcn.140023900
sub rsp, rax
xor edi, edi
mov rbx, rcx
cmp byte [0x1400548e8], dil
je 0x140022112
cmp word [0x1400548ea], di
je 0x140022112
mov r8d, 0x800
lea rdx, [rsp + 0x50]
lea rcx, [0x1400548ea]
call fcn.140020884
lea rax, [rsp + 0x1068]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SoftwareWinRAR_SFX
lea rax, [rsp + 0x1070]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
call qword [0x140071028]
test eax, eax
jne 0x140022112
mov rcx, rbx
call fcn.1400282c8
lea r9d, [rdi + 1]
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x1070]
mov qword [rsp + 0x20], rbx
call qword [0x140071040]
mov rcx, qword [rsp + 0x1070]
call qword [0x140071010]
mov rbx, qword [rsp + 0x1060]
add rsp, 0x1050
pop rdi
ret
Function at 0x12560
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x12580
call fcn.00019b04
mov rax, qword [rbx + 0x30]
test rax, rax
je 0x12593
cmp byte [rax + 0x10], 0
jne 0x12593
mov byte [rax + 0x10], 1
mov rax, qword [rbx + 0x28]
test rax, rax
je 0x125a8
cmp dword [rax + 0x74], 0
je 0x125a8
mov ax, word [rax + 0x1c]
jmp 0x125ad
mov eax, 0xff
movzx esi, ax
cmp esi, 1
jb 0x125c3
mov edx, dword [rbx + 0x2fc]
mov rcx, rbx
call fcn.00015c40
movzx eax, word [rbx + 0x2dc]
cmp ax, 3
je 0x125dc
cmp ax, 6
je 0x125dc
cmp ax, 7
jne 0x125e4
mov rcx, rbx
call fcn.000174b0
mov rdi, qword [rbx + 0xa8]
test rdi, rdi
je 0x12607
mov edx, dword [rdi + 0x48]
mov rcx, rdi
call fcn.00033064
test eax, eax
js 0x12607
mov rcx, rdi
call fcn.0003312c
mov dword [rbx + 0xfc], 1
cmp esi, 1
jb 0x126a3
mov eax, dword [rbx + 0x2fc]
cmp eax, 0x10
je 0x1266e
cmp eax, 0x20
je 0x12633
cmp eax, 0x30
jne 0x12748
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x12645
mov rax, qword [rcx]
call qword [rax + 0xa0]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x12656
mov edx, dword [rcx + 0x10]
call fcn.0001c36c
cmp dword [rbx + 0x40], 0
jne 0x12748
mov rcx, qword [rbx + 0x60]
call fcn.0001ca18
jmp 0x12748
mov edx, 0x30
mov rcx, rbx
call fcn.00015c40
cmp dword [rbx + 0x40], 0
jne 0x1268a
mov rcx, qword [rbx + 0x60]
call fcn.0001ca18
mov edx, 0x10
mov rcx, rbx
call fcn.00015c40
mov byte [rbx + 0x284], 1
jmp 0x12748
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x126b4
mov edx, dword [rcx + 0x10]
call fcn.00025748
mov rcx, qword [rbx + 0xb8]
test rcx, rcx
je 0x126c6
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x126d8
mov rax, qword [rcx]
call qword [rax + 0xa0]
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x126e9
mov edx, dword [rcx + 0x10]
call fcn.0001c36c
lea rax, [0x0001616c]
mov qword [rsp + 0x30], rbx
mov edi, 0x1fffff
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov byte [rbx + 0x284], 1
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
js 0x12748
and qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x50]
lea rax, [rbx + 0x148]
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov rcx, rbx
call fcn.000123c8
mov rcx, rbx
call fcn.000124ec
cmp byte [rbx + 0x288], 0
jne 0x12788
cmp word [rbx + 0x2dc], 0xb
jne 0x12788
mov rcx, qword [rbx + 0x2d0]
test rcx, rcx
je 0x12788
call fcn.0001053c
mov rcx, qword [rbx + 0x2d0]
call fcn.00010308
cmp word [rbx + 0x2dc], 0x12
jne 0x127a4
cmp qword [rbx + 0x150], 0
jne 0x127a4
mov rcx, rbx
call fcn.00016494
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x13d54
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0xf0
mov rax, qword [0x0003ea80]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rax, qword [rcx]
xor r12d, r12d
mov rbp, rdx
mov r8, qword [rax + 0x20]
mov rsi, rcx
lea r9, [rsp + 0x48]
mov qword [rsp + 0x58], r8
lea rdx, [0x00039da0]
lea rcx, [rsp + 0x58]
lea r8, [0x00039930]
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x40], r12d
mov ebx, r12d
call fcn.0001fe90
lea r9, [rsp + 0x40]
lea r8, [0x00039860]
lea rdx, [0x00039da0]
lea rcx, [rsp + 0x58]
call fcn.0001fe90
mov r11d, dword [rsp + 0x40]
cmp r11d, r12d
jbe 0x13fb4
mov rdi, r11
lea r14d, [r12 + 0x30]
inc dword [rsi + 0x280]
mov eax, dword [rsi + 0x280]
mov word [rbp + 0x18], r14w
movzx eax, al
mov word [rbp + 0x1a], r14w
mov word [rbp + 0x1c], r14w
add ax, r14w
mov word [rbp + 0x20], r12w
mov word [rbp + 0x1e], ax
mov eax, dword [rsp + 0x48]
movdqu xmm0, xmmword [0x0003d138]
cmp eax, r12d
je 0x13e45
sub eax, 1
je 0x13e3b
cmp eax, 1
jne 0x13e4d
movdqu xmm0, xmmword [0x0003d168]
jmp 0x13e4d
movdqu xmm0, xmmword [0x0003d158]
jmp 0x13e4d
movdqu xmm0, xmmword [0x0003d148]
mov rax, qword [rsi]
mov qword [rsp + 0x58], r12
lea r9, [rsp + 0x58]
movdqa xmmword [rsp + 0xa0], xmm0
mov rdx, qword [rax + 0x20]
lea rcx, [rsp + 0xa0]
mov r8d, 1
call qword [sym.imp.ntoskrnl.exe_IoGetDeviceInterfaces]
cmp eax, r12d
mov ebx, eax
jl 0x13faa
mov rdx, qword [rsp + 0x58]
cmp rdx, r12
je 0x13faa
lea rcx, [rsp + 0xd0]
mov qword [rsp + 0x50], r12
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0xd0]
mov edx, 0x2001f
call qword [sym.imp.ntoskrnl.exe_IoOpenDeviceInterfaceRegistryKey]
cmp eax, r12d
mov ebx, eax
jl 0x13f94
lea rdx, [0x00039940]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0xc0]
lea r8, [rsp + 0x68]
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov edx, 0x2001f
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x68], r14d
mov dword [rsp + 0x80], 0x200
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
cmp eax, r12d
mov ebx, eax
jl 0x13f94
lea rdx, [0x00039960]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0xb0]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ExFreePool]
sub rdi, 1
jne 0x13deb
mov eax, ebx
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.00039240
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x16494
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x40
mov qword [r11 - 0x18], rcx
lea rax, [0x0001630c]
mov rbx, rcx
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1fffff
add rcx, 0x170
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
js 0x164fd
and qword [rsp + 0x28], 0
mov rcx, qword [rbx + 0x170]
lea rax, [rbx + 0x150]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1fffff
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x199f0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
cmp dword [rcx + 0x2c], 0xfe
jne 0x19a03
xor eax, eax
jmp 0x19a66
lea rbx, [rcx + 8]
cmp qword [rbx], 0
je 0x19a14
mov eax, 0xc0000001
jmp 0x19a66
mov qword [rsp + 0x30], rcx
lea rax, [0x000198ec]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rax
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 0x19a66
and qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1fffff
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
add rsp, 0x40
pop rbx
ret

Function at 0x1c1a4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
sub rsp, 0x40
mov rax, qword [rsp + 0x70]
xor r12d, r12d
mov qword [rcx], r9
mov r9d, 1
lea rdi, [rcx + 0x48]
mov qword [rcx + 0x20], rdx
mov qword [rcx + 0x28], rax
mov rsi, rcx
mov dword [rcx + 8], 4
mov dword [rcx + 0xc], 2
mov dword [rcx + 0x10], r9d
mov dword [rcx + 0x14], r9d
mov dword [rcx + 0x18], 0xbb80
mov word [rcx + 0x1c], r12w
mov dword [rcx + 0x30], r9d
mov dword [rcx + 0x34], r12d
mov dword [rcx + 0x38], r12d
mov dword [rcx + 0x68], r12d
add rcx, 0x50
xor r8d, r8d
mov edx, r9d
mov qword [rdi], r12
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
lea rax, [0x0001c288]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea rcx, [rsi + 0x40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1fffff
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov rcx, qword [rsi + 0x40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1fffff
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x60]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop r12
ret
Function at 0x1fc30
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
cmp dword [rcx + 0x64], 0
jne 0x1fc40
xor eax, eax
jmp 0x1fca8
cmp dword [rcx + 0xc], 2
je 0x1fc4c
cmp dword [rcx + 0xc], 0
jne 0x1fc3c
lea rbx, [rcx + 0x68]
cmp qword [rbx], 0
jne 0x1fc3c
mov qword [rsp + 0x30], rcx
lea rax, [0x0001fae8]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rax
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 0x1fca8
and qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1fffff
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
add rsp, 0x40
pop rbx
ret

Function at 0x1ff40
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x50
mov r9, qword [rcx]
mov rbx, rdx
lea rdx, [0x00039da0]
mov r8d, 0x2001f
mov rdi, rcx
call fcn.0001fff4
mov qword [rdi + 8], rax
test rax, rax
jne 0x1ff7a
mov eax, 0xc0000001
jmp 0x1ffe1
lea rcx, [rsp + 0x40]
mov rdx, rbx
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
mov r8b, 1
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov ebx, eax
test eax, eax
js 0x1ffd5
mov rcx, qword [rdi + 8]
lea rax, [rsp + 0x70]
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea rcx, [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov rcx, qword [rdi + 8]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x200a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov dword [rsp + 0x20], r9d
push rsi
push rdi
push r12
sub rsp, 0x30
movzx eax, word [rdx + 2]
mov rbp, r8
mov rsi, rdx
add eax, 0x1c
mov r12, rcx
mov edi, 0xc000009a
mov dword [rsp + 0x68], eax
test al, 7
je 0x200e2
shr eax, 3
lea eax, [rax*8 + 8]
mov dword [rsp + 0x68], eax
mov edx, eax
mov ecx, 1
mov r8d, 0x74786e43
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x20154
mov rcx, qword [r12 + 8]
lea rax, [rsp + 0x68]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x68]
mov r8d, 1
mov rdx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov edi, eax
test eax, eax
js 0x2014b
cmp dword [rbx + 0xc], 4
ja 0x20146
mov edx, dword [rbx + 8]
mov r8d, dword [rbx + 0xc]
mov rcx, rbp
add rdx, rbx
call fcn.00039320
jmp 0x2014b
mov edi, 0xc0000023
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePool]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov eax, edi
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x21c58
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov r13, r8
mov rdi, rdx
mov rbx, rcx
call fcn.00020fb0
lea rcx, [0x0003d640]
mov qword [rbx], rcx
mov rax, qword [rdx]
xor edx, edx
mov r12, qword [rax + 0x20]
lea rcx, [rbx + 0x58]
lea r8d, [rdx + 0x28]
mov qword [rsp + 0x30], r12
mov dword [rbx + 0x20], 0x22
call fcn.00039700
and qword [rsp + 0x20], 0
lea rcx, [rdi + 0x1f8]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov r8d, dword [rbx + 0x20]
mov r9, r13
mov rdx, rdi
mov rcx, rbx
call fcn.00021e5c
lea rcx, [rdi + 0x1f8]
xor edx, edx
mov qword [rbx + 0x30], rax
call qword [sym.imp.ntoskrnl.exe_KeReleaseMutex]
lea r9, [rbx + 0x20]
lea r8, [0x00039e00]
lea rdx, [0x00039da0]
lea rcx, [rsp + 0x30]
call fcn.0001fe90
test eax, eax
jne 0x21d4a
and qword [rsp + 0x20], 0
lea rcx, [rdi + 0x1f8]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov r8d, dword [rbx + 0x20]
mov r9, r13
mov rdx, rdi
mov rcx, rbx
call fcn.00021e5c
lea rcx, [rdi + 0x1f8]
xor edx, edx
mov qword [rbx + 0x38], rax
call qword [sym.imp.ntoskrnl.exe_KeReleaseMutex]
mov edx, dword [rdi + 0x140]
mov rcx, r12
call fcn.00021764
lea r9, [rbx + 0x18]
lea r8, [0x00039e10]
lea rdx, [0x00039da0]
lea rcx, [rsp + 0x30]
call fcn.0001fe90
and dword [rsp + 0x60], 0
lea r9, [rsp + 0x60]
lea r8, [0x00039e30]
lea rdx, [0x00039da0]
lea rcx, [rsp + 0x30]
call fcn.0001fe90
mov r11b, byte [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov byte [rbx + 0x40], r11b
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret