Function at 0x40a400
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
push 0xffffffffffffffff
push 0x44a990
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
mov dword [ebp - 4], 1
cmp dword [ebp + 0x18], 0
je 0x40a610
cmp dword [ebp + 0x30], 0
je 0x40a610
push esi
push edi
push 0x4000
mov ebx, 1
mov dword [ebp - 0x10], 0x4000
call fcn.0041f5ca
push 0x4000
mov esi, eax
push 0
push esi
call fcn.00436180
add esp, 0x10
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 0x4591bb
mov dword [ebp - 0x14], 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 - 0x18], 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 - 0x10]
push eax
push dword [ebp - 0x10]
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40a502
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40a4fd
push 0
lea ecx, [ebp - 0x1c]
push ecx
push eax
push esi
push dword [ebp - 0x14]
call ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push esi
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40a4d6
mov ebx, 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push 0x459f18
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.00438786
add esp, 8
test eax, eax
je 0x40a60c
push eax
call fcn.00438814
add esp, 4
lea eax, [ebp + 0x20]
lea ecx, [ebp - 0x34]
push eax
call fcn.00419ff0
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push ecx
push eax
call fcn.004394ec
mov edx, dword [ebp - 0x20]
or esi, 0xffffffff
add esp, 8
test eax, eax
cmove esi, dword [ebp - 0x50]
cmp edx, 0x10
jb 0x40a5a4
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a59a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a695
push edx
push ecx
call fcn.0041f5bc
add esp, 8
test esi, esi
jne 0x40a60c
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.00438aa1
add esp, 4
lea edx, [ebp + 0x20]
lea ecx, [ebp - 0x34]
call fcn.004063e0
cmp dword [eax + 0x14], 0x10
jb 0x40a5cf
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x40a60a
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a600
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a69a
push edx
push ecx
call fcn.0041f5bc
add esp, 8
xor ebx, ebx
pop edi
pop esi
jmp 0x40a612
xor bl, bl
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x40a642
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a638
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a69f
push edx
push ecx
call fcn.0041f5bc
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 0x40a684
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a67a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a69f
push edx
push ecx
call fcn.0041f5bc
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.00438cc7
call fcn.00438cc7
call fcn.00438cc7
int3