Function at 0x1000312e
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.10042e80
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, str.http:
push esi
push edi
mov ebx, ecx
call fcn.10004959
test eax, eax
pop ecx
pop ecx
je 0x1000317d
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.10004139
add esp, 0x14
xor eax, eax
push eax
push eax
push eax
push eax
push 0x10044578
jmp 0x100031b9
mov esi, str.https:
push esi
push edi
call fcn.10004959
test eax, eax
pop ecx
pop ecx
je 0x10003946
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.10004139
add esp, 0x14
xor eax, eax
push eax
push eax
push eax
push eax
push 0x10044584
mov ecx, dword [ebx + 0x5c]
call fcn.10004139
add esp, 0x14
push 0x10044588
push edi
call fcn.10004959
test eax, eax
pop ecx
pop ecx
je 0x10003946
inc edi
inc edi
mov al, byte [edi]
mov dword [ebp + 8], edi
mov ecx, edi
jmp 0x100031ef
cmp al, 0x3a
je 0x100031f6
cmp al, 0x2f
je 0x100031f6
inc ecx
mov al, byte [ecx]
test al, al
mov dword [ebp - 4], ecx
jne 0x100031e4
mov dword [ebp - 8], ecx
mov cl, byte [ecx]
jmp 0x1000320a
cmp cl, 0x2f
je 0x1000320e
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
mov cl, byte [eax]
test cl, cl
jne 0x100031fd
mov edi, dword [ebp - 8]
sub edi, dword [ebp + 8]
push dword [ebp + 8]
mov esi, dword [ebx + 0xf8]
call fcn.100040c9
mov edi, dword [ebp - 4]
sub edi, dword [ebp + 8]
mov esi, dword [ebx + 0x50]
pop ecx
push dword [ebp + 8]
call fcn.100040c9
mov eax, dword [ebx + 0x50]
cmp dword [eax + 4], 0
pop ecx
je 0x10003946
mov eax, dword [ebp - 4]
cmp byte [eax], 0x3a
jne 0x1000325b
mov edi, dword [ebp - 8]
mov esi, dword [ebx + 0x5c]
sub edi, eax
dec edi
inc eax
push eax
call fcn.100040c9
pop ecx
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x1000326a
mov dword [ebp - 8], 0x1004458c
mov ecx, dword [ebx + 0x44]
mov edx, dword [ebx + 0x40]
call fcn.10004447
test eax, eax
je 0x100032b0
mov ecx, dword [ebx + 0xf8]
mov edx, dword [ebx + 0xf4]
call fcn.10004447
test eax, eax
je 0x100032b0
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x4c]
call fcn.10004447
test eax, eax
je 0x100032b0
mov ecx, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x58]
call fcn.10004447
test eax, eax
jne 0x100033ad
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebx + 0x5c]
mov eax, dword [eax]
call fcn.100049ee
test eax, eax
pop ecx
je 0x10003946
mov ecx, dword [ebp - 0x28]
mov eax, ecx
cdq
cmp eax, ecx
jne 0x10003946
cmp edx, dword [ebp - 0x24]
jne 0x10003946
xor esi, esi
cmp ecx, esi
jl 0x10003946
cmp ecx, 0xffff
jg 0x10003946
mov eax, dword [ebx + 0x50]
push dword [eax]
call sub.WS2_32.dll_gethostbyname
mov edi, eax
cmp edi, esi
je 0x10003946
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.10004139
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.10004139
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.10004139
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.10004139
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 0x10044588
push dword [eax]
call fcn.10004139
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 0x100033af
xor esi, esi
cmp dword [ebx + 0x28], esi
jne 0x100033b9
cmp dword [ebx + 0x24], esi
jne 0x100033c0
mov edi, ebx
call fcn.10001952
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x10], esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov dword [ebp - 0x10], esi
je 0x1000355e
push dword [ebp + 0x10]
push ebx
call fcn.10002f85
test eax, eax
pop ecx
pop ecx
je 0x1000355e
mov ecx, dword [ebx + 0x40]
mov edx, dword [ebx + 0x3b8]
call fcn.10004447
test eax, eax
je 0x1000355e
mov ecx, dword [ebx + 0xf4]
mov edx, dword [ebx + 0x3c0]
call fcn.10004447
test eax, eax
je 0x1000355e
mov eax, dword [ebx + 0x3c8]
push str.POST
push dword [eax]
call edi
test eax, eax
jne 0x1000355e
push dword [ebp - 8]
mov eax, dword [ebx + 0x3d0]
push dword [eax]
call edi
test eax, eax
jne 0x1000355e
mov eax, dword [ebx + 0x378]
cmp dword [eax + 4], esi
jne 0x1000345e
mov ecx, dword [ebx + 0x388]
cmp dword [ecx + 4], esi
je 0x1000355e
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.10001e99
add esp, 0x18
test eax, eax
je 0x10003946
mov eax, dword [ebx + 0x2f0]
push str.304_Not_Modified
push dword [eax]
call edi
test eax, eax
jne 0x1000357a
mov eax, dword [ebx + 0x328]
push str.Close
push dword [eax]
call edi
test eax, eax
jne 0x100034b3
mov dword [ebx + 0x28], 1
mov eax, fcn.1000396c
test eax, eax
jne 0x100034c4
mov eax, dword [ebx + 0x24]
jmp 0x10003948
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 0x10003946
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.10004091
push dword [ebp + 0x10]
mov esi, eax
push ebx
call fcn.10002f85
mov ecx, dword [ebx + 0x348]
push edi
push edi
push edi
push edi
push dword [esi]
call fcn.10004139
add esp, 0x3c
call fcn.1000404d
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.10004418
pop ecx
pop ecx
mov dword [ebp - 0x10], 1
xor esi, esi
jmp 0x1000357a
push esi
push esi
push dword [ebp + 0xc]
push dword [ebx + 0x20]
push dword [ebp - 8]
push ebx
call fcn.10001e99
add esp, 0x18
test eax, eax
je 0x10003946
mov eax, fcn.1000396c
test eax, eax
je 0x10003624
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.10004091
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 0x10003604
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.100042db
add esp, 0x20
inc edi
cmp edi, 8
jb 0x100035d8
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.100042db
add esp, 0x20
cmp dword [ebp + 0x10], esi
je 0x10003684
cmp dword [ebp - 0x10], esi
jne 0x10003684
push str..cached_header
push dword [ebp + 0x10]
call fcn.10004075
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ecx
pop ecx
mov esi, eax
push dword [esi]
call edi
call fcn.10004025
push dword [ebp + 0x10]
call edi
push str..cached_part
push dword [ebp + 0x10]
call fcn.10004075
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.10004025
xor esi, esi
mov eax, dword [ebx + 0x3e8]
cmp eax, esi
je 0x100036d7
push 0x64
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100036d7
mov eax, dword [ebx + 0x338]
cmp dword [eax + 4], esi
je 0x100036b5
mov ecx, dword [ebx + 0x3e0]
mov edx, dword [ebx + 0x3e4]
jmp 0x100036bd
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 0x1000374b
cmp dword [ebx + 0x3e4], esi
mov eax, dword [ebx + 0x3e0]
jl 0x10003705
jg 0x100036fc
cmp eax, 0x1000
jbe 0x10003705
mov dword [ebp - 0x1c], 0x1000
jmp 0x10003708
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 0x10003738
mov eax, edi
cdq
sub dword [ebx + 0x3e0], eax
sbb dword [ebx + 0x3e4], edx
jmp 0x10003797
mov eax, dword [ebx + 0x3e0]
or eax, dword [ebx + 0x3e4]
je 0x10003797
mov dword [ebx + 0x24], esi
jmp 0x10003797
lea eax, [ebp - 0x1050]
push 0x1000
push eax
mov eax, ebx
call fcn.10001ca3
cmp dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov edi, eax
je 0x10003797
cmp edi, esi
je 0x10003797
lea eax, [ebp - 0x1050]
push edi
push eax
mov eax, dword [ebp - 0xc]
call fcn.10003a74
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 0x100037f4
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100037d7
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 0x100037f4
push esi
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100037f4
mov dword [ebx + 0x24], esi
xor edi, edi
cmp edi, esi
je 0x1000381f
mov eax, fcn.1000396c
test eax, eax
je 0x100036e0
push edi
lea eax, [ebp - 0x1050]
push eax
push dword [ebp + 0x14]
push 1
call fcn.1000396c
add esp, 0x10
jmp 0x100036e0
mov eax, dword [ebx + 0x328]
push str.Close
push dword [eax]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1000383d
mov dword [ebx + 0x28], 1
cmp dword [ebp - 4], 0xffffffff
je 0x100034bc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x24], esi
je 0x100034bc
cmp dword [ebp - 0x10], esi
jne 0x100034bc
push str..cached_part
push dword [ebp + 0x10]
call fcn.10004075
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 0x10003939
push dword [ebp - 0x14]
mov eax, dword [ebx + 0x338]
push dword [ebp - 0x18]
call fcn.10004418
mov eax, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x3b8]
push esi
push esi
push esi
push esi
push dword [eax]
call fcn.10004139
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.10004139
mov ecx, dword [ebx + 0x3c8]
add esp, 0x14
push esi
push esi
push esi
push esi
push str.POST
call fcn.10004139
mov ecx, dword [ebx + 0x3d0]
add esp, 0x14
push esi
push esi
push esi
push esi
push dword [ebp - 8]
call fcn.10004139
mov ecx, dword [ebx + 0x3d8]
add esp, 0x14
push esi
push esi
push esi
push esi
push esi
call fcn.10004139
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.10004275
sub edi, 4
pop ecx
jns 0x1000390d
push dword [ebp + 0x10]
call fcn.10002e23
pop ecx
mov esi, dword [ebp - 0x10]
call fcn.10004025
jmp 0x100034bc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret