Function at 0x14002b070
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x1401de080]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov r14, rcx
mov qword [rbp - 0x50], rcx
xor r13d, r13d
mov dword [rsp + 0x40], r13d
mov qword [rcx], r13
mov qword [rcx + 8], r13
mov qword [rcx + 0x10], r13
mov dword [rsp + 0x40], 1
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, Ordinal_30
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov r12, 0xffffffffffffffff
xorps xmm0, xmm0
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], r13
movups xmmword [rbp - 0x20], xmm0
test eax, eax
js 0x14002b124
lea rax, [rbp + 0xc0]
mov r8, r12
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14002b110
lea rdx, [rbp + 0xc0]
jmp 0x14002b12e
xor r8d, r8d
lea rdx, [0x1401b2dac]
lea rcx, [rbp - 0x20]
call fcn.14002fa70
mov dword [rsp + 0x40], 0x401
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x10]
lea r8, [rdx + rax*2]
lea rdx, [rbp - 0x20]
cmova rdx, qword [rbp - 0x20]
lea rcx, [rbp + 0x60]
call fcn.14002f150
nop
mov dword [rbp - 0x40], 0x6f525c1b
mov dword [rbp - 0x3c], 0x786f6c62
mov dword [rbp - 0x38], 0x676f6c5c
mov word [rbp - 0x34], reloc.WS2_32.dll_WSAStartup
lea rax, [rbp - 0x3f]
mov rcx, r12
nop word [rax + rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x14002b190
movabs rax, 0x7fffffffffffffff
mov rdx, qword [rbp + 0x70]
sub rax, rdx
cmp rax, rcx
jb 0x14002b5ff
lea r9, [rbp + 0x60]
cmp qword [rbp + 0x78], 0xf
cmova r9, qword [rbp + 0x60]
mov qword [rsp + 0x30], rcx
lea rax, [rbp - 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rcx, [rbp + 0x40]
call fcn.140030760
mov dword [rsp + 0x40], 0xc01
lea rax, [rbp + 0x40]
cmp qword [rbp + 0x58], 0xf
cmova rax, qword [rbp + 0x40]
mov qword [rsp + 0x60], rax
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x68], rax
call fcn.140178080
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp - 0x80], xmm0
lea r8, [rbp - 0x80]
mov edx, eax
lea rcx, [rbp]
call fcn.1400292f0
mov ebx, 0x3c01
mov dword [rsp + 0x40], ebx
lea rdx, [rbp]
lea rcx, [rsp + 0x50]
call fcn.14002a8e0
nop
lea rcx, [rbp]
call fcn.14002ecd0
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x14002b257
lock inc dword [rdi + 8]
mov rdi, qword [rsp + 0x58]
mov ebx, dword [rsp + 0x40]
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x60], xmm0
test rdi, rdi
je 0x14002b274
lock inc dword [rdi + 8]
mov rdi, qword [rsp + 0x58]
mov ebx, dword [rsp + 0x40]
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
test rdi, rdi
je 0x14002b2b5
mov eax, r12d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14002b2ac
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, r12d
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x14002b2ac
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov ebx, dword [rsp + 0x40]
mov rdi, qword [rsp + 0x58]
mov r15, qword [rsp + 0x60]
test r15, r15
je 0x14002b53e
lea rdx, [rbp - 0x40]
mov rcx, r15
call fcn.14002a2e0
mov rax, qword [rbp - 0x40]
mov edx, dword [rbp - 0x38]
test edx, edx
je 0x14002b2e9
lea ecx, [rax - 1]
test ecx, 0xfffffff7
jne 0x14002b605
cmp eax, 2
jne 0x14002b491
mov dword [rbp - 0x48], 0x6f6c2e2a
mov word [rbp - 0x44], 0x67
lea rax, [rbp - 0x47]
mov qword [rbp - 0x60], rax
lea rcx, [rbp - 0x47]
mov rax, r12
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x14002b310
mov qword [rbp - 0x58], rax
call fcn.140178080
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rsp + 0x70], xmm0
lea r8, [rsp + 0x70]
mov edx, eax
lea rcx, [rbp]
call fcn.1400292f0
or ebx, 0x60
or ebx, 2
mov dword [rsp + 0x40], ebx
lea rdx, [rbp + 0xa0]
lea rcx, [r15 + 0x20]
call fcn.140029b00
mov r8, rax
or ebx, 4
mov dword [rsp + 0x40], ebx
lea rcx, [rbp]
cmp qword [rbp + 0x18], 7
cmova rcx, qword [rbp]
mov qword [rbp - 0x80], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x78], rax
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rsp + 0x70], xmm0
lea rdx, [rsp + 0x70]
mov rcx, r8
call fcn.1400298e0
test eax, eax
jne 0x14002b491
lea rcx, [r15 + 0x20]
cmp qword [r15 + 0x38], 7
jbe 0x14002b3a8
mov rcx, qword [r15 + 0x20]
mov rax, qword [r15 + 0x30]
lea rsi, [rcx + rax*2]
mov rdi, rsi
mov rdx, rsi
call fcn.140029460
cmp rax, rsi
je 0x14002b3fb
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x14002b3cf
cmp cx, 0x2f
jne 0x14002b3d8
add rax, 2
cmp rax, rsi
jne 0x14002b3c0
cmp rax, rsi
je 0x14002b3fb
nop dword [rax]
lea rdx, [rdi - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x14002b3fb
cmp cx, 0x2f
je 0x14002b3fb
mov rdi, rdx
cmp rax, rdx
jne 0x14002b3e0
sub rsi, rdi
sar rsi, 1
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x38], r13
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp + 0x20]
call fcn.14002fa70
or ebx, 0x380
or ebx, 8
mov dword [rsp + 0x40], ebx
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x20]
call fcn.1400297f0
mov rcx, rax
or ebx, 0x10
mov dword [rsp + 0x40], ebx
mov dword [rbp - 0x30], 0x6c505f4a
mov dword [rbp - 0x2c], 0x72657961
mov word [rbp - 0x28], 0x5f
lea rdx, [rbp - 0x2f]
mov rax, r12
inc rax
cmp byte [rdx + rax], 0
jne 0x14002b461
mov rdx, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0xf
jbe 0x14002b478
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x2f]
call fcn.14002fba0
cmp rax, 0xffffffffffffffff
je 0x14002b491
mov dil, 1
jmp 0x14002b494
xor dil, dil
test bl, 0x10
je 0x14002b4ad
and ebx, 0xffffffef
mov dword [rsp + 0x40], ebx
lea rcx, [rbp + 0x80]
call fcn.14002ed40
nop
test bl, 8
je 0x14002b4c3
and ebx, 0xfffffff7
mov dword [rsp + 0x40], ebx
lea rcx, [rbp + 0x20]
call fcn.14002ecd0
nop
test bl, 4
je 0x14002b4dc
and ebx, 0xfffffffb
mov dword [rsp + 0x40], ebx
lea rcx, [rbp + 0xa0]
call fcn.14002ecd0
nop
test bl, 2
je 0x14002b4f1
and ebx, 0xfffffffd
mov dword [rsp + 0x40], ebx
lea rcx, [rbp]
call fcn.14002ecd0
test dil, dil
je 0x14002b521
lea r8, [r15 + 0x20]
mov rax, qword [r14 + 8]
cmp rax, qword [r14 + 0x10]
je 0x14002b516
mov rdx, r8
mov rcx, rax
call fcn.14002e650
add qword [r14 + 8], 0x20
jmp 0x14002b521
mov rdx, rax
mov rcx, r14
call fcn.140030920
lea rcx, [rsp + 0x60]
call fcn.14002aa70
mov r15, qword [rsp + 0x60]
test r15, r15
jne 0x14002b2c3
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14002b57f
mov eax, r12d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14002b57a
mov rbx, qword [rsp + 0x68]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14002b57a
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x14002b5af
mov eax, r12d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x14002b5af
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], r12d
cmp r12d, 1
jne 0x14002b5af
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rbp + 0x40]
call fcn.14002ed40
nop
lea rcx, [rbp + 0x60]
call fcn.14002ed40
nop
lea rcx, [rbp - 0x20]
call fcn.14002ecd0
mov rax, r14
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140176e00
lea r11, [rsp + 0x3e0]
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
call fcn.140028b70
nop
lea r8, [r15 + 0x20]
lea rcx, str.directory_entry::status
call fcn.14002a260
int3