Function at 0x1400012d0
Capabilities:
Read file on windows
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x2110]
mov eax, 0x2210
call fcn.1400a06f0
sub rsp, rax
mov rax, qword [0x1400fb010]
xor rax, rsp
mov qword [rbp + 0x2100], rax
mov rsi, rdx
mov rdi, 0xffffffffffffffff
cmp ecx, 2
jl 0x1400018de
mov rcx, qword [rdx + 8]
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x140001324
cmp eax, 5
jne 0x1400018de
xor r15d, r15d
mov ebx, r15d
nop dword [rax]
mov rax, qword [rsi + 8]
movsx ecx, byte [rax + rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
mov byte [rbp + rbx + 0x20d0], al
lea ecx, [rax - 0x41]
cmp cl, 5
setbe cl
sub al, 0x30
cmp al, 9
setbe al
or cl, al
je 0x1400018de
inc rbx
cmp rbx, 5
jl 0x140001340
xor edx, edx
mov r8d, 0x10a8
lea rcx, [rbp + 0x1020]
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x1030], r15
mov esi, 0xf
mov qword [rbp + 0x1038], rsi
mov byte [rbp + 0x1020], r15b
xor r8d, r8d
lea rdx, [0x1400ec068]
lea rcx, [rbp + 0x1020]
call fcn.140002620
mov qword [rbp + 0x1050], r15
mov qword [rbp + 0x1058], rsi
mov byte [rbp + 0x1040], r15b
mov dword [rbp + 0x20a8], r15d
mov qword [rbp + 0x20b0], r15
mov dword [rbp + 0x20b8], r15d
mov qword [rbp + 0x20c0], r15
lea rax, [rbp + 0x20e0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x20d0]
lea rcx, [rbp + 0x1020]
call fcn.140001e40
mov dword [rsp + 0x20], 0x80
lea r9d, [rsi + 0x11]
mov r8d, 0x8301
lea rdx, str.._user_permit.txt
lea rcx, [rbp + 0x20d0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__sopen_s]
test eax, eax
jne 0x140001683
lea r8d, [rsi + 0xd]
lea rdx, [rbp + 0x20e0]
mov ecx, dword [rbp + 0x20d0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
mov ecx, dword [rbp + 0x20d0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
lea r8, [rbp + 0x20d0]
call fcn.140001c10
mov byte [rbp + 0x20d5], 0
xor edx, edx
mov r8d, 0x10a8
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], rsi
mov byte [rsp + 0x70], 0
lea rax, [rbp + 0x20d0]
mov r8, rdi
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400014a0
lea rdx, [rbp + 0x20d0]
lea rcx, [rsp + 0x70]
call fcn.140002620
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x58], rsi
mov byte [rbp - 0x70], 0
mov dword [rbp + 0xff8], r15d
mov qword [rbp + 0x1000], r15
mov dword [rbp + 0x1008], r15d
mov qword [rbp + 0x1010], r15
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x70]
call fcn.140002430
nop
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x50]
mov rax, r8
sub rax, rdx
lea rcx, [rsp + 0x38]
cmp rax, 2
jb 0x140001533
lea rax, [rdx + 2]
mov qword [rsp + 0x48], rax
cmp r8, 0x10
cmovae rcx, qword [rsp + 0x38]
movzx eax, word [0x1400ec1d8]
mov word [rcx + rdx], ax
mov byte [rcx + rdx + 2], 0
jmp 0x140001546
mov qword [rsp + 0x20], 2
mov edx, 2
call fcn.140001960
lea rbx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rbx, qword [rsp + 0x38]
mov r14d, dword [rsp + 0x48]
mov dword [rsp + 0x20], 0x80
mov r9d, 0x20
mov r8d, 0x8301
lea rdx, str.._S63_options.txt
lea rcx, [rbp + 0x20d0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__sopen_s]
test eax, eax
jne 0x1400015af
mov r8d, r14d
mov rdx, rbx
mov ecx, dword [rbp + 0x20d0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
mov ecx, dword [rbp + 0x20d0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
lea rcx, str.success_n
jmp 0x1400015b6
lea rcx, str.S63_options.txt_write_failed_n
call fcn.140001af0
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x1400015fc
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400015f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400015f7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002de4
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x38], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140001642
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000163d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001675
call fcn.140002de4
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x14000168f
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000167c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000167c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002de4
jmp 0x14000168f
lea rcx, str.user_permit.txt_write_failed_n
call fcn.140001af0
xor edx, edx
mov r8d, 0x10a8
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], rsi
mov byte [rsp + 0x70], 0
mov qword [rbp - 0x60], r15
mov r14, rsi
mov qword [rbp - 0x58], rsi
mov byte [rbp - 0x70], 0
mov dword [rbp + 0xff8], r15d
mov qword [rbp + 0x1000], r15
mov dword [rbp + 0x1008], r15d
mov qword [rbp + 0x1010], r15
mov dword [rsp + 0x20], 0x100
mov r9d, 0x20
mov r8d, 0x8000
lea rdx, str.._user_permit.txt
lea rcx, [rbp + 0x20d0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__sopen_s]
test eax, eax
jne 0x1400017be
lea rdx, [rsp + 0x38]
mov ecx, dword [rbp + 0x20d0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64i32]
mov ebx, dword [rsp + 0x4c]
lea eax, [rbx + 1]
movsxd rcx, eax
call fcn.1400035bc
mov r15, rax
mov r8d, ebx
mov rdx, rax
mov ecx, dword [rbp + 0x20d0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
movsxd rbx, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rbp + 0x20d0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
mov byte [rbx + r15], 0
cmp rbx, 0x1c
jb 0x1400017b5
lea rdx, str.59397
lea rcx, [rbp - 0x50]
call fcn.140002bb0
lea r8, [rbp + 0x20d8]
mov rdx, r15
lea rcx, [rsp + 0x70]
call fcn.1400021e0
lea rax, [rbp + 0x20d8]
nop dword [rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140001790
mov r8, rdi
lea rdx, [rbp + 0x20d8]
lea rcx, [rsp + 0x70]
call fcn.140002620
mov r14, qword [rbp - 0x58]
mov rsi, qword [rbp - 0x78]
mov rcx, r15
call fcn.140002de4
nop
cmp r14, 0x10
jb 0x1400017f2
lea rdx, [r14 + 1]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400017ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001822
call fcn.140002de4
cmp rsi, 0x10
jb 0x14000182f
lea rdx, [rsi + 1]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001829
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001829
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002de4
nop
mov rdx, qword [rbp + 0x1058]
cmp rdx, 0x10
jb 0x14000186c
inc rdx
mov rcx, qword [rbp + 0x1040]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001867
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400018a4
call fcn.140002de4
mov rdx, qword [rbp + 0x1038]
cmp rdx, 0x10
jb 0x1400018b0
inc rdx
mov rcx, qword [rbp + 0x1020]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400018ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400018ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002de4
xor eax, eax
mov rcx, qword [rbp + 0x2100]
xor rcx, rsp
call fcn.140002dc0
lea r11, [rsp + 0x2210]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea rcx, str.user_permit_generator__hw_id__n__where:_hw_id_is_the_clients_assigned_hardware_id._n_________Must_be_5_hexadecimal_digits__0_thru_F___zero_filled._n_________Example:_user_permit_generator_A79AB_n_________Output:_creates_a_user_permit_file_in_user_permit.txt_n_________________in_the_current_directory._n_n
call fcn.140001af0
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3