Function at 0x140008831
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 0x140008844
sub rsp, 0x28
call fcn.1400447e0
mov rcx, qword [rsp + 0xb0]
call fcn.140023dc8
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.140044850
add rsp, 0x10
push rcx
sub rsp, 0x28
call fcn.140044530
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140044530
add rsp, 0x28
pop rcx
push rax
push 0x1f4
pop rcx
pop rdx
sub rsp, 0x20
call fcn.140041000
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 0x140008a24
push rcx
sub rsp, 0x28
call fcn.140044530
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push 0x2e
mov rcx, qword [rsp + 0x48]
push rcx
sub rsp, 0x20
call fcn.140044530
add rsp, 0x20
pop rcx
push rax
sub rsp, 0x20
call fcn.140044580
add rsp, 0x20
movabs rcx, str.System32
sub rsp, 0x20
call fcn.140044580
add rsp, 0x20
call fcn.140044920
push rcx
sub rsp, 0x28
call fcn.140044530
add rsp, 0x28
pop rcx
push rax
movabs rcx, str.__c_wmic
sub rsp, 0x28
call fcn.140044580
add rsp, 0x28
mov rcx, qword [rsp + 0x50]
sub rsp, 0x28
call fcn.140044580
add rsp, 0x28
call fcn.140044920
mov rcx, qword [0x140189534]
push rcx
sub rsp, 0x20
call fcn.140044530
add rsp, 0x20
pop rcx
push rax
sub rsp, 0x20
call fcn.140044580
add rsp, 0x20
movabs rcx, 0x1400ab84a
sub rsp, 0x20
call fcn.140044580
add rsp, 0x20
push rax
call fcn.140044760
mov rdx, rax
pop rax
add qword [rsp], rdx
push rax
call fcn.140044760
mov rdx, rax
pop rax
add qword [rsp + 8], rdx
push rax
call fcn.140044760
mov rdx, rax
pop rax
add qword [rsp + 0x10], rdx
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1400261e8
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140023dc8
add rsp, 0x28
pop rax
mov qword [rsp + 0x38], rax
jmp 0x140008b5f
push rcx
sub rsp, 0x28
call fcn.140044530
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push 0x2e
mov rcx, qword [rsp + 0x48]
push rcx
sub rsp, 0x20
call fcn.140044530
add rsp, 0x20
pop rcx
push rax
sub rsp, 0x20
call fcn.140044580
add rsp, 0x20
movabs rcx, str.System32
sub rsp, 0x20
call fcn.140044580
add rsp, 0x20
call fcn.140044920
push rcx
sub rsp, 0x28
call fcn.140044530
add rsp, 0x28
pop rcx
push rax
movabs rcx, str.__c_wmic
sub rsp, 0x28
call fcn.140044580
add rsp, 0x28
mov rcx, qword [rsp + 0x50]
sub rsp, 0x28
call fcn.140044580
add rsp, 0x28
movabs rcx, str.__FORMAT:List
sub rsp, 0x28
call fcn.140044580
add rsp, 0x28
call fcn.140044920
mov rcx, qword [0x140189534]
push rcx
sub rsp, 0x20
call fcn.140044530
add rsp, 0x20
pop rcx
push rax
sub rsp, 0x20
call fcn.140044580
add rsp, 0x20
movabs rcx, 0x1400ab84a
sub rsp, 0x20
call fcn.140044580
add rsp, 0x20
push rax
call fcn.140044760
mov rdx, rax
pop rax
add qword [rsp], rdx
push rax
call fcn.140044760
mov rdx, rax
pop rax
add qword [rsp + 8], rdx
push rax
call fcn.140044760
mov rdx, rax
pop rax
add qword [rsp + 0x10], rdx
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1400261e8
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140023dc8
add rsp, 0x28
pop rax
mov qword [rsp + 0x38], rax
movabs rdx, 0x1400a7028
lea rcx, [rsp + 0x40]
call fcn.140044440
cmp qword [rsp + 0x38], 0
je 0x140008f84
push 0x9c40
pop rcx
call fcn.140042b60
mov qword [rsp + 0x48], rax
push qword [rsp + 0x38]
pop rcx
call fcn.140026768
and rax, rax
je 0x140008f4e
push qword [rsp + 0x38]
pop rcx
call fcn.1400267d0
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140008f14
push qword [rsp + 0x50]
push qword [rsp + 0x50]
push qword [rsp + 0x48]
pop rcx
pop rdx
pop r8
call fcn.140026808
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140008f14
push rcx
sub rsp, 0x28
call fcn.140044530
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140044530
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.140042df0
add rsp, 0x28
lea rcx, [rsp + 0x60]
pop rdx
call main
push qword [rsp + 0x58]
pop rcx
call fcn.140041700
mov r15, rax
add r15, 4
mov rax, r15
push rax
pop rcx
call fcn.140042b60
mov qword [rsp + 0x60], rax
push qword [rsp + 0x58]
pop rcx
call fcn.140041700
mov r15, rax
add r15, 4
mov rax, r15
push rax
pop rcx
call fcn.140042b60
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.140042bb0
push qword [rsp + 0x68]
push qword [rsp + 0x68]
pop rcx
pop rdx
call sub.USER32.dll_OemToCharW
mov qword [rsp + 0x70], 0
jmp 0x140008ca9
push qword [rsp + 0x58]
pop rcx
call fcn.140041700
mov r15, rax
add r15, 4
cmp r15, qword [rsp + 0x70]
jl 0x140008e65
mov r15, qword [rsp + 0x68]
add r15, qword [rsp + 0x70]
mov rax, r15
push rax
pop rcx
call fcn.140042d40
mov r15, rax
cmp r15, 0x6a
jne 0x140008d0b
mov r15, qword [rsp + 0x68]
add r15, qword [rsp + 0x70]
inc r15
mov rax, r15
push rax
pop rcx
call fcn.140042d40
mov r15, rax
cmp r15, 0x26
jne 0x140008d0b
mov rax, 1
jmp 0x140008d0e
xor rax, rax
and rax, rax
je 0x140008d4a
push recvfrom
mov r15, qword [rsp + 0x70]
add r15, qword [rsp + 0x78]
mov rax, r15
push rax
pop rcx
pop rdx
call fcn.140042d50
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.140042d50
mov r15, qword [rsp + 0x68]
add r15, qword [rsp + 0x70]
mov rax, r15
push rax
pop rcx
call fcn.140042d40
mov r15, rax
cmp r15, 0xd9
jne 0x140008d93
mov r15, qword [rsp + 0x68]
add r15, qword [rsp + 0x70]
inc r15
mov rax, r15
push rax
pop rcx
call fcn.140042d40
mov r15, rax
cmp r15, 0x25
jne 0x140008d93
mov rax, 1
jmp 0x140008d96
xor rax, rax
and rax, rax
je 0x140008dd2
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.140042d50
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.140042d50
mov r15, qword [rsp + 0x68]
add r15, qword [rsp + 0x70]
mov rax, r15
push rax
pop rcx
call fcn.140042d40
mov r15, rax
cmp r15, 0xcb
jne 0x140008e1b
mov r15, qword [rsp + 0x68]
add r15, qword [rsp + 0x70]
inc r15
mov rax, r15
push rax
pop rcx
call fcn.140042d40
mov r15, rax
cmp r15, 0x25
jne 0x140008e1b
mov rax, 1
jmp 0x140008e1e
xor rax, rax
and rax, rax
je 0x140008e5a
push 9
mov r15, qword [rsp + 0x70]
add r15, qword [rsp + 0x78]
mov rax, r15
push rax
pop rcx
pop rdx
call fcn.140042d50
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.140042d50
inc qword [rsp + 0x70]
jno 0x140008ca9
push rcx
sub rsp, 0x28
call fcn.140044530
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140044530
add rsp, 0x28
pop rcx
push rax
push qword [rsp + 0x80]
pop rcx
pop rdx
sub rsp, 0x20
call fcn.140042d60
add rsp, 0x28
lea rcx, [rsp + 0x60]
pop rdx
call main
push qword [rsp + 0x60]
pop rcx
call fcn.140042dd0
push qword [rsp + 0x68]
pop rcx
call fcn.140042dd0
mov rcx, qword [rsp + 0x40]
push rcx
sub rsp, 0x28
call fcn.140044530
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140044580
add rsp, 0x28
mov rcx, qword [rsp + 0x60]
sub rsp, 0x28
call fcn.140044580
add rsp, 0x28
movabs rcx, 0x1400ac33a
sub rsp, 0x28
call fcn.140044580
add rsp, 0x28
lea rcx, [rsp + 0x48]
pop rdx
call main
push qword [0x1401894ec]
pop rcx
call fcn.1400312d4
and rax, rax
je 0x140008f49
call fcn.140030df0
and rax, rax
je 0x140008f31
jmp 0x140008f25
call fcn.140030df0
and rax, rax
je 0x140008f3d
jmp 0x140008f31
call fcn.140030df0
and rax, rax
je 0x140008f49
jmp 0x140008f3d
jmp 0x140008b8f
push qword [rsp + 0x48]
pop rcx
call fcn.140042dd0
push qword [rsp + 0x38]
pop rcx
call fcn.140026888
and rax, rax
je 0x140008f84
push qword [rsp + 0x38]
pop rcx
call fcn.1400268d8
mov rax, rax
push rax
pop rax
mov dword [rsp + 0x78], eax
push qword [rsp + 0x38]
pop rcx
call fcn.1400268fc
mov r15, qword [rsp + 0x98]
and r15, r15
jle 0x140008fe2
push rcx
sub rsp, 0x28
call fcn.140044530
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140044530
add rsp, 0x28
pop rcx
push rax
movsxd rax, dword [rsp + 0x90]
push rax
pop rcx
pop rdx
sub rsp, 0x20
call fcn.140041060
add rsp, 0x28
pop rax
push rax
call fcn.140044730
pop rdx
add rax, rdx
jmp 0x14000919a
push rcx
sub rsp, 0x28
call fcn.140044530
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140044530
add rsp, 0x28
pop rcx
push rax
movabs rax, 0x1400a7186
push rax
push qword [rsp + 0x60]
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.140041a70
add rsp, 0x28
lea rcx, [rsp + 0x48]
pop rdx
call main
push rcx
sub rsp, 0x28
call fcn.140044530
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140044530
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.140041d30
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.1400410c0
mov r15, rax
and r15, r15
jne 0x140009031
push rcx
sub rsp, 0x28
call fcn.140044530
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140044530
add rsp, 0x28
pop rcx
push rax
push 1
push qword [rsp + 0x60]
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.140042150
add rsp, 0x28
call fcn.140044920
movabs rcx, reloc.WS2_32.dll_ioctlsocket
pop rdx
push rcx
mov rcx, rdx
sub rsp, 0x20
call fcn.140044950
add rsp, 0x20
pop rcx
mov rdx, rax
call fcn.1400446d0
or rax, rax
je 0x140009161
push rcx
sub rsp, 0x28
call fcn.140044530
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140044530
add rsp, 0x28
pop rcx
push rax
push 2
push qword [rsp + 0x60]
pop rcx
pop rdx
pop r8
sub rsp, 0x20
call fcn.140041250
add rsp, 0x28
lea rcx, [rsp + 0x48]
pop rdx
call main
mov rcx, qword [rsp + 0x40]
push rcx
sub rsp, 0x28
call fcn.140044530
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140044580
add rsp, 0x28
pop rax
push rax
call fcn.140044730
pop rdx
add rax, rdx
jmp 0x14000919a
push rax
mov rcx, qword [rsp + 0x48]
sub rsp, 0x28
call fcn.1400448f0
add rsp, 0x28
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.1400448f0
add rsp, 0x28
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.1400448f0
add rsp, 0x28
mov rcx, qword [rsp + 0x60]
sub rsp, 0x28
call fcn.1400448f0
add rsp, 0x28
pop rax
add rsp, 0x80
pop r15
ret