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

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x18002fad8
add rsp, 0x20
pop r14
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x18002fb4c
test rax, rax
jle 0x18002fb2c
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x18002fb4c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18002fb4c
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret

Function at 0x180031650
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp ebx, 1
jne 0x180031690
xor eax, eax
lea r8, [0x180031130]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180031690
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x30
pop rbx
ret

Function at 0x18003e5d0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180078300]
xor rax, rsp
mov qword [rsp + 0x28], rax
inc dword [0x180078bd0]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
xorps xmm1, xmm1
sub rax, qword [0x180078bc0]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [0x180078bc8]
cvtsi2sd xmm1, rax
divsd xmm1, xmm0
comisd xmm1, xmmword [0x18004d5d8]
jb 0x18003e645
mov eax, dword [0x180078bd0]
lea rcx, [0x180078bc0]
mov dword [0x180078bd4], eax
mov dword [0x180078bd0], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180044510
add rsp, 0x38
ret
Function at 0x180040000
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
movzx eax, byte [rcx]
test al, al
je 0x18004002b
mov r9d, 0x111
nop dword [rax]
movsx r8d, al
lea rcx, [rcx + 1]
movzx eax, byte [rcx]
xor r8w, dx
movzx edx, r8w
imul edx, r9d
test al, al
jne 0x180040010
movzx eax, dx
ret

Function at 0x180040030
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x180078300]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 7
mov word [rcx], ax
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x78]
xor r8d, r8d
xor edx, edx
lea rcx, [0x180050d88]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x18004017d
mov rdx, qword [rsp + 0x78]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x1800400a0
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rcx, [rsp + 0x30]
call fcn.18003ec10
mov dword [rsp + 0x20], 7
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.18003f540
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x180040120
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004011b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004011b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800443f8
lea rax, str.genshin_utility
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0xf
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.18002fc70
mov dword [rsp + 0x20], 0xf
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.180030a80
nop
lea rcx, [rsp + 0x58]
call fcn.180030ed0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rbx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180044510
add rsp, 0x90
pop rbx
ret
Function at 0x180042970
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18007924c]
mov ebx, edi
test ecx, ecx
je 0x180042aab
mov rax, qword [0x180079240]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1800429c8
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1800429a0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x180042aab
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.180042cf0
mov r8d, dword [0x18007924c]
cmp ebx, r8d
jae 0x180042a38
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180079240]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180042a31
mov edx, esi
mov ecx, ebx
call fcn.180042be0
mov edi, eax
test eax, eax
jne 0x180042a38
mov r8d, dword [0x18007924c]
inc ebx
cmp ebx, r8d
jb 0x180042a00
cmp qword [rsp + 0x20], 0
je 0x180042aab
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180042a97
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180042a88
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180042a60
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180078c10]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180042be0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180079240]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180042c44
mov eax, 0xa
jmp 0x180042cd3
test esi, esi
je 0x180042c66
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180042c89
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180042c89
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180042c82
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180042c89
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180042cf0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180078300]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180042e1a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180042e11
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180042df4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180042df4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180042df4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180042db2
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x180078c10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180042e11
jmp 0x180042de7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180042de7
mov rcx, qword [0x180078c10]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180042e11
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180042d60
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180042e73
cmp dword [rbx + 0xc], esi
jbe 0x180042e73
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180042e6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.1800431e0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180042e30
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180044510
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180043390
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x1800433ff
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x1800433e8
mov qword [rsp + 0x38], rsi
mov rax, qword [rdi]
xor edx, edx
mov r8d, dword [rax + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800433dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x1800433b0
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x180078c10]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800434c0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x180043500
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180079230]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18004353e
cmp rsi, r14
jb 0x180043536
cmp rsi, r15
jae 0x180043536
cmp qword [rsi + 8], 0
jne 0x180043707
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180043521
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x1800435d2
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1800435c9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800435c9
cmp dword [rsp + 0x70], 0x10000
je 0x18004364b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x1800435c9
sub rbx, rbp
cmp rbx, r14
jae 0x180043590
test rsi, rsi
jne 0x1800436b0
cmp rdi, r15
ja 0x1800436ef
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1800436ef
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800436ef
cmp dword [rsp + 0x70], 0x10000
je 0x180043681
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180043602
jmp 0x1800436ef
test rbx, rbx
je 0x1800435c9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800436b0
cmp rbx, r14
jae 0x180043570
jmp 0x1800435d2
test rdi, rdi
je 0x1800436ef
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800436b0
cmp rdi, r15
jbe 0x1800435e0
jmp 0x1800436ef
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x1800436c0
mov rax, qword [0x180079230]
mov qword [rsi], rax
mov qword [0x180079230], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x1800454a0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800454da
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800454df
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180045528
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180050dd0]
cmp byte [rcx + rax], 0
je 0x180045528
dec r8
sub rdx, 1
jne 0x18004550e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x117a8
Capabilities:
Get file attributes
Read file on windows
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
xor ebp, ebp
xor eax, eax
mov rbx, rcx
mov rdi, rdx
mov dword [rsp + 0x5c], eax
lea rcx, [r11 - 0x2c]
lea r8d, [rbp + 0x14]
xor edx, edx
mov dword [rsp + 0x58], ebp
mov qword [r11 + 0x18], rbp
mov qword [r11 - 0x48], rbp
mov qword [r11 - 0x38], rax
mov dword [r11 + 0x20], ebp
mov dword [r11 + 0x24], eax
mov dword [rsp + 0x68], ebp
call fcn.00016bc0
lea esi, [rbp + 0x68]
lea rcx, [rsp + 0xb0]
mov dword [rsp + 0x30], esi
lea r9d, [rsi + 0x18]
mov r8d, 0x1f01ff
mov rdx, rbx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], ebp
call fcn.0001171c
cmp eax, ebp
mov ebx, eax
jl 0x11949
mov dword [rsp + 0x30], esi
lea esi, [rbp + 5]
lea rcx, [rsp + 0x50]
lea r9d, [rsi + 0x7b]
mov r8d, 0x1f01ff
mov rdx, rdi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], ebp
call fcn.0001171c
cmp eax, ebp
mov ebx, eax
jl 0x11949
mov rcx, qword [rsp + 0xb0]
lea r9d, [rbp + 0x18]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x20], esi
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
cmp eax, ebp
mov ebx, eax
jl 0x11949
mov esi, dword [rsp + 0x70]
cmp esi, ebp
je 0x11949
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
cmp rax, rbp
jne 0x118ac
mov ebx, 0xc000009a
jmp 0x11939
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.00016bc0
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0xb8]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
mov dword [rsp + 0x30], esi
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
cmp eax, ebp
mov ebx, eax
jl 0x11939
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
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 ebx, eax
cmp eax, ebp
cmovge ebx, ebp
cmp rdi, rbp
je 0x11949
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x50]
cmp rcx, rbp
je 0x11959
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0xb0]
cmp rcx, rbp
je 0x1196c
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x11988
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x88
xor esi, esi
mov rbx, rcx
mov qword [rsp + 0x60], rcx
mov qword [rax + 0x20], rsi
mov dword [rax + 0x10], esi
mov dword [rax + 0x18], esi
mov dword [rax + 8], esi
lea eax, [rsi + 0xa]
mov edi, esi
mov word [rsp + 0x40], ax
lea eax, [rsi + 0xc]
lea ebp, [rsi + 0x30]
mov word [rsp + 0x42], ax
lea rax, [0x000173b0]
mov qword [rsp + 0x48], rax
jmp 0x119df
mov ecx, 0x1f4
call fcn.00016658
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0xb8]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0xc8]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov edx, 0xf003f
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x68], 0x240
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
cmp eax, esi
jl 0x119d0
lea rax, [rsp + 0xb8]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0xc8]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov edx, 0xf003f
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x68], 0x240
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
cmp eax, esi
jge 0x11a8b
xor eax, eax
jmp 0x11b7b
mov ebp, 0x400
xor ecx, ecx
mov rdx, rbp
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
cmp rax, rsi
je 0x11b58
mov r8, rbp
xor edx, edx
mov rcx, rax
mov dword [rsp + 0xc0], esi
call fcn.00016bc0
mov rcx, qword [rsp + 0xc8]
lea r11, [rsp + 0xc0]
lea rdx, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], r11
mov r8d, 2
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov rcx, qword [rsp + 0xc8]
mov r9d, 4
xor r8d, r8d
cmp eax, esi
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
jge 0x11b27
lea edi, [r9 - 3]
lea rax, [rsp + 0xb0]
mov dword [rsp + 0xb0], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
jmp 0x11b4d
mov eax, dword [rbx + 0xc]
inc eax
mov dword [rsp + 0xb0], eax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov edi, dword [rsp + 0xb0]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0xc8]
cmp rcx, rsi
je 0x11b79
call qword [sym.imp.ntoskrnl.exe_ZwFlushKey]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
add rsp, 0x88
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x11c2c
Capabilities:
Get file attributes

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0xc0
and dword [rsp + 0x60], 0
and qword [r11 + 8], 0
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x64], eax
lea r8d, [rax + 0x28]
lea rcx, [r11 - 0x38]
xor edx, edx
mov qword [r11 - 0x60], rax
call fcn.00016bc0
xor edi, edi
lea rcx, [rsp + 0x74]
and dword [rsp + 0x70], edi
lea r8d, [rdi + 0x14]
xor edx, edx
call fcn.00016bc0
and dword [rsp + 0x50], edi
and qword [rsp + 0x48], rdi
and qword [rsp + 0x90], rdi
and qword [rsp + 0xa8], rdi
and qword [rsp + 0xb0], rdi
mov dword [rsp + 0x40], 0x68
lea eax, [rdi + 1]
lea r9, [rsp + 0x60]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
lea r8, [rsp + 0x88]
lea rcx, [rsp + 0xd0]
mov edx, 0x80100000
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], rdi
mov dword [rsp + 0x88], 0x30
mov dword [rsp + 0xa0], 0x240
mov qword [rsp + 0x98], rbx
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
js 0x11d31
mov rcx, qword [rsp + 0xd0]
lea r9d, [rdi + 0x18]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x20], 5
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
js 0x11d31
mov eax, dword [rsp + 0x78]
test eax, eax
je 0x11d31
cmp dword [rsp + 0x7c], edi
cmove edi, eax
mov rcx, qword [rsp + 0xd0]
test rcx, rcx
je 0x11d44
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
mov rbx, qword [rsp + 0xd8]
add rsp, 0xc0
pop rdi
ret
Function at 0x11e4c
Capabilities:
Get file attributes
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rbp
push rdi
sub rsp, 0x90
and dword [rsp + 0x60], 0
and qword [r11 - 0x58], 0
xor eax, eax
and dword [rsp + 0x58], eax
and dword [rsp + 0x70], eax
mov rdi, rcx
mov dword [rsp + 0x64], eax
lea r8d, [rax + 0x14]
lea rcx, [r11 - 0x34]
xor edx, edx
mov qword [r11 - 0x40], rax
mov dword [rsp + 0x5c], eax
call fcn.00016bc0
mov edx, 0x400
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
test rax, rax
jne 0x11eb6
mov eax, 0xc000009a
jmp 0x11fbb
mov r8, qword [rsp + 0xb8]
mov ebp, 0x3ff
lea r9, [rsp + 0xc0]
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe__vsnprintf]
test eax, eax
js 0x11ee4
cdqe
cmp rax, rbp
ja 0x11ee4
jne 0x11eeb
mov byte [rbx + 0x3ff], 0
mov dword [rsp + 0x30], 0x68
lea rcx, [rsp + 0x50]
mov r9d, 0x80
mov r8d, 0x100082
mov rdx, rdi
mov dword [rsp + 0x28], 3
and dword [rsp + 0x20], 0
call fcn.0001171c
test eax, eax
jns 0x11f2d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x11fb9
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov r9d, 0x18
mov dword [rsp + 0x20], 5
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
js 0x11fa3
mov eax, dword [rsp + 0x78]
or rcx, 0xffffffffffffffff
mov rdi, rbx
mov qword [rsp + 0x58], rax
xor eax, eax
xor r9d, r9d
and qword [rsp + 0x40], rax
repne scasb al, byte [rdi]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
not rcx
lea rax, [rsp + 0x60]
dec rcx
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
add rsp, 0x90
pop rdi
pop rbp
pop rbx
ret