Function at 0x140050b20
Capabilities:
Get hostname
Get user security identifier

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x1400a9040]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rcx
mov qword [rbp - 0x39], rcx
xor r15d, r15d
mov dword [rbp - 0x31], 0x10
lea rdx, [rbp - 0x31]
lea rcx, [rbp + 0x17]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x140050d26
mov dword [rbp - 0x41], r15d
mov dword [rbp - 0x45], r15d
lea rax, [rbp - 0x2d]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x45]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x41]
xor r8d, r8d
lea rdx, [rbp + 0x17]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x140050d26
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140050d26
mov ecx, dword [rbp - 0x41]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
mov ecx, dword [rbp - 0x45]
mov eax, 2
mul rcx
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test r14, r14
je 0x140050d18
test rax, rax
je 0x140050d0f
lea rax, [rbp - 0x2d]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x45]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x41]
mov r8, r14
lea rdx, [rbp + 0x17]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x140050d0f
mov qword [rbp - 0x39], r15
lea rdx, [rbp - 0x39]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x140050d0f
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x19], xmm1
mov rdx, qword [rbp - 0x39]
nop dword [rax]
inc rbx
cmp word [rdx + rbx*2], r15w
jne 0x140050c60
mov r8, rbx
lea rcx, [rbp - 0x29]
call fcn.1400606a0
nop
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 7
cmova rdx, qword [rbp - 0x29]
mov rax, qword [rbp - 0x19]
lea r8, [rdx + rax*2]
lea rdx, [rbp - 0x29]
cmova rdx, qword [rbp - 0x29]
lea rcx, [rbp - 9]
call fcn.14005e060
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movups xmm0, xmmword [rbp - 9]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp + 7]
movups xmmword [rdi + 0x10], xmm1
mov rdx, qword [rbp - 0x11]
cmp rdx, 7
jbe 0x140050d46
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050d08
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050d08
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006f2c0
jmp 0x140050d46
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rsi, rsi
je 0x140050d26
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r15
xor r8d, r8d
lea rdx, [0x140073d9e]
mov rcx, rdi
call fcn.140060ac0
mov rax, rdi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14006f1d0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret