Function at 0x140009aac
Capabilities:
Check http status code
Get session user name
Impersonate user
Initialize winhttp library
Prepare http request
Read file on windows
Read http header
Receive http response

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3c70]
mov eax, 0x3d70
call fcn.140029690
sub rsp, rax
mov rax, qword [0x140039010]
xor rax, rsp
mov qword [rbp + 0x3c60], rax
mov r12, qword [rbp + 0x3cd8]
mov r14, r8
mov rdi, qword [rbp + 0x3ce8]
or r13, 0xffffffffffffffff
mov qword [rbp - 8], rcx
mov rsi, r9
xor ecx, ecx
mov qword [rbp - 0x70], r8
mov qword [rbp - 0x68], rdx
mov r15d, ecx
mov qword [rsp + 0x70], rcx
xor edx, edx
mov byte [rsp + 0x61], cl
lea ebx, [rcx + 0x38]
mov byte [rsp + 0x7c], cl
mov qword [rsp + 0x40], rcx
mov r8d, ebx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rcx
mov qword [rbp + 0x28], rcx
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x60], rcx
mov dword [rsp + 0x68], ecx
lea rcx, [rbp + 0x30]
mov qword [rbp + 0x20], r9
mov qword [rsp + 0x58], r13
mov dword [rbp - 0x38], 0x100
call fcn.140016ec0
lea eax, [rbx - 0x37]
mov dword [rbp + 0x30], ebx
mov dword [rbp + 0x34], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14003ac10]
lea r8, [rsp + 0x70]
mov dword [0x14003ac18], eax
lea rdx, str.system:write
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x14002a548]
mov ebx, eax
test eax, eax
js 0x14000a87b
xor edx, edx
lea rcx, [rbp + 0xe8]
mov r8d, 0x2600
call fcn.140016ec0
mov r15, qword [rbp - 0x68]
lea r9, [rbp + 0xe0]
mov r8, rdi
mov dword [rbp + 0xe0], 0x2608
xor edx, edx
mov dword [rbp + 0xe4], 0x4000000
mov rcx, r15
mov rax, qword [r15]
mov rax, qword [rax + 0x38]
call qword [0x14002a548]
mov ebx, eax
test eax, eax
js 0x14000a424
mov rax, qword [r15]
mov rcx, r15
mov rax, qword [rax + 0x30]
call qword [0x14002a548]
test eax, eax
je 0x140009c07
mov ebx, 0x80004004
jmp 0x14000a424
mov rax, qword [rdi]
mov rcx, rdi
mov r15, qword [rbp - 8]
mov rdx, r15
mov rax, qword [rax + 0x10]
call qword [0x14002a548]
lea rdx, [rbp - 0x38]
mov dword [rbp - 0x30], eax
lea rcx, [rbp + 0x26f0]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea rax, [rbp + 0x26f0]
mov rcx, r15
lea rdx, [rbp + 0x30]
mov qword [rbp + 0x38], rax
call qword [sym.imp.USERENV.dll_LoadUserProfileA]
mov ecx, dword [rsp + 0x7c]
mov rdx, r15
test eax, eax
movzx ecx, cl
mov eax, 1
cmovne ecx, eax
mov dword [rsp + 0x7c], ecx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x140009c8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a424
mov ecx, 1
lea eax, [rdi - 2]
mov byte [rsp + 0x61], cl
cmp eax, ecx
jbe 0x14000a434
cmp edi, 4
jne 0x14000a41f
xor dil, dil
mov dword [rsp + 0x64], 0x824
mov byte [rsp + 0x60], dil
xor edx, edx
lea edi, [rcx + 0x67]
mov r8d, edi
lea rcx, [rbp + 0x70]
call fcn.140016ec0
lea rax, [rbp + 0x27f0]
mov dword [rbp + 0x70], edi
mov qword [rbp + 0x88], rax
lea r9, [rbp + 0x70]
lea rax, [rbp + 0x2a00]
mov dword [rbp + 0x90], 0x104
mov r13d, 0x80000000
mov qword [rbp + 0xb8], rax
mov r8d, r13d
mov dword [rbp + 0xc0], 0x104
xor edx, edx
lea rcx, [rbp + 0x16a0]
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x140009d39
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a86b
lea r9, [rsp + 0x64]
mov edx, r13d
lea r8, [rbp + 0x2c10]
lea rcx, [rbp + 0x70]
call qword [sym.imp.WINHTTP.dll_WinHttpCreateUrl]
test eax, eax
jne 0x140009d72
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a86b
and dword [rsp + 0x20], 0
lea rcx, [0x1400331a8]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x40], rax
mov r15, rax
test rax, rax
jne 0x140009db5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a85e
mov rdi, qword [rsp + 0x50]
xor r14b, r14b
mov r15d, 3
and dword [rbp - 0x78], 0
and dword [rsp + 0x78], 0
mov dword [rbp - 0x34], 4
test rdi, rdi
je 0x140009de1
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140009df4
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x40]
lea rdx, [rbp + 0x27f0]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rsp + 0x48], rax
mov rsi, rax
test rax, rax
jne 0x140009e35
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a253
and dword [rsp + 0x30], 0
lea r8, [rbp + 0x2a00]
and qword [rsp + 0x28], 0
lea rdx, [0x140033460]
and qword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x140009e89
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a253
xor esi, esi
xor eax, eax
lea rcx, [rbp - 0x28]
xor edx, edx
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
lea r8d, [rax + 0x20]
call fcn.140016ec0
and dword [rbp + 0x18], 0
mov ecx, 1
xor edi, edi
mov dword [rbp], ecx
mov dword [rbp + 0x1c], ecx
xorps xmm0, xmm0
mov dword [rbp + 4], r15d
mov eax, esi
movdqu xmmword [rbp + 8], xmm0
test esi, esi
je 0x140009f56
sub eax, ecx
je 0x140009ee5
cmp eax, ecx
jne 0x140009fbb
mov dword [rbp - 0x50], ecx
mov edi, ecx
jmp 0x140009fa2
lea rcx, [rbp - 0x28]
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x140009fbb
cmp qword [rbp - 0x18], rdi
je 0x140009fbb
mov edx, 0x208
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, 0x208
xor ecx, ecx
mov qword [rbp - 0x48], rax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, qword [rbp - 0x48]
mov qword [rbp - 0x40], rax
test rcx, rcx
je 0x140009fbb
test rax, rax
je 0x140009fbb
mov r8, qword [rbp - 0x18]
or r9, 0xffffffffffffffff
mov edx, 0x104
mov dword [rbp - 0x50], r15d
call fcn.1400192f0
mov edi, 1
jmp 0x140009fa2
lea rcx, [rbp - 0x28]
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x140009fbb
cmp dword [rbp - 0x28], edi
je 0x140009fbb
mov rax, qword [rbp - 0x20]
test rax, rax
je 0x140009f7a
or dword [rbp], 2
mov qword [rbp + 8], rax
mov rcx, qword [rsp + 0x40]
lea r9, [rbp - 0x50]
mov eax, 1
lea r8, [rbp]
lea rdx, [rbp + 0x2c10]
mov dword [rbp + 0x1c], eax
call qword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
mov edi, eax
test eax, eax
je 0x140009fbb
mov rcx, qword [rsp + 0x40]
lea r8, [rbp - 0x50]
mov r9d, 0x18
lea edx, [r9 + 0xe]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140009fcf
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp - 0x20], 0
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140009fe3
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp - 0x18], 0
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140009ff7
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp - 0x10], 0
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14000a00b
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp - 0x48], 0
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x14000a022
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp - 0x40], 0
test edi, edi
je 0x14000a051
and qword [rsp + 0x30], 0
xor r9d, r9d
and dword [rsp + 0x28], 0
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
xor edx, edx
and dword [rsp + 0x20], 0
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x14000a1d4
inc esi
cmp esi, r15d
jb 0x140009e8b
mov dil, byte [rsp + 0x60]
mov esi, 1
test dil, dil
jne 0x14000a073
test ebx, ebx
js 0x14000a3b2
mov rdi, qword [rsp + 0x50]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x14000a08f
test ebx, ebx
js 0x14000a24e
lea rax, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x78]
lea rax, [rbp - 0x34]
mov edx, 0x20000013
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x14000a0d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a24e
mov eax, dword [rbp - 0x78]
cmp eax, 0x194
ja 0x14000a1eb
je 0x14000a31a
cmp eax, 0xc8
je 0x14000a1e6
cmp eax, 0x12c
jbe 0x14000a310
cmp eax, 0x12f
ja 0x14000a239
and dword [rsp + 0x78], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x2c10]
xor r8d, r8d
mov dword [rsp + 0x64], 0x824
lea rax, [rsp + 0x64]
mov rcx, rdi
mov qword [rsp + 0x20], rax
lea edx, [r8 + 0x33]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x14000a164
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a24e
lea r9, [rbp + 0x70]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x2c10]
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
jne 0x14000a19a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a24e
lea r9, [rsp + 0x64]
mov edx, r13d
lea r8, [rbp + 0x2c10]
lea rcx, [rbp + 0x70]
call qword [sym.imp.WINHTTP.dll_WinHttpCreateUrl]
test eax, eax
jne 0x14000a1cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a24e
mov r14b, sil
jmp 0x14000a223
mov esi, 1
mov dil, sil
mov byte [rsp + 0x60], sil
jmp 0x14000a066
xor r14b, r14b
jmp 0x14000a223
cmp eax, 0x198
je 0x14000a21e
cmp eax, 0x1f4
je 0x14000a31a
cmp eax, 0x1f5
jbe 0x14000a310
cmp eax, 0x1f7
jbe 0x14000a31a
cmp eax, 0x1f8
jne 0x14000a310
mov ebx, 0x80070102
test ebx, ebx
jne 0x14000a324
test r14b, r14b
je 0x14000a32a
jmp 0x140009dc3
add eax, 0xfffffe6f
test eax, 0xfffffffd
jne 0x14000a310
mov ebx, 0x80070005
mov rsi, qword [rsp + 0x48]
mov r15, qword [rsp + 0x40]
mov r13, qword [rsp + 0x58]
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 0xc8]
call qword [0x14002a548]
mov rax, qword [rbp - 0x60]
test rax, rax
je 0x14000a28b
xor edx, edx
mov r8d, 0x8000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test rdi, rdi
je 0x14000a299
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test rsi, rsi
je 0x14000a2a7
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r15, r15
je 0x14000a2b5
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp r13, 0xffffffffffffffff
je 0x14000a2c4
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rsp + 0x61], 0
je 0x14000a886
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x14000a886
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
mov edx, 0xc0000015
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
xor r9d, r9d
mov ecx, ebx
xor r8d, r8d
call fcn.1400027fc
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, 0x8000ffff
jmp 0x14000a24e
mov ebx, 0x80070002
jmp 0x14000a24e
js 0x14000a24e
lea rdx, [rbp - 0x80]
mov rcx, rdi
call fcn.14001401c
mov ebx, eax
test eax, eax
js 0x14000a24e
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x14000a3bc
mov eax, dword [rbp - 0x7c]
cmp eax, dword [rcx + 4]
jb 0x14000a378
jne 0x14000a35a
mov eax, dword [rcx]
cmp dword [rbp - 0x80], eax
jbe 0x14000a378
mov rcx, qword [rbp - 0x68]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
mov rax, qword [rax + 0xa0]
call qword [0x14002a548]
xor r13d, r13d
jmp 0x14000a3c0
mov esi, dword [rbp + 0x3ce0]
xor edi, edi
test esi, esi
je 0x14000a3b0
and dword [rsp + 0x28], 0
mov r8d, r15d
mov rdx, qword [r12]
mov rcx, qword [rsp + 0x70]
and qword [rsp + 0x20], 0
call fcn.140010d70
mov ebx, eax
test eax, eax
js 0x14000a3b2
inc edi
add r12, 8
cmp edi, esi
jb 0x14000a384
xor ebx, ebx
mov rdi, qword [rsp + 0x50]
jmp 0x14000a24e
mov r13, qword [rbp - 0x70]
lea rax, [rbp - 0x58]
mov dword [rbp - 0x58], 4
xor ebx, ebx
lea r9, [rbp - 0x70]
and qword [rsp + 0x28], rbx
xor r8d, r8d
mov edx, 0x20000005
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x14000a408
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a40e
mov r15d, dword [rbp - 0x70]
jmp 0x14000a412
mov r15, qword [rbp + 0x28]
test ebx, ebx
js 0x14000a24e
jmp 0x14000a579
mov ebx, 0x8007000f
mov rdi, qword [rsp + 0x50]
mov rsi, rdi
mov r15, rdi
jmp 0x14000a25d
mov eax, 0x8000080
mov r15d, 3
cmp edi, 2
jne 0x14000a44d
cmp dword [0x14003ac28], 0
je 0x14000a45b
cmp edi, r15d
jne 0x14000a460
cmp dword [0x14003ac30], 0
jne 0x14000a460
mov eax, 0x28000080
and qword [rsp + 0x30], 0
mov r8d, ecx
mov dword [rsp + 0x28], eax
lea rcx, [rbp + 0x16a0]
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x14000a4b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a424
xor r9d, r9d
lea rdx, [rbp - 0x80]
xor r8d, r8d
mov rcx, r13
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x14000a4de
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a424
test rsi, rsi
je 0x14000a524
mov eax, dword [rbp - 0x7c]
cmp eax, dword [rsi + 4]
jb 0x14000a5c1
jne 0x14000a504
mov eax, dword [rsi]
cmp dword [rbp - 0x80], eax
jbe 0x14000a5c1
mov rcx, qword [rbp - 0x68]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
mov rax, qword [rax + 0xa0]
call qword [0x14002a548]
xor r14d, r14d
mov qword [rbp - 0x70], r14
lea rdx, [rbp - 0x58]
mov rcx, r13
call fcn.140011940
mov ebx, eax
test eax, eax
js 0x14000a424
test r14, r14
jle 0x14000a571
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x14000a571
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a424
mov r15, qword [rbp - 0x58]
mov r13, qword [rbp - 0x70]
mov esi, dword [rbp + 0x3ce0]
xor edi, edi
test esi, esi
je 0x14000a60b
mov r14, r12
mov rcx, qword [r14]
lea r9, [rbp - 0x80]
mov r8, r13
mov rdx, r15
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [0x14002a548]
mov ebx, eax
test eax, eax
js 0x14000a3b2
mov eax, 1
add r14, 8
add edi, eax
cmp edi, esi
jb 0x14000a58c
jmp 0x14000a610
mov esi, dword [rbp + 0x3ce0]
xor edi, edi
test esi, esi
je 0x14000a5fd
and dword [rsp + 0x28], 0
mov r8d, r15d
mov rdx, qword [r12]
mov rcx, qword [rsp + 0x70]
and qword [rsp + 0x20], 0
call fcn.140010d70
mov ebx, eax
test eax, eax
js 0x14000a424
inc edi
add r12, 8
cmp edi, esi
jb 0x14000a5cd
xor ebx, ebx
mov edi, ebx
mov esi, ebx
mov r15d, ebx
jmp 0x14000a25d
mov eax, 1
test r15, r15
jne 0x14000a681
mov edi, r15d
test esi, esi
je 0x14000a856
mov rdx, qword [r12]
mov r8d, eax
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call fcn.140010d70
mov ebx, eax
test eax, eax
js 0x14000a3b2
mov rdx, qword [r12]
mov r8d, 2
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call fcn.140010d70
mov ebx, eax
test eax, eax
js 0x14000a3b2
mov eax, 1
add r12, 8
add edi, eax
cmp edi, esi
jb 0x14000a620
jmp 0x14000a856
movsxd r14, dword [rbp - 0x30]
mov ecx, r14d
sub ecx, 2
je 0x14000a6ae
sub ecx, 1
je 0x14000a6a6
cmp ecx, 1
je 0x14000a69e
mov edi, 0x10000
jmp 0x14000a6c5
mov edi, dword [0x14003ac3c]
jmp 0x14000a6b4
mov edi, dword [0x14003ac34]
jmp 0x14000a6b4
mov edi, dword [0x14003ac2c]
mov ecx, dword [0x14003ac20]
dec edi
add edi, ecx
lea eax, [rcx - 1]
not eax
and edi, eax
xor ecx, ecx
mov edx, edi
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r15d, r15d
mov qword [rbp - 0x60], rax
test rax, rax
jne 0x14000a701
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a3b2
test ebx, ebx
jne 0x14000a856
mov r13, r14
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
call qword [0x14002a548]
test eax, eax
jne 0x14000a81d
mov rdx, qword [rbp - 0x60]
lea rax, [r13 - 2]
lea r9, [rsp + 0x68]
mov r8d, edi
cmp rax, 1
jbe 0x14000a748
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
jmp 0x14000a758
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000a778
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a3b2
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x14000a7c7
test esi, esi
je 0x14000a810
mov r14, r12
mov rdx, qword [r14]
mov r8d, 1
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x20], rax
call fcn.140010d70
mov ebx, eax
test eax, eax
js 0x14000a3b2
inc r15d
add r14, 8
cmp r15d, esi
jae 0x14000a810
mov eax, dword [rsp + 0x68]
jmp 0x14000a78b
test esi, esi
je 0x14000a809
mov r14, r12
and dword [rsp + 0x28], 0
mov r8d, 2
mov rdx, qword [r14]
mov rcx, qword [rsp + 0x70]
and qword [rsp + 0x20], 0
call fcn.140010d70
mov ebx, eax
test eax, eax
js 0x14000a3b2
mov eax, 1
add r14, 8
add r15d, eax
cmp r15d, esi
jb 0x14000a7ce
jmp 0x14000a80e
mov eax, 1
mov ebx, eax
xor r15d, r15d
test ebx, ebx
je 0x14000a70c
jmp 0x14000a856
mov edi, r15d
test esi, esi
je 0x14000a856
mov rdx, qword [r12]
mov r8d, 4
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call fcn.140010d70
mov ebx, eax
test eax, eax
js 0x14000a3b2
inc edi
add r12, 8
cmp edi, esi
jb 0x14000a824
mov ebx, r15d
jmp 0x14000a3b2
mov rdi, qword [rsp + 0x50]
mov rsi, rdi
jmp 0x14000a258
mov rdi, qword [rsp + 0x50]
mov rsi, rdi
mov r15, rdi
jmp 0x14000a258
mov rdi, r15
mov rsi, r15
jmp 0x14000a25d
cmp byte [rsp + 0x7c], 0
je 0x14000a89b
mov rdx, qword [rbp + 0x60]
mov rcx, qword [rbp - 8]
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000a8b2
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002a548]
mov eax, ebx
mov rcx, qword [rbp + 0x3c60]
xor rcx, rsp
call fcn.140015800
mov rbx, qword [rsp + 0x3dc8]
add rsp, 0x3d70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret