Function at 0x1400d9c00
Capabilities:
Query or enumerate registry value
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rdi, qword [0x14022c040]
lea rbp, [0x140256da0]
mov r8d, 0x2001
mov r9, qword [rdi]
mov qword [rsp + 0x38], r9
mov r9d, edx
mov rsi, rdx
mov rdx, rcx
mov rcx, rbp
call fcn.1400d25c0
movsxd rbx, eax
test ebx, ebx
js 0x1400d9c80
mov qword [rsp + 0x20], 0
mov rcx, qword [0x14025ade8]
mov r8d, ebx
mov rdx, rbp
lea r9, [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
cmp rbx, rsi
je 0x1400d9c6c
mov dword [0x14025add8], 1
mov rax, qword [rsp + 0x38]
sub rax, qword [rdi]
jne 0x1400d9cb2
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rbx, str._invalid_
mov rcx, rbx
call sub.msvcrt.dll_wcslen
mov rcx, qword [0x14025ade8]
lea r9, [rsp + 0x34]
mov rdx, rbx
mov qword [rsp + 0x20], 0
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x1400d9c6c
call fcn.1401d96b0
nop
nop dword [rax + rax]
push r15
mov eax, 0x1128
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1401d92a0
sub rsp, rax
mov rdi, qword [0x14022c040]
xor r15d, r15d
xor ebx, ebx
mov rbp, qword [sym.imp.KERNEL32.dll_GetLastError]
xor r12d, r12d
mov r13d, 0x1000
mov rax, qword [rdi]
mov qword [rsp + 0x1118], rax
xor eax, eax
lea r14, [rsp + 0x44]
xor edi, edi
lea rsi, [rsp + 0x110]
mov r8d, r13d
mov rcx, qword [0x14025adc8]
lea rdx, [rsi + r12]
mov r9, r14
mov qword [rsp + 0x20], 0
sub r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400d9da0
call rbp
cmp eax, 0xe9
je 0x1400d9d48
call rbp
cmp eax, 0x6d
jne 0x1400d9d11
mov eax, dword [0x14025add8]
mov dword [rsp + 0x48], 0
test eax, eax
jne 0x1400da040
mov rcx, qword [0x14025adc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [0x14022c040]
mov rax, qword [rsp + 0x1118]
sub rax, qword [rdi]
jne 0x1400da533
xor eax, eax
add rsp, 0x1128
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
add dword [rsp + 0x44], ebx
je 0x1400d9ef0
movzx eax, byte [rsp + 0x110]
mov edx, eax
mov r9d, eax
cmp edi, 0x1b
je 0x1400d9f00
xor r8d, r8d
xor ecx, ecx
xor ebx, ebx
mov r10d, 1
mov r12d, 1
cmp edi, 0x5b
je 0x1400d9e87
cmp eax, 0x1b
je 0x1400d9e04
mov eax, dword [rsp + 0x44]
add rbx, 1
cmp ebx, eax
jae 0x1400da0d0
movzx eax, byte [rsi + rbx]
lea r12d, [rbx + 1]
mov r8d, ebx
mov r10d, r12d
cmp eax, 0x1b
jne 0x1400d9de1
cmp ecx, ebx
jl 0x1400da1d8
pxor xmm0, xmm0
lea rdx, [rbx + 1]
mov edi, 0x1b
xor r15d, r15d
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
cmp edx, dword [rsp + 0x44]
jae 0x1400d9ef0
movzx eax, byte [rsi + rbx + 1]
lea r12d, [rdx + 1]
mov r9d, edx
movsxd rcx, r8d
mov r10d, r12d
xor r15d, r15d
cmp eax, 0x5b
jne 0x1400d9f1c
lea rbx, [rdx + 1]
cmp ebx, dword [rsp + 0x44]
jae 0x1400da2e7
movzx r9d, byte [rsi + rdx + 1]
lea r12d, [rbx + 1]
mov r8d, ebx
mov edi, 0x5b
mov r10d, r12d
mov edx, r9d
lea eax, [r9 - 0x30]
cmp eax, 9
ja 0x1400d9ec9
movsxd rdx, r15d
add rbx, 1
mov r8d, dword [rsp + rdx*4 + 0x70]
lea r8d, [r8 + r8*4]
lea eax, [rax + r8*2]
mov dword [rsp + rdx*4 + 0x70], eax
cmp ebx, dword [rsp + 0x44]
jae 0x1400d9ef0
movzx r9d, byte [rsi + rbx]
lea r12d, [rbx + 1]
mov r8d, ebx
mov r10d, r12d
lea eax, [r9 - 0x30]
mov edx, r9d
cmp eax, 9
jbe 0x1400d9e90
cmp r9d, 0x3b
jne 0x1400d9f40
add r15d, 1
cmp r15d, 0xf
jg 0x1400d9de1
add rbx, 1
cmp ebx, dword [rsp + 0x44]
jb 0x1400d9eae
nop word [rax + rax]
xor ebx, ebx
xor r12d, r12d
jmp 0x1400d9d11
xor r9d, r9d
xor ecx, ecx
xor edx, edx
mov r10d, 1
mov r12d, 1
cmp eax, 0x5b
je 0x1400d9e61
mov eax, dword [rsp + 0x44]
lea rbx, [rdx + 1]
cmp ebx, eax
jae 0x1400da0d3
lea r12d, [rbx + 1]
movzx eax, byte [rsi + rdx + 1]
mov r8d, ebx
mov r10d, r12d
jmp 0x1400d9ddc
cmp dl, 0x4b
je 0x1400da280
cmp dl, 0x6d
jne 0x1400da01a
test r15d, r15d
js 0x1400d9fa9
movsxd rdx, r15d
lea rax, [rsp + 0x70]
lea rcx, [0x140206208]
lea r8, [rsp + rdx*4 + 0x74]
nop dword [rax + rax]
cmp dword [rax], 0x31
ja case.0x1400d9f7e.3
mov edx, dword [rax]
movsxd rdx, dword [rcx + rdx*4]
add rdx, rcx
jmp rdx
movzx edx, word [0x14025ade2]
mov dword [0x14025addc], 0
mov word [0x14025ade0], dx
nop dword [rax + rax]
add rax, 4
cmp r8, rax
jne 0x1400d9f70
mov ecx, dword [0x14025addc]
movzx edx, word [0x14025ade0]
test ecx, ecx
je 0x1400da003
mov ecx, edx
and ecx, 0xffffff88
mov eax, ecx
or eax, 0x40
test dl, 4
cmovne ecx, eax
mov eax, ecx
or eax, 0x20
test dl, 2
cmovne ecx, eax
mov eax, edx
and eax, 1
shl eax, 4
or eax, ecx
mov ecx, eax
or ecx, 4
test dl, 0x40
cmovne eax, ecx
mov ecx, eax
or ecx, 2
test dl, 0x20
cmovne eax, ecx
mov ecx, eax
or ecx, 1
and edx, 0x10
cmovne eax, ecx
movzx edx, ax
mov dword [rsp + 0x3c], r10d
mov rcx, qword [0x14025ade8]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov r10d, dword [rsp + 0x3c]
add rbx, 1
cmp ebx, dword [rsp + 0x44]
jae 0x1400da2e0
lea r12d, [rbx + 1]
movsxd rcx, r10d
movzx eax, byte [rsi + rbx]
mov r8d, ebx
mov r10d, r12d
jmp 0x1400d9ddc
movzx eax, byte [0x1401e4978]
test al, 1
je 0x1400da190
mov rax, qword [0x1401e4970]
test rax, rax
je 0x1400da128
xor edx, edx
mov rcx, qword [0x14025ade8]
mov dword [rsp + 0xb0], 0x54
lea r8, [rsp + 0xb0]
call rax
test eax, eax
je 0x1400da180
mov eax, dword [rsp + 0xbc]
mov dword [rsp + 0x48], eax
test al, 4
jne 0x1400d9d5e
lea rbx, str._nWarning:_Your_console_font_probably_doesnt_support_Unicode._If_you_experience_strange_characters_in_the_output__consider_switching_to_a_TrueType_font_such_as_Consolas__n
mov rcx, rbx
call sub.msvcrt.dll_wcslen
mov rcx, qword [0x14025ade8]
lea r9, [rsp + 0x50]
mov rdx, rbx
mov qword [rsp + 0x20], 0
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x1400d9d5e
mov r9d, r8d
cmp ecx, r10d
jge 0x1400da2e0
movsxd rdx, r9d
movzx edx, byte [rsp + rdx + 0x110]
test dl, dl
js 0x1400da200
mov edx, r10d
mov dword [rsp + 0x3c], r10d
sub edx, ecx
add rcx, rsi
movsxd rdx, edx
call fcn.1400d9c00
mov eax, dword [rsp + 0x44]
mov r9d, dword [rsp + 0x3c]
mov ebx, eax
sub ebx, r12d
cmp r12d, eax
jb 0x1400da260
xor edi, edi
movsxd r12, ebx
jmp 0x1400d9d11
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x28
mov rax, qword [0x1401e4970]
test rax, rax
jne 0x1400da05f
lea rax, [rsp + 0x50]
xor r8d, r8d
mov r9d, 0x20019
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
lea rdx, str.Console
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400da30c
nop word cs:[rax + rax]
nop
mov eax, dword [rsp + 0x48]
jmp 0x1400da090
or eax, 1
xor edx, edx
mov rcx, qword [0x1401e4960]
mov r8d, 0x800
mov byte [0x1401e4978], al
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test rax, rax
je 0x1400da04f
mov rdx, qword [str.GetCurrentConsoleFontEx]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401e4970], rax
jmp 0x1400da056
mov edx, r8d
mov dword [rsp + 0x3c], r8d
sub edx, ecx
add rcx, rsi
movsxd rdx, edx
call fcn.1400d9c00
mov r8d, dword [rsp + 0x3c]
jmp 0x1400d9e0c
cmp dl, 0xbf
ja 0x1400da220
lea edx, [r9 - 1]
cmp ecx, r9d
jge 0x1400da238
movsxd r8, edx
cmp byte [rsp + r8 + 0x110], 0xdf
jbe 0x1400da238
mov r9d, edx
nop
mov r12d, r9d
cmp r9d, ecx
jle 0x1400da10d
mov r10d, r9d
jmp 0x1400da0ef
cmp edx, ecx
jle 0x1400da0ef
sub r9d, 2
movsxd rdx, r9d
cmp byte [rsp + rdx + 0x110], 0xef
jbe 0x1400da0ef
jmp 0x1400da220
movsxd rdx, r9d
mov r8d, ebx
mov rcx, rsi
add rdx, rsi
call sub.msvcrt.dll_memmove
jmp 0x1400da11b
mov rcx, qword [0x14025ade8]
test rcx, rcx
je 0x1400da01a
mov dword [rsp + 0x3c], r10d
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movsx r8d, word [rsp + 0x50]
movsx eax, word [rsp + 0x54]
lea rdx, [rsp + 0x4c]
mov qword [rsp + 0x20], rdx
mov r9d, dword [rsp + 0x54]
mov edx, 0x20
mov rcx, qword [0x14025ade8]
sub r8d, eax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
mov r10d, dword [rsp + 0x3c]
jmp 0x1400da01a
xor edi, edi
jmp 0x1400d9ef0
mov edi, 0x5b
jmp 0x1400d9ef0
or word [0x14025ade0], 0x80
jmp case.0x1400d9f7e.3
and word [0x14025ade0], 0xfff7
jmp case.0x1400d9f7e.3
lea rax, [rsp + 0x4c]
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
lea rdx, str.FontFamily
mov dword [rsp + 0x4c], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400da180
movzx edx, word [0x14025ade0]
movzx r9d, word [0x14025ade2]
and edx, 0xffffff8f
and r9d, 0x70
or edx, r9d
mov word [0x14025ade0], dx
jmp case.0x1400d9f7e.3
or word [0x14025ade0], 8
jmp case.0x1400d9f7e.3
or word [0x14025ade0], 0x70
jmp case.0x1400d9f7e.3
movzx edx, word [0x14025ade0]
and edx, 0xffffff8f
or edx, 0x30
mov word [0x14025ade0], dx
jmp case.0x1400d9f7e.3
movzx edx, word [0x14025ade0]
and edx, 0xffffff8f
or edx, 0x50
mov word [0x14025ade0], dx
jmp case.0x1400d9f7e.3
movzx edx, word [0x14025ade0]
and edx, 0xffffff8f
or edx, 0x10
mov word [0x14025ade0], dx
jmp case.0x1400d9f7e.3
movzx edx, word [0x14025ade0]
and edx, 0xffffff8f
or edx, 0x60
mov word [0x14025ade0], dx
jmp case.0x1400d9f7e.3
movzx edx, word [0x14025ade0]
and edx, 0xffffff8f
or edx, 0x20
mov word [0x14025ade0], dx
jmp case.0x1400d9f7e.3
movzx edx, word [0x14025ade0]
and edx, 0xffffff8f
or edx, 0x40
mov word [0x14025ade0], dx
jmp case.0x1400d9f7e.3
and word [0x14025ade0], 0xff8f
jmp case.0x1400d9f7e.3
movzx edx, word [0x14025ade0]
movzx r9d, word [0x14025ade2]
and edx, 0xfffffff8
and r9d, 7
or edx, r9d
mov word [0x14025ade0], dx
jmp case.0x1400d9f7e.3
or word [0x14025ade0], 7
jmp case.0x1400d9f7e.3
movzx edx, word [0x14025ade0]
and edx, 0xfffffff8
or edx, 3
mov word [0x14025ade0], dx
jmp case.0x1400d9f7e.3
movzx edx, word [0x14025ade0]
and edx, 0xfffffff8
or edx, 5
mov word [0x14025ade0], dx
jmp case.0x1400d9f7e.3
movzx edx, word [0x14025ade0]
and edx, 0xfffffff8
or edx, 1
mov word [0x14025ade0], dx
jmp case.0x1400d9f7e.3
movzx edx, word [0x14025ade0]
and edx, 0xfffffff8
or edx, 6
mov word [0x14025ade0], dx
jmp case.0x1400d9f7e.3
movzx edx, word [0x14025ade0]
and edx, 0xfffffff8
or edx, 2
mov word [0x14025ade0], dx
jmp case.0x1400d9f7e.3
movzx edx, word [0x14025ade0]
and edx, 0xfffffff8
or edx, 4
mov word [0x14025ade0], dx
jmp case.0x1400d9f7e.3
and word [0x14025ade0], 0xfff8
jmp case.0x1400d9f7e.3
mov dword [0x14025addc], 0
jmp case.0x1400d9f7e.3
and word [0x14025ade0], 0xff7f
jmp case.0x1400d9f7e.3
mov dword [0x14025addc], 1
jmp case.0x1400d9f7e.3
call fcn.1401d96b0
nop
nop dword [rax]