Function at 0x100030fa
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.10042d60
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, str.http:
push esi
push edi
mov ebx, ecx
call fcn.10004914
test eax, eax
pop ecx
pop ecx
je 0x10003149
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.10004105
add esp, 0x14
xor eax, eax
push eax
push eax
push eax
push eax
push 0x10044580
jmp 0x10003185
mov esi, str.https:
push esi
push edi
call fcn.10004914
test eax, eax
pop ecx
pop ecx
je 0x10003912
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.10004105
add esp, 0x14
xor eax, eax
push eax
push eax
push eax
push eax
push 0x1004458c
mov ecx, dword [ebx + 0x5c]
call fcn.10004105
add esp, 0x14
push 0x10044590
push edi
call fcn.10004914
test eax, eax
pop ecx
pop ecx
je 0x10003912
inc edi
inc edi
mov al, byte [edi]
mov dword [ebp + 8], edi
mov ecx, edi
jmp 0x100031bb
cmp al, 0x3a
je 0x100031c2
cmp al, 0x2f
je 0x100031c2
inc ecx
mov al, byte [ecx]
test al, al
mov dword [ebp - 4], ecx
jne 0x100031b0
mov dword [ebp - 8], ecx
mov cl, byte [ecx]
jmp 0x100031d6
cmp cl, 0x2f
je 0x100031da
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
mov cl, byte [eax]
test cl, cl
jne 0x100031c9
mov edi, dword [ebp - 8]
sub edi, dword [ebp + 8]
push dword [ebp + 8]
mov esi, dword [ebx + 0xf8]
call fcn.10004095
mov edi, dword [ebp - 4]
sub edi, dword [ebp + 8]
mov esi, dword [ebx + 0x50]
pop ecx
push dword [ebp + 8]
call fcn.10004095
mov eax, dword [ebx + 0x50]
cmp dword [eax + 4], 0
pop ecx
je 0x10003912
mov eax, dword [ebp - 4]
cmp byte [eax], 0x3a
jne 0x10003227
mov edi, dword [ebp - 8]
mov esi, dword [ebx + 0x5c]
sub edi, eax
dec edi
inc eax
push eax
call fcn.10004095
pop ecx
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x10003236
mov dword [ebp - 8], 0x10044594
mov ecx, dword [ebx + 0x44]
mov edx, dword [ebx + 0x40]
call fcn.10004402
test eax, eax
je 0x1000327c
mov ecx, dword [ebx + 0xf8]
mov edx, dword [ebx + 0xf4]
call fcn.10004402
test eax, eax
je 0x1000327c
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x4c]
call fcn.10004402
test eax, eax
je 0x1000327c
mov ecx, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x58]
call fcn.10004402
test eax, eax
jne 0x10003379
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax]
call fcn.100049a9
test eax, eax
pop ecx
je 0x10003912
mov ecx, dword [ebp - 0x28]
mov eax, ecx
cdq
cmp eax, ecx
jne 0x10003912
cmp edx, dword [ebp - 0x24]
jne 0x10003912
xor esi, esi
cmp ecx, esi
jl 0x10003912
cmp ecx, 0xffff
jg 0x10003912
mov eax, dword [ebx + 0x50]
push dword [eax]
call sub.WS2_32.dll_gethostbyname
mov edi, eax
cmp edi, esi
je 0x10003912
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.10004105
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.10004105
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.10004105
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.10004105
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.10004105
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 0x1000337b
xor esi, esi
cmp dword [ebx + 0x28], esi
jne 0x10003385
cmp dword [ebx + 0x24], esi
jne 0x1000338c
mov edi, ebx
call fcn.10001918
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x10], esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov dword [ebp - 0x10], esi
je 0x1000352a
push dword [ebp + 0x10]
push ebx
call fcn.10002f51
test eax, eax
pop ecx
pop ecx
je 0x1000352a
mov ecx, dword [ebx + 0x40]
mov edx, dword [ebx + 0x3b8]
call fcn.10004402
test eax, eax
je 0x1000352a
mov ecx, dword [ebx + 0xf4]
mov edx, dword [ebx + 0x3c0]
call fcn.10004402
test eax, eax
je 0x1000352a
mov eax, dword [ebx + 0x3c8]
push str.POST
push dword [eax]
call edi
test eax, eax
jne 0x1000352a
push dword [ebp - 8]
mov eax, dword [ebx + 0x3d0]
push dword [eax]
call edi
test eax, eax
jne 0x1000352a
mov eax, dword [ebx + 0x378]
cmp dword [eax + 4], esi
jne 0x1000342a
mov ecx, dword [ebx + 0x388]
cmp dword [ecx + 4], esi
je 0x1000352a
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.10001e5f
add esp, 0x18
test eax, eax
je 0x10003912
mov eax, dword [ebx + 0x2f0]
push str.304_Not_Modified
push dword [eax]
call edi
test eax, eax
jne 0x10003546
mov eax, dword [ebx + 0x328]
push str.Close
push dword [eax]
call edi
test eax, eax
jne 0x1000347f
mov dword [ebx + 0x28], 1
mov eax, fcn.10003938
test eax, eax
jne 0x10003490
mov eax, dword [ebx + 0x24]
jmp 0x10003914
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 0x10003912
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.1000405d
push dword [ebp + 0x10]
mov esi, eax
push ebx
call fcn.10002f51
mov ecx, dword [ebx + 0x348]
push edi
push edi
push edi
push edi
push dword [esi]
call fcn.10004105
add esp, 0x3c
call fcn.10004019
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.100043d3
pop ecx
pop ecx
mov dword [ebp - 0x10], 1
xor esi, esi
jmp 0x10003546
push esi
push esi
push dword [ebp + 0xc]
push dword [ebx + 0x20]
push dword [ebp - 8]
push ebx
call fcn.10001e5f
add esp, 0x18
test eax, eax
je 0x10003912
mov eax, fcn.10003938
test eax, eax
je 0x100035f0
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.1000405d
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 0x100035d0
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.10004296
add esp, 0x20
inc edi
cmp edi, 8
jb 0x100035a4
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.10004296
add esp, 0x20
cmp dword [ebp + 0x10], esi
je 0x10003650
cmp dword [ebp - 0x10], esi
jne 0x10003650
push str..cached_header
push dword [ebp + 0x10]
call fcn.10004041
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ecx
pop ecx
mov esi, eax
push dword [esi]
call edi
call fcn.10003ff1
push dword [ebp + 0x10]
call edi
push str..cached_part
push dword [ebp + 0x10]
call fcn.10004041
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.10003ff1
xor esi, esi
mov eax, dword [ebx + 0x3e8]
cmp eax, esi
je 0x100036a3
push 0x64
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100036a3
mov eax, dword [ebx + 0x338]
cmp dword [eax + 4], esi
je 0x10003681
mov ecx, dword [ebx + 0x3e0]
mov edx, dword [ebx + 0x3e4]
jmp 0x10003689
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 0x10003717
cmp dword [ebx + 0x3e4], esi
mov eax, dword [ebx + 0x3e0]
jl 0x100036d1
jg 0x100036c8
cmp eax, 0x1000
jbe 0x100036d1
mov dword [ebp - 0x1c], 0x1000
jmp 0x100036d4
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 0x10003704
mov eax, edi
cdq
sub dword [ebx + 0x3e0], eax
sbb dword [ebx + 0x3e4], edx
jmp 0x10003763
mov eax, dword [ebx + 0x3e0]
or eax, dword [ebx + 0x3e4]
je 0x10003763
mov dword [ebx + 0x24], esi
jmp 0x10003763
lea eax, [ebp - 0x1050]
push 0x1000
push eax
mov eax, ebx
call fcn.10001c69
cmp dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov edi, eax
je 0x10003763
cmp edi, esi
je 0x10003763
lea eax, [ebp - 0x1050]
push edi
push eax
mov eax, dword [ebp - 0xc]
call fcn.10003a40
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 0x100037c0
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100037a3
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 0x100037c0
push esi
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100037c0
mov dword [ebx + 0x24], esi
xor edi, edi
cmp edi, esi
je 0x100037eb
mov eax, fcn.10003938
test eax, eax
je 0x100036ac
push edi
lea eax, [ebp - 0x1050]
push eax
push dword [ebp + 0x14]
push 1
call fcn.10003938
add esp, 0x10
jmp 0x100036ac
mov eax, dword [ebx + 0x328]
push str.Close
push dword [eax]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10003809
mov dword [ebx + 0x28], 1
cmp dword [ebp - 4], 0xffffffff
je 0x10003488
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x24], esi
je 0x10003488
cmp dword [ebp - 0x10], esi
jne 0x10003488
push str..cached_part
push dword [ebp + 0x10]
call fcn.10004041
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 0x10003905
push dword [ebp - 0x14]
mov eax, dword [ebx + 0x338]
push dword [ebp - 0x18]
call fcn.100043d3
mov eax, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x3b8]
push esi
push esi
push esi
push esi
push dword [eax]
call fcn.10004105
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.10004105
mov ecx, dword [ebx + 0x3c8]
add esp, 0x14
push esi
push esi
push esi
push esi
push str.POST
call fcn.10004105
mov ecx, dword [ebx + 0x3d0]
add esp, 0x14
push esi
push esi
push esi
push esi
push dword [ebp - 8]
call fcn.10004105
mov ecx, dword [ebx + 0x3d8]
add esp, 0x14
push esi
push esi
push esi
push esi
push esi
call fcn.10004105
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.10005665
sub edi, 4
pop ecx
jns 0x100038d9
push dword [ebp + 0x10]
call fcn.10002def
pop ecx
mov esi, dword [ebp - 0x10]
call fcn.10003ff1
jmp 0x10003488
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret