Function at 0x140022640
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x1400cf070]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rdi, rcx
lea rsi, [rcx + 0x50]
mov dword [rsi], 7
add rcx, 0x58
call fcn.140002ba0
lea rcx, [rdi + 0x60]
call fcn.140002ba0
lea rcx, [rdi + 0x68]
call fcn.140002ba0
lea rcx, [rdi + 0x70]
call fcn.140002ba0
mov byte [rdi + 0x4c], 0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], 0x44
mov dword [rsp + 0x44], Ordinal_133
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x20]
lea rdx, [0x1400c1d50]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
lea rbx, [rsp + 0x58]
test eax, eax
jne 0x14002285d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400228de
cmp dword [rsp + 0x40], 0x44
ja 0x14002296f
lea rbx, [rsp + 0x58]
mov eax, dword [rsp + 0x44]
cmp eax, 0x80
jbe 0x140022829
mov r8d, eax
mov rdx, qword [rsp + 0x50]
test rdx, rdx
jne 0x140022783
cmp rax, 0x80
jbe 0x14002281a
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.140028900
jmp 0x140022824
lea rax, [rsp + 0x58]
cmp r8, 0x80
jbe 0x1400227fc
lea rcx, [rsp + 0x50]
cmp rdx, rax
mov rdx, r8
jne 0x1400227f5
call fcn.140028900
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x140022951
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rbp - 0x78]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rbp - 0x68]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rbp - 0x58]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rbp - 0x48]
movups xmmword [rax + 0x60], xmm0
movups xmm1, xmmword [rbp - 0x38]
movups xmmword [rax + 0x70], xmm1
jmp 0x140022824
call fcn.1400288d0
jmp 0x140022824
cmp rdx, rax
je 0x14002281a
test r8, r8
je 0x140022810
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x50]
call fcn.1400288c0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rax
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x20]
lea rdx, [0x1400c1d50]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x1400228de
mov byte [rdi + 0x4c], 1
lea rdx, [rdi + 8]
lea r8, [rbp - 0x20]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x1400228de
test rbx, rbx
jne 0x140022880
xor eax, eax
jmp 0x140022890
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x140022887
mov r8d, eax
mov rdx, rbx
lea rcx, [rdi + 0x60]
call fcn.140002a90
mov r8d, 2
lea rdx, [0x1400c1d50]
lea rcx, [rdi + 0x58]
call fcn.140002a90
xor r8d, r8d
xor edx, edx
lea rcx, [rdi + 0x70]
call fcn.140002a90
nop
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x1400228da
lea rcx, [rsp + 0x50]
call fcn.1400288c0
mov al, 1
jmp 0x140022924
mov dword [rsi], 7
lea rcx, [rdi + 0x58]
call fcn.140002ba0
lea rcx, [rdi + 0x60]
call fcn.140002ba0
lea rcx, [rdi + 0x68]
call fcn.140002ba0
lea rcx, [rdi + 0x70]
call fcn.140002ba0
mov byte [rdi + 0x4c], 0
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x140022922
lea rcx, [rsp + 0x50]
call fcn.1400288c0
xor al, al
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140073640
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
nop
mov dword [rax], Ordinal_27
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov ecx, 0x80070057
call fcn.140001860
int3
mov ecx, 0x80004005
call fcn.140001860
int3