Function at 0x10002ae4
Capabilities:
Delete file
Get file size
Move file
Read file on windows
Resolve dns
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1054
call fcn.10029310
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, str.http:
push esi
push edi
mov ebx, ecx
call fcn.10003e8a
test eax, eax
pop ecx
pop ecx
je 0x10002b2e
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebx + 0x44]
add edi, eax
xor eax, eax
push eax
push eax
push eax
push esi
call fcn.100038c9
xor eax, eax
push eax
push eax
push eax
push 0x1002a538
jmp 0x10002b65
mov esi, str.https:
push esi
push edi
call fcn.10003e8a
test eax, eax
pop ecx
pop ecx
je 0x100032d1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebx + 0x44]
add edi, eax
xor eax, eax
push eax
push eax
push eax
push esi
call fcn.100038c9
xor eax, eax
push eax
push eax
push eax
push 0x1002a544
mov ecx, dword [ebx + 0x5c]
call fcn.100038c9
add esp, 0x20
push 0x1002a548
push edi
call fcn.10003e8a
test eax, eax
pop ecx
pop ecx
je 0x100032d1
inc edi
inc edi
mov al, byte [edi]
mov dword [ebp + 8], edi
mov ecx, edi
jmp 0x10002b9b
cmp al, 0x3a
je 0x10002ba2
cmp al, 0x2f
je 0x10002ba2
inc ecx
mov al, byte [ecx]
test al, al
mov dword [ebp - 4], ecx
jne 0x10002b90
mov dword [ebp - 8], ecx
mov cl, byte [ecx]
jmp 0x10002bb6
cmp cl, 0x2f
je 0x10002bba
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
mov cl, byte [eax]
test cl, cl
jne 0x10002ba9
mov edi, dword [ebp - 8]
sub edi, dword [ebp + 8]
push dword [ebp + 8]
mov esi, dword [ebx + 0xf8]
call fcn.10003884
mov edi, dword [ebp - 4]
sub edi, dword [ebp + 8]
mov esi, dword [ebx + 0x50]
pop ecx
push dword [ebp + 8]
call fcn.10003884
mov eax, dword [ebx + 0x50]
cmp dword [eax + 4], 0
pop ecx
je 0x100032d1
mov eax, dword [ebp - 4]
cmp byte [eax], 0x3a
jne 0x10002c07
mov edi, dword [ebp - 8]
mov esi, dword [ebx + 0x5c]
sub edi, eax
dec edi
inc eax
push eax
call fcn.10003884
pop ecx
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x10002c16
mov dword [ebp - 8], 0x1002a54c
mov ecx, dword [ebx + 0x44]
mov edx, dword [ebx + 0x40]
call fcn.10003bbf
test eax, eax
je 0x10002c5c
mov ecx, dword [ebx + 0xf8]
mov edx, dword [ebx + 0xf4]
call fcn.10003bbf
test eax, eax
je 0x10002c5c
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x4c]
call fcn.10003bbf
test eax, eax
je 0x10002c5c
mov ecx, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x58]
call fcn.10003bbf
test eax, eax
jne 0x10002d48
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax]
call fcn.10003f0b
test eax, eax
pop ecx
je 0x100032d1
mov ecx, dword [ebp - 0x28]
mov eax, ecx
cdq
cmp eax, ecx
jne 0x100032d1
cmp edx, dword [ebp - 0x24]
jne 0x100032d1
xor esi, esi
cmp ecx, esi
jl 0x100032d1
cmp ecx, 0xffff
jg 0x100032d1
mov eax, dword [ebx + 0x50]
push dword [eax]
call sub.WS2_32.dll_gethostbyname
mov edi, eax
cmp edi, esi
je 0x100032d1
mov eax, dword [ebx + 0x44]
mov ecx, dword [ebx + 0x40]
push esi
push esi
mov dword [ebx + 0x28], 1
push esi
push dword [eax]
call fcn.100038c9
mov eax, dword [ebx + 0xf8]
mov ecx, dword [ebx + 0xf4]
push esi
push esi
push esi
push dword [eax]
call fcn.100038c9
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x4c]
push esi
push esi
push esi
push dword [eax]
call fcn.100038c9
mov eax, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x58]
push esi
push esi
push esi
push dword [eax]
call fcn.100038c9
mov eax, dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x118]
add esp, 0x40
push esi
push dword [eax]
mov eax, dword [ebx + 0x40]
push 0x1002a548
push dword [eax]
call fcn.100038c9
push 0x10
push esi
push ebx
call sub.MSVCRT.dll_memset
add esp, 0x1c
push dword [ebp - 0x28]
mov word [ebx], 2
call sub.WS2_32.dll_htons
mov word [ebx + 2], ax
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebx + 4], eax
jmp 0x10002d4a
xor esi, esi
cmp dword [ebx + 0x28], esi
jne 0x10002d54
cmp dword [ebx + 0x24], esi
jne 0x10002d5b
mov edi, ebx
call fcn.100016eb
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x10], esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov dword [ebp - 0x10], esi
je 0x10002efa
push dword [ebp + 0x10]
push ebx
call fcn.10002944
test eax, eax
pop ecx
pop ecx
je 0x10002efa
mov ecx, dword [ebx + 0x40]
mov edx, dword [ebx + 0x3b8]
call fcn.10003bbf
test eax, eax
je 0x10002efa
mov ecx, dword [ebx + 0xf4]
mov edx, dword [ebx + 0x3c0]
call fcn.10003bbf
test eax, eax
je 0x10002efa
mov eax, dword [ebx + 0x3c8]
push str.POST
push dword [eax]
call edi
test eax, eax
jne 0x10002efa
push dword [ebp - 8]
mov eax, dword [ebx + 0x3d0]
push dword [eax]
call edi
test eax, eax
jne 0x10002efa
mov eax, dword [ebx + 0x378]
cmp dword [eax + 4], esi
jne 0x10002df9
mov ecx, dword [ebx + 0x388]
cmp dword [ecx + 4], esi
je 0x10002efa
mov ecx, dword [ebx + 0x388]
push dword [ecx]
push dword [eax]
push dword [ebp + 0xc]
push dword [ebx + 0x20]
push dword [ebp - 8]
push ebx
call fcn.10001c2b
add esp, 0x18
test eax, eax
je 0x100032d1
mov eax, dword [ebx + 0x2f0]
push str.304_Not_Modified
push dword [eax]
call edi
test eax, eax
jne 0x10002f16
mov eax, dword [ebx + 0x328]
push str.Close
push dword [eax]
call edi
test eax, eax
jne 0x10002e4e
mov dword [ebx + 0x28], 1
mov eax, fcn.100032f7
test eax, eax
jne 0x10002e5f
mov eax, dword [ebx + 0x24]
jmp 0x100032d3
push esi
push esi
push 3
push esi
push 1
push closesocket
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x100032d1
mov eax, dword [ebx + 0x348]
xor edi, edi
push edi
push edi
push edi
push edi
push edi
push edi
push dword [eax]
call fcn.1000384f
add esp, 0x1c
push dword [ebp + 0x10]
mov esi, eax
push ebx
call fcn.10002944
mov ecx, dword [ebx + 0x348]
push edi
push edi
push edi
push dword [esi]
call fcn.100038c9
add esp, 0x18
call fcn.1000380b
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
push ecx
mov dword [ebx + 0x3e0], eax
push eax
mov eax, dword [ebx + 0x338]
mov dword [ebx + 0x3e4], ecx
call fcn.10003b90
pop ecx
pop ecx
mov dword [ebp - 0x10], 1
xor esi, esi
jmp 0x10002f16
push esi
push esi
push dword [ebp + 0xc]
push dword [ebx + 0x20]
push dword [ebp - 8]
push ebx
call fcn.10001c2b
add esp, 0x18
test eax, eax
je 0x100032d1
mov eax, fcn.100032f7
test eax, eax
je 0x10002fbd
push esi
push esi
push esi
push esi
push esi
push esi
push 0x1002a1a1
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0xe
mov dword [ebp - 0x40], 0x18
mov dword [ebp - 0x3c], 0x16
mov dword [ebp - 0x38], 0x14
mov dword [ebp - 0x34], 0xc
mov dword [ebp - 0x30], 9
mov dword [ebp - 0x2c], 0x15
call fcn.1000384f
add esp, 0x1c
mov dword [ebp - 0xc], eax
xor edi, edi
mov eax, dword [ebp + edi*4 - 0x48]
mov ecx, dword [ebx + eax*8 + 0x2d8]
cmp dword [ecx + 4], esi
je 0x10002f9e
mov eax, dword [ebx + eax*8 + 0x2d4]
mov eax, dword [eax]
push esi
push esi
push esi
push esi
push esi
push dword [ecx]
push dword [ebp - 0xc]
call fcn.10003a57
add esp, 0x1c
inc edi
cmp edi, 8
jb 0x10002f73
mov eax, dword [ebx + 0x180]
mov eax, dword [eax]
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0xc]
call fcn.10003a57
add esp, 0x1c
cmp dword [ebp + 0x10], esi
je 0x1000301d
cmp dword [ebp - 0x10], esi
jne 0x1000301d
push str..cached_header
push dword [ebp + 0x10]
call fcn.10003833
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ecx
pop ecx
mov esi, eax
push dword [esi]
call edi
call fcn.100037e3
push dword [ebp + 0x10]
call edi
push str..cached_part
push dword [ebp + 0x10]
call fcn.10003833
pop ecx
pop ecx
mov esi, eax
xor eax, eax
push eax
push eax
push 2
push eax
push 1
push 0x40000000
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
call fcn.100037e3
xor esi, esi
mov eax, dword [ebx + 0x3e8]
cmp eax, esi
je 0x10003070
push 0x64
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10003070
mov eax, dword [ebx + 0x338]
cmp dword [eax + 4], esi
je 0x1000304e
mov ecx, dword [ebx + 0x3e0]
mov edx, dword [ebx + 0x3e4]
jmp 0x10003056
or ecx, 0xffffffff
mov edx, closesocket
mov eax, dword [ebx + 0x3e8]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
mov eax, dword [ebx + 0x3e8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0x10], esi
je 0x100030e4
cmp dword [ebx + 0x3e4], esi
mov eax, dword [ebx + 0x3e0]
jl 0x1000309e
jg 0x10003095
cmp eax, 0x1000
jbe 0x1000309e
mov dword [ebp - 0x1c], 0x1000
jmp 0x100030a1
mov dword [ebp - 0x1c], eax
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x1050]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebp - 0x1c]
cmp edi, esi
je 0x100030d1
mov eax, edi
cdq
sub dword [ebx + 0x3e0], eax
sbb dword [ebx + 0x3e4], edx
jmp 0x10003130
mov eax, dword [ebx + 0x3e0]
or eax, dword [ebx + 0x3e4]
je 0x10003130
mov dword [ebx + 0x24], esi
jmp 0x10003130
lea eax, [ebp - 0x1050]
push 0x1000
push eax
mov eax, ebx
call fcn.10001a35
cmp dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov edi, eax
je 0x10003130
cmp edi, esi
je 0x10003130
lea eax, [ebp - 0x1050]
push edi
push eax
mov eax, dword [ebp - 0xc]
call fcn.10003435
pop ecx
pop ecx
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x4c]
push eax
push edi
lea eax, [ebp - 0x1050]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
cdq
add dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x3e8]
adc dword [ebp - 0x14], edx
cmp eax, esi
je 0x1000318d
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10003170
mov eax, dword [ebx + 0x3e8]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x20], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x24], ecx
mov eax, dword [ebx + 0x3e8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebx + 0x3e8]
cmp eax, esi
je 0x1000318d
push esi
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000318d
mov dword [ebx + 0x24], esi
xor edi, edi
cmp edi, esi
je 0x100031b8
mov eax, fcn.100032f7
test eax, eax
je 0x10003079
push edi
lea eax, [ebp - 0x1050]
push eax
push dword [ebp + 0x14]
push 1
call fcn.100032f7
add esp, 0x10
jmp 0x10003079
mov eax, dword [ebx + 0x328]
push str.Close
push dword [eax]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x100031d6
mov dword [ebx + 0x28], 1
cmp dword [ebp - 4], 0xffffffff
je 0x10002e57
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x24], esi
je 0x10002e57
cmp dword [ebp - 0x10], esi
jne 0x10002e57
push str..cached_part
push dword [ebp + 0x10]
call fcn.10003833
pop ecx
pop ecx
push 9
push dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x100032c4
push dword [ebp - 0x14]
mov eax, dword [ebx + 0x338]
push dword [ebp - 0x18]
call fcn.10003b90
mov eax, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x3b8]
push esi
push esi
push esi
push dword [eax]
call fcn.100038c9
mov eax, dword [ebx + 0xf4]
mov ecx, dword [ebx + 0x3c0]
push esi
push esi
push esi
push dword [eax]
call fcn.100038c9
mov ecx, dword [ebx + 0x3c8]
push esi
push esi
push esi
push str.POST
call fcn.100038c9
mov ecx, dword [ebx + 0x3d0]
push esi
push esi
push esi
push dword [ebp - 8]
call fcn.100038c9
mov ecx, dword [ebx + 0x3d8]
add esp, 0x48
push esi
push esi
push esi
push esi
call fcn.100038c9
add esp, 0x10
push 0x1c
pop edi
mov eax, dword [ebp - 0xc]
mov esi, dword [ebx + 0x3d8]
mov ecx, edi
shr eax, cl
and eax, 0xf
movzx eax, byte [eax + str.0123456789ABCDEF]
push eax
call fcn.10005450
sub edi, 4
pop ecx
jns 0x10003298
push dword [ebp + 0x10]
call fcn.100027e5
pop ecx
mov esi, dword [ebp - 0x10]
call fcn.100037e3
jmp 0x10002e57
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret