Function at 0x41eab0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x158
mov edi, edx
mov ebx, ecx
call fcn.00404d70
mov dword [esp + 0x24], eax
push eax
call fcn.00404690
add esp, 4
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x38]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], edi
mov edi, dword [edi + 0x3c]
lea esi, [esp + 0x30]
push 0x120
push 0
push esi
call fcn.0040ca90
add esp, 0xc
mov dword [esp + 0x28], ebx
mov ecx, ebx
push 0
push 0
push 0x120
push esi
push edi
push dword [esp + 0x30]
call fcn.0043e1e0
test eax, eax
js 0x41ef37
mov dword [esp + 8], 0x56616c62
mov byte [esp + 0xc], 0xb0
mov dword [esp + 0xd], 0
mov word [esp + 0x11], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xa
ja 0x41eb89
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
xor edx, 0x308b1fdd
and eax, 0x308b1fdd
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xaf
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xb
jb 0x41eb50
lea edx, [esp + 0x38]
lea eax, [esp + 8]
mov esi, dword [esp + 0x28]
mov ecx, esi
mov edi, dword [esp + 0x20]
push edi
push eax
call fcn.0041efe0
add esp, 8
mov ebx, eax
mov dword [esp + 8], 0x7e72647a
mov word [esp + 0xc], 0x36f
mov dword [esp + 0xe], 0
mov word [esp + 0x12], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xb
ja 0x41ec19
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
xor edx, 0xbf3af401
and eax, 0x3f3af401
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xfb
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xc
jb 0x41ebe0
lea edx, [esp + 0x118]
mov ecx, esi
push edi
lea eax, [esp + 0xc]
push eax
call fcn.0041efe0
add esp, 8
mov byte [esp + 0x1b], al
mov dword [esp + 8], 0x8f818678
mov dword [esp + 0xc], 0x8673767b
mov byte [esp + 0x10], 0x18
mov dword [esp + 0x11], 0
mov dword [esp + 0x14], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xf
ja 0x41ecbe
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
xor edx, 0xf5af4504
and eax, 0xf5af4504
lea edx, [edx + eax*2]
mov eax, edx
and eax, ecx
xor edx, ecx
sub edx, eax
lea ecx, [edx + eax*2]
mov edx, ecx
xor edx, eax
not eax
and eax, ecx
add eax, eax
sub eax, edx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xec
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x10
jb 0x41ec70
lea edx, [esp + 0x50]
mov ecx, esi
push edi
lea eax, [esp + 0xc]
push eax
call fcn.0041efe0
add esp, 8
mov byte [esp + 0x1c], al
mov dword [esp + 8], 0x9b968090
mov byte [esp + 0xc], 0x24
mov dword [esp + 0xd], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 8
ja 0x41ed4a
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
xor edx, 0xf9834bc8
and eax, 0xf9834bc8
lea eax, [edx + eax*2]
lea edx, [eax + ecx]
and eax, ecx
mov ecx, edx
xor ecx, eax
add ecx, eax
not eax
and eax, edx
add eax, eax
sub eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x18
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x41ed00
lea edx, [esp + 0x68]
mov ecx, esi
push edi
lea eax, [esp + 0xc]
push eax
call fcn.0041efe0
add esp, 8
mov byte [esp + 0x1a], al
fild qword [esp + 0x130]
mov dword [esp + 8], 0xde2611e5
mov dword [esp + 0xc], 0xd02dd82a
mov dword [esp + 0x10], 0xbfd12d2d
mov word [esp + 0x14], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xd
ja 0x41edd9
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
xor edx, 0xfca1031e
and eax, 0xfca1031e
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x6a
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xe
jb 0x41eda0
sub esp, 0x10
fstp qword [esp + 8]
lea eax, [esp + 0x18]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.00406090
add esp, 0x10
mov esi, eax
and bl, byte [esp + 0x1b]
movzx eax, byte [esp + 0x88]
mov dword [esp + 8], 0x847f8a87
mov dword [esp + 0xc], 0x87857677
mov dword [esp + 0x10], 0x1773
mov byte [esp + 0x14], 0
movzx ecx, byte [esp + 0x1a]
and byte [esp + 0x1c], cl
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0xc
ja 0x41ee7d
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 8]
lea edi, [ecx + edx]
add edi, 0x26347685
add ecx, 0x26347685
and ecx, edx
add ecx, ecx
sub edi, ecx
mov dword [esp + 4], edi
mov ecx, dword [esp + 4]
add cl, 0x67
mov edx, dword [esp]
mov byte [esp + edx + 8], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0xd
jb 0x41ee40
and bl, byte [esp + 0x1c]
push eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x28]
call fcn.00406120
add esp, 0xc
mov edi, eax
movzx eax, byte [esp + 0x88]
mov dword [esp + 8], 0xa7aab5a0
mov dword [esp + 0xc], 0xa7a0a6b7
mov word [esp + 0x10], 0xd1a9
mov dword [esp + 0x12], 0
or edi, esi
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0xd
ja 0x41ef1c
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 8]
mov esi, ecx
xor esi, 0xb7319fce
and ecx, 0x37319fce
lea ecx, [esi + ecx*2]
lea esi, [ecx + edx]
and ecx, edx
mov edx, esi
xor edx, ecx
add edx, ecx
not ecx
and ecx, esi
add ecx, ecx
sub ecx, edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
add cl, 0xfa
mov edx, dword [esp]
mov byte [esp + edx + 8], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0xe
jb 0x41eed0
push eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x28]
call fcn.00406120
add esp, 0xc
or edi, eax
sete al
and bl, al
jmp 0x41ef39
xor ebx, ebx
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, eax
or ecx, edx
mov edi, dword [esp + 0x28]
je 0x41ef77
mov ecx, edi
push 0
push 0
push 0x40
lea esi, [esp + 0x3c]
push esi
push edx
push eax
call fcn.0043e1e0
test eax, eax
js 0x41ef77
lea edx, [esp + 0x30]
mov ecx, edi
push dword [ebp + 8]
call fcn.0041eab0
add esp, 4
or bl, al
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov ecx, eax
or ecx, edx
je 0x41efb2
mov ecx, edi
push 0
push 0
push 0x40
lea esi, [esp + 0x3c]
push esi
push edx
push eax
call fcn.0043e1e0
test eax, eax
js 0x41efb2
lea edx, [esp + 0x30]
mov ecx, edi
push dword [ebp + 8]
call fcn.0041eab0
add esp, 4
or bl, al
test bl, bl
je 0x41efc7
push dword [esp + 0x24]
push dword [ebp + 8]
call fcn.00405a70
add esp, 8
jmp 0x41efd3
push dword [esp + 0x24]
call fcn.00404c40
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret