joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013578
Capabilities:
Get geographical location

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x140027550]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, qword [rsp + 0x130]
mov ebp, r9d
mov r13d, r8d
mov r15, rcx
cmp edx, 1
jne 0x1400136d9
xor r12d, r12d
lea r9, [rsp + 0x40]
mov r8d, ebp
and dword [rsp + 0x28], r12d
mov edx, r13d
lea rsi, [rsp + 0x40]
mov dword [rsp + 0x20], 0x80
call fcn.1400196b0
mov r14d, eax
test eax, eax
jne 0x14001364f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140013677
and dword [rsp + 0x28], r12d
and dword [rsp + 0x20], r12d
xor r9d, r9d
mov r8d, ebp
mov edx, r13d
mov rcx, r15
call fcn.1400196b0
movsxd r14, eax
test eax, eax
je 0x140013677
mov r12d, 1
mov rcx, r14
mov rdx, r12
call fcn.140011c5c
mov rsi, rax
test rax, rax
je 0x140013677
and dword [rsp + 0x28], 0
mov r9, rax
mov r8d, ebp
mov edx, r13d
mov rcx, r15
mov dword [rsp + 0x20], r14d
call fcn.1400196b0
mov r14d, eax
test eax, eax
je 0x14001366f
movsxd rbp, r14d
mov edx, 1
mov rcx, rbp
call fcn.140011c5c
mov rcx, rax
mov qword [rdi], rax
test rax, rax
jne 0x14001369d
test r12d, r12d
je 0x140013677
mov rcx, rsi
call fcn.140008228
or eax, 0xffffffff
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140007e20
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea eax, [r14 - 1]
mov r8, rsi
mov rdx, rbp
movsxd r9, eax
call fcn.140015114
test eax, eax
je 0x1400136c8
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400089e4
test r12d, r12d
je 0x1400136d5
mov rcx, rsi
call fcn.140008228
xor eax, eax
jmp 0x14001367a
mov r12d, 2
cmp edx, r12d
jne 0x140013739
and qword [rdi], 0
xor r9d, r9d
xor r8d, r8d
mov edx, ebp
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movsxd rsi, eax
test eax, eax
je 0x140013728
mov rcx, rsi
mov rdx, r12
call fcn.140011c5c
mov qword [rdi], rax
test rax, rax
je 0x140013728
mov r9d, esi
mov r8, rax
mov edx, ebp
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400136d5
mov rcx, qword [rdi]
call fcn.140008228
and qword [rdi], 0
jmp 0x140013677
test edx, edx
jne 0x140013677
and dword [rsp + 0x30], edx
bts ebp, 0x1d
lea r8, [rsp + 0x30]
mov edx, ebp
mov r9d, r12d
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140013677
mov al, byte [rsp + 0x30]
mov byte [rdi], al
jmp 0x1400136d5
Function at 0x1400153a8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x140027550]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov ebx, ecx
mov r9d, 0x78
and ecx, 0x3ff
mov rsi, r8
mov edi, edx
lea edx, [r9 - 0x77]
lea r8, [rsp + 0x20]
bts ecx, 0xa
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
xor r10d, r10d
cmp eax, r10d
jne 0x1400153fe
xor eax, eax
jmp 0x140015447
lea rcx, [rsp + 0x20]
call fcn.140015284
cmp ebx, eax
je 0x140015442
cmp edi, r10d
je 0x140015442
mov rcx, qword [rsi]
mov al, byte [rcx]
inc rcx
cmp al, 0x41
jl 0x140015421
cmp al, 0x5a
jle 0x140015427
sub al, 0x61
cmp al, 0x19
ja 0x14001542c
inc r10d
jmp 0x140015414
mov rdi, qword [rsi]
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp r10d, ecx
je 0x140015447
mov eax, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140007e20
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140019244
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov ebx, r8d
mov r12, rdx
mov r13, rcx
call fcn.14000e158
xor ebp, ebp
and dword [rsp + 0x88], ebp
and dword [rsp + 0x30], ebp
mov rdi, rax
cmp qword [0x14002a090], rbp
jne 0x14001937c
lea rcx, str.USER32.DLL
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
test rax, rax
jne 0x1400192a8
xor eax, eax
jmp 0x14001945c
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400192a1
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14002a090], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14002a098], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rcx, [rsp + 0x88]
mov qword [0x14002a0a0], rax
call fcn.1400118c0
test eax, eax
je 0x14001932f
and qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400089e4
cmp dword [rsp + 0x88], 2
jne 0x14001937c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14002a0b0], rax
test rax, rax
je 0x14001937c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14002a0a8], rax
mov rcx, qword [0x14002a0a8]
cmp rcx, rdi
je 0x14001940e
cmp qword [0x14002a0b0], rdi
je 0x14001940e
call sub.KERNEL32.dll_DecodePointer
call rax
mov rsi, rax
test rax, rax
je 0x1400193d9
mov rcx, qword [0x14002a0b0]
call sub.KERNEL32.dll_DecodePointer
lea rcx, [rsp + 0x34]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x38]
mov rcx, rsi
call rax
test eax, eax
je 0x1400193d9
test byte [rsp + 0x40], 1
jne 0x14001940e
lea rcx, [rsp + 0x30]
call fcn.140011904
test eax, eax
je 0x1400193fb
and qword [rsp + 0x20], rbp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400089e4
cmp dword [rsp + 0x30], 4
jb 0x140019408
bts ebx, 0x15
jmp 0x140019442
bts ebx, 0x12
jmp 0x140019442
mov rcx, qword [0x14002a098]
cmp rcx, rdi
je 0x140019442
call sub.KERNEL32.dll_DecodePointer
call rax
mov rbp, rax
test rax, rax
je 0x140019442
mov rcx, qword [0x14002a0a0]
cmp rcx, rdi
je 0x140019442
call sub.KERNEL32.dll_DecodePointer
mov rcx, rbp
call rax
mov rbp, rax
mov rcx, qword [0x14002a090]
call sub.KERNEL32.dll_DecodePointer
mov r9d, ebx
mov r8, r12
mov rdx, r13
mov rcx, rbp
call rax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x14001954c
Capabilities:
Get geographical location

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x50
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], rdi
mov rax, qword [0x140027550]
xor rax, rbp
mov qword [rbp], rax
mov r12d, dword [rbp + 0x68]
xor ebx, ebx
mov r15, r9
mov r13d, r8d
mov r14d, edx
cmp r12d, ebx
jne 0x140019594
mov rax, qword [rcx]
mov r12d, dword [rax + 4]
xor r9d, r9d
xor r8d, r8d
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movsxd rsi, eax
cmp esi, ebx
jne 0x1400195b4
xor eax, eax
jmp 0x140019687
jle 0x14001961d
xor edx, edx
lea rax, [rdx - 0x20]
div rsi
cmp rax, 2
jb 0x14001961d
lea rcx, [rsi + rsi + 0x10]
cmp rcx, 0x400
ja 0x140019604
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x1400195e6
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14001d090
sub rsp, rax
lea rdi, [rsp + 0x40]
cmp rdi, rbx
je 0x1400195ad
mov dword [rdi], 0xcccc
jmp 0x140019617
call fcn.1400096f8
mov rdi, rax
cmp rax, rbx
je 0x140019620
mov dword [rax], 0xdddd
add rdi, 0x10
jmp 0x140019620
mov rdi, rbx
cmp rdi, rbx
je 0x1400195ad
mov r9d, esi
mov r8, rdi
mov edx, r13d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, ebx
je 0x140019674
mov eax, dword [rbp + 0x60]
or r9d, 0xffffffff
xor edx, edx
mov qword [rsp + 0x38], rbx
mov r8, rdi
mov ecx, r12d
mov qword [rsp + 0x30], rbx
cmp eax, ebx
jne 0x140019663
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
jmp 0x14001966c
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
lea rcx, [rdi - 0x10]
cmp dword [rcx], 0xdddd
jne 0x140019685
call fcn.140008228
mov eax, ebx
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.140007e20
mov rbx, qword [rbp + 0x40]
mov rsi, qword [rbp + 0x48]
mov rdi, qword [rbp + 0x50]
lea rsp, [rbp + 0x10]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1144c
Capabilities:
Encode data using xor

Disassembly:
or r8d, 0xffffffff
mov r9, rcx
test edx, edx
je 0x11484
mov r10d, edx
movzx edx, byte [r9]
mov eax, r8d
mov ecx, r8d
xor rdx, rax
shr ecx, 8
inc r9
movzx eax, dl
lea rdx, [0x00217540]
mov r8d, dword [rdx + rax*4]
xor r8d, ecx
sub r10, 1
jne 0x1145a
not r8d
mov eax, r8d
ret

Function at 0x13484
Capabilities:
Get file attributes
Set file attributes
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 8], rcx
push rsi
push rdi
push r12
sub rsp, 0xf0
xor r12d, r12d
lea rax, [0x006179f8]
mov rdi, r9
mov qword [r11 - 0x40], rax
mov rax, qword [0x00618020]
mov esi, r8d
mov rbp, rdx
mov qword [r11 + 8], r12
mov dword [r11 - 0x50], 0x30
mov qword [r11 - 0x48], r12
mov dword [r11 - 0x38], 0x240
mov qword [r11 - 0x30], r12
mov qword [r11 - 0x28], r12
lea r9, [r11 - 0x88]
lea r8, [r11 - 0x50]
mov edx, 0xc0000000
lea rcx, [r11 + 8]
cmp rax, r12
jne 0x1352c
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 5
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 6
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
jmp 0x13578
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], 0x800
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x58], r12d
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 5
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 6
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntoskrnl.exe_IoCreateFileSpecifyDeviceObjectHint]
cmp eax, r12d
mov ebx, eax
jl 0x1367a
mov rcx, qword [rsp + 0x110]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x80]
mov dword [rsp + 0x30], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov rcx, qword [rsp + 0x110]
xor r8d, r8d
mov dl, 1
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
mov rcx, qword [rsp + 0x110]
mov edi, 4
lea esi, [rdi + 0x24]
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x80]
mov r9d, esi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
cmp dword [rsp + 0x80], r12d
jl 0x1366c
mov ecx, 0x1cb5a08
mov eax, 0xfa1b6936
lea r8, [rsp + 0x90]
mov dword [rsp + 0xa4], ecx
mov dword [rsp + 0x94], ecx
mov dword [rsp + 0xac], ecx
mov dword [rsp + 0x9c], ecx
mov rcx, qword [rsp + 0x110]
lea rdx, [rsp + 0x80]
mov r9d, esi
mov dword [rsp + 0xa0], eax
mov dword [rsp + 0x90], eax
mov dword [rsp + 0xa8], eax
mov dword [rsp + 0x98], eax
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov rcx, qword [rsp + 0x110]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0xf0]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1369c
Capabilities:
Delete registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x60
and qword [rax + 0x18], 0
mov ebx, edx
mov rsi, rcx
mov r9, rcx
mov r8d, edx
lea rdx, [rax + 0x18]
lea rcx, [0x006179f8]
call fcn.00013484
mov edi, eax
test eax, eax
jns 0x13781
lea rdx, [0x00020200]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rsp + 0x38], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
lea rax, [0x00617960]
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x88]
mov edx, 0xf003f
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 0x30
mov dword [rsp + 0x48], 0x240
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x13753
mov rcx, qword [rsp + 0x88]
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
call fcn.000140b4
and qword [rsp + 0x80], 0
lea rdx, [rsp + 0x80]
lea rcx, [0x006179f8]
mov r9, rsi
mov r8d, ebx
call fcn.00013484
mov edi, eax
test eax, eax
js 0x13799
lea rcx, [0x00217940]
mov r8, rbx
mov rdx, rsi
call fcn.0001f770
mov dword [0x00617a18], ebx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov eax, edi
add rsp, 0x60
pop rdi
ret

Function at 0x138f0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x70
xor ebx, ebx
cmp byte [0x00617a0a], 1
mov qword [rax + 8], rbx
je 0x1390e
xor eax, eax
jmp 0x13a5d
cmp qword [0x00618028], rbx
je 0x13971
xor r9d, r9d
lea rcx, [0x00217500]
mov byte [0x00617a16], 1
lea rdx, [r9 - 0x64]
lea r8d, [r9 + 0xa]
call qword [sym.imp.ntoskrnl.exe_KeSetTimerEx]
mov rcx, qword [0x00618028]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov rcx, qword [0x00618028]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea rcx, [0x00217500]
mov qword [0x00618028], rbx
call qword [sym.imp.ntoskrnl.exe_KeCancelTimer]
mov eax, dword [0x00214de4]
lea rcx, [0x00217500]
mov edx, 1
mov dword [0x0021463c], eax
mov eax, dword [0x00214de0]
mov qword [0x00618028], rbx
mov dword [0x00214774], eax
mov byte [0x00617a16], bl
call qword [sym.imp.ntoskrnl.exe_KeInitializeTimerEx]
lea rcx, [0x00217500]
movabs rdx, 0xffffffff4d2fa200
xor r9d, r9d
mov r8d, 0x493e0
call qword [sym.imp.ntoskrnl.exe_KeSetTimerEx]
lea rax, [0x000137b4]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x80]
xor r9d, r9d
mov edx, 0x1fffff
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x40], 0x30
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x58], 0x200
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbx
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
cmp eax, ebx
jl 0x13a5d
mov rcx, qword [rsp + 0x80]
lea rax, [0x00618028]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1fffff
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov rcx, qword [rsp + 0x80]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
add rsp, 0x70
pop rbx
ret
Function at 0x13e18
Capabilities:
Delete file

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x00022ec0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov eax, 0x57
lea rcx, [r11 - 0x58]
xor edx, edx
mov word [rsp + 0x60], ax
mov eax, 0x63
mov word [rsp + 0x62], ax
mov eax, 0x54
mov word [rsp + 0x64], ax
mov eax, 0x6d
mov word [rsp + 0x66], ax
mov eax, 0x51
lea r8d, [rax - 0x11]
mov word [rsp + 0x68], ax
call fcn.0001fc70
mov esi, 8
lea rdi, [rsp + 0x60]
mov rbx, rsi
call fcn.000116d8
mov ecx, eax
mov eax, 0x4ec4ec4f
mul ecx
shr edx, 3
imul edx, edx, 0x1a
sub ecx, edx
add cx, 0x61
mov word [rdi], cx
add rdi, 2
sub rbx, 1
jne 0x13e8f
mov edi, 0x400
lea rcx, [0x00617a20]
xor edx, edx
mov r8, rdi
call fcn.0001fc70
lea rbp, [0x00617948]
lea rdx, [0x00617a20]
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x006179f8]
mov rcx, rbp
mov word [0x0061794a], di
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
movzx edx, word [0x00617960]
mov rax, qword [0x00617968]
movzx r10d, word [rsp + 0x60]
movzx r9d, word [rsp + 0x62]
movzx r8d, word [rsp + 0x64]
movzx edi, word [rsp + 0x66]
shr dx, 1
sub dx, 6
movzx ecx, dx
movzx edx, word [rsp + 0x68]
mov word [rax + rcx*2 + 2], r10w
mov rax, qword [0x00617968]
mov word [rax + rcx*2 + 4], r9w
mov rax, qword [0x00617968]
mov word [rax + rcx*2 + 6], r8w
mov rax, qword [0x00617968]
mov word [rax + rcx*2 + 8], di
mov rax, qword [0x00617968]
mov word [rax + rcx*2 + 0xa], dx
movzx r11d, word [0x006179f8]
mov rax, qword [0x00617a00]
shr r11w, 1
sub r11w, 0xa
movzx ecx, r11w
mov word [rax + rcx*2 + 2], r10w
mov rax, qword [0x00617a00]
mov word [rax + rcx*2 + 4], r9w
mov rax, qword [0x00617a00]
mov word [rax + rcx*2 + 6], r8w
mov rax, qword [0x00617a00]
mov word [rax + rcx*2 + 8], di
mov rax, qword [0x00617a00]
mov word [rax + rcx*2 + 0xa], dx
cmp r11w, si
jb 0x14056
mov rdx, qword [0x00617a00]
movzx ecx, r11w
mov eax, 0x5c
cmp ax, word [rdx + rcx*2]
je 0x13fe5
mov eax, 0x2f
cmp ax, word [rdx + rcx*2]
jne 0x13ff8
movzx eax, word [0x006179f8]
shr rax, 1
sub rax, rcx
cmp rax, 0x20
jb 0x14009
mov eax, 0xffff
add r11w, ax
cmp r11w, si
jae 0x13fcb
jmp 0x14056
or rcx, 0xffffffffffffffff
movzx eax, r11w
lea rdx, [rdx + rax*2 + 2]
xor eax, eax
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx + rcx - 2]
lea rcx, [rsp + 0x70]
call fcn.0001f770
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x20]
cmp rdx, rbx
je 0x14056
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.000180c8
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x30
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x48], 0x240
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.0001f710
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140b4
Capabilities:
Check os version
Set registry value

Disassembly:
mov qword [rsp + 8], rsi
push rdi
sub rsp, 0x1e0
mov rax, qword [0x00022ec0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
and qword [rsp + 0x48], 0
or dword [rsp + 0x44], 0xffffffff
mov esi, 4
mov edi, 0x114
lea rcx, [rsp + 0xb0]
xor edx, edx
mov r8, rdi
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x64], esi
call fcn.0001fc70
lea rcx, [rsp + 0xb0]
mov dword [rsp + 0xb0], edi
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
lea rdx, [0x00020200]
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x64]
lea rdi, [0x00617960]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x98]
mov rcx, rdi
call fcn.00017bf0
cmp dword [rsp + 0xb4], 6
jae 0x1416f
cmp dword [rsp + 0x44], 1
je 0x14188
cmp eax, 0xc0000503
jmp 0x1417a
cmp dword [rsp + 0x44], 1
je 0x14188
cmp dword [rsp + 0x44], esi
je 0x14188
mov byte [0x00617a09], 1
call fcn.00013e18
and qword [rsp + 0x70], 0
and qword [rsp + 0x88], 0
and qword [rsp + 0x90], 0
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x68]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0xf003f
mov dword [rsp + 0x68], 0x30
mov dword [rsp + 0x80], 0x240
mov qword [rsp + 0x78], rdi
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
cmp qword [rsp + 0x48], 0
je 0x1430b
lea rdx, [0x00020210]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x40], 1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea rdx, [0x00020200]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x40], 1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea rdx, [0x00020230]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x40], 1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r9d, esi
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea rdx, [0x00020240]
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x40], 1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
or rcx, 0xffffffffffffffff
lea rdx, [0x00020250]
xor eax, eax
mov rdi, rdx
mov r9d, 1
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.0001f710
mov rsi, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
Function at 0x17b24
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x80
and dword [r11 + 8], 0
mov dword [rsp + 0x48], 0x30
and qword [r11 - 0x38], 0
mov dword [rsp + 0x60], 0x240
and qword [r11 - 0x20], 0
and qword [r11 - 0x18], 0
lea rax, [r11 + 8]
mov qword [r11 - 0x30], rcx
mov edi, r8d
mov qword [r11 - 0x58], rax
and dword [rsp + 0x28], 0
and qword [r11 - 0x68], 0
mov rbx, r9
mov rsi, rdx
lea rcx, [r11 - 0x48]
lea r8, [r11 - 0x40]
xor r9d, r9d
mov edx, 0x20006
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
test eax, eax
js 0x17bd2
mov eax, dword [rsp + 0xb0]
mov rcx, qword [rsp + 0x40]
mov r9d, edi
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwFlushKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x17bf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x70
and qword [rax - 0x58], 0
and qword [rax - 0x40], 0
and qword [rax - 0x38], 0
mov rbp, r8
mov qword [rax - 0x50], rcx
mov r14, rdx
lea r8, [rax - 0x60]
lea rcx, [rax - 0x68]
mov edx, 0x20019
mov r13, r9
mov dword [rax - 0x60], 0x30
mov dword [rax - 0x48], 0x240
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x17d14
mov rsi, qword [rsp + 0xc0]
mov r8d, 0x4d784b5f
xor ecx, ecx
mov ebx, dword [rsi]
add ebx, 0x10
mov edx, ebx
mov r12d, ebx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
jne 0x17c7e
mov ebx, 0xc000009a
jmp 0x17d07
mov r8, r12
xor edx, edx
mov rcx, rax
call fcn.0001fc70
mov rcx, qword [rsp + 0x30]
lea r11, [rsp + 0xa0]
mov qword [rsp + 0x28], r11
mov r9, rdi
mov r8d, 2
mov rdx, r14
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
cmp eax, 0xc0000023
je 0x17ced
cmp eax, 0x80000005
je 0x17ced
test eax, eax
js 0x17cf9
test rbp, rbp
je 0x17cd2
mov ecx, dword [rdi + 4]
mov dword [rbp], ecx
mov eax, dword [rdi + 8]
lea rdx, [rdi + 0xc]
mov rcx, r13
cmp dword [rsi], eax
cmovb eax, dword [rsi]
mov r8d, eax
mov dword [rsi], eax
call fcn.0001f770
jmp 0x17cf9
mov eax, dword [rsp + 0xa0]
add eax, 0xfffffff4
mov dword [rsi], eax
mov edx, 0x4d784b5f
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret