Function at 0x40a060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ab37
mov eax, dword fs:[0]
push eax
sub esp, 0x8ac
mov eax, dword [0x44e414]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x8b8], edi
mov ecx, dword [edi + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x8b0], eax
mov eax, dword [ecx]
call dword [eax + 0x28]
cmp dword [ebp + 0xc], 0
je 0x40a760
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 0x814]
mov word [ebp - 0x814], 0xce31
push edx
push 2
mov eax, dword [ecx]
call dword [eax + 0x30]
push 2
lea eax, [ebp - 0x814]
mov ecx, edi
push eax
push 0
call fcn.0040aa00
push 0x401
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0043a378
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 0x414]
add esp, 0xc
mov eax, dword [ecx]
push edx
push 1
call dword [eax + 0x38]
push dword [ebp - 0x414]
mov ecx, edi
push 1
call fcn.0040a920
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov al, byte [ebp - 0x414]
cmp al, 0x1f
je 0x40a760
cmp al, 0x79
jne 0x40a760
mov dword [ebp - 0x8a4], 0
mov dword [ebp - 0x890], 0xf
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 0x8a4]
mov ebx, dword [ebp + 8]
shr ebx, 0x18
mov dword [ebp - 0x894], 1
mov byte [ebp - 0x8a4], bl
mov byte [ebp - 0x8a3], 0
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x8a8], ebx
call dword [eax + 0x2c]
push ebx
push 0
mov ecx, edi
call fcn.0040a920
mov dword [ebp - 0x88c], 0
mov dword [ebp - 0x878], 0xf
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x88c]
mov ecx, dword [edi + 0xc]
shr eax, 0x10
mov bl, al
mov dword [ebp - 0x8b4], eax
mov dword [ebp - 0x87c], 1
mov byte [ebp - 0x88c], bl
mov byte [ebp - 0x88b], 0
mov eax, dword [ecx]
push edx
mov byte [ebp - 4], 1
call dword [eax + 0x2c]
push ebx
push 0
mov ecx, edi
call fcn.0040a920
mov dword [ebp - 0x874], 0
mov dword [ebp - 0x860], 0xf
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x874]
mov ecx, dword [edi + 0xc]
shr eax, 8
mov bl, al
mov dword [ebp - 0x8ac], eax
mov dword [ebp - 0x864], 1
mov byte [ebp - 0x874], bl
mov byte [ebp - 0x873], 0
mov eax, dword [ecx]
push edx
mov byte [ebp - 4], 2
call dword [eax + 0x2c]
push ebx
push 0
mov ecx, edi
call fcn.0040a920
mov dword [ebp - 0x85c], 0
mov dword [ebp - 0x848], 0xf
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 0x85c]
mov bl, byte [ebp + 8]
mov dword [ebp - 0x84c], 1
mov byte [ebp - 0x85c], bl
mov byte [ebp - 0x85b], 0
mov eax, dword [ecx]
push edx
mov byte [ebp - 4], 3
call dword [eax + 0x2c]
push ebx
push 0
mov ecx, edi
call fcn.0040a920
mov dword [ebp - 0x844], 0
mov dword [ebp - 0x830], 0xf
mov ebx, dword [ebp - 0x8a8]
mov byte [ebp - 4], 4
xor bl, byte [ebp - 0x8ac]
lea edx, [ebp - 0x844]
mov ecx, dword [edi + 0xc]
xor bl, byte [ebp - 0x8b4]
xor bl, byte [ebp + 8]
mov dword [ebp - 0x834], 1
mov byte [ebp - 0x844], bl
mov byte [ebp - 0x843], 0
mov eax, dword [ecx]
push edx
call dword [eax + 0x2c]
push ebx
push 0
mov ecx, edi
call fcn.0040a920
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 0x414]
push edx
push 1
mov eax, dword [ecx]
call dword [eax + 0x38]
push dword [ebp - 0x414]
mov ecx, edi
push 1
call fcn.0040a920
cmp byte [ebp - 0x414], 0x79
jne 0x40a5ce
mov dword [ebp - 0x82c], 0
mov dword [ebp - 0x818], 0xf
mov ebx, dword [ebp + 0xc]
mov eax, ebx
mov ecx, dword [edi + 0xc]
mov byte [ebp - 4], 5
and eax, 0x80000003
jns 0x40a337
dec eax
or eax, 0xfffffffc
add eax, 1
mov dword [ebp - 0x81c], 1
mov byte [ebp - 0x82b], 0
jne 0x40a3ff
dec bl
lea edx, [ebp - 0x82c]
mov byte [ebp - 0x82c], bl
mov eax, dword [ecx]
push edx
mov byte [ebp - 0x8a8], bl
mov byte [ebp - 0x8ac], bl
call dword [eax + 0x2c]
push dword [ebp - 0x8a8]
mov ecx, edi
push 0
call fcn.0040a920
mov esi, dword [ebp - 0x8b0]
xor edx, edx
movzx eax, bl
add eax, 1
mov dword [ebp - 0x8a8], eax
je 0x40a3db
mov edi, eax
nop word [eax + eax]
cmp dword [ebp - 0x818], 0x10
lea eax, [ebp - 0x82c]
mov cl, byte [esi + edx]
cmovae eax, dword [ebp - 0x82c]
mov dword [ebp - 0x81c], 1
mov byte [eax], cl
mov byte [eax + 1], 0
xor bl, byte [esi + edx]
inc edx
mov byte [ebp - 0x8ac], bl
cmp edx, edi
jl 0x40a3a0
mov edi, dword [ebp - 0x8b8]
mov ecx, dword [edi + 0xc]
push esi
push dword [ebp - 0x8a8]
mov eax, dword [ecx]
call dword [eax + 0x30]
push dword [ebp - 0x8a8]
mov ecx, edi
push esi
push 0
call fcn.0040aa00
jmp 0x40a50f
mov eax, ebx
cdq
and edx, 3
add eax, edx
lea edx, [ebp - 0x82c]
sar eax, 2
shl al, 2
add al, 3
mov bl, al
mov dword [ebp - 0x8b4], eax
mov byte [ebp - 0x8a8], al
mov byte [ebp - 0x82c], al
mov eax, dword [ecx]
push edx
mov byte [ebp - 0x8ac], bl
call dword [eax + 0x2c]
push dword [ebp - 0x8a8]
mov ecx, edi
push 0
call fcn.0040a920
mov esi, dword [ebp + 0xc]
xor edx, edx
test esi, esi
jle 0x40a49b
mov edi, dword [ebp - 0x8b0]
nop dword [eax]
nop word [eax + eax]
cmp dword [ebp - 0x818], 0x10
lea eax, [ebp - 0x82c]
mov cl, byte [edi + edx]
cmovae eax, dword [ebp - 0x82c]
mov dword [ebp - 0x81c], 1
mov byte [eax], cl
mov byte [eax + 1], 0
xor bl, byte [edi + edx]
inc edx
cmp edx, esi
jl 0x40a460
mov edi, dword [ebp - 0x8b8]
mov byte [ebp - 0x8ac], bl
mov ecx, dword [edi + 0xc]
push dword [ebp - 0x8b0]
push esi
mov eax, dword [ecx]
call dword [eax + 0x30]
push esi
push dword [ebp - 0x8b0]
mov ecx, edi
push 0
call fcn.0040aa00
mov ecx, dword [ebp - 0x8b4]
movzx eax, cl
cmp esi, eax
jg 0x40a50f
sub eax, esi
mov esi, eax
inc esi
nop dword [eax]
cmp dword [ebp - 0x818], 0x10
lea eax, [ebp - 0x82c]
mov dword [ebp - 0x81c], 1
lea edx, [ebp - 0x82c]
cmovae eax, dword [ebp - 0x82c]
push edx
mov word [eax], 0xff
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x2c]
not bl
sub esi, 1
jne 0x40a4d0
mov byte [ebp - 0x8ac], bl
cmp dword [ebp - 0x818], 0x10
lea eax, [ebp - 0x82c]
mov dword [ebp - 0x81c], 1
lea edx, [ebp - 0x82c]
cmovae eax, dword [ebp - 0x82c]
push edx
mov byte [eax], bl
mov byte [eax + 1], 0
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x2c]
push dword [ebp - 0x8ac]
mov ecx, edi
push 0
call fcn.0040a920
push dword [ebp + 0x14]
call dword [0x43f130]
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 0x414]
mov byte [ebp - 0x414], 0xff
push edx
push 1
mov eax, dword [ecx]
call dword [eax + 0x38]
push dword [ebp - 0x414]
mov ecx, edi
push 1
call fcn.0040a920
cmp byte [ebp - 0x414], 0x79
mov edx, dword [ebp - 0x818]
sete bl
dec bl
and bl, 0x14
cmp edx, 0x10
jb 0x40a5d0
mov ecx, dword [ebp - 0x82c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a5c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a5c2
call dword [0x43f418]
push edx
push ecx
call fcn.004395ca
add esp, 8
jmp 0x40a5d0
mov bl, 0x14
mov edx, dword [ebp - 0x830]
cmp edx, 0x10
jb 0x40a60a
mov ecx, dword [ebp - 0x844]
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 0x40a74c
push edx
push ecx
call fcn.004395ca
add esp, 8
mov edx, dword [ebp - 0x848]
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 0xf
mov byte [ebp - 0x844], 0
cmp edx, 0x10
jb 0x40a65f
mov ecx, dword [ebp - 0x85c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a655
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a74c
push edx
push ecx
call fcn.004395ca
add esp, 8
mov edx, dword [ebp - 0x860]
mov dword [ebp - 0x84c], 0
mov dword [ebp - 0x848], 0xf
mov byte [ebp - 0x85c], 0
cmp edx, 0x10
jb 0x40a6b4
mov ecx, dword [ebp - 0x874]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a6aa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a74c
push edx
push ecx
call fcn.004395ca
add esp, 8
mov edx, dword [ebp - 0x878]
mov dword [ebp - 0x864], 0
mov dword [ebp - 0x860], 0xf
mov byte [ebp - 0x874], 0
cmp edx, 0x10
jb 0x40a705
mov ecx, dword [ebp - 0x88c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a6fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a74c
push edx
push ecx
call fcn.004395ca
add esp, 8
mov edx, dword [ebp - 0x890]
mov dword [ebp - 0x87c], 0
mov dword [ebp - 0x878], 0xf
mov byte [ebp - 0x88c], 0
cmp edx, 0x10
jb 0x40a75c
mov ecx, dword [ebp - 0x8a4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40a752
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a752
call dword [0x43f418]
push edx
push ecx
call fcn.004395ca
add esp, 8
mov al, bl
jmp 0x40a762
mov al, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004395e6
mov esp, ebp
pop ebp
ret 0x10