Function at 0x180004220
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x180169b40]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rdi, rdx
mov r13, rcx
mov qword [rbp + 0xf0], rdx
xor r12d, r12d
call fcn.180004f20
mov dword [rbp + 0xf8], 0x64
lea rdx, [rbp + 0xf8]
lea rcx, [rbp + 0x140]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov qword [rbp + 0x100], r12
mov qword [rbp + 0x110], r12
mov qword [rbp + 0x118], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x100], r12b
lea rax, [rbp + 0x140]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1800042b1
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0x100]
call fcn.1800062e0
nop
mov dword [rsp + 0x68], 0x948e97d1
mov dword [rsp + 0x6c], 0x9a948e9e
mov word [rsp + 0x70], Ordinal_200
mov byte [rsp + 0x72], 1
mov dword [rsp + 0x30], 0x979896d1
mov dword [rsp + 0x34], 0x100c19e
mov dword [rsp + 0x78], 0x899c8bd1
mov dword [rsp + 0x7c], 0x90929588
mov dword [rbp - 0x80], 0x3c6496
mov byte [rbp - 0x7c], 1
mov dword [rsp + 0x58], 0x899c95d1
mov dword [rsp + 0x5c], 0x9b9a9d88
mov word [rsp + 0x60], Ordinal_200
mov byte [rsp + 0x62], 1
mov dword [rsp + 0x38], 0x8f9a88d1
mov dword [rsp + 0x3c], 0xc38f9988
mov word [rsp + 0x40], 0x100
mov dword [rsp + 0x48], 0x9f898183
mov dword [rsp + 0x4c], 0x999290c6
mov word [rsp + 0x50], 0x100
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x98]
call fcn.180004a20
mov rbx, rax
lea r9, [rbp + 0x100]
mov r14, qword [rbp + 0x100]
cmp qword [rbp + 0x118], 0x10
cmovae r9, r14
mov rcx, qword [rax + 0x10]
mov r8, qword [rax + 0x18]
mov rax, r8
sub rax, rcx
mov rdx, qword [rbp + 0x110]
cmp rdx, rax
ja 0x1800043d6
lea r15, [rcx + rdx]
mov qword [rbx + 0x10], r15
mov rsi, rbx
cmp r8, 0x10
jb 0x1800043c1
mov rsi, qword [rbx]
add rcx, rsi
mov r8, rdx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [r15 + rsi], 0
jmp 0x1800043ed
mov qword [rsp + 0x20], rdx
mov rcx, rbx
call fcn.180007420
mov rbx, rax
mov r14, qword [rbp + 0x100]
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x48], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x38], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 0x78]
call fcn.180003330
nop
mov rdx, rdi
mov rcx, rax
call fcn.180005720
movups xmm0, xmmword [rax]
movups xmmword [rbp - 8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 8], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea r8, [rsp + 0x78]
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x58]
call fcn.180004120
nop
lea rdx, [r13 + 0x260]
mov rcx, rax
call fcn.180005720
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x28], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x18], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 0x38]
call fcn.180003230
nop
mov rdx, r13
mov rcx, rax
call fcn.180005720
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x68], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea r8, [rsp + 0x68]
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0x18]
call fcn.180003330
nop
lea rdx, [r13 + 0x20]
mov rcx, rax
call fcn.180005720
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0x120], xmm0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp + 0xe0], xmm0
movups xmmword [rbp + 0x130], xmm0
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rbp + 0x30]
cmp rdx, 0x10
jb 0x180004552
inc rdx
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000454d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000454d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d8028
mov qword [rbp + 0x28], r12
mov qword [rbp + 0x30], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x18], 0
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x1800045a1
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000459b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000459b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d8028
nop
mov rdx, qword [rbp + 0x50]
cmp rdx, 0x10
jb 0x1800045df
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800045da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800045da
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d8028
mov qword [rbp + 0x48], r12
mov qword [rbp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x38], 0
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x18000462e
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004628
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180004628
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d8028
nop
mov rdx, qword [rbp + 0x70]
cmp rdx, 0x10
jb 0x18000466c
inc rdx
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004667
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180004667
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d8028
mov qword [rbp + 0x68], r12
mov qword [rbp + 0x70], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x58], 0
mov rdx, qword [rbp + 0x10]
cmp rdx, 0x10
jb 0x1800046bb
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800046b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800046b5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d8028
nop
mov rdx, qword [rbp + 0x90]
cmp rdx, 0x10
jb 0x1800046fc
inc rdx
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800046f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800046f7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d8028
mov qword [rbp + 0x88], r12
mov qword [rbp + 0x90], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x78], 0
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x180004751
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000474b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000474b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d8028
nop
mov rdx, qword [rbp + 0xb0]
cmp rdx, 0x10
jb 0x180004795
inc rdx
mov rcx, qword [rbp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004790
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180004790
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d8028
mov qword [rbp + 0xa8], r12
mov qword [rbp + 0xb0], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x98], 0
lea rax, [rbp - 8]
mov qword [rbp + 0xb8], rax
lea rdx, [r13 + 0xa0]
lea rcx, [rbp - 8]
call fcn.180005860
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x28]
mov qword [rbp + 0xc0], rax
lea rdx, [r13 + 0x80]
lea rcx, [rbp - 0x28]
call fcn.180005860
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], r12
lea r12, [rbp + 0x120]
mov rsi, qword [rbp + 0xd0]
movups xmm1, xmmword [rbp + 0xe0]
movdqa xmm0, xmm1
psrldq xmm0, 8
movq r13, xmm0
cmp r13, 0x10
cmovae r12, rsi
movq r15, xmm1
cmp r15, 0x10
jae 0x18000483e
movups xmm0, xmmword [r12]
movups xmmword [rbp - 0x78], xmm0
mov ebx, reloc.WS2_32.dll_ntohs
jmp 0x1800048b7
mov rbx, r15
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x180004892
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180004a0e
mov rcx, rax
call fcn.1800d7fec
mov rcx, rax
test rax, rax
je 0x180004905
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1800048a0
test rcx, rcx
je 0x18000489e
call fcn.1800d7fec
jmp 0x1800048a0
xor eax, eax
mov qword [rbp - 0x78], rax
lea r8, [r15 + 1]
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp - 0x58]
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], rbx
mov r9, qword [rbp - 0x50]
mov r8, rax
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x48]
call fcn.180004b90
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x180004911
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000490c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000490c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1800d8028
call fcn.180004f20
nop
cmp r13, 0x10
jb 0x180004952
lea rdx, [r13 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x180004949
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180004949
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1800d8028
nop
mov rax, qword [rbp + 0x118]
cmp rax, 0x10
jb 0x180004994
lea rdx, [rax + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x18000498b
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000498b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.1800d8028
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1800049ca
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1800049c5
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180004a07
mov rcx, r8
call fcn.1800d8028
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1800d85d0
mov rbx, qword [rsp + 0x310]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.180001770
nop
int3