Function at 0x40abc4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
mov eax, dword [0x540698]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x541ad4]
mov eax, ebx
imul eax, ebx
imul eax, ebx
push esi
push edi
push 0x15
cdq
pop ecx
idiv ecx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x868], edi
mov dword [ebp - 0x85c], esi
cmp edx, 0x10
jne 0x40ac9b
mov eax, ecx
mov dword [ebp - 0x860], eax
lea edx, [ebp - 0x854]
mov dword [ebp - 0x858], ecx
mov dword [ebp - 0x864], edx
lea edi, [ecx + 1]
lea ecx, [eax + 1]
mov eax, ebx
cdq
idiv ecx
mov eax, ebx
mov ecx, ebx
sub ecx, dword [ebp - 0x860]
mov esi, edx
cdq
imul esi, ecx
idiv edi
add esi, eax
sub esi, dword [ebp - 0x858]
push esi
push 0x4f4170
call fcn.004c38a5
mov edx, dword [ebp - 0x864]
mov ebx, dword [0x541ad4]
pop ecx
pop ecx
push 4
pop eax
add edx, eax
mov eax, dword [ebp - 0x860]
mov ecx, edi
mov dword [ebp - 0x858], edi
mov dword [ebp - 0x864], edx
cmp ecx, 0x13
jl 0x40ac25
inc eax
xor ecx, ecx
mov dword [ebp - 0x860], eax
cmp eax, 0x1c
jl 0x40ac19
mov edi, dword [ebp - 0x868]
mov esi, dword [ebp - 0x85c]
mov eax, dword [edi]
cmp dword [eax - 0xc], ecx
jne 0x40acf7
mov ecx, esi
call fcn.0040395f
mov esi, dword [0x541ad4]
push 0xf
lea ecx, [esi + 1]
lea eax, [esi + 2]
imul eax, ecx
imul eax, esi
cdq
pop ecx
idiv ecx
cmp edx, 5
jne 0x40acf0
push 0x64
pop ecx
mov eax, esi
cdq
idiv ecx
xor ecx, ecx
push 4
lea eax, [edx + 0x141]
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c0e30
push eax
call fcn.004c1c8e
pop ecx
pop ecx
mov al, 1
jmp 0x40ae0d
mov eax, ebx
imul eax, ebx
imul eax, ebx
and eax, 0x8000000f
jns 0x40ad0b
dec eax
or eax, 0xfffffff0
inc eax
push 4
pop edx
cmp eax, edx
jne 0x40ad41
mov edx, ecx
push 8
mov ecx, edx
pop esi
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, ebx
sar ecx, 1
xor ecx, eax
dec esi
jne 0x40ad19
add ebx, ecx
inc edx
cmp edx, 0x100
jl 0x40ad14
mov esi, dword [ebp - 0x85c]
mov dword [0x541ad4], ebx
call fcn.0040ba71
test al, al
jne 0x40ad51
dec ebx
mov dword [0x541ad4], ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [edi]
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x858], eax
test eax, eax
jne 0x40ad7f
push dword [edi]
mov ecx, esi
call fcn.00401d3d
jmp 0x40ae0b
push eax
call fcn.004c0e30
push dword [ebp - 0x858]
mov esi, eax
push ebx
push esi
call fcn.004c3990
mov ecx, dword [edi]
add esp, 0x10
push ebx
push ebx
push dword [ebp - 0x858]
push esi
push dword [ecx - 0xc]
push ecx
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x858], eax
call fcn.0040ba8f
test al, al
jne 0x40ade1
xor edi, edi
xor ecx, ecx
inc edi
inc ecx
mov edx, 0x9e
dec edx
lea eax, [ecx + edi]
lea edi, [ecx]
mov ecx, eax
jns 0x40adcc
mov edi, dword [ebp - 0x868]
mov dword [0x541ad4], eax
mov ecx, dword [ebp - 0x85c]
cmp dword [ebp - 0x858], ebx
jne 0x40adf8
push dword [edi]
call fcn.00401d3d
jmp 0x40ae00
push esi
call fcn.0040b6ce
mov bl, 1
test esi, esi
je 0x40ae0b
push esi
call fcn.004c1c8e
pop ecx
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c29c4
leave
ret