Function at 0x140021f40
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 [0x1400cd070]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rdi, rcx
lea rsi, [rcx + 0x50]
mov dword [rsi], 7
add rcx, 0x58
call fcn.140002b90
lea rcx, [rdi + 0x60]
call fcn.140002b90
lea rcx, [rdi + 0x68]
call fcn.140002b90
lea rcx, [rdi + 0x70]
call fcn.140002b90
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, [0x1400bf458]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
lea rbx, [rsp + 0x58]
test eax, eax
jne 0x14002215d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400221de
cmp dword [rsp + 0x40], 0x44
ja 0x14002226f
lea rbx, [rsp + 0x58]
mov eax, dword [rsp + 0x44]
cmp eax, 0x80
jbe 0x140022129
mov r8d, eax
mov rdx, qword [rsp + 0x50]
test rdx, rdx
jne 0x140022083
cmp rax, 0x80
jbe 0x14002211a
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.140028200
jmp 0x140022124
lea rax, [rsp + 0x58]
cmp r8, 0x80
jbe 0x1400220fc
lea rcx, [rsp + 0x50]
cmp rdx, rax
mov rdx, r8
jne 0x1400220f5
call fcn.140028200
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x140022251
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 0x140022124
call fcn.1400281d0
jmp 0x140022124
cmp rdx, rax
je 0x14002211a
test r8, r8
je 0x140022110
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x50]
call fcn.1400281c0
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, [0x1400bf458]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x1400221de
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 0x1400221de
test rbx, rbx
jne 0x140022180
xor eax, eax
jmp 0x140022190
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x140022187
mov r8d, eax
mov rdx, rbx
lea rcx, [rdi + 0x60]
call fcn.140002a80
mov r8d, 2
lea rdx, [0x1400bf458]
lea rcx, [rdi + 0x58]
call fcn.140002a80
xor r8d, r8d
xor edx, edx
lea rcx, [rdi + 0x70]
call fcn.140002a80
nop
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x1400221da
lea rcx, [rsp + 0x50]
call fcn.1400281c0
mov al, 1
jmp 0x140022224
mov dword [rsi], 7
lea rcx, [rdi + 0x58]
call fcn.140002b90
lea rcx, [rdi + 0x60]
call fcn.140002b90
lea rcx, [rdi + 0x68]
call fcn.140002b90
lea rcx, [rdi + 0x70]
call fcn.140002b90
mov byte [rdi + 0x4c], 0
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x140022222
lea rcx, [rsp + 0x50]
call fcn.1400281c0
xor al, al
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140072f40
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.140001850
int3
mov ecx, 0x80004005
call fcn.140001850
int3