Function at 0x140008796
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
push r15
mov rax, reloc.WS2_32.dll_inet_addr
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x1400087a9
sub rsp, 0x28
call fcn.140045540
mov rcx, qword [rsp + 0xb0]
call fcn.140024608
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.1400455b0
add rsp, 0x10
push rcx
sub rsp, 0x28
call fcn.140045290
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140045290
add rsp, 0x28
pop rcx
push rax
push 0x1f4
pop rcx
pop rdx
sub rsp, 0x20
call fcn.140041ff0
add rsp, 0x28
lea rcx, [rsp + 0x38]
pop rdx
call main
push 0x1f4
mov rax, qword [rsp + 0x38]
mov rax, rax
push rax
movabs rax, str.WINDIR
push rax
pop rcx
pop rdx
pop r8
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov r15, qword [rsp + 0x98]
and r15, r15
jle 0x140008989
push rcx
sub rsp, 0x28
call fcn.140045290
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push 0x2e
mov rcx, qword [rsp + 0x48]
push rcx
sub rsp, 0x20
call fcn.140045290
add rsp, 0x20
pop rcx
push rax
sub rsp, 0x20
call fcn.1400452e0
add rsp, 0x20
movabs rcx, str.System32
sub rsp, 0x20
call fcn.1400452e0
add rsp, 0x20
call fcn.140045680
push rcx
sub rsp, 0x28
call fcn.140045290
add rsp, 0x28
pop rcx
push rax
movabs rcx, str.__c_wmic
sub rsp, 0x28
call fcn.1400452e0
add rsp, 0x28
mov rcx, qword [rsp + 0x50]
sub rsp, 0x28
call fcn.1400452e0
add rsp, 0x28
call fcn.140045680
mov rcx, qword [0x140503924]
push rcx
sub rsp, 0x20
call fcn.140045290
add rsp, 0x20
pop rcx
push rax
sub rsp, 0x20
call fcn.1400452e0
add rsp, 0x20
movabs rcx, 0x1400ac89e
sub rsp, 0x20
call fcn.1400452e0
add rsp, 0x20
push rax
call fcn.1400454c0
mov rdx, rax
pop rax
add qword [rsp], rdx
push rax
call fcn.1400454c0
mov rdx, rax
pop rax
add qword [rsp + 8], rdx
push rax
call fcn.1400454c0
mov rdx, rax
pop rax
add qword [rsp + 0x10], rdx
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1400271dc
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140024608
add rsp, 0x28
pop rax
mov qword [rsp + 0x38], rax
jmp 0x140008ac4
push rcx
sub rsp, 0x28
call fcn.140045290
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push 0x2e
mov rcx, qword [rsp + 0x48]
push rcx
sub rsp, 0x20
call fcn.140045290
add rsp, 0x20
pop rcx
push rax
sub rsp, 0x20
call fcn.1400452e0
add rsp, 0x20
movabs rcx, str.System32
sub rsp, 0x20
call fcn.1400452e0
add rsp, 0x20
call fcn.140045680
push rcx
sub rsp, 0x28
call fcn.140045290
add rsp, 0x28
pop rcx
push rax
movabs rcx, str.__c_wmic
sub rsp, 0x28
call fcn.1400452e0
add rsp, 0x28
mov rcx, qword [rsp + 0x50]
sub rsp, 0x28
call fcn.1400452e0
add rsp, 0x28
movabs rcx, str.__FORMAT:List
sub rsp, 0x28
call fcn.1400452e0
add rsp, 0x28
call fcn.140045680
mov rcx, qword [0x140503924]
push rcx
sub rsp, 0x20
call fcn.140045290
add rsp, 0x20
pop rcx
push rax
sub rsp, 0x20
call fcn.1400452e0
add rsp, 0x20
movabs rcx, 0x1400ac89e
sub rsp, 0x20
call fcn.1400452e0
add rsp, 0x20
push rax
call fcn.1400454c0
mov rdx, rax
pop rax
add qword [rsp], rdx
push rax
call fcn.1400454c0
mov rdx, rax
pop rax
add qword [rsp + 8], rdx
push rax
call fcn.1400454c0
mov rdx, rax
pop rax
add qword [rsp + 0x10], rdx
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1400271dc
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140024608
add rsp, 0x28
pop rax
mov qword [rsp + 0x38], rax
movabs rdx, 0x1400a8028
lea rcx, [rsp + 0x40]
call fcn.1400451a0
cmp qword [rsp + 0x38], 0
je 0x140008ee9
push 0x9c40
pop rcx
call fcn.1400439b0
mov qword [rsp + 0x48], rax
push qword [rsp + 0x38]
pop rcx
call fcn.14002775c
and rax, rax
je 0x140008eb3
push qword [rsp + 0x38]
pop rcx
call fcn.1400277c4
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140008e79
push qword [rsp + 0x50]
push qword [rsp + 0x50]
push qword [rsp + 0x48]
pop rcx
pop rdx
pop r8
call fcn.1400277fc
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140008e79
push rcx
sub rsp, 0x28
call fcn.140045290
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140045290
add rsp, 0x28
pop rcx
push rax
push SafeArrayPutElement
push qword [rsp + 0x70]
push qword [rsp + 0x70]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.140043c40
add rsp, 0x28
lea rcx, [rsp + 0x60]
pop rdx
call main
push qword [rsp + 0x58]
pop rcx
call fcn.140042720
mov r15, rax
add r15, 4
mov rax, r15
push rax
pop rcx
call fcn.1400439b0
mov qword [rsp + 0x60], rax
push qword [rsp + 0x58]
pop rcx
call fcn.140042720
mov r15, rax
add r15, 4
mov rax, r15
push rax
pop rcx
call fcn.1400439b0
mov qword [rsp + 0x68], rax
push SafeArrayPutElement
push 0xffffffffffffffff
push qword [rsp + 0x68]
push qword [rsp + 0x78]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140043a00
push qword [rsp + 0x68]
push qword [rsp + 0x68]
pop rcx
pop rdx
call sub.USER32.dll_OemToCharW
mov qword [rsp + 0x70], 0
jmp 0x140008c0e
push qword [rsp + 0x58]
pop rcx
call fcn.140042720
mov r15, rax
add r15, 4
cmp r15, qword [rsp + 0x70]
jl 0x140008dca
mov r15, qword [rsp + 0x68]
add r15, qword [rsp + 0x70]
mov rax, r15
push rax
pop rcx
call fcn.140043b90
mov r15, rax
cmp r15, 0x6a
jne 0x140008c70
mov r15, qword [rsp + 0x68]
add r15, qword [rsp + 0x70]
inc r15
mov rax, r15
push rax
pop rcx
call fcn.140043b90
mov r15, rax
cmp r15, 0x26
jne 0x140008c70
mov rax, 1
jmp 0x140008c73
xor rax, rax
and rax, rax
je 0x140008caf
push recvfrom
mov r15, qword [rsp + 0x70]
add r15, qword [rsp + 0x78]
mov rax, r15
push rax
pop rcx
pop rdx
call fcn.140043ba0
push 0
mov r15, qword [rsp + 0x70]
add r15, qword [rsp + 0x78]
inc r15
mov rax, r15
push rax
pop rcx
pop rdx
call fcn.140043ba0
mov r15, qword [rsp + 0x68]
add r15, qword [rsp + 0x70]
mov rax, r15
push rax
pop rcx
call fcn.140043b90
mov r15, rax
cmp r15, 0xd9
jne 0x140008cf8
mov r15, qword [rsp + 0x68]
add r15, qword [rsp + 0x70]
inc r15
mov rax, r15
push rax
pop rcx
call fcn.140043b90
mov r15, rax
cmp r15, 0x25
jne 0x140008cf8
mov rax, 1
jmp 0x140008cfb
xor rax, rax
and rax, rax
je 0x140008d37
push reloc.WS2_32.dll_ioctlsocket
mov r15, qword [rsp + 0x70]
add r15, qword [rsp + 0x78]
mov rax, r15
push rax
pop rcx
pop rdx
call fcn.140043ba0
push 0
mov r15, qword [rsp + 0x70]
add r15, qword [rsp + 0x78]
inc r15
mov rax, r15
push rax
pop rcx
pop rdx
call fcn.140043ba0
mov r15, qword [rsp + 0x68]
add r15, qword [rsp + 0x70]
mov rax, r15
push rax
pop rcx
call fcn.140043b90
mov r15, rax
cmp r15, 0xcb
jne 0x140008d80
mov r15, qword [rsp + 0x68]
add r15, qword [rsp + 0x70]
inc r15
mov rax, r15
push rax
pop rcx
call fcn.140043b90
mov r15, rax
cmp r15, 0x25
jne 0x140008d80
mov rax, 1
jmp 0x140008d83
xor rax, rax
and rax, rax
je 0x140008dbf
push 9
mov r15, qword [rsp + 0x70]
add r15, qword [rsp + 0x78]
mov rax, r15
push rax
pop rcx
pop rdx
call fcn.140043ba0
push 0
mov r15, qword [rsp + 0x70]
add r15, qword [rsp + 0x78]
inc r15
mov rax, r15
push rax
pop rcx
pop rdx
call fcn.140043ba0
inc qword [rsp + 0x70]
jno 0x140008c0e
push rcx
sub rsp, 0x28
call fcn.140045290
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140045290
add rsp, 0x28
pop rcx
push rax
push qword [rsp + 0x80]
pop rcx
pop rdx
sub rsp, 0x20
call fcn.140043bb0
add rsp, 0x28
lea rcx, [rsp + 0x60]
pop rdx
call main
push qword [rsp + 0x60]
pop rcx
call fcn.140043c20
push qword [rsp + 0x68]
pop rcx
call fcn.140043c20
mov rcx, qword [rsp + 0x40]
push rcx
sub rsp, 0x28
call fcn.140045290
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.1400452e0
add rsp, 0x28
mov rcx, qword [rsp + 0x60]
sub rsp, 0x28
call fcn.1400452e0
add rsp, 0x28
movabs rcx, 0x1400ad3aa
sub rsp, 0x28
call fcn.1400452e0
add rsp, 0x28
lea rcx, [rsp + 0x48]
pop rdx
call main
push qword [0x1405038dc]
pop rcx
call fcn.1400322c4
and rax, rax
je 0x140008eae
call fcn.140031de0
and rax, rax
je 0x140008e96
jmp 0x140008e8a
call fcn.140031de0
and rax, rax
je 0x140008ea2
jmp 0x140008e96
call fcn.140031de0
and rax, rax
je 0x140008eae
jmp 0x140008ea2
jmp 0x140008af4
push qword [rsp + 0x48]
pop rcx
call fcn.140043c20
push qword [rsp + 0x38]
pop rcx
call fcn.14002787c
and rax, rax
je 0x140008ee9
push qword [rsp + 0x38]
pop rcx
call fcn.1400278cc
mov rax, rax
push rax
pop rax
mov dword [rsp + 0x78], eax
push qword [rsp + 0x38]
pop rcx
call fcn.1400278f0
mov r15, qword [rsp + 0x98]
and r15, r15
jle 0x140008f47
push rcx
sub rsp, 0x28
call fcn.140045290
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140045290
add rsp, 0x28
pop rcx
push rax
movsxd rax, dword [rsp + 0x90]
push rax
pop rcx
pop rdx
sub rsp, 0x20
call fcn.140042750
add rsp, 0x28
pop rax
push rax
call fcn.140045490
pop rdx
add rax, rdx
jmp 0x1400090ff
push rcx
sub rsp, 0x28
call fcn.140045290
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140045290
add rsp, 0x28
pop rcx
push rax
movabs rax, 0x1400a8186
push rax
push qword [rsp + 0x60]
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.140042af0
add rsp, 0x28
lea rcx, [rsp + 0x48]
pop rdx
call main
push rcx
sub rsp, 0x28
call fcn.140045290
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140045290
add rsp, 0x28
pop rcx
push rax
movabs rax, reloc.WS2_32.dll_ioctlsocket
push rax
movabs rax, reloc.WS2_32.dll_ioctlsocket
push rax
push qword [rsp + 0x68]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.140042db0
add rsp, 0x28
lea rcx, [rsp + 0x48]
pop rdx
call main
movabs rax, reloc.WS2_32.dll_ioctlsocket
push rax
push qword [rsp + 0x48]
pop rcx
pop rdx
call fcn.140042050
mov r15, rax
and r15, r15
jne 0x140008f96
push rcx
sub rsp, 0x28
call fcn.140045290
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140045290
add rsp, 0x28
pop rcx
push rax
push 1
push qword [rsp + 0x60]
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.1400431d0
add rsp, 0x28
call fcn.140045680
movabs rcx, reloc.WS2_32.dll_ioctlsocket
pop rdx
push rcx
mov rcx, rdx
sub rsp, 0x20
call fcn.1400456b0
add rsp, 0x20
pop rcx
mov rdx, rax
call fcn.140045430
or rax, rax
je 0x1400090c6
push rcx
sub rsp, 0x28
call fcn.140045290
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140045290
add rsp, 0x28
pop rcx
push rax
push 2
push qword [rsp + 0x60]
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.1400421e0
add rsp, 0x28
lea rcx, [rsp + 0x48]
pop rdx
call main
mov rcx, qword [rsp + 0x40]
push rcx
sub rsp, 0x28
call fcn.140045290
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.1400452e0
add rsp, 0x28
pop rax
push rax
call fcn.140045490
pop rdx
add rax, rdx
jmp 0x1400090ff
push rax
mov rcx, qword [rsp + 0x48]
sub rsp, 0x28
call fcn.140045650
add rsp, 0x28
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140045650
add rsp, 0x28
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.140045650
add rsp, 0x28
mov rcx, qword [rsp + 0x60]
sub rsp, 0x28
call fcn.140045650
add rsp, 0x28
pop rax
add rsp, 0x80
pop r15
ret