joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004820
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rax, qword [0x140099110]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov r9d, dword [rcx]
mov dword [rsp + 0x30], r9d
movzx edx, r9b
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movabs rcx, 0x100000001b3
imul rdx, rcx
movzx eax, byte [rsp + 0x31]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x32]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rsp + 0x33]
xor rdx, rax
imul rdx, rcx
mov rcx, qword [rbx + 0x40]
and rcx, rdx
mov rdx, qword [rbx + 0x28]
mov rax, rcx
add rax, rax
mov rax, qword [rdx + rax*8]
add rcx, rcx
mov r10, qword [rdx + rcx*8]
mov r8, qword [rbx + 0x18]
lea r11, [rdx + rcx*8]
cmp r10, r8
jne 0x1400048bf
mov rcx, r8
jmp 0x1400048c6
mov rcx, qword [r11 + 8]
mov rcx, qword [rcx]
cmp rax, rcx
je 0x1400048dc
cmp r9d, dword [rax + 0x10]
je 0x1400048d6
mov rax, qword [rax]
jmp 0x1400048b5
cmovne rax, r8
jmp 0x1400048df
mov rax, r8
cmp qword [rbx + 0x18], rax
je 0x140004957
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x40]
call fcn.14001f960
nop
mov byte [rsp + 0x20], 0
mov edx, dword [rbx]
lea rcx, [rsp + 0x40]
call fcn.14001fbf0
nop
lea rcx, str.SUCCESS
lea r8, str.FAILED
test eax, eax
cmovne r8, rcx
mov edx, dword [rbx]
lea rcx, str.INFO:_SetNvidiaButtonLatencyTest__d__0x0000__0x0000__0_____s_n
call fcn.140021800
nop
mov r8, qword [rsp + 0x40]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140020560
nop
mov rcx, qword [rsp + 0x40]
call fcn.14006ec98
nop
lea rcx, [rbx + 0x10]
call fcn.140009630
nop
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14006e6d0
nop
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140008900
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140099110]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov byte [reloc.WS2_32.dll_accept], 1
call qword [sym.imp.KERNEL32.dll_AllocConsole]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x14008322c]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x14008322c]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
lea rcx, str.RLA_Utility_Console
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14006e6d0
add rsp, 0x38
ret

Function at 0x1400090d0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov ebx, 1
mov r14, rdx
mov esi, ecx
cmp ecx, ebx
jle 0x14000917e
lea rdi, [rdx + 8]
nop dword [rax + rax]
mov rdx, qword [rdi]
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140009110
cmp rax, 2
jb 0x1400091ce
cmp word [rdx], 0x2d
jne 0x1400091ce
movzx eax, word [rdx + 2]
cmp eax, 0x63
je 0x14000916f
cmp eax, 0x65
je 0x140009166
cmp eax, 0x6d
je 0x14000915d
cmp eax, 0x72
je 0x140009154
cmp eax, 0x74
jne 0x1400091c7
mov byte [0x1400a04d5], 1
jmp 0x140009174
mov byte [0x1400a04d1], 1
jmp 0x140009174
mov byte [0x1400a00cf], 1
jmp 0x140009174
mov byte [0x1400a00ce], 1
jmp 0x140009174
call fcn.140008900
inc ebx
add rdi, 8
cmp ebx, esi
jl 0x140009100
xor r8d, r8d
lea r9, str.NvidiaRlaUtilityEventExit
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1400a0528], rax
test rax, rax
jne 0x1400091dc
lea rcx, str.ERROR:_Cannot_create_exit_event__n
call fcn.140021800
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
movsxd rdx, ebx
mov rdx, qword [r14 + rdx*8]
lea rcx, str.ERROR:_Invalid_argument__ls__n
call fcn.1400010d0
jmp 0x1400091ac
cmp byte [0x1400a00ce], 0
jne 0x14000920f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400091fb
lea rcx, str.This_program_can_only_be_started_once._Close_the_other_instance_and_try_again._n
jmp 0x1400091a7
cmp byte [0x1400a00ce], 0
jne 0x140009208
xor eax, eax
jmp 0x1400091b1
mov rax, qword [0x1400a0528]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x140009225
lea rcx, str.ERROR:_Failed_to_set_exit_event._n
jmp 0x1400091a7
mov rcx, qword [0x1400a0528]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x14000cb70
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140099110]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x14000cd2e
cmp byte [rcx + 0x71], 0
je 0x14000cd2e
mov rax, qword [rcx]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.140002690]
or edx, 0xffffffff
mov rcx, rdi
call rbx
cmp eax, 0xffffffff
jne 0x14000cbd9
xor al, al
jmp 0x14000cd30
mov qword [rbp - 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x20], 0
mov byte [rbp - 0x30], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.14000c420
nop
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
nop word [rax + rax]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, rcx
lea r8, [rbp - 0x30]
cmovae r8, rcx
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000cc4d
sub eax, 1
jne 0x14000ccc2
jmp 0x14000cc51
mov byte [rdi + 0x71], 0
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, rcx
mov rbx, qword [rbp - 0x38]
sub rbx, rax
je 0x14000cc9f
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, rcx
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x14000cccf
cmp byte [rdi + 0x71], 0
je 0x14000ccd3
test rbx, rbx
jne 0x14000cc10
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.14000c750
jmp 0x14000cbfe
sub eax, 2
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
je 0x14000ccd3
xor bl, bl
jmp 0x14000ccd5
mov bl, 1
cmp r9, 0x10
jb 0x14000cd29
lea rax, [r9 + 1]
cmp rax, 0x1000
jb 0x14000cd24
test byte [rbp - 0x30], 0x1f
je 0x14000ccf4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14000cd04
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x14000cd14
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14000cd21
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14006ec98
movzx eax, bl
jmp 0x14000cd30
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14006e6d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140016290
Capabilities:
Hash data using fnv

Disassembly:
mov byte [rsp + 0x20], r9b
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x140099110]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x20], rcx
movzx ecx, byte [r8]
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movabs rdx, 0x100000001b3
imul rcx, rdx
movzx eax, byte [r8 + 1]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [r8 + 2]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [r8 + 3]
xor rcx, rax
imul rcx, rdx
mov r15, qword [rsi + 0x30]
and r15, rcx
shl r15, 4
mov rbx, qword [rsi + 0x18]
mov rax, qword [rbx + r15]
cmp rax, qword [rsi + 8]
jne 0x140016325
mov rbx, qword [rsi + 8]
jmp 0x14001632d
mov rbx, qword [rbx + r15 + 8]
mov rbx, qword [rbx]
cmp rbx, rax
je 0x140016355
mov ecx, dword [r8]
mov rbx, qword [rbx + 8]
cmp ecx, dword [rbx + 0x10]
je 0x140016345
cmp rbx, rax
jne 0x140016335
jmp 0x140016355
mov qword [r14], rbx
mov byte [r14 + 8], 0
mov rax, r14
jmp 0x14001643e
mov rax, qword [rsi + 8]
mov rdi, qword [rax]
mov r9, r8
mov r8, qword [rdi + 8]
mov rdx, rdi
call fcn.14001a540
mov rdx, rax
movabs rcx, 0xaaaaaaaaaaaaaa9
sub rcx, qword [rsi + 0x10]
cmp rcx, 1
jae 0x140016390
lea rcx, str.list_T__too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
inc qword [rsi + 0x10]
mov qword [rdi + 8], rdx
mov rax, qword [rax + 8]
mov qword [rax], rdx
mov rdi, qword [rsi + 8]
mov rdi, qword [rdi]
mov qword [rsp + 0x38], rdi
mov rax, qword [rdi]
cmp rbx, rax
je 0x1400163e0
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
mov rcx, qword [rsi + 0x18]
add rcx, r15
mov rax, qword [rcx]
cmp rax, qword [rsi + 8]
jne 0x1400163fe
mov qword [rcx], rdi
mov rax, qword [rsi + 0x18]
mov qword [rax + r15 + 8], rdi
jmp 0x14001642a
cmp rax, rbx
jne 0x140016408
mov qword [rcx], rdi
jmp 0x14001642a
mov rax, qword [rcx + 8]
mov rdx, qword [rax]
mov qword [rcx + 8], rdx
cmp rdx, rdi
je 0x14001642a
mov r8, qword [rsi + 0x18]
mov rax, qword [r8 + r15 + 8]
mov rdx, qword [rax + 8]
mov qword [r8 + r15 + 8], rdx
mov rcx, rsi
call fcn.1400186d0
nop
mov qword [r14], rdi
mov byte [r14 + 8], 1
mov rax, r14
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14006e6d0
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140018790
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x30
mov rax, qword [0x140099110]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov rdi, rdx
mov r10, rcx
movzx edx, byte [r8 + 0x10]
movabs rcx, 0x100000001b3
mov r9, r8
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movzx eax, byte [r8 + 0x11]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [r8 + 0x12]
imul rdx, rcx
xor rdx, rax
movzx eax, byte [r8 + 0x13]
mov r8, qword [r10 + 0x30]
imul rdx, rcx
xor rdx, rax
imul rdx, rcx
mov rcx, qword [r10 + 0x18]
and r8, rdx
shl r8, 4
add rcx, r8
cmp qword [rcx + 8], r9
jne 0x140018838
cmp qword [rcx], r9
jne 0x14001882e
mov rax, qword [r10 + 8]
mov qword [rcx], rax
mov rcx, qword [r10 + 0x18]
mov rax, qword [r10 + 8]
mov qword [r8 + rcx + 8], rax
jmp 0x140018843
mov rax, qword [r9 + 8]
mov qword [rcx + 8], rax
jmp 0x140018843
cmp qword [rcx], r9
jne 0x140018848
mov rax, qword [r9]
mov qword [rcx], rax
mov r9, qword [rsp + 0x50]
mov rdx, qword [r9 + 8]
mov rcx, r9
mov rbx, qword [r9]
mov qword [rdx], rbx
mov r8, qword [r9]
mov rdx, qword [r9 + 8]
mov qword [r8 + 8], rdx
dec qword [r10 + 0x10]
call fcn.14006ec98
mov rax, rdi
mov qword [rdi], rbx
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.14006e6d0
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140019700
Capabilities:
Hash data using fnv

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x140099110]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, r9
mov r10, r8
mov rsi, rdx
mov r9, rcx
mov qword [rsp + 0x20], rcx
movzx ecx, byte [r8]
movabs rax, 0xcbf29ce484222325
xor rcx, rax
movabs rdx, 0x100000001b3
imul rcx, rdx
movzx eax, byte [r8 + 1]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [r8 + 2]
xor rcx, rax
imul rcx, rdx
movzx eax, byte [r8 + 3]
xor rcx, rax
imul rcx, rdx
mov r8, qword [r9 + 0x30]
and r8, rcx
shl r8, 4
mov rbx, qword [r9 + 0x18]
mov rax, qword [rbx + r8]
cmp rax, qword [r9 + 8]
jne 0x140019793
mov rbx, qword [r9 + 8]
jmp 0x14001979b
mov rbx, qword [rbx + r8 + 8]
mov rbx, qword [rbx]
cmp rbx, rax
je 0x1400197e3
mov ecx, dword [r10]
mov rbx, qword [rbx + 8]
cmp ecx, dword [rbx + 0x10]
je 0x1400197b3
cmp rbx, rax
jne 0x1400197a3
jmp 0x1400197e3
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi]
mov qword [rdx], rcx
mov rdx, qword [rdi]
mov rcx, qword [rdi + 8]
mov qword [rdx + 8], rcx
dec qword [r9 + 0x10]
mov rcx, rdi
call fcn.14006ec98
mov qword [rsi], rbx
mov byte [rsi + 8], 0
mov rax, rsi
jmp 0x140019878
mov qword [rsp + 0x38], rdi
mov rax, qword [rdi]
cmp rbx, rax
je 0x14001981d
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
mov rcx, qword [r9 + 0x18]
add rcx, r8
mov rax, qword [rcx]
cmp rax, qword [r9 + 8]
jne 0x14001983b
mov qword [rcx], rdi
mov rax, qword [r9 + 0x18]
mov qword [rax + r8 + 8], rdi
jmp 0x140019865
cmp rax, rbx
jne 0x140019845
mov qword [rcx], rdi
jmp 0x140019865
mov rax, qword [rcx + 8]
mov rdx, qword [rax]
mov qword [rcx + 8], rdx
cmp rdx, rdi
je 0x140019865
add r8, qword [r9 + 0x18]
mov rax, qword [r8 + 8]
mov rdx, qword [rax + 8]
mov qword [r8 + 8], rdx
mov rcx, r9
call fcn.1400186d0
nop
mov qword [rsi], rdi
mov byte [rsi + 8], 1
mov rax, rsi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14006e6d0
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x14001b650
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x20], 0
lea rcx, str.NVRLA_MOUSE_LUT_OTA_BETA_CHANNEL
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14001b699
movzx edx, byte [rax]
cmp dl, byte [0x140085094]
jne 0x14001b699
movzx eax, byte [rax + 1]
cmp al, byte [0x140085095]
jne 0x14001b699
mov r8d, 4
lea rdx, str.BETA
jmp 0x14001b6a6
mov r8d, 8
lea rdx, str.OFFICIAL
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov rcx, rbx
mov qword [rbx + 0x10], 0
mov byte [rbx], 0
call fcn.14000c500
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x14001b6d0
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x20], 0
lea rcx, str.NVRLA_MOUSE_LUT_OTA_STAGE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14001b719
movzx edx, byte [rax]
cmp dl, byte [0x140085094]
jne 0x14001b719
movzx eax, byte [rax + 1]
cmp al, byte [0x140085095]
jne 0x14001b719
mov r8d, 0x42
lea rdx, str.https:__ota_internal.nvidia.com_release_available_productMouse_DB
jmp 0x14001b726
mov r8d, reloc.WS2_32.dll_gethostname
lea rdx, str.https:__ota.nvidia.com_release_available_productMouse_DB
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov rcx, rbx
mov qword [rbx + 0x10], 0
mov byte [rbx], 0
call fcn.14000c500
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14001bd80
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140099110]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor ebx, ebx
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
lea r9d, [rbx + 1]
lea r8d, [rbx + 0x23]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
cmp word [rsp + 0x30], bx
je 0x14001bdea
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14001bde0
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14001cdd0
mov rax, rdi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14006e6d0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret

Function at 0x140021800
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x448
mov rax, qword [0x140099110]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rbx, rcx
lea rdi, [r11 + 0x10]
call fcn.1400010c0
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0x400
mov rcx, qword [rax]
or rcx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf]
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x140021877
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x14002188a
lea rcx, [rsp + 0x30]
call fcn.1400010d0
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.14006e6d0
add rsp, 0x448
pop rdi
pop rbx
ret
Function at 0x1400225d0
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rbx, rdx
mov rdi, rcx
mov dword [rsp + 0x20], 0
mov rdx, qword [r8]
mov r8, qword [r8 + 8]
sub r8, rdx
xor r9d, r9d
mov rcx, qword [rcx + 8]
call qword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
jns 0x14002263e
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x30]
call fcn.1400224c0
lea rdx, [0x140095160]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov rdx, qword [rdi]
mov rcx, rbx
call fcn.1400226c0
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov r8d, dword [rdi]
mov rdx, qword [rbx]
mov rcx, qword [rdi + 8]
call qword [sym.imp.bcrypt.dll_BCryptFinishHash]
test eax, eax
jns 0x1400226a2
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x30]
call fcn.1400224c0
lea rdx, [0x140095160]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x140028f00
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x140028fdf
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x140028f37
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140028fe2
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x140028f86
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], di
jne 0x140028f90
test rax, rax
je 0x140028fdf
mov rdx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140028fd0
cmp rdx, rax
jb 0x140028fb0
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002aab0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x30
mov rbx, rcx
xor ebp, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x14002acde
xor edx, edx
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], dx
jne 0x14002aae0
test rax, rax
je 0x14002ab14
xor ecx, ecx
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x14002acde
cmp r8w, 0x2f
je 0x14002acde
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x14002aaf0
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.14002ad00
mov rsi, rax
test rax, rax
je 0x14002ac0e
mov qword [rsp + 0x50], r14
call fcn.14002b690
mov r14, rax
test rax, rax
je 0x14002abfb
mov rcx, rsi
call fcn.140028eb0
test eax, eax
je 0x14002abe4
lea rax, str.system32_
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x20]
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rdi]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x14002ab90
mov r8, rbx
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp
test eax, eax
je 0x14002abb8
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
jb 0x14002ab80
jmp 0x14002abc7
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.14002a520
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x14002abf2
mov rcx, rsi
call fcn.140028e60
test eax, eax
je 0x14002abf2
mov rbp, rsi
xor esi, esi
jmp 0x14002abf2
mov rdx, rsi
mov rcx, r14
call fcn.14002a520
mov rbp, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x50]
jmp 0x14002acaa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x14002acb3
mov rcx, rbx
call fcn.140028d70
mov rdi, rax
test rax, rax
je 0x14002acb3
mov ecx, 0x37e4
call fcn.14002a0b0
test eax, eax
je 0x14002ac48
xor ecx, ecx
call fcn.14002b3d0
jmp 0x14002ac4d
call fcn.14002b690
mov rbx, rax
test rax, rax
je 0x14002aca1
mov rdx, rdi
mov rcx, rax
call fcn.14002a520
mov rbp, rax
test rax, rax
je 0x14002ac98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002ac7a
test al, 0x50
je 0x14002ac98
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14002ac8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x14002acb3
xor ecx, ecx
jmp 0x14002acc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14002acc6
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x48]
mov rax, rbp
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rbp
ret
Function at 0x14002b690
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14002b6f2
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14002b6e7
cmp edi, eax
jb 0x14002b6e7
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14002c030
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x140099110]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14002c091
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14002c08b
shr ax, 8
cmp al, 2
jne 0x14002c08b
call fcn.140037ed0
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14006e6d0
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14006e6d0
add rsp, 0x1d8
ret