Function at 0x1400aa930
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1270]
mov eax, 0x1370
call fcn.1400e1740
sub rsp, rax
mov rax, qword [0x1401737a8]
xor rax, rsp
mov qword [rbp + 0x1260], rax
mov qword [rsp + 0x40], r9
mov rbx, r8
mov qword [rsp + 0x48], rbx
mov rsi, rdx
mov byte [rsp + 0x30], cl
mov rdi, qword [rbp + 0x12d0]
mov qword [rbp - 0x48], rdi
mov r15, qword [rbp + 0x12d8]
mov qword [rbp - 0x60], r15
mov r13, qword [rbp + 0x12e0]
mov qword [rbp - 0x40], r13
xor ecx, ecx
test rdx, rdx
jne 0x1400aaa27
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x10], rcx
mov eax, dword [r8 + 0x30]
mov qword [rbp - 8], rax
mov dword [rbp], gethostbyaddr
mov qword [rbp + 8], rcx
mov dword [rbp + 0x18], ecx
mov qword [rbp + 0x10], rcx
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x20], xmm0
lea r9, [rbp - 0x10]
lea r8, [rbp]
lea edx, [rsi + 0x40]
lea rcx, [rbp - 0x50]
call sub.ntdll.dll_NtOpenThread
test eax, eax
jne 0x1400aaa1c
mov rbx, qword [rbp - 0x50]
test rbx, rbx
je 0x1400aaa17
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 8]
lea r8, [rbp - 0x78]
lea edx, [rsi + 9]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rbp - 0x78]
test rsi, rsi
cmove rsi, rdi
lea rcx, [0x14018f210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, 0x104
lea rcx, [rbp + 0x450]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r12, [rbx + 0x40]
mov qword [rsp + 0x50], r12
nop
xor eax, eax
mov r14d, 0xffffffff
mov word [r12], ax
test r15, r15
je 0x1400aacba
mov r15, 0xffffffffffffffff
mov qword [rsp + 0x38], r15
mov rdi, qword [rbp - 0x60]
mov rdi, qword [rdi + 0x60]
mov ebx, eax
cmp dword [rdi], eax
jbe 0x1400aacba
nop dword [rax]
nop dword [rax + rax]
mov eax, ebx
imul rdx, rax, 0x128
add rdx, rdi
mov rcx, qword [rdx + 0x18]
cmp rsi, rcx
jbe 0x1400aaad3
mov eax, dword [rdx + 0x20]
add rax, rcx
cmp rsi, rax
jae 0x1400aaad3
mov qword [rsp + 0x38], rcx
movzx r8d, word [rdx + 0x2e]
add rdx, 0x30
add r8, rdx
lea rdx, [0x1401327c8]
mov rcx, r12
call fcn.1400358d0
mov r14d, ebx
inc ebx
cmp ebx, dword [rdi]
jb 0x1400aaa90
cmp r14d, 0xffffffff
je 0x1400aacb8
cmp byte [rsp + 0x30], 0
je 0x1400ab186
mov eax, r14d
imul r13, rax, 0x128
add r13, rdi
call fcn.140033570
test rax, rax
je 0x1400ab321
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea rdx, [r13 + 0x30]
lea rcx, [rsp + 0x60]
call 0x1400a6270
test al, al
jne 0x1400aab3c
lea rdx, [r13 + 0x30]
lea rcx, [rsp + 0x60]
call fcn.1400a58a0
nop
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call fcn.1400e81d8
mov rcx, qword [rsp + 0x48]
mov qword [rcx + 0x248], rax
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400aab71
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
cmp qword [0x1401940e8], 0
je 0x1400ab186
mov r14, qword [0x140194140]
call fcn.140033570
test rax, rax
je 0x1400ab321
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea rdx, [r13 + 0x30]
lea rcx, [rsp + 0x68]
call 0x1400a6270
test al, al
jne 0x1400aabc7
lea rdx, [r13 + 0x30]
lea rcx, [rsp + 0x68]
call fcn.1400a58a0
nop
lea r8, [rbp + 0x30]
xor edx, edx
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
call r14
mov r14, rax
lea rdx, [rbx - 0x18]
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1400aabf8
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov r15, qword [0x1401940e8]
mov rbx, qword [r13 + 0x18]
call fcn.140033570
test rax, rax
je 0x1400ab321
mov r8, qword [rax]
mov rcx, rax
call qword [r8 + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x70], rax
lea rdx, [r13 + 0x30]
lea rcx, [rsp + 0x70]
call 0x1400a6270
test al, al
jne 0x1400aac45
lea rdx, [r13 + 0x30]
lea rcx, [rsp + 0x70]
call fcn.1400a58a0
nop
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov rbx, qword [rsp + 0x70]
mov r8, rbx
mov rdx, r14
mov r13, qword [rsp + 0x40]
mov rcx, r13
call r15
nop
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400aac88
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
test r14, r14
je 0x1400ab18b
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp + 0x660], 0x58
mov dword [rbp + 0x6b0], 0x1d5
mov r15, qword [rsp + 0x38]
jmp 0x1400ab1ab
xor eax, eax
mov r15, 0xffffffffffffffff
mov qword [rsp + 0x38], r15
mov ebx, eax
cmp dword [r13], 0
jbe 0x1400ab028
nop dword [rax]
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x128
mov rdx, qword [rcx + r13 + 0x18]
cmp rsi, rdx
jbe 0x1400aad37
mov eax, dword [rcx + r13 + 0x20]
add rax, rdx
cmp rsi, rax
jae 0x1400aad37
mov qword [rsp + 0x38], rdx
lea rdi, [rcx + 0x30]
add rdi, r13
mov edx, 0x5c
mov rcx, rdi
call fcn.1400e4340
test rax, rax
je 0x1400aad22
lea rdi, [rax + 1]
mov r8, rdi
lea rdx, [0x1401327c8]
mov rcx, r12
call fcn.1400358d0
mov r14d, ebx
inc ebx
cmp ebx, dword [r13]
jb 0x1400aace0
cmp r14d, 0xffffffff
je 0x1400ab021
xor edi, edi
call fcn.140033570
test rax, rax
je 0x1400ab321
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x70], rax
mov eax, r14d
imul r14, rax, 0x128
add r14, r13
lea rdx, [r14 + 0x30]
lea rcx, [rbp - 0x70]
call fcn.1400a58a0
nop
lea r8d, [rdi + 0xc]
lea rdx, str.SystemRoot_
mov rbx, qword [rbp - 0x70]
mov rcx, rbx
call fcn.1400e8bbc
test eax, eax
sete r12b
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400aadbe
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
test r12b, r12b
je 0x1400aaeab
call fcn.140033570
test rax, rax
je 0x1400ab321
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x68], rax
lea rdx, [r14 + 0x3c]
lea rcx, [rbp - 0x68]
call fcn.1400a58a0
nop
mov rbx, qword [rbp - 0x68]
mov r8, rbx
lea rdx, str.__SystemRoot___s
lea rcx, [rbp + 0x240]
call fcn.1400a5190
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400aae2a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r8d, 0x105
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x240]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r12, qword [rsp + 0x50]
lea rcx, [rbp + 0x30]
call fcn.1400e81d8
mov rcx, qword [rsp + 0x48]
mov qword [rcx + 0x248], rax
mov r10, qword [0x1401940e8]
mov r13, qword [rsp + 0x40]
test r10, r10
je 0x1400aae94
cmp byte [rsp + 0x30], 0
je 0x1400aae94
mov eax, dword [r14 + 0x20]
mov dword [rsp + 0x28], eax
mov rax, qword [r14 + 0x18]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp + 0x30]
mov rdx, rdi
mov rcx, r13
call r10
test rdi, rdi
je 0x1400ab18b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400ab18b
cmp byte [r14 + 0x31], 0x3a
jne 0x1400aaf2f
call fcn.140033570
test rax, rax
je 0x1400ab321
mov r8, qword [rax]
mov rcx, rax
call qword [r8 + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rdx, [r14 + 0x30]
lea rcx, [rsp + 0x78]
call 0x1400a6270
test al, al
jne 0x1400aaef4
lea rdx, [r14 + 0x30]
lea rcx, [rsp + 0x78]
call fcn.1400a58a0
nop
mov rbx, qword [rsp + 0x78]
mov r8, rbx
mov edx, 0x105
lea rcx, [rbp + 0x30]
call fcn.1400e86e4
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400aae41
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x1400aae41
cmp byte [r14 + 0x35], 0x3a
jne 0x1400aaf7e
call fcn.140033570
test rax, rax
je 0x1400ab321
mov r8, qword [rax]
mov rcx, rax
call qword [r8 + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x80], rax
lea rdx, [r14 + 0x34]
lea rcx, [rbp - 0x80]
call 0x1400a6270
test al, al
jne 0x1400aaf75
lea rdx, [r14 + 0x34]
lea rcx, [rbp - 0x80]
call fcn.1400a58a0
nop
mov rbx, qword [rbp - 0x80]
jmp 0x1400aaef9
mov r12, qword [rsp + 0x50]
mov r9, r12
lea r8, [rbp + 0x450]
lea rdx, str._sdrivers_s
lea rcx, [rbp + 0x30]
call fcn.1400a5190
mov rax, qword [0x140194140]
lea r8, [rbp + 0x240]
lea rdx, [rbp + 0x450]
lea rcx, [rbp + 0x30]
call rax
mov rdi, rax
test rax, rax
je 0x1400aafe1
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x240]
call fcn.1400e89f4
test eax, eax
je 0x1400aae46
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9, r12
lea r8, [rbp + 0x450]
lea rdx, str._sdrivers_s
lea rcx, [rbp + 0x240]
call fcn.1400a5190
mov rax, qword [0x140194140]
lea r8, [rbp + 0x30]
lea rdx, [rbp + 0x450]
lea rcx, [rbp + 0x240]
call rax
mov rdi, rax
jmp 0x1400aae46
mov r15, qword [rsp + 0x38]
xor eax, eax
mov dword [rsp + 0x58], eax
mov r13, qword [rsp + 0x40]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetProcessId]
test eax, eax
jle 0x1400ab190
test r13, r13
je 0x1400ab190
lea rdx, [rsp + 0x58]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x1400ab190
cmp dword [rsp + 0x58], 0
sete al
inc al
cmp al, 1
jne 0x1400ab190
cmp qword [0x140194110], 0
je 0x1400ab190
mov byte [rbp - 0x30], 0
mov rdi, qword [rsp + 0x48]
add rdi, 0x248
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x28], rsi
lea rcx, [0x14018f210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, 0x2000
call qword [0x1401940d8]
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [0x1401940a8]
mov rbx, qword [0x140194110]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, eax
lea r8, [rbp - 0x30]
lea rdx, [0x1400a7ce0]
call rbx
mov rcx, r13
call qword [0x1401940d0]
lea rcx, [0x14018f210]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [rbp - 0x30], 1
jne 0x1400ab190
cmp byte [rsp + 0x30], 0
je 0x1400ab158
cmp qword [0x1401940e8], 0
je 0x1400ab158
mov rax, qword [0x140194140]
lea r8, [rbp + 0x240]
xor edx, edx
mov rcx, qword [rdi]
call rax
mov rbx, rax
mov dword [rsp + 0x28], 0
mov rcx, qword [rbp - 0x20]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8, qword [rdi]
mov rdx, rax
mov rcx, r13
call qword [0x1401940e8]
test rbx, rbx
je 0x1400ab158
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rbp - 0x20]
mov edx, 0x5c
mov rcx, qword [rdi]
call fcn.1400e3c28
test rax, rax
lea r8, [rax + 2]
jne 0x1400ab175
mov r8, qword [rdi]
lea rdx, [0x14011f2ac]
mov rcx, r12
call fcn.1400358d0
jmp 0x1400ab190
mov r13, qword [rsp + 0x40]
mov r15, qword [rsp + 0x38]
mov dword [rbp + 0x660], 0x58
mov dword [rbp + 0x6b0], 0x1d5
cmp byte [rsp + 0x30], 0
je 0x1400ab1ce
mov rax, qword [0x1401940c8]
test rax, rax
je 0x1400ab1ce
lea r9, [rbp + 0x660]
lea r8, [rbp - 0x38]
mov rdx, rsi
mov rcx, r13
call rax
test eax, eax
jne 0x1400ab1f7
cmp word [r12], 0
jne 0x1400ab2bd
mov rdi, qword [rbp - 0x48]
cmp rsi, rdi
je 0x1400ab2a5
mov rsi, rdi
mov r13, qword [rbp - 0x40]
mov r15, qword [rbp - 0x60]
jmp 0x1400aaa50
mov eax, dword [rbp + 0x6ac]
mov byte [rbp + rax*2 + 0x6b4], 0
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [r12 + rcx*2], 0
jne 0x1400ab210
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [r12 + rax*2], 0
jne 0x1400ab222
mov rdx, qword [rbp - 0x38]
mov r8, 0xffffffffffffffff
test rdx, rdx
je 0x1400ab276
mov r10d, 0x104
sub r10, rcx
mov rcx, qword [rsp + 0x48]
lea rcx, [rcx + rax*2]
add rcx, 0x40
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x6b4]
mov qword [rsp + 0x20], rax
lea r9, str.__s0x_I64x
mov rdx, r10
call fcn.1400cd5c0
jmp 0x1400ab2ea
mov edx, 0x104
sub rdx, rcx
mov rcx, qword [rsp + 0x48]
lea rcx, [rcx + rax*2]
add rcx, 0x40
lea rax, [rbp + 0x6b4]
mov qword [rsp + 0x20], rax
lea r9, [0x140137a58]
call fcn.1400cd5c0
jmp 0x1400ab2ea
mov r8, rsi
lea rdx, str.0x_p
lea rcx, [rbp + 0xa60]
call fcn.140055830
jmp 0x1400ab2d6
sub esi, r15d
mov r8d, esi
lea rdx, str.0x_x
lea rcx, [rbp + 0xa60]
call fcn.140055830
lea r8, [rbp + 0xa60]
mov edx, 0x104
mov rcx, r12
call fcn.1400f7f64
lea rcx, [0x14018f210]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x1260]
xor rcx, rsp
call fcn.1400e17a0
mov rbx, qword [rsp + 0x13b0]
add rsp, 0x1370
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140032b30
int3