Function at 0x180002810
Capabilities:
Get session user name

Disassembly:
sub rsp, 0xd8
mov rax, qword [0x180024020]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x31
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x180002d67
mov rax, qword [0x180025e48]
mov qword [rsp + 0xe8], rbp
lea rbp, [0x180025e30]
mov qword [rsp + 0xf0], rsi
mov qword [rsp + 0xc0], r15
xor r15d, r15d
mov qword [rsp + 0xe0], rbx
cmp rax, 0xd
jb 0x1800028b4
cmp rax, 8
mov qword [0x180025e40], 0xd
mov rbx, rbp
lea r8d, [r15 + 0x1a]
cmovae rbx, qword [0x180025e30]
lea rdx, str.__C:Users_
mov rcx, rbx
call fcn.180009f30
mov word [rbx + 0x1a], r15w
jmp 0x1800028c8
lea r9, str.__C:Users_
mov edx, 0xd
mov rcx, rbp
call fcn.180003c20
mov rsi, 0xffffffffffffffff
lea rax, [rsp + 0x40]
mov rdx, rsi
nop word [rax + rax]
inc rdx
cmp word [rax + rdx*2], r15w
jne 0x1800028e0
mov r8, qword [0x180025e48]
mov rcx, qword [0x180025e40]
mov rax, r8
sub rax, rcx
mov qword [rsp + 0xd0], rdi
cmp rdx, rax
ja 0x18000293e
lea rdi, [rcx + rdx]
cmp r8, 8
lea r8, [rdx + rdx]
mov qword [0x180025e40], rdi
mov rbx, rbp
lea rdx, [rsp + 0x40]
cmovae rbx, qword [0x180025e30]
lea rcx, [rbx + rcx*2]
call fcn.180009f30
mov word [rbx + rdi*2], r15w
jmp 0x180002950
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdx
mov rcx, rbp
call fcn.180003a50
mov r8, qword [0x180025e48]
mov rdx, qword [0x180025e40]
mov rax, r8
sub rax, rdx
cmp rax, 1
jb 0x180002996
cmp r8, 8
lea rcx, [rdx + 1]
mov qword [0x180025e40], rcx
mov rax, rbp
cmovae rax, qword [0x180025e30]
mov r8d, 0x5c
mov word [rax + rdx*2], r8w
mov word [rax + rcx*2], r15w
jmp 0x1800029b3
lea r9, [0x180020c04]
mov qword [rsp + 0x20], 1
mov edx, 1
mov rcx, rbp
call fcn.180003a50
cmp qword [0x180025e48], 8
mov r9, rbp
mov rdx, rsi
cmovae r9, qword [0x180025e30]
nop dword [rax]
inc rdx
cmp word [r9 + rdx*2], r15w
jne 0x1800029d0
mov rax, qword [0x180024a28]
mov qword [rsp + 0xc8], r14
lea r14, [0x180024a10]
cmp rdx, rax
ja 0x180002a24
lea rbx, [rdx + rdx]
mov qword [0x180024a20], rdx
cmp rax, 8
mov rdi, r14
mov r8, rbx
mov rdx, r9
cmovae rdi, qword [0x180024a10]
mov rcx, rdi
call fcn.180009f30
mov word [rbx + rdi], r15w
jmp 0x180002a2c
mov rcx, r14
call fcn.180003c20
mov rdx, qword [0x180024a28]
mov rcx, qword [0x180024a20]
mov rax, rdx
sub rax, rcx
cmp rax, 0x26
jb 0x180002a7a
cmp rdx, 8
lea rbx, [rcx + 0x26]
mov r8d, 0x4c
mov qword [0x180024a20], rbx
cmovae r14, qword [0x180024a10]
lea rdx, str.AppDataLocalMicrosoftEdgeUser_Data
lea rcx, [r14 + rcx*2]
call fcn.180009f30
mov word [r14 + rbx*2], r15w
jmp 0x180002a97
lea r9, str.AppDataLocalMicrosoftEdgeUser_Data
mov qword [rsp + 0x20], 0x26
mov edx, 0x26
mov rcx, r14
call fcn.180003a50
cmp qword [0x180025e48], 8
mov r9, rbp
mov rdx, rsi
cmovae r9, qword [0x180025e30]
nop dword [rax]
inc rdx
cmp word [r9 + rdx*2], r15w
jne 0x180002ab0
mov rax, qword [0x180024a48]
lea r14, [0x180024a30]
cmp rdx, rax
ja 0x180002afc
lea rbx, [rdx + rdx]
mov qword [0x180024a40], rdx
cmp rax, 8
mov rdi, r14
mov r8, rbx
mov rdx, r9
cmovae rdi, qword [0x180024a30]
mov rcx, rdi
call fcn.180009f30
mov word [rbx + rdi], r15w
jmp 0x180002b04
mov rcx, r14
call fcn.180003c20
mov rdx, qword [0x180024a48]
mov rcx, qword [0x180024a40]
mov rax, rdx
sub rax, rcx
cmp rax, 0x33
jb 0x180002b52
cmp rdx, 8
lea rbx, [rcx + 0x33]
mov r8d, 0x66
mov qword [0x180024a40], rbx
cmovae r14, qword [0x180024a30]
lea rdx, str.AppDataLocalBraveSoftwareBrave_BrowserUser_Data
lea rcx, [r14 + rcx*2]
call fcn.180009f30
mov word [r14 + rbx*2], r15w
jmp 0x180002b6f
lea r9, str.AppDataLocalBraveSoftwareBrave_BrowserUser_Data
mov qword [rsp + 0x20], 0x33
mov edx, 0x33
mov rcx, r14
call fcn.180003a50
cmp qword [0x180025e48], 8
mov r9, rbp
mov rdx, rsi
cmovae r9, qword [0x180025e30]
inc rdx
cmp word [r9 + rdx*2], r15w
jne 0x180002b85
mov rax, qword [0x180024a68]
lea r14, [0x180024a50]
cmp rdx, rax
ja 0x180002bd1
lea rbx, [rdx + rdx]
mov qword [0x180024a60], rdx
cmp rax, 8
mov rdi, r14
mov r8, rbx
mov rdx, r9
cmovae rdi, qword [0x180024a50]
mov rcx, rdi
call fcn.180009f30
mov word [rbx + rdi], r15w
jmp 0x180002bd9
mov rcx, r14
call fcn.180003c20
mov rdx, qword [0x180024a68]
mov rcx, qword [0x180024a60]
mov rax, rdx
sub rax, rcx
cmp rax, 0x25
jb 0x180002c27
cmp rdx, 8
lea rbx, [rcx + 0x25]
mov r8d, 0x4a
mov qword [0x180024a60], rbx
cmovae r14, qword [0x180024a50]
lea rdx, str.AppDataLocalGoogleChromeUser_Data
lea rcx, [r14 + rcx*2]
call fcn.180009f30
mov word [r14 + rbx*2], r15w
jmp 0x180002c44
lea r9, str.AppDataLocalGoogleChromeUser_Data
mov qword [rsp + 0x20], 0x25
mov edx, 0x25
mov rcx, r14
call fcn.180003a50
cmp qword [0x180025e48], 8
cmovae rbp, qword [0x180025e30]
inc rsi
cmp word [rbp + rsi*2], r15w
jne 0x180002c54
mov rax, qword [0x180024a88]
lea r14, [0x180024a70]
cmp rsi, rax
ja 0x180002ca1
cmp rax, 8
mov qword [0x180024a80], rsi
mov rdi, r14
lea rbx, [rsi + rsi]
cmovae rdi, qword [0x180024a70]
mov r8, rbx
mov rcx, rdi
mov rdx, rbp
call fcn.180009f30
mov word [rbx + rdi], r15w
jmp 0x180002caf
mov r9, rbp
mov rdx, rsi
mov rcx, r14
call fcn.180003c20
mov rdx, qword [0x180024a88]
mov rcx, qword [0x180024a80]
mov rax, rdx
mov rdi, qword [rsp + 0xd0]
sub rax, rcx
mov rsi, qword [rsp + 0xf0]
mov rbp, qword [rsp + 0xe8]
cmp rax, 0x28
jb 0x180002d15
cmp rdx, 8
lea rbx, [rcx + 0x28]
mov r8d, 0x50
mov qword [0x180024a80], rbx
cmovae r14, qword [0x180024a70]
lea rdx, str.AppDataRoamingMozillaFirefoxProfiles
lea rcx, [r14 + rcx*2]
call fcn.180009f30
mov word [r14 + rbx*2], r15w
jmp 0x180002d32
lea r9, str.AppDataRoamingMozillaFirefoxProfiles
mov qword [rsp + 0x20], 0x28
mov edx, 0x28
mov rcx, r14
call fcn.180003a50
mov r15, qword [rsp + 0xc0]
mov eax, 1
mov r14, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.180008100
add rsp, 0xd8
ret
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.180008100
add rsp, 0xd8
ret