Function at 0x14000996c
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
Terminate process

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.14002dba0
sub rsp, rax
mov rax, qword [0x14003e008]
xor rax, rsp
mov qword [rbp + 0x3c60], rax
mov r12, qword [rbp + 0x3cd8]
xorps xmm0, xmm0
mov rdi, qword [rbp + 0x3ce8]
xor eax, eax
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp - 8], rcx
or r13, 0xffffffffffffffff
xor ecx, ecx
mov qword [rbp + 0x60], rax
mov rsi, r9
mov qword [rbp + 0x20], r9
mov r14, r8
mov qword [rbp - 0x70], r8
mov qword [rbp - 0x68], rdx
mov r15d, ecx
lea eax, [rcx + 1]
mov qword [rsp + 0x70], rcx
mov dword [rbp + 0x34], eax
mov byte [rsp + 0x61], cl
mov byte [rsp + 0x7c], cl
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x40], rcx
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
mov dword [rbp - 0x38], 0x100
movups xmmword [rbp + 0x40], xmm0
mov dword [rbp + 0x30], 0x38
movups xmmword [rbp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14003fbf0]
lea r8, [rsp + 0x70]
mov dword [0x14003fbf8], eax
lea rdx, str.system:write
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x14002f570]
mov ebx, eax
test eax, eax
js 0x14000a72f
xor edx, edx
lea rcx, [rbp + 0xe8]
mov r8d, 0x2600
call fcn.140017680
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 [0x14002f570]
mov ebx, eax
test eax, eax
js 0x14000a2d8
mov rax, qword [r15]
mov rcx, r15
mov rax, qword [rax + 0x30]
call qword [0x14002f570]
test eax, eax
je 0x140009acf
mov ebx, 0x80004004
jmp 0x14000a2d8
mov rax, qword [rdi]
mov rcx, rdi
mov r15, qword [rbp - 8]
mov rdx, r15
mov rax, qword [rax + 0x10]
call qword [0x14002f570]
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 0x140009b54
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a2d8
mov ecx, 1
lea eax, [rdi - 2]
mov byte [rsp + 0x61], cl
cmp eax, ecx
jbe 0x14000a2e8
cmp edi, 4
jne 0x14000a2d3
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.140017680
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 0x140009c01
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a71f
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 0x140009c3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a71f
and dword [rsp + 0x20], 0
lea rcx, [0x1400382d8]
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 0x140009c7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a712
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 0x140009ca9
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140009cbc
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 0x140009cfd
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a107
and dword [rsp + 0x30], 0
lea r8, [rbp + 0x2a00]
and qword [rsp + 0x28], 0
lea rdx, [0x140038590]
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 0x140009d51
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a107
xor esi, esi
lea ecx, [rsi + 1]
xor eax, eax
mov dword [rbp], ecx
and dword [rbp + 0x18], eax
xorps xmm0, xmm0
xorps xmm1, xmm1
mov qword [rbp - 0x40], rax
xor edi, edi
mov dword [rbp + 4], r15d
mov dword [rbp + 0x1c], ecx
mov eax, esi
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x28], xmm1
movups xmmword [rbp - 0x18], xmm1
movdqu xmmword [rbp + 8], xmm0
test esi, esi
je 0x140009e15
sub eax, 1
je 0x140009da4
cmp eax, 1
jne 0x140009e7a
mov dword [rbp - 0x50], ecx
mov edi, ecx
jmp 0x140009e61
lea rcx, [rbp - 0x28]
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x140009e7a
cmp qword [rbp - 0x18], rdi
je 0x140009e7a
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 0x140009e7a
test rax, rax
je 0x140009e7a
mov r8, qword [rbp - 0x18]
or r9, 0xffffffffffffffff
mov edx, 0x104
mov dword [rbp - 0x50], r15d
call fcn.14001b968
mov edi, 1
jmp 0x140009e61
lea rcx, [rbp - 0x28]
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x140009e7a
cmp dword [rbp - 0x28], edi
je 0x140009e7a
mov rax, qword [rbp - 0x20]
test rax, rax
je 0x140009e39
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 0x140009e7a
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 0x140009e8e
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp - 0x20], 0
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140009ea2
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp - 0x18], 0
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140009eb6
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp - 0x10], 0
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140009eca
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp - 0x48], 0
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x140009ee1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp - 0x40], 0
test edi, edi
je 0x140009f10
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 0x14000a092
mov ecx, 1
add esi, ecx
cmp esi, r15d
jb 0x140009d56
mov dil, byte [rsp + 0x60]
mov esi, ecx
test dil, dil
jne 0x140009f34
test ebx, ebx
js 0x14000a266
mov rdi, qword [rsp + 0x50]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x140009f50
test ebx, ebx
js 0x14000a102
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 0x140009f98
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a102
mov eax, dword [rbp - 0x78]
cmp eax, 0x194
ja 0x14000a0a9
je 0x14000a1ce
sub eax, 0xc8
je 0x14000a0a4
sub eax, 0x65
je 0x140009fca
sub eax, 1
je 0x140009fca
sub eax, 1
jne 0x14000a0ef
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 0x14000a022
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a102
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 0x14000a058
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a102
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 0x14000a08d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a102
mov r14b, sil
jmp 0x14000a0d9
mov esi, 1
mov dil, sil
mov byte [rsp + 0x60], sil
jmp 0x140009f27
xor r14b, r14b
jmp 0x14000a0d9
sub eax, 0x198
je 0x14000a0d4
sub eax, 0x5c
je 0x14000a1ce
sub eax, 2
je 0x14000a1ce
sub eax, 1
je 0x14000a1ce
cmp eax, 1
jne 0x14000a1c4
mov ebx, 0x80070102
test ebx, ebx
jne 0x14000a1d8
test r14b, r14b
je 0x14000a1de
jmp 0x140009c8b
sub eax, 0x62
je 0x14000a0fd
cmp eax, 2
jne 0x14000a1c4
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 [0x14002f570]
mov rax, qword [rbp - 0x60]
test rax, rax
je 0x14000a13f
xor edx, edx
mov r8d, 0x8000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test rdi, rdi
je 0x14000a14d
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test rsi, rsi
je 0x14000a15b
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r15, r15
je 0x14000a169
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp r13, 0xffffffffffffffff
je 0x14000a178
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rsp + 0x61], 0
je 0x14000a73a
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x14000a73a
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.14000274c
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, 0x8000ffff
jmp 0x14000a102
mov ebx, 0x80070002
jmp 0x14000a102
js 0x14000a102
lea rdx, [rbp - 0x80]
mov rcx, rdi
call fcn.1400140dc
mov ebx, eax
test eax, eax
js 0x14000a102
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x14000a270
mov eax, dword [rbp - 0x7c]
cmp eax, dword [rcx + 4]
jb 0x14000a22c
jne 0x14000a20e
mov eax, dword [rcx]
cmp dword [rbp - 0x80], eax
jbe 0x14000a22c
mov rcx, qword [rbp - 0x68]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
mov rax, qword [rax + 0xa0]
call qword [0x14002f570]
xor r13d, r13d
jmp 0x14000a274
mov esi, dword [rbp + 0x3ce0]
xor edi, edi
test esi, esi
je 0x14000a264
and dword [rsp + 0x28], 0
mov r8d, r15d
mov rdx, qword [r12]
mov rcx, qword [rsp + 0x70]
and qword [rsp + 0x20], 0
call fcn.140010c50
mov ebx, eax
test eax, eax
js 0x14000a266
inc edi
add r12, 8
cmp edi, esi
jb 0x14000a238
xor ebx, ebx
mov rdi, qword [rsp + 0x50]
jmp 0x14000a102
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 0x14000a2bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a2c2
mov r15d, dword [rbp - 0x70]
jmp 0x14000a2c6
mov r15, qword [rbp + 0x28]
test ebx, ebx
js 0x14000a102
jmp 0x14000a42d
mov ebx, 0x8007000f
mov rdi, qword [rsp + 0x50]
mov rsi, rdi
mov r15, rdi
jmp 0x14000a111
mov eax, 0x8000080
mov r15d, 3
cmp edi, 2
jne 0x14000a301
cmp dword [0x14003fc08], 0
je 0x14000a30f
cmp edi, r15d
jne 0x14000a314
cmp dword [0x14003fc10], 0
jne 0x14000a314
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 0x14000a365
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a2d8
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 0x14000a392
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a2d8
test rsi, rsi
je 0x14000a3d8
mov eax, dword [rbp - 0x7c]
cmp eax, dword [rsi + 4]
jb 0x14000a475
jne 0x14000a3b8
mov eax, dword [rsi]
cmp dword [rbp - 0x80], eax
jbe 0x14000a475
mov rcx, qword [rbp - 0x68]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
mov rax, qword [rax + 0xa0]
call qword [0x14002f570]
xor r14d, r14d
mov qword [rbp - 0x70], r14
lea rdx, [rbp - 0x58]
mov rcx, r13
call fcn.1400117f4
mov ebx, eax
test eax, eax
js 0x14000a2d8
test r14, r14
jle 0x14000a425
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x14000a425
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a2d8
mov r15, qword [rbp - 0x58]
mov r13, qword [rbp - 0x70]
mov esi, dword [rbp + 0x3ce0]
xor edi, edi
test esi, esi
je 0x14000a4bf
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 [0x14002f570]
mov ebx, eax
test eax, eax
js 0x14000a266
mov eax, 1
add r14, 8
add edi, eax
cmp edi, esi
jb 0x14000a440
jmp 0x14000a4c4
mov esi, dword [rbp + 0x3ce0]
xor edi, edi
test esi, esi
je 0x14000a4b1
and dword [rsp + 0x28], 0
mov r8d, r15d
mov rdx, qword [r12]
mov rcx, qword [rsp + 0x70]
and qword [rsp + 0x20], 0
call fcn.140010c50
mov ebx, eax
test eax, eax
js 0x14000a2d8
inc edi
add r12, 8
cmp edi, esi
jb 0x14000a481
xor ebx, ebx
mov edi, ebx
mov esi, ebx
mov r15d, ebx
jmp 0x14000a111
mov eax, 1
test r15, r15
jne 0x14000a535
mov edi, r15d
test esi, esi
je 0x14000a70a
mov rdx, qword [r12]
mov r8d, eax
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call fcn.140010c50
mov ebx, eax
test eax, eax
js 0x14000a266
mov rdx, qword [r12]
mov r8d, 2
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call fcn.140010c50
mov ebx, eax
test eax, eax
js 0x14000a266
mov eax, 1
add r12, 8
add edi, eax
cmp edi, esi
jb 0x14000a4d4
jmp 0x14000a70a
movsxd r14, dword [rbp - 0x30]
mov ecx, r14d
sub ecx, 2
je 0x14000a562
sub ecx, 1
je 0x14000a55a
cmp ecx, 1
je 0x14000a552
mov edi, 0x10000
jmp 0x14000a579
mov edi, dword [0x14003fc1c]
jmp 0x14000a568
mov edi, dword [0x14003fc14]
jmp 0x14000a568
mov edi, dword [0x14003fc0c]
mov ecx, dword [0x14003fc00]
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 0x14000a5b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a266
test ebx, ebx
jne 0x14000a70a
mov r13, r14
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
call qword [0x14002f570]
test eax, eax
jne 0x14000a6d1
mov rdx, qword [rbp - 0x60]
lea rax, [r13 - 2]
lea r9, [rsp + 0x68]
mov r8d, edi
cmp rax, 1
jbe 0x14000a5fc
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
jmp 0x14000a60c
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000a62c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a266
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x14000a67b
test esi, esi
je 0x14000a6c4
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.140010c50
mov ebx, eax
test eax, eax
js 0x14000a266
inc r15d
add r14, 8
cmp r15d, esi
jae 0x14000a6c4
mov eax, dword [rsp + 0x68]
jmp 0x14000a63f
test esi, esi
je 0x14000a6bd
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.140010c50
mov ebx, eax
test eax, eax
js 0x14000a266
mov eax, 1
add r14, 8
add r15d, eax
cmp r15d, esi
jb 0x14000a682
jmp 0x14000a6c2
mov eax, 1
mov ebx, eax
xor r15d, r15d
test ebx, ebx
je 0x14000a5c0
jmp 0x14000a70a
mov edi, r15d
test esi, esi
je 0x14000a70a
mov rdx, qword [r12]
mov r8d, 4
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call fcn.140010c50
mov ebx, eax
test eax, eax
js 0x14000a266
inc edi
add r12, 8
cmp edi, esi
jb 0x14000a6d8
mov ebx, r15d
jmp 0x14000a266
mov rdi, qword [rsp + 0x50]
mov rsi, rdi
jmp 0x14000a10c
mov rdi, qword [rsp + 0x50]
mov rsi, rdi
mov r15, rdi
jmp 0x14000a10c
mov rdi, r15
mov rsi, r15
jmp 0x14000a111
cmp byte [rsp + 0x7c], 0
je 0x14000a74f
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 0x14000a766
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002f570]
mov eax, ebx
mov rcx, qword [rbp + 0x3c60]
xor rcx, rsp
call fcn.140015940
mov rbx, qword [rsp + 0x3dc8]
add rsp, 0x3d70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret