Function at 0x14001f298
Capabilities:
Get common file path
Get comspec environment variable
Get hostname
Get keyboard layout
Get session user name
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x228]
sub rsp, 0x2f0
mov r12, rdx
movaps xmmword [rax - 0x48], xmm6
mov rbx, rcx
xor r15d, r15d
mov edx, 0x104
mov word [rbp - 0x30], r15w
lea rcx, [rsp + 0x30]
mov r14, r8
call fcn.140008390
mov r13, qword [r12]
lea rsi, [0x1400c7d50]
mov edi, r15d
mov rcx, qword [rsi]
mov rdx, r13
call fcn.14002952c
mov r8d, 1
test eax, eax
je 0x14001f312
add edi, r8d
lea rax, [0x1400c8058]
add rsi, 8
cmp rsi, rax
jl 0x14001f2ea
cmp edi, 0x61
je 0x140062ac2
cmp edi, 0x60
ja case.0x14001f334.88
lea rdx, [0x140000000]
movsxd rax, edi
mov ecx, dword [rdx + rax*4 + 0x1f3a8]
add rcx, rdx
jmp rcx
lea rdx, [rbx + 0x190]
mov rcx, r14
call fcn.140006648
lea rcx, [rsp + 0x30]
call fcn.140008b2c
lea r11, [rsp + 0x2f0]
mov eax, r15d
mov rbx, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, [0x1400b65b4]
mov rcx, r14
call fcn.14001f52c
jmp case.0x14001f334.88
lea rdx, [rbx + 0x170]
jmp 0x14001f33d
mov rcx, r14
call fcn.14000fdc0
mov dword [r14], 1
mov dword [r14 + 0x10], 1
jmp case.0x14001f334.88
lea rdx, [0x1400de038]
lea rcx, [rbp - 0x58]
call fcn.14000d5e4
mov rdx, r12
lea rcx, [rbp - 0x58]
call fcn.1400066b4
xor r9d, r9d
mov dword [rbp + 0x248], r15d
lea r8, [rbp + 0x248]
lea rdx, [rbp - 0x58]
call fcn.140021f74
test rax, rax
jne 0x140062b03
or r15d, 0xffffffff
jmp 0x140062b0e
mov rdx, rax
mov rcx, r14
call fcn.14000d804
lea rcx, [rbp - 0x58]
jmp 0x140062c26
lea rdx, [0x1400de094]
jmp 0x14001f379
lea rdx, [0x1400c53c8]
jmp 0x14001f379
lea rdx, reloc.WSOCK32.dll_htons
jmp 0x14001f379
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rbx
call fcn.140003594
mov ebx, dword [rax + 0x1c]
jmp 0x140062b59
mov ebx, dword [rbx + 0x244]
mov rcx, r14
call fcn.14000fdc0
mov dword [r14], ebx
jmp 0x14001f39b
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rbx
call fcn.140003594
mov rcx, r14
lea rdx, [rax + 0x28]
call fcn.14000d804
nop
jmp case.0x14001f334.88
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx r8d, word [rsp + 0x5e]
lea rdx, [0x1400de0a0]
jmp 0x140062bb2
mov r8d, r15d
lea rdx, [0x1400dd320]
lea rcx, [rbp - 0x30]
call fcn.1400247a4
jmp 0x140062bd8
lea rdx, [rbp + 0x238]
mov dword [rbp + 0x238], 0x104
lea rcx, [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rdx, [rbp - 0x30]
jmp 0x14001f379
lea rcx, [rbp + 0x248]
call fcn.14009afc4
lea r8, [0x1400de0ac]
jmp 0x140062c09
lea rcx, [rbp + 0x248]
call fcn.14009afc4
lea r8, [0x1400de0d4]
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.14009aefc
mov rdx, rax
mov rcx, r14
call fcn.140006648
lea rcx, [rsp + 0x50]
call fcn.140008b2c
nop
jmp case.0x14001f334.88
lea rcx, [rbp + 0x248]
call fcn.14009afc4
lea r8, [0x1400de0b4]
jmp 0x140062c09
lea rcx, [rbp + 0x248]
call fcn.14009afc4
lea r8, [0x1400de0bc]
jmp 0x140062c09
lea rcx, [rbp + 0x248]
call fcn.14009afc4
lea r8, [0x1400dd320]
jmp 0x140062c09
lea rcx, [rbp + 0x248]
call fcn.14009afc4
lea r8, [0x1400de0c4]
jmp 0x140062c09
lea rcx, [rbp + 0x248]
call fcn.14009afc4
lea r8, [0x1400de0cc]
jmp 0x140062c09
lea rcx, [rbp + 0x248]
call fcn.14009afc4
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14009af74
test rax, rax
je 0x140062ba8
mov r8d, dword [rax + 0x18]
inc r8d
jmp 0x140062bab
mov ecx, reloc.OLEAUT32.dll_SafeArrayDestroyData
jmp 0x140062cd7
mov ecx, 7
lea rdx, [rsp + 0x30]
call fcn.14007ca88
jmp 0x140062ced
lea rcx, [rsp + 0x30]
call fcn.140004118
lea rdx, [rsp + 0x30]
jmp 0x14001f33d
mov ecx, 0x2b
jmp 0x140062cd7
mov ecx, 5
jmp 0x140062cd7
mov ecx, SafeArrayRedim
jmp 0x140062cd7
mov ecx, 0x19
jmp 0x140062cd7
mov ecx, 0x2e
jmp 0x140062cd7
mov ecx, reloc.OLEAUT32.dll_CreateStdDispatch
jmp 0x140062cd7
mov ecx, reloc.WSOCK32.dll_socket
jmp 0x140062cd7
mov ecx, socket
jmp 0x140062cd7
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
jmp 0x140062cd7
mov ecx, RegisterActiveObject
jmp 0x140062cd7
mov ecx, 0x1a
jmp 0x140062cd7
mov ecx, reloc.WSOCK32.dll_recv
jmp 0x140062cd7
mov ecx, 6
jmp 0x140062cd7
mov ecx, 2
jmp 0x140062cd7
mov ecx, reloc.WSOCK32.dll_inet_ntoa
jmp 0x140062cd7
lea rdx, [rbp + 0x238]
mov dword [rbp + 0x238], 0x104
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
jmp 0x140062bd8
mov edx, 0x104
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je case.0x14001f334.88
jmp 0x140062bd8
cmp byte [0x1400f046e], r15b
je 0x140062de3
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
call fcn.14009ae14
mov edx, 0x104
lea rcx, [rbp - 0x30]
call rax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140062bd8
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140062bd8
mov edx, 0x104
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x140062bd8
mov rcx, r14
call fcn.14000fdc0
mov dword [r14], r15d
jmp 0x14001f39b
mov rcx, r14
call fcn.14000fdc0
mov dword [r14], 6
jmp 0x14001f39b
mov rcx, r14
call fcn.14000fdc0
mov dword [r14], 9
jmp 0x14001f39b
mov rcx, r14
call fcn.14000fdc0
mov dword [r14], 5
jmp 0x14001f39b
mov rcx, r14
call fcn.14000fdc0
mov dword [r14], 0xa
jmp 0x14001f39b
mov rcx, r14
call fcn.14000fdc0
mov dword [r14], 3
jmp 0x14001f39b
mov rcx, r14
call fcn.14000fdc0
mov dword [r14], 2
jmp 0x14001f39b
mov rcx, r14
call fcn.14000fdc0
mov dword [r14], 7
jmp 0x14001f39b
mov rcx, r14
call fcn.14000fdc0
mov dword [r14], 8
jmp 0x14001f39b
mov rcx, r14
call fcn.14000fdc0
mov dword [r14], 4
jmp 0x14001f39b
cmp byte [0x1400f03bc], r8b
jmp 0x140062ecb
cmp byte [0x1400f0e6d], r8b
mov ebx, r15d
sete bl
jmp 0x140062ee5
mov eax, dword [0x1400f04c0]
mov ebx, r15d
add eax, 0xfffffffd
cmp eax, r8d
setbe bl
mov rcx, r14
call fcn.14000fdc0
mov dword [r14 + 0x10], 1
mov dword [r14], ebx
jmp case.0x14001f334.88
mov rcx, r14
call fcn.14000fdc0
mov dword [r14], 0x40
jmp 0x14001f39b
mov rcx, r14
call fcn.14000fdc0
mov dword [r14], 0x41
jmp 0x14001f39b
mov rcx, r14
call fcn.14000fdc0
mov dword [r14], 0x42
jmp 0x14001f39b
mov rcx, r14
call fcn.14000fdc0
mov dword [r14], 0x43
jmp 0x14001f39b
lea rdx, [rbx + 0x150]
jmp 0x14001f33d
mov edx, dword [rbx + 0x1c4]
call fcn.140077728
mov ebx, eax
jmp 0x140062b59
lea rdx, [rbp - 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x140062bd8
movzx eax, word [0x1400f0470]
test eax, eax
je 0x140062fb5
cmp eax, 6
je 0x140062fa9
cmp eax, 9
lea rdx, [0x1400ddab8]
lea rcx, [0x1400de0f8]
cmove rdx, rcx
jmp 0x14001f379
lea rdx, [0x1400de0e8]
jmp 0x14001f379
lea rdx, [0x1400de0e0]
jmp 0x14001f379
xor ecx, ecx
mov eax, 0x80000001
cpuid
bt edx, 0x1d
lea rcx, [0x1400de0f8]
lea rdx, [0x1400de0e0]
cmovae rcx, rdx
mov rdx, rcx
jmp 0x14001f379
lea rdx, [0x1400de100]
jmp 0x14001f379
cmp byte [0x1400f0466], r8b
jne 0x140063009
lea rdx, [0x1400de118]
jmp 0x14001f379
cmp byte [0x1400f0464], r8b
jne 0x14006301e
lea rdx, [0x1400de128]
jmp 0x14001f379
cmp byte [0x1400f046c], r8b
jne 0x140063033
lea rdx, [0x1400de138]
jmp 0x14001f379
cmp byte [0x1400f046a], r8b
jne 0x140063048
lea rdx, [0x1400de150]
jmp 0x14001f379
cmp byte [0x1400f0468], r8b
jne 0x14006305d
lea rdx, [0x1400de168]
jmp 0x14001f379
cmp byte [0x1400f0460], r8b
jne 0x140063072
lea rdx, [0x1400de180]
jmp 0x14001f379
cmp byte [0x1400f0462], r8b
jne 0x140063087
lea rdx, [0x1400de190]
jmp 0x14001f379
cmp byte [0x1400f045e], r8b
jne 0x14006309c
lea rdx, [0x1400de1a8]
jmp 0x14001f379
cmp byte [0x1400f045c], r8b
jne 0x1400630b1
lea rdx, [0x1400de1c0]
jmp 0x14001f379
cmp byte [0x1400f045a], r8b
jne 0x1400630c6
lea rdx, [0x1400de1d0]
jmp 0x14001f379
cmp byte [0x1400f0458], r8b
jne 0x1400630db
lea rdx, [0x1400de1e8]
jmp 0x14001f379
cmp byte [0x1400f0456], r8b
jne 0x1400630f0
lea rdx, [0x1400de1f8]
jmp 0x14001f379
cmp byte [0x1400f0454], r8b
jne 0x140063105
lea rdx, [0x1400de210]
jmp 0x14001f379
cmp byte [0x1400f0452], r8b
jne 0x14006311a
lea rdx, [0x1400de228]
jmp 0x14001f379
cmp byte [0x1400f0450], r8b
jne 0x140063141
cmp byte [0x1400f0472], r15b
lea rdx, [0x1400de240]
lea rax, [0x1400de250]
cmove rdx, rax
jmp 0x14001f379
lea rdx, [0x1400ddab8]
jmp 0x14001f379
mov ebx, dword [0x1400f0428]
jmp 0x140062b59
lea rdx, [0x1400f0430]
jmp 0x14001f33d
lea rax, [rbp - 0x30]
mov r9d, 0x104
lea r8, [0x1400de260]
mov qword [rsp + 0x20], rax
lea rdx, [0x1400de280]
mov rcx, 0xffffffff80000002
call fcn.1400059f0
jmp 0x140062bd8
lea rax, [rbp - 0x30]
mov r9d, 0x104
lea r8, [0x1400de2e0]
mov qword [rsp + 0x20], rax
lea rdx, [0x1400de300]
mov rcx, 0xffffffff80000001
call fcn.1400059f0
movzx ecx, word [rbp - 0x30]
lea rdx, [rbp - 0x30]
mov r8d, 4
mov dword [rbp + 0x238], ecx
call fcn.14000d674
jmp 0x140062bd8
lea rcx, [rbp - 0x58]
call qword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
lea rdx, [rbp - 0x58]
jmp 0x14001f379
lea rcx, [rbp - 0x30]
call fcn.14009ae64
jmp 0x140062bd8
mov ecx, r8d
jmp 0x140063204
mov ecx, 4
lea rdx, [rbp - 0x78]
call fcn.14007c988
lea rdx, [rbp - 0x78]
jmp 0x14001f379
mov ecx, 2
jmp 0x140063204
mov ecx, 3
jmp 0x140063204
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
lea rdx, [rsp + 0x78]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [rbp - 0x80]
jmp 0x140062b59
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
lea rdx, [rsp + 0x78]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [rbp - 0x7c]
jmp 0x140062b59
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.USER32.dll_GetDC]
mov edx, reloc.WSOCK32.dll_ioctlsocket
jmp 0x14006328c
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.USER32.dll_GetDC]
mov edx, reloc.WSOCK32.dll_WSACleanup
mov rcx, rax
mov rdi, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov rcx, r14
mov ebx, eax
call fcn.14000fdc0
mov rdx, rdi
mov dword [r14 + 0x10], 1
mov rcx, rsi
mov dword [r14], ebx
call qword [sym.imp.USER32.dll_ReleaseDC]
nop
jmp case.0x14001f334.88
lea rcx, [0x1400d98a8]
jmp 0x1400632cf
lea rcx, [0x1400de368]
lea rdx, [rbp - 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x140062bd8
lea rdx, [rbp - 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, [rbp - 0x30]
call fcn.1400238c4
jmp 0x140062bd8
lea rcx, [0x1400de338]
jmp 0x1400632cf
lea rcx, [0x1400d9900]
jmp 0x1400632cf
lea rcx, [0x1400d9918]
jmp 0x1400632cf
lea rcx, [0x1400d9930]
jmp 0x1400632cf
lea rcx, [0x1400d9948]
jmp 0x1400632cf
lea rcx, [0x1400de350]
jmp 0x1400632cf
lea rdx, [rbx + 0x248]
jmp 0x14001f33d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
xorps xmm6, xmm6
mov rcx, r14
cvtsi2sd xmm6, rax
call fcn.14000fdc0
mov dword [r14 + 0x10], 3
movsd qword [r14], xmm6
jmp case.0x14001f334.88