Function at 0x1800025c0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x18009a918]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x40], 0x400
cmp byte [0x18009b380], bl
je 0x18000262e
mov eax, 0x318
lea rsi, str.E:_buildsARK23181_2_trufos_dlldecrypt.c
mov qword [rsp + 0x28], rsi
mov word [rsp + 0x20], ax
xor r9d, r9d
mov edx, 0x800
mov r8d, 0x5254533a
lea rcx, [0x18009cc40]
call fcn.18004b960
jmp 0x180002651
xor edx, edx
mov r8d, 0x800
mov rcx, qword [0x18009ccf0]
mov rax, qword [0x18009b430]
call qword [0x18007d538]
lea rsi, str.E:_buildsARK23181_2_trufos_dlldecrypt.c
mov qword [rdi], rax
test rax, rax
jne 0x180002697
lea rax, [0x18009b358]
mov rcx, qword [0x18009b358]
cmp rcx, rax
je 0x18000268d
test byte [rcx + 0x1c], 1
je 0x18000268d
cmp byte [rcx + 0x19], 2
jb 0x18000268d
mov edx, 0x27
lea r8, [0x1800909f8]
mov rcx, qword [rcx + 0x10]
call fcn.180001070
mov ebx, 0xc000009a
jmp 0x180002838
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x18000283c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1800026fc
cmp eax, 0xea
je 0x1800026fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rax, [0x18009b358]
mov rcx, qword [0x18009b358]
cmp rcx, rax
je 0x180002832
test byte [rcx + 0x1c], 1
je 0x180002832
cmp byte [rcx + 0x19], 2
jb 0x180002832
mov edx, 0x2a
jmp 0x180002817
mov r8, qword [rdi]
test r8, r8
je 0x18000274c
cmp byte [0x18009b380], 0
je 0x18000272f
mov r9d, 0x326
mov qword [rsp + 0x20], rsi
mov r8d, 0x5254533a
mov rdx, rdi
lea rcx, [0x18009cc40]
call fcn.18004be40
jmp 0x180002745
xor edx, edx
mov rcx, qword [0x18009ccf0]
mov rax, qword [0x18009b440]
call qword [0x18007d538]
mov qword [rdi], 0
mov eax, dword [rsp + 0x40]
add eax, eax
cmp byte [0x18009b380], 0
je 0x180002783
mov ecx, 0x327
mov qword [rsp + 0x28], rsi
mov word [rsp + 0x20], cx
xor r9d, r9d
mov r8d, 0x5254533a
mov edx, eax
lea rcx, [0x18009cc40]
call fcn.18004b960
jmp 0x18000279c
mov r8d, eax
xor edx, edx
mov rcx, qword [0x18009ccf0]
mov rax, qword [0x18009b430]
call qword [0x18007d538]
mov qword [rdi], rax
test rax, rax
jne 0x1800027d9
lea rax, [0x18009b358]
mov rcx, qword [0x18009b358]
cmp rcx, rax
je 0x18000268d
test byte [rcx + 0x1c], 1
je 0x18000268d
cmp byte [rcx + 0x19], 2
jb 0x18000268d
mov edx, 0x28
jmp 0x18000267d
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x18000283c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rax, [0x18009b358]
mov rcx, qword [0x18009b358]
cmp rcx, rax
je 0x180002832
test byte [rcx + 0x1c], 1
je 0x180002832
cmp byte [rcx + 0x19], 2
jb 0x180002832
mov edx, 0x29
mov dword [rsp + 0x20], ebx
lea r9, str.Get_user_name
lea r8, [0x1800909f8]
mov rcx, qword [rcx + 0x10]
call fcn.1800012d0
add ebx, 0xe8f00000
mov dword [rsp + 0x30], ebx
test ebx, ebx
jns 0x1800028b4
mov r8, qword [rdi]
test r8, r8
je 0x1800028b4
cmp byte [0x18009b380], 0
je 0x180002897
mov r9d, 0x348
mov qword [rsp + 0x20], rsi
mov r8d, 0x5254533a
mov rdx, rdi
lea rcx, [0x18009cc40]
call fcn.18004be40
mov qword [rdi], 0
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18005e1d0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
xor edx, edx
mov rcx, qword [0x18009ccf0]
mov rax, qword [0x18009b440]
call qword [0x18007d538]
mov qword [rdi], 0
mov eax, ebx
jmp 0x18000287a