Function at 0x140001708
Capabilities:
Create directory
Get session user name
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor esi, esi
lea rax, [0x140004504]
mov qword [rbp - 0x61], rax
mov r15, rcx
lea rax, [0x140004510]
mov qword [rbp - 0x49], rsi
mov qword [rbp - 0x59], rax
lea rcx, [0x1400043d0]
lea rax, [0x1400043f0]
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x51], rax
mov r14d, esi
lea rax, [0x1400044b0]
mov qword [rbp - 0x69], rsi
mov qword [rbp - 0x41], rax
lea rax, [0x140004518]
mov qword [rbp - 0x39], rax
lea rax, [0x140004520]
mov qword [rbp - 0x31], rax
lea rax, [0x140004528]
mov qword [rbp - 0x29], rax
lea rax, [0x140004530]
mov qword [rbp - 0x21], rax
lea rax, [0x140004534]
mov qword [rbp - 0x79], rax
lea rax, [0x140004540]
mov qword [rbp - 0x71], rax
call fcn.1400010e8
mov rbx, rax
test rax, rax
je 0x1400017f3
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
test rax, rax
je 0x1400017f3
mov rcx, rbx
call fcn.140001538
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
jmp 0x140001c79
mov ecx, 0x7fff
mov dword [rbp - 0x11], ecx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
lea rdx, [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov rbx, rsi
lea rdi, [rbp - 0x79]
cmp qword [rdi], rsi
je 0x14000184f
mov rcx, qword [rdi]
call fcn.1400010e8
mov r12, rax
test rax, rax
je 0x140001844
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
test rax, rax
je 0x140001844
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rbx, rax
add rdi, 8
test rbx, rbx
je 0x140001815
jmp 0x140001856
lea rbx, [0x140004554]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
lea rcx, [rax*2 + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
mov rdi, rax
jmp 0x14000188f
movzx r8d, cl
lea rdx, [0x14000455c]
mov rcx, rdi
call fcn.140001090
inc rbx
add rdi, 2
mov cl, byte [rbx]
test cl, cl
jne 0x140001875
lea rdi, [rbp - 0x41]
cmp qword [rdi], rsi
je 0x1400018e3
mov rcx, qword [rdi]
call fcn.1400010e8
mov rbx, rax
test rax, rax
je 0x1400018c8
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
test rax, rax
je 0x1400018c8
mov rcx, rbx
call fcn.1400014c4
test eax, eax
jne 0x1400018ce
add rdi, 8
jmp 0x140001899
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov r14, rax
test rax, rax
jne 0x140001984
lea rcx, [0x140004564]
call fcn.1400010e8
mov rbx, rax
test rax, rax
je 0x14000194c
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
test rax, rax
je 0x14000194c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
lea rcx, [rax + 6]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, rbx
lea rdx, [0x140004570]
mov rcx, rax
mov rdi, rax
call fcn.140001090
mov rcx, rdi
call fcn.1400014c4
test eax, eax
je 0x14000193e
mov r14, rdi
jmp 0x140001947
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r14, r14
jne 0x140001984
lea rbx, [rbp - 0x61]
cmp qword [rbx], rsi
je 0x140001984
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
test rax, rax
je 0x140001984
mov rcx, qword [rbx]
call fcn.1400014c4
test eax, eax
je 0x14000197b
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov r14, rax
add rbx, 8
test r14, r14
je 0x140001950
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
lea rcx, [0x1400043ce]
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
lea rcx, [0x14000454c]
add edi, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
mov rcx, r14
lea ebx, [rax + 0x400]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
lea ecx, [rbx + rdi]
add ecx, eax
movsxd rbx, ecx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x28], r12
lea r9, [0x1400043c0]
mov r13, rax
lea rdx, [0x140004578]
lea rax, [0x14000454c]
mov rcx, r13
mov r8, r14
mov qword [rsp + 0x20], rax
call fcn.140001090
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea rcx, [0x140004584]
mov rdi, rax
call fcn.1400010e8
test rax, rax
je 0x140001a32
mov rcx, qword [r15]
mov rdx, rax
call fcn.140001208
mov rbx, rax
test rax, rax
jne 0x140001a35
mov rbx, qword [r15]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
lea rcx, [0x140004590]
mov r14, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
mov r12, rax
cmp r14d, eax
jl 0x140001aca
movsxd r8, r12d
lea rdx, [0x140004590]
movsxd rcx, r14d
sub rcx, r8
add rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140001aca
cmp r14d, r12d
je 0x140001a8b
movzx eax, word [0x1400043c0]
sub r14d, r12d
movsxd rcx, r14d
cmp byte [rcx + rbx - 1], al
jne 0x140001aca
mov rcx, qword [r15 + 8]
test rcx, rcx
je 0x140001aca
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
cmp rax, 4
jb 0x140001aca
mov rcx, qword [r15 + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
mov rcx, qword [r15 + 8]
lea rdx, [0x14000459c]
add rcx, 0xfffffffffffffffc
add rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140001aca
mov rbx, qword [r15 + 8]
lea rcx, [0x140004450]
call fcn.1400010e8
test rax, rax
je 0x140001ae9
cmp byte [rax], sil
je 0x140001ae9
cmp byte [rax], 0x30
jne 0x140001bcb
mov edx, 0x8000
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open]
mov ebx, eax
test eax, eax
je 0x140001bcb
mov ecx, eax
call fcn.1400015f4
mov r14d, eax
test eax, eax
js 0x140001bcb
xor r8d, r8d
lea edx, [r14 - 0xa]
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
mov r15d, 6
lea rdx, [rbp - 0x11]
mov r8d, r15d
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cmp eax, r15d
jne 0x140001ca6
mov r8d, r15d
lea rdx, [0x1400045b4]
lea rcx, [rbp - 0x11]
call qword [sym.imp.VCRUNTIME140.dll_memcmp]
test eax, eax
jne 0x140001bb7
lea edx, [r14 - 0x32]
xor r8d, r8d
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
lea r8d, [r15 + 0x22]
mov ecx, ebx
lea rdx, [rbp - 9]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cmp eax, 0x28
jne 0x140001ca6
lea rax, [rbp - 9]
mov byte [rbp + 0x1f], sil
lea rbx, [0x1400043ce]
mov r8, r13
mov qword [rsp + 0x28], rbx
lea r9, [0x1400043c0]
lea rdx, [0x1400045c8]
mov qword [rsp + 0x20], rax
mov rcx, rdi
call fcn.140001090
jmp 0x140001c56
mov r8, r15
lea rdx, [0x1400045bc]
lea rcx, [rbp - 0x11]
call qword [sym.imp.VCRUNTIME140.dll_memcmp]
lea rdx, [0x1400044e4]
lea rcx, [0x140004450]
call fcn.140001194
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
lea rbx, [0x1400043ce]
mov r8, r13
mov qword [rsp + 0x28], rbx
lea r9, [0x1400043c0]
lea rdx, [0x1400045d8]
mov dword [rsp + 0x20], eax
mov rcx, rdi
call fcn.140001090
jmp 0x140001c48
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0x11
jne 0x140001c56
inc esi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__getpid]
mov qword [rsp + 0x30], rbx
lea r9, [0x1400043c0]
mov dword [rsp + 0x28], esi
lea rdx, [0x1400045e8]
mov r8, r13
mov dword [rsp + 0x20], eax
mov rcx, rdi
call fcn.140001090
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
cmp eax, 0xffffffff
je 0x140001c0f
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, rdi
lea rcx, [0x1400043d0]
call fcn.140001194
mov rcx, rdi
call fcn.140001538
mov rax, rdi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400026a0
lea r11, [rsp + 0xf0]
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
lea rcx, [0x1400045a8]
call fcn.140001480
int3