Function at 0x140001290
Capabilities:
Access peb ldr_data
Get user security identifier

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x20]
mov rbx, qword [rcx + 0x80]
mov rdi, 0xffffffffffffffff
test rbx, rbx
je 0x140001325
nop dword [rax]
nop dword [rax + rax]
lea rdx, [0x1400033c0]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x140001325
mov rax, rdi
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rbx + rax*2], 0
jne 0x140001310
lea rbx, [rbx + rax*2]
add rbx, 2
jne 0x1400012f0
lea rdx, [0x1400033b4]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
mov rbx, rax
lea rdx, [rax + 2]
lea rcx, [0x1400033b8]
call fcn.140001010
lea rdx, [rbx + 2]
lea rcx, [rsp + 0x48]
call fcn.1400018b0
nop
mov rcx, qword [rsp + 0x58]
xor r15d, r15d
mov rdx, qword [rsp + 0x60]
cmp rcx, rdx
jae 0x14000138a
lea rax, [rcx + 1]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
cmp rdx, 7
cmova rax, qword [rsp + 0x48]
mov dword [rax + rcx*2], 0x5c
jmp 0x14000139a
mov r9d, 0x5c
lea rcx, [rsp + 0x48]
call fcn.1400019f0
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x20]
mov rbx, qword [rcx + 0x80]
test rbx, rbx
je 0x1400013f5
nop dword [rax]
nop word [rax + rax]
lea rdx, str.USERNAME
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x1400013f5
mov rax, rdi
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rbx + rax*2], r15w
jne 0x1400013e0
lea rbx, [rbx + rax*2]
add rbx, 2
jne 0x1400013c0
lea rdx, [0x1400033b4]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
lea rsi, [rax + 2]
mov rdx, rsi
lea rcx, [0x1400033b8]
call fcn.140001010
nop dword [rax + rax]
inc rdi
cmp word [rsi + rdi*2], r15w
jne 0x140001420
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
sub rax, r14
cmp rdi, rax
ja 0x140001472
lea rax, [r14 + rdi]
mov qword [rsp + 0x58], rax
lea rbx, [rsp + 0x48]
cmp rcx, 7
cmova rbx, qword [rsp + 0x48]
lea rcx, [rbx + r14*2]
lea r8, [rdi + rdi]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
lea rax, [r14 + rdi]
mov word [rbx + rax*2], r15w
jmp 0x140001487
mov qword [rsp + 0x20], rdi
mov r9, rsi
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140001b80
lea rbx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rbx, qword [rsp + 0x48]
mov ecx, 0x800
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [rsp + 0x68], 0x400
mov dword [rsp + 0x6c], 0x400
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
lea r8, [rbp - 0x80]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x14000150d
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x14000150d
mov rdx, qword [rsp + 0x40]
lea rcx, str._ws_n
call fcn.140001070
mov r15, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140001552
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000154d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000154d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001dac
mov rax, r15
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140001d50
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret