Function at 0x41ea60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x158
mov ebx, edx
mov esi, ecx
call fcn.00404a20
mov dword [esp + 0x24], eax
push eax
call fcn.00404680
add esp, 4
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ebx
mov ebx, dword [ebx + 0x3c]
lea edi, [esp + 0x30]
push 0x120
push 0
push edi
call fcn.0040c990
add esp, 0xc
mov dword [esp + 0x1c], esi
mov ecx, esi
push 0
push 0
push 0x120
push edi
push ebx
push dword [esp + 0x40]
call fcn.0043cc50
test eax, eax
js 0x41eedb
mov dword [esp + 0xc], 0xeee710e6
mov byte [esp + 0x10], 0x6c
mov dword [esp + 0x11], 0
mov dword [esp + 0x14], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xb
ja 0x41eb33
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0xc]
add eax, 0x2ebdd0ec
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x64
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0xc], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xc
jb 0x41eb00
lea edx, [esp + 0x38]
lea eax, [esp + 0xc]
mov edi, dword [esp + 0x1c]
mov ecx, edi
mov esi, dword [esp + 0x20]
push esi
push eax
call fcn.0041ef90
add esp, 8
mov ebx, eax
mov dword [esp + 0xc], 0xbac2d8b2
mov word [esp + 0x10], 0x35c9
mov dword [esp + 0x12], 0
mov word [esp + 0x16], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xb
ja 0x41ebbe
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0xc]
mov edx, eax
xor edx, 0x1572c476
and eax, 0x1572c476
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0xb2
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0xc], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xc
jb 0x41eb80
lea edx, [esp + 0x118]
mov ecx, edi
push esi
lea eax, [esp + 0x10]
push eax
call fcn.0041ef90
add esp, 8
mov dword [esp + 0xc], 0xcfc1c6d8
mov dword [esp + 0x10], 0xc6d3d6db
mov byte [esp + 0x14], 0x38
mov dword [esp + 0x15], 0
mov word [esp + 0x19], 0
and bl, al
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xe
ja 0x41ec58
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0xc]
mov edx, eax
xor edx, 0x6256674
mov edi, eax
xor edi, 0x79da998b
or eax, 0x6256674
and eax, edi
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0xbc
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0xc], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xf
jb 0x41ec10
lea edx, [esp + 0x50]
mov edi, dword [esp + 0x1c]
mov ecx, edi
push esi
lea eax, [esp + 0x10]
push eax
call fcn.0041ef90
add esp, 8
mov dword [esp + 0xc], 0x1b160010
mov byte [esp + 0x10], 0xe4
mov dword [esp + 0x11], 0
and bl, al
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 8
ja 0x41ecde
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0xc]
mov edx, eax
xor edx, 0x8fbb5128
and eax, 0xfbb5128
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x38
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0xc], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 9
jb 0x41eca0
lea edx, [esp + 0x68]
mov ecx, edi
push esi
lea eax, [esp + 0x10]
push eax
call fcn.0041ef90
add esp, 8
and bl, al
fild qword [esp + 0x130]
mov dword [esp + 0xc], 0x4a4e775b
mov dword [esp + 0x10], 0x54475442
mov dword [esp + 0x14], 0xc9534343
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xb
ja 0x41ed80
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 0xc]
mov edx, ecx
xor edx, 0xa910ec55
and ecx, 0x2910ec55
lea ecx, [edx + ecx*2]
mov edx, ecx
and edx, eax
mov edi, ecx
xor edi, eax
not eax
or ecx, eax
sub eax, ecx
add eax, edx
lea eax, [edi + eax*2]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x57
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0xc], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xc
jb 0x41ed30
sub esp, 0x10
fstp qword [esp + 8]
lea eax, [esp + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00405de0
add esp, 0x10
test eax, eax
setne al
xor al, bl
movzx ecx, byte [esp + 0x88]
mov dword [esp + 0xc], 0x100d1219
mov dword [esp + 0x10], 0x15130601
mov word [esp + 0x14], 0xf91d
mov dword [esp + 0x16], 0
mov word [esp + 0x1a], 0
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
cmp edx, 0xf
ja 0x41ee20
mov edx, dword [esp + 4]
mov edi, dword [esp + 4]
movzx edi, byte [esp + edi + 0xc]
mov esi, edx
xor esi, 0x94ff7fa8
and edx, 0x14ff7fa8
lea edx, [esi + edx*2]
xor edx, edi
mov dword [esp + 8], edx
mov edx, dword [esp + 8]
add dl, 0xb8
mov esi, dword [esp + 4]
mov byte [esp + esi + 0xc], dl
inc dword [esp + 4]
mov edx, dword [esp + 4]
cmp edx, 0x10
jb 0x41ede0
and bl, al
push ecx
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x28]
call fcn.00405e70
add esp, 0xc
mov edi, eax
movzx eax, byte [esp + 0x88]
mov dword [esp + 0xc], 0x637e7d68
mov dword [esp + 0x10], 0x7b787a0b
mov word [esp + 0x14], 0xe961
mov dword [esp + 0x16], 0
mov byte [esp + 0x1a], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xe
ja 0x41eec0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0xc]
mov esi, ecx
xor esi, 0x120602c
and ecx, 0x120602c
lea ecx, [esi + ecx*2]
xor ecx, edx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 8]
add cl, 0x24
mov edx, dword [esp + 4]
mov byte [esp + edx + 0xc], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xf
jb 0x41ee80
push eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x28]
call fcn.00405e70
add esp, 0xc
or eax, edi
sete al
and bl, al
jmp 0x41eedd
xor ebx, ebx
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, eax
or ecx, edx
je 0x41ef1b
mov esi, dword [esp + 0x1c]
mov ecx, esi
push 0
push 0
push 0x40
lea edi, [esp + 0x3c]
push edi
push edx
push eax
call fcn.0043cc50
test eax, eax
js 0x41ef1b
lea edx, [esp + 0x30]
mov ecx, esi
push dword [ebp + 8]
call fcn.0041ea60
add esp, 4
or bl, al
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov ecx, eax
or ecx, edx
je 0x41ef5a
mov esi, dword [esp + 0x1c]
mov ecx, esi
push 0
push 0
push 0x40
lea edi, [esp + 0x3c]
push edi
push edx
push eax
call fcn.0043cc50
test eax, eax
js 0x41ef5a
lea edx, [esp + 0x30]
mov ecx, esi
push dword [ebp + 8]
call fcn.0041ea60
add esp, 4
or bl, al
test bl, bl
je 0x41ef6f
push dword [esp + 0x24]
push dword [ebp + 8]
call fcn.00405790
add esp, 8
jmp 0x41ef7b
push dword [esp + 0x24]
call fcn.004048f0
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret