Function at 0x10002ae9
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.1002aba0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, str.http:
push esi
push edi
mov ebx, ecx
call fcn.10003e97
test eax, eax
pop ecx
pop ecx
je 0x10002b33
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.100038d2
xor eax, eax
push eax
push eax
push eax
push 0x1002c548
jmp 0x10002b6a
mov esi, str.https:
push esi
push edi
call fcn.10003e97
test eax, eax
pop ecx
pop ecx
je 0x100032d8
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.100038d2
xor eax, eax
push eax
push eax
push eax
push 0x1002c554
mov ecx, dword [ebx + 0x5c]
call fcn.100038d2
add esp, 0x20
push 0x1002c558
push edi
call fcn.10003e97
test eax, eax
pop ecx
pop ecx
je 0x100032d8
inc edi
inc edi
mov al, byte [edi]
mov dword [ebp + 8], edi
mov ecx, edi
jmp 0x10002ba0
cmp al, 0x3a
je 0x10002ba7
cmp al, 0x2f
je 0x10002ba7
inc ecx
mov al, byte [ecx]
test al, al
mov dword [ebp - 4], ecx
jne 0x10002b95
mov dword [ebp - 8], ecx
mov cl, byte [ecx]
jmp 0x10002bbb
cmp cl, 0x2f
je 0x10002bbf
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
mov cl, byte [eax]
test cl, cl
jne 0x10002bae
mov edi, dword [ebp - 8]
sub edi, dword [ebp + 8]
push dword [ebp + 8]
mov esi, dword [ebx + 0xf8]
call fcn.1000388d
mov edi, dword [ebp - 4]
sub edi, dword [ebp + 8]
mov esi, dword [ebx + 0x50]
pop ecx
push dword [ebp + 8]
call fcn.1000388d
mov eax, dword [ebx + 0x50]
cmp dword [eax + 4], 0
pop ecx
je 0x100032d8
mov eax, dword [ebp - 4]
cmp byte [eax], 0x3a
jne 0x10002c0c
mov edi, dword [ebp - 8]
mov esi, dword [ebx + 0x5c]
sub edi, eax
dec edi
inc eax
push eax
call fcn.1000388d
pop ecx
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x10002c1b
mov dword [ebp - 8], 0x1002c55c
mov ecx, dword [ebx + 0x44]
mov edx, dword [ebx + 0x40]
call fcn.10003bcc
test eax, eax
je 0x10002c61
mov ecx, dword [ebx + 0xf8]
mov edx, dword [ebx + 0xf4]
call fcn.10003bcc
test eax, eax
je 0x10002c61
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x4c]
call fcn.10003bcc
test eax, eax
je 0x10002c61
mov ecx, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x58]
call fcn.10003bcc
test eax, eax
jne 0x10002d4d
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax]
call fcn.10003f18
test eax, eax
pop ecx
je 0x100032d8
mov ecx, dword [ebp - 0x28]
mov eax, ecx
cdq
cmp eax, ecx
jne 0x100032d8
cmp edx, dword [ebp - 0x24]
jne 0x100032d8
xor esi, esi
cmp ecx, esi
jl 0x100032d8
cmp ecx, 0xffff
jg 0x100032d8
mov eax, dword [ebx + 0x50]
push dword [eax]
call sub.WS2_32.dll_gethostbyname
mov edi, eax
cmp edi, esi
je 0x100032d8
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.100038d2
mov eax, dword [ebx + 0xf8]
mov ecx, dword [ebx + 0xf4]
push esi
push esi
push esi
push dword [eax]
call fcn.100038d2
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x4c]
push esi
push esi
push esi
push dword [eax]
call fcn.100038d2
mov eax, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x58]
push esi
push esi
push esi
push dword [eax]
call fcn.100038d2
mov eax, dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x118]
add esp, 0x40
push esi
push dword [eax]
mov eax, dword [ebx + 0x40]
push 0x1002c558
push dword [eax]
call fcn.100038d2
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 0x10002d4f
xor esi, esi
cmp dword [ebx + 0x28], esi
jne 0x10002d59
cmp dword [ebx + 0x24], esi
jne 0x10002d60
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 0x10002eff
push dword [ebp + 0x10]
push ebx
call fcn.10002949
test eax, eax
pop ecx
pop ecx
je 0x10002eff
mov ecx, dword [ebx + 0x40]
mov edx, dword [ebx + 0x3b8]
call fcn.10003bcc
test eax, eax
je 0x10002eff
mov ecx, dword [ebx + 0xf4]
mov edx, dword [ebx + 0x3c0]
call fcn.10003bcc
test eax, eax
je 0x10002eff
mov eax, dword [ebx + 0x3c8]
push str.POST
push dword [eax]
call edi
test eax, eax
jne 0x10002eff
push dword [ebp - 8]
mov eax, dword [ebx + 0x3d0]
push dword [eax]
call edi
test eax, eax
jne 0x10002eff
mov eax, dword [ebx + 0x378]
cmp dword [eax + 4], esi
jne 0x10002dfe
mov ecx, dword [ebx + 0x388]
cmp dword [ecx + 4], esi
je 0x10002eff
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.10001c2c
add esp, 0x18
test eax, eax
je 0x100032d8
mov eax, dword [ebx + 0x2f0]
push str.304_Not_Modified
push dword [eax]
call edi
test eax, eax
jne 0x10002f1b
mov eax, dword [ebx + 0x328]
push str.Close
push dword [eax]
call edi
test eax, eax
jne 0x10002e53
mov dword [ebx + 0x28], 1
mov eax, fcn.100032fe
test eax, eax
jne 0x10002e64
mov eax, dword [ebx + 0x24]
jmp 0x100032da
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 0x100032d8
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.10003856
add esp, 0x1c
push dword [ebp + 0x10]
mov esi, eax
push ebx
call fcn.10002949
mov ecx, dword [ebx + 0x348]
push edi
push edi
push edi
push dword [esi]
call fcn.100038d2
add esp, 0x18
call fcn.10003812
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.10003b9d
pop ecx
pop ecx
mov dword [ebp - 0x10], 1
xor esi, esi
jmp 0x10002f1b
push esi
push esi
push dword [ebp + 0xc]
push dword [ebx + 0x20]
push dword [ebp - 8]
push ebx
call fcn.10001c2c
add esp, 0x18
test eax, eax
je 0x100032d8
mov eax, fcn.100032fe
test eax, eax
je 0x10002fc4
push esi
push esi
push esi
push esi
push esi
push esi
push 0x1002c1b1
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.10003856
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 0x10002fa4
mov eax, dword [ebx + eax*8 + 0x2d4]
mov eax, dword [eax]
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ecx]
push dword [ebp - 0xc]
call fcn.10003a61
add esp, 0x20
inc edi
cmp edi, 8
jb 0x10002f78
mov eax, dword [ebx + 0x180]
mov eax, dword [eax]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0xc]
call fcn.10003a61
add esp, 0x20
cmp dword [ebp + 0x10], esi
je 0x10003024
cmp dword [ebp - 0x10], esi
jne 0x10003024
push str..cached_header
push dword [ebp + 0x10]
call fcn.1000383a
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ecx
pop ecx
mov esi, eax
push dword [esi]
call edi
call fcn.100037ea
push dword [ebp + 0x10]
call edi
push str..cached_part
push dword [ebp + 0x10]
call fcn.1000383a
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.100037ea
xor esi, esi
mov eax, dword [ebx + 0x3e8]
cmp eax, esi
je 0x10003077
push 0x64
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10003077
mov eax, dword [ebx + 0x338]
cmp dword [eax + 4], esi
je 0x10003055
mov ecx, dword [ebx + 0x3e0]
mov edx, dword [ebx + 0x3e4]
jmp 0x1000305d
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 0x100030eb
cmp dword [ebx + 0x3e4], esi
mov eax, dword [ebx + 0x3e0]
jl 0x100030a5
jg 0x1000309c
cmp eax, 0x1000
jbe 0x100030a5
mov dword [ebp - 0x1c], 0x1000
jmp 0x100030a8
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 0x100030d8
mov eax, edi
cdq
sub dword [ebx + 0x3e0], eax
sbb dword [ebx + 0x3e4], edx
jmp 0x10003137
mov eax, dword [ebx + 0x3e0]
or eax, dword [ebx + 0x3e4]
je 0x10003137
mov dword [ebx + 0x24], esi
jmp 0x10003137
lea eax, [ebp - 0x1050]
push 0x1000
push eax
mov eax, ebx
call fcn.10001a36
cmp dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov edi, eax
je 0x10003137
cmp edi, esi
je 0x10003137
lea eax, [ebp - 0x1050]
push edi
push eax
mov eax, dword [ebp - 0xc]
call fcn.1000343c
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 0x10003194
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10003177
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 0x10003194
push esi
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10003194
mov dword [ebx + 0x24], esi
xor edi, edi
cmp edi, esi
je 0x100031bf
mov eax, fcn.100032fe
test eax, eax
je 0x10003080
push edi
lea eax, [ebp - 0x1050]
push eax
push dword [ebp + 0x14]
push 1
call fcn.100032fe
add esp, 0x10
jmp 0x10003080
mov eax, dword [ebx + 0x328]
push str.Close
push dword [eax]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x100031dd
mov dword [ebx + 0x28], 1
cmp dword [ebp - 4], 0xffffffff
je 0x10002e5c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x24], esi
je 0x10002e5c
cmp dword [ebp - 0x10], esi
jne 0x10002e5c
push str..cached_part
push dword [ebp + 0x10]
call fcn.1000383a
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 0x100032cb
push dword [ebp - 0x14]
mov eax, dword [ebx + 0x338]
push dword [ebp - 0x18]
call fcn.10003b9d
mov eax, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x3b8]
push esi
push esi
push esi
push dword [eax]
call fcn.100038d2
mov eax, dword [ebx + 0xf4]
mov ecx, dword [ebx + 0x3c0]
push esi
push esi
push esi
push dword [eax]
call fcn.100038d2
mov ecx, dword [ebx + 0x3c8]
push esi
push esi
push esi
push str.POST
call fcn.100038d2
mov ecx, dword [ebx + 0x3d0]
push esi
push esi
push esi
push dword [ebp - 8]
call fcn.100038d2
mov ecx, dword [ebx + 0x3d8]
add esp, 0x48
push esi
push esi
push esi
push esi
call fcn.100038d2
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.10005674
sub edi, 4
pop ecx
jns 0x1000329f
push dword [ebp + 0x10]
call fcn.100027e8
pop ecx
mov esi, dword [ebp - 0x10]
call fcn.100037ea
jmp 0x10002e5c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret