Function at 0x407630
Capabilities:
Create http request
Delete directory
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x43600c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 0
push ebx
push esi
push edi
je 0x4078df
cmp dword [ebp + 0x30], 0
je 0x4078df
push 0x4000
mov ebx, 1
mov dword [ebp - 8], 0x4000
call fcn.004153cc
add esp, 4
mov esi, eax
push 0x4000
push 0
push esi
call fcn.00415fc0
add esp, 0xc
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
cmovae eax, dword [ebp + 0x20]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
push 0
push 0
push 0x432e4b
mov dword [ebp - 0x10], eax
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp dword [ebp + 0x1c], 0x10
mov ecx, eax
push 0
push 0
push 0
lea eax, [ebp + 8]
mov dword [ebp - 0x14], ecx
cmovae eax, dword [ebp + 8]
push 0
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov edi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x407723
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
test eax, eax
je 0x40771e
push 0
lea ecx, [ebp - 0xc]
push ecx
push eax
push esi
push dword [ebp - 0x10]
call ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4076f7
mov ebx, 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push 0x4339e8
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.0041768c
add esp, 8
test eax, eax
je 0x4078e1
push eax
call fcn.0041771a
sub esp, 0x14
lea eax, [ebp + 0x20]
mov ecx, esp
push eax
call fcn.00413aa0
call fcn.00404ae0
add esp, 0x18
test eax, eax
jne 0x4078e1
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.004179a7
push ecx
lea ecx, [ebp + 0x20]
call fcn.00413920
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4077cd
push 0
push 0x432e4b
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.00413e00
lea eax, [ebp - 0x44]
mov esi, 1
xor ecx, ecx
jmp 0x407803
cmp dword [ebp + 0x30], ecx
lea eax, [ebp + 0x20]
mov dword [ebp - 0x1c], 0
cmovb ecx, dword [ebp + 0x30]
cmp dword [ebp + 0x34], 0x10
push ecx
cmovae eax, dword [ebp + 0x20]
lea ecx, [ebp - 0x2c]
push eax
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00413e00
xor esi, esi
lea eax, [ebp - 0x2c]
lea ecx, [esi + 2]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x5c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x4c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
test ecx, ecx
je 0x40785d
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x40785d
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407853
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407966
push edx
push ecx
call fcn.004153be
add esp, 8
test esi, esi
je 0x407895
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x407895
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40788b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407966
push edx
push ecx
call fcn.004153be
add esp, 8
cmp dword [ebp - 0x48], 0x10
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x4078db
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4078d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407966
push edx
push ecx
call fcn.004153be
add esp, 8
xor ebx, ebx
jmp 0x4078e1
xor bl, bl
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x407911
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407907
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40796b
push edx
push ecx
call fcn.004153be
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x407953
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407949
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40796b
push edx
push ecx
call fcn.004153be
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414d4c
mov esp, ebp
pop ebp
ret
call fcn.004199f4
call fcn.004199f4
int3