Function at 0x100030f2
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.10042b40
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, str.http:
push esi
push edi
mov ebx, ecx
call fcn.1000491d
test eax, eax
pop ecx
pop ecx
je 0x10003141
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 eax
push esi
call fcn.100040fd
add esp, 0x14
xor eax, eax
push eax
push eax
push eax
push eax
push 0x10044580
jmp 0x1000317d
mov esi, str.https:
push esi
push edi
call fcn.1000491d
test eax, eax
pop ecx
pop ecx
je 0x1000390a
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 eax
push esi
call fcn.100040fd
add esp, 0x14
xor eax, eax
push eax
push eax
push eax
push eax
push 0x1004458c
mov ecx, dword [ebx + 0x5c]
call fcn.100040fd
add esp, 0x14
push 0x10044590
push edi
call fcn.1000491d
test eax, eax
pop ecx
pop ecx
je 0x1000390a
inc edi
inc edi
mov al, byte [edi]
mov dword [ebp + 8], edi
mov ecx, edi
jmp 0x100031b3
cmp al, 0x3a
je 0x100031ba
cmp al, 0x2f
je 0x100031ba
inc ecx
mov al, byte [ecx]
test al, al
mov dword [ebp - 4], ecx
jne 0x100031a8
mov dword [ebp - 8], ecx
mov cl, byte [ecx]
jmp 0x100031ce
cmp cl, 0x2f
je 0x100031d2
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
mov cl, byte [eax]
test cl, cl
jne 0x100031c1
mov edi, dword [ebp - 8]
sub edi, dword [ebp + 8]
push dword [ebp + 8]
mov esi, dword [ebx + 0xf8]
call fcn.1000408d
mov edi, dword [ebp - 4]
sub edi, dword [ebp + 8]
mov esi, dword [ebx + 0x50]
pop ecx
push dword [ebp + 8]
call fcn.1000408d
mov eax, dword [ebx + 0x50]
cmp dword [eax + 4], 0
pop ecx
je 0x1000390a
mov eax, dword [ebp - 4]
cmp byte [eax], 0x3a
jne 0x1000321f
mov edi, dword [ebp - 8]
mov esi, dword [ebx + 0x5c]
sub edi, eax
dec edi
inc eax
push eax
call fcn.1000408d
pop ecx
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x1000322e
mov dword [ebp - 8], 0x10044594
mov ecx, dword [ebx + 0x44]
mov edx, dword [ebx + 0x40]
call fcn.1000440b
test eax, eax
je 0x10003274
mov ecx, dword [ebx + 0xf8]
mov edx, dword [ebx + 0xf4]
call fcn.1000440b
test eax, eax
je 0x10003274
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x4c]
call fcn.1000440b
test eax, eax
je 0x10003274
mov ecx, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x58]
call fcn.1000440b
test eax, eax
jne 0x10003371
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax]
call fcn.100049b2
test eax, eax
pop ecx
je 0x1000390a
mov ecx, dword [ebp - 0x28]
mov eax, ecx
cdq
cmp eax, ecx
jne 0x1000390a
cmp edx, dword [ebp - 0x24]
jne 0x1000390a
xor esi, esi
cmp ecx, esi
jl 0x1000390a
cmp ecx, 0xffff
jg 0x1000390a
mov eax, dword [ebx + 0x50]
push dword [eax]
call sub.WS2_32.dll_gethostbyname
mov edi, eax
cmp edi, esi
je 0x1000390a
mov eax, dword [ebx + 0x44]
mov ecx, dword [ebx + 0x40]
push esi
push esi
push esi
mov dword [ebx + 0x28], 1
push esi
push dword [eax]
call fcn.100040fd
mov eax, dword [ebx + 0xf8]
mov ecx, dword [ebx + 0xf4]
add esp, 0x14
push esi
push esi
push esi
push esi
push dword [eax]
call fcn.100040fd
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x4c]
add esp, 0x14
push esi
push esi
push esi
push esi
push dword [eax]
call fcn.100040fd
mov eax, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x58]
add esp, 0x14
push esi
push esi
push esi
push esi
push dword [eax]
call fcn.100040fd
mov eax, dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x118]
add esp, 0x14
push esi
push esi
push dword [eax]
mov eax, dword [ebx + 0x40]
push 0x10044590
push dword [eax]
call fcn.100040fd
add esp, 0x14
push 0x10
push esi
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
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 0x10003373
xor esi, esi
cmp dword [ebx + 0x28], esi
jne 0x1000337d
cmp dword [ebx + 0x24], esi
jne 0x10003384
mov edi, ebx
call fcn.10001910
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x10], esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov dword [ebp - 0x10], esi
je 0x10003522
push dword [ebp + 0x10]
push ebx
call fcn.10002f49
test eax, eax
pop ecx
pop ecx
je 0x10003522
mov ecx, dword [ebx + 0x40]
mov edx, dword [ebx + 0x3b8]
call fcn.1000440b
test eax, eax
je 0x10003522
mov ecx, dword [ebx + 0xf4]
mov edx, dword [ebx + 0x3c0]
call fcn.1000440b
test eax, eax
je 0x10003522
mov eax, dword [ebx + 0x3c8]
push str.POST
push dword [eax]
call edi
test eax, eax
jne 0x10003522
push dword [ebp - 8]
mov eax, dword [ebx + 0x3d0]
push dword [eax]
call edi
test eax, eax
jne 0x10003522
mov eax, dword [ebx + 0x378]
cmp dword [eax + 4], esi
jne 0x10003422
mov ecx, dword [ebx + 0x388]
cmp dword [ecx + 4], esi
je 0x10003522
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.10001e57
add esp, 0x18
test eax, eax
je 0x1000390a
mov eax, dword [ebx + 0x2f0]
push str.304_Not_Modified
push dword [eax]
call edi
test eax, eax
jne 0x1000353e
mov eax, dword [ebx + 0x328]
push str.Close
push dword [eax]
call edi
test eax, eax
jne 0x10003477
mov dword [ebx + 0x28], 1
mov eax, fcn.10003930
test eax, eax
jne 0x10003488
mov eax, dword [ebx + 0x24]
jmp 0x1000390c
push esi
push esi
push 3
push esi
push 1
push bind
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x1000390a
mov eax, dword [ebx + 0x348]
xor edi, edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push dword [eax]
call fcn.10004055
push dword [ebp + 0x10]
mov esi, eax
push ebx
call fcn.10002f49
mov ecx, dword [ebx + 0x348]
push edi
push edi
push edi
push edi
push dword [esi]
call fcn.100040fd
add esp, 0x3c
call fcn.10004011
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.100043dc
pop ecx
pop ecx
mov dword [ebp - 0x10], 1
xor esi, esi
jmp 0x1000353e
push esi
push esi
push dword [ebp + 0xc]
push dword [ebx + 0x20]
push dword [ebp - 8]
push ebx
call fcn.10001e57
add esp, 0x18
test eax, eax
je 0x1000390a
mov eax, fcn.10003930
test eax, eax
je 0x100035e8
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x100441e1
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.10004055
add esp, 0x20
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 0x100035c8
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.1000429f
add esp, 0x20
inc edi
cmp edi, 8
jb 0x1000359c
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.1000429f
add esp, 0x20
cmp dword [ebp + 0x10], esi
je 0x10003648
cmp dword [ebp - 0x10], esi
jne 0x10003648
push str..cached_header
push dword [ebp + 0x10]
call fcn.10004039
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ecx
pop ecx
mov esi, eax
push dword [esi]
call edi
call fcn.10003fe9
push dword [ebp + 0x10]
call edi
push str..cached_part
push dword [ebp + 0x10]
call fcn.10004039
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.10003fe9
xor esi, esi
mov eax, dword [ebx + 0x3e8]
cmp eax, esi
je 0x1000369b
push 0x64
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000369b
mov eax, dword [ebx + 0x338]
cmp dword [eax + 4], esi
je 0x10003679
mov ecx, dword [ebx + 0x3e0]
mov edx, dword [ebx + 0x3e4]
jmp 0x10003681
or ecx, 0xffffffff
mov edx, bind
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 0x1000370f
cmp dword [ebx + 0x3e4], esi
mov eax, dword [ebx + 0x3e0]
jl 0x100036c9
jg 0x100036c0
cmp eax, 0x1000
jbe 0x100036c9
mov dword [ebp - 0x1c], 0x1000
jmp 0x100036cc
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 0x100036fc
mov eax, edi
cdq
sub dword [ebx + 0x3e0], eax
sbb dword [ebx + 0x3e4], edx
jmp 0x1000375b
mov eax, dword [ebx + 0x3e0]
or eax, dword [ebx + 0x3e4]
je 0x1000375b
mov dword [ebx + 0x24], esi
jmp 0x1000375b
lea eax, [ebp - 0x1050]
push 0x1000
push eax
mov eax, ebx
call fcn.10001c61
cmp dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov edi, eax
je 0x1000375b
cmp edi, esi
je 0x1000375b
lea eax, [ebp - 0x1050]
push edi
push eax
mov eax, dword [ebp - 0xc]
call fcn.10003a38
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 0x100037b8
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000379b
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 0x100037b8
push esi
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100037b8
mov dword [ebx + 0x24], esi
xor edi, edi
cmp edi, esi
je 0x100037e3
mov eax, fcn.10003930
test eax, eax
je 0x100036a4
push edi
lea eax, [ebp - 0x1050]
push eax
push dword [ebp + 0x14]
push 1
call fcn.10003930
add esp, 0x10
jmp 0x100036a4
mov eax, dword [ebx + 0x328]
push str.Close
push dword [eax]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10003801
mov dword [ebx + 0x28], 1
cmp dword [ebp - 4], 0xffffffff
je 0x10003480
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x24], esi
je 0x10003480
cmp dword [ebp - 0x10], esi
jne 0x10003480
push str..cached_part
push dword [ebp + 0x10]
call fcn.10004039
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 0x100038fd
push dword [ebp - 0x14]
mov eax, dword [ebx + 0x338]
push dword [ebp - 0x18]
call fcn.100043dc
mov eax, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x3b8]
push esi
push esi
push esi
push esi
push dword [eax]
call fcn.100040fd
mov eax, dword [ebx + 0xf4]
mov ecx, dword [ebx + 0x3c0]
add esp, 0x1c
push esi
push esi
push esi
push esi
push dword [eax]
call fcn.100040fd
mov ecx, dword [ebx + 0x3c8]
add esp, 0x14
push esi
push esi
push esi
push esi
push str.POST
call fcn.100040fd
mov ecx, dword [ebx + 0x3d0]
add esp, 0x14
push esi
push esi
push esi
push esi
push dword [ebp - 8]
call fcn.100040fd
mov ecx, dword [ebx + 0x3d8]
add esp, 0x14
push esi
push esi
push esi
push esi
push esi
call fcn.100040fd
add esp, 0x14
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.10004239
sub edi, 4
pop ecx
jns 0x100038d1
push dword [ebp + 0x10]
call fcn.10002de7
pop ecx
mov esi, dword [ebp - 0x10]
call fcn.10003fe9
jmp 0x10003480
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret