Function at 0x140009bac
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.140028a50
sub rsp, rax
mov rax, qword [0x140039008]
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.140017800
lea eax, [rbx - 0x37]
mov dword [rbp + 0x30], ebx
mov dword [rbp + 0x34], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x14003aaa0]
lea r8, [rsp + 0x70]
mov dword [0x14003aaa8], eax
lea rdx, str.system:write
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x14002a558]
mov ebx, eax
test eax, eax
js 0x14000a979
mov ebx, 0x2608
lea rcx, [rbp + 0xe0]
mov r8d, ebx
xor edx, edx
call fcn.140017800
mov r15, qword [rbp - 0x68]
lea r9, [rbp + 0xe0]
mov r8, rdi
mov dword [rbp + 0xe0], ebx
xor edx, edx
mov dword [rbp + 0xe4], 0x4000000
mov rcx, r15
mov rax, qword [r15]
mov rax, qword [rax + 0x38]
call qword [0x14002a558]
mov ebx, eax
test eax, eax
js 0x14000a522
mov rax, qword [r15]
mov rcx, r15
mov rax, qword [rax + 0x30]
call qword [0x14002a558]
test eax, eax
je 0x140009d05
mov ebx, 0x80004004
jmp 0x14000a522
mov rax, qword [rdi]
mov rcx, rdi
mov r15, qword [rbp - 8]
mov rdx, r15
mov rax, qword [rax + 0x10]
call qword [0x14002a558]
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 0x140009d8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a522
mov ecx, 1
lea eax, [rdi - 2]
mov byte [rsp + 0x61], cl
cmp eax, ecx
jbe 0x14000a532
cmp edi, 4
jne 0x14000a51d
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.140017800
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 0x140009e37
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a969
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 0x140009e70
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a969
and dword [rsp + 0x20], 0
lea rcx, [0x140033168]
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 0x140009eb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a95c
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 0x140009edf
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140009ef2
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 0x140009f33
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a351
and dword [rsp + 0x30], 0
lea r8, [rbp + 0x2a00]
and qword [rsp + 0x28], 0
lea rdx, [0x140033420]
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 0x140009f87
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a351
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.140017800
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 0x14000a054
sub eax, ecx
je 0x140009fe3
cmp eax, ecx
jne 0x14000a0b9
mov dword [rbp - 0x50], ecx
mov edi, ecx
jmp 0x14000a0a0
lea rcx, [rbp - 0x28]
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x14000a0b9
cmp qword [rbp - 0x18], rdi
je 0x14000a0b9
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 0x14000a0b9
test rax, rax
je 0x14000a0b9
mov r8, qword [rbp - 0x18]
or r9, 0xffffffffffffffff
mov edx, 0x104
mov dword [rbp - 0x50], r15d
call fcn.1400197c0
mov edi, 1
jmp 0x14000a0a0
lea rcx, [rbp - 0x28]
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x14000a0b9
cmp dword [rbp - 0x28], edi
je 0x14000a0b9
mov rax, qword [rbp - 0x20]
test rax, rax
je 0x14000a078
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 0x14000a0b9
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 0x14000a0cd
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp - 0x20], 0
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14000a0e1
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp - 0x18], 0
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14000a0f5
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp - 0x10], 0
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14000a109
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp - 0x48], 0
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x14000a120
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp - 0x40], 0
test edi, edi
je 0x14000a14f
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 0x14000a2d2
inc esi
cmp esi, r15d
jb 0x140009f89
mov dil, byte [rsp + 0x60]
mov esi, 1
test dil, dil
jne 0x14000a171
test ebx, ebx
js 0x14000a4b0
mov rdi, qword [rsp + 0x50]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x14000a18d
test ebx, ebx
js 0x14000a34c
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 0x14000a1d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a34c
mov eax, dword [rbp - 0x78]
cmp eax, 0x194
ja 0x14000a2e9
je 0x14000a418
cmp eax, 0xc8
je 0x14000a2e4
cmp eax, 0x12c
jbe 0x14000a40e
cmp eax, 0x12f
ja 0x14000a337
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 0x14000a262
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a34c
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 0x14000a298
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a34c
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 0x14000a2cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a34c
mov r14b, sil
jmp 0x14000a321
mov esi, 1
mov dil, sil
mov byte [rsp + 0x60], sil
jmp 0x14000a164
xor r14b, r14b
jmp 0x14000a321
cmp eax, 0x198
je 0x14000a31c
cmp eax, 0x1f4
je 0x14000a418
cmp eax, 0x1f5
jbe 0x14000a40e
cmp eax, 0x1f7
jbe 0x14000a418
cmp eax, 0x1f8
jne 0x14000a40e
mov ebx, 0x80070102
test ebx, ebx
jne 0x14000a422
test r14b, r14b
je 0x14000a428
jmp 0x140009ec1
add eax, 0xfffffe6f
test eax, 0xfffffffd
jne 0x14000a40e
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 [0x14002a558]
mov rax, qword [rbp - 0x60]
test rax, rax
je 0x14000a389
xor edx, edx
mov r8d, 0x8000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test rdi, rdi
je 0x14000a397
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test rsi, rsi
je 0x14000a3a5
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test r15, r15
je 0x14000a3b3
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
cmp r13, 0xffffffffffffffff
je 0x14000a3c2
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rsp + 0x61], 0
je 0x14000a984
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x14000a984
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.14000282c
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, 0x8000ffff
jmp 0x14000a34c
mov ebx, 0x80070002
jmp 0x14000a34c
js 0x14000a34c
lea rdx, [rbp - 0x80]
mov rcx, rdi
call fcn.1400144c0
mov ebx, eax
test eax, eax
js 0x14000a34c
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x14000a4ba
mov eax, dword [rbp - 0x7c]
cmp eax, dword [rcx + 4]
jb 0x14000a476
jne 0x14000a458
mov eax, dword [rcx]
cmp dword [rbp - 0x80], eax
jbe 0x14000a476
mov rcx, qword [rbp - 0x68]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
mov rax, qword [rax + 0xa0]
call qword [0x14002a558]
xor r13d, r13d
jmp 0x14000a4be
mov esi, dword [rbp + 0x3ce0]
xor edi, edi
test esi, esi
je 0x14000a4ae
and dword [rsp + 0x28], 0
mov r8d, r15d
mov rdx, qword [r12]
mov rcx, qword [rsp + 0x70]
and qword [rsp + 0x20], 0
call fcn.1400110fc
mov ebx, eax
test eax, eax
js 0x14000a4b0
inc edi
add r12, 8
cmp edi, esi
jb 0x14000a482
xor ebx, ebx
mov rdi, qword [rsp + 0x50]
jmp 0x14000a34c
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 0x14000a506
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a50c
mov r15d, dword [rbp - 0x70]
jmp 0x14000a510
mov r15, qword [rbp + 0x28]
test ebx, ebx
js 0x14000a34c
jmp 0x14000a677
mov ebx, 0x8007000f
mov rdi, qword [rsp + 0x50]
mov rsi, rdi
mov r15, rdi
jmp 0x14000a35b
mov eax, 0x8000080
mov r15d, 3
cmp edi, 2
jne 0x14000a54b
cmp dword [0x14003aab8], 0
je 0x14000a559
cmp edi, r15d
jne 0x14000a55e
cmp dword [0x14003aac0], 0
jne 0x14000a55e
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 0x14000a5af
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a522
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 0x14000a5dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a522
test rsi, rsi
je 0x14000a622
mov eax, dword [rbp - 0x7c]
cmp eax, dword [rsi + 4]
jb 0x14000a6bf
jne 0x14000a602
mov eax, dword [rsi]
cmp dword [rbp - 0x80], eax
jbe 0x14000a6bf
mov rcx, qword [rbp - 0x68]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
mov rax, qword [rax + 0xa0]
call qword [0x14002a558]
xor r14d, r14d
mov qword [rbp - 0x70], r14
lea rdx, [rbp - 0x58]
mov rcx, r13
call fcn.140011d04
mov ebx, eax
test eax, eax
js 0x14000a522
test r14, r14
jle 0x14000a66f
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x14000a66f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a522
mov r15, qword [rbp - 0x58]
mov r13, qword [rbp - 0x70]
mov esi, dword [rbp + 0x3ce0]
xor edi, edi
test esi, esi
je 0x14000a709
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 [0x14002a558]
mov ebx, eax
test eax, eax
js 0x14000a4b0
mov eax, 1
add r14, 8
add edi, eax
cmp edi, esi
jb 0x14000a68a
jmp 0x14000a70e
mov esi, dword [rbp + 0x3ce0]
xor edi, edi
test esi, esi
je 0x14000a6fb
and dword [rsp + 0x28], 0
mov r8d, r15d
mov rdx, qword [r12]
mov rcx, qword [rsp + 0x70]
and qword [rsp + 0x20], 0
call fcn.1400110fc
mov ebx, eax
test eax, eax
js 0x14000a522
inc edi
add r12, 8
cmp edi, esi
jb 0x14000a6cb
xor ebx, ebx
mov edi, ebx
mov esi, ebx
mov r15d, ebx
jmp 0x14000a35b
mov eax, 1
test r15, r15
jne 0x14000a77f
mov edi, r15d
test esi, esi
je 0x14000a954
mov rdx, qword [r12]
mov r8d, eax
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call fcn.1400110fc
mov ebx, eax
test eax, eax
js 0x14000a4b0
mov rdx, qword [r12]
mov r8d, 2
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call fcn.1400110fc
mov ebx, eax
test eax, eax
js 0x14000a4b0
mov eax, 1
add r12, 8
add edi, eax
cmp edi, esi
jb 0x14000a71e
jmp 0x14000a954
movsxd r14, dword [rbp - 0x30]
mov ecx, r14d
sub ecx, 2
je 0x14000a7ac
sub ecx, 1
je 0x14000a7a4
cmp ecx, 1
je 0x14000a79c
mov edi, 0x10000
jmp 0x14000a7c3
mov edi, dword [0x14003aacc]
jmp 0x14000a7b2
mov edi, dword [0x14003aac4]
jmp 0x14000a7b2
mov edi, dword [0x14003aabc]
mov ecx, dword [0x14003aab0]
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 0x14000a7ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a4b0
test ebx, ebx
jne 0x14000a954
mov r13, r14
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
call qword [0x14002a558]
test eax, eax
jne 0x14000a91b
mov rdx, qword [rbp - 0x60]
lea rax, [r13 - 2]
lea r9, [rsp + 0x68]
mov r8d, edi
cmp rax, 1
jbe 0x14000a846
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
jmp 0x14000a856
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000a876
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000a4b0
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x14000a8c5
test esi, esi
je 0x14000a90e
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.1400110fc
mov ebx, eax
test eax, eax
js 0x14000a4b0
inc r15d
add r14, 8
cmp r15d, esi
jae 0x14000a90e
mov eax, dword [rsp + 0x68]
jmp 0x14000a889
test esi, esi
je 0x14000a907
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.1400110fc
mov ebx, eax
test eax, eax
js 0x14000a4b0
mov eax, 1
add r14, 8
add r15d, eax
cmp r15d, esi
jb 0x14000a8cc
jmp 0x14000a90c
mov eax, 1
mov ebx, eax
xor r15d, r15d
test ebx, ebx
je 0x14000a80a
jmp 0x14000a954
mov edi, r15d
test esi, esi
je 0x14000a954
mov rdx, qword [r12]
mov r8d, 4
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call fcn.1400110fc
mov ebx, eax
test eax, eax
js 0x14000a4b0
inc edi
add r12, 8
cmp edi, esi
jb 0x14000a922
mov ebx, r15d
jmp 0x14000a4b0
mov rdi, qword [rsp + 0x50]
mov rsi, rdi
jmp 0x14000a356
mov rdi, qword [rsp + 0x50]
mov rsi, rdi
mov r15, rdi
jmp 0x14000a356
mov rdi, r15
mov rsi, r15
jmp 0x14000a35b
cmp byte [rsp + 0x7c], 0
je 0x14000a999
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 0x14000a9b0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002a558]
mov eax, ebx
mov rcx, qword [rbp + 0x3c60]
xor rcx, rsp
call fcn.140015cc0
mov rbx, qword [rsp + 0x3dc8]
add rsp, 0x3d70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret