Function at 0x41ef80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0x9c9d9e9f
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xb
ja 0x41eff9
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x20]
mov edx, 0xc3
sub edx, eax
add eax, 0x2dbd7a3c
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 8], edx
mov eax, dword [esp + 8]
add al, 0x5c
mov ecx, dword [esp]
mov byte [esp + ecx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xc
jb 0x41efc0
mov eax, dword [esp + 0x20]
mov ecx, dword [0x441028]
test ecx, ecx
je 0x41f044
xor edx, edx
mov esi, dword [0x44102c]
nop
cmp dword [esi + edx*8], 0x10def2fc
je 0x41f020
inc edx
cmp ecx, edx
jne 0x41f010
jmp 0x41f044
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x41f044
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 5
push 4
push dword [0x441030]
push ecx
call fcn.00433e50
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x41f102
push dword [esp + 0x1c]
call fcn.004324a0
add esp, 4
mov edi, eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], 0x9c9d9e9f
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xb
ja 0x41f0c9
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x20]
mov esi, 0xc3
sub esi, eax
add eax, 0x2dbd7a3c
xor esi, eax
and esi, edx
xor esi, eax
mov dword [esp + 8], esi
mov eax, dword [esp + 8]
add al, 0x5c
mov edx, dword [esp]
mov byte [esp + edx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xc
jb 0x41f090
mov eax, dword [esp + 0x20]
mov edx, dword [0x441028]
test edx, edx
je 0x41f12a
mov ebx, edi
xor esi, esi
mov edi, dword [0x44102c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0x10def2fc
je 0x41f109
inc esi
cmp edx, esi
jne 0x41f0f0
mov edi, ebx
jmp 0x41f12a
xor ebx, ebx
jmp 0x41f41c
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
mov edi, ebx
je 0x41f12a
push 0
push ecx
push edi
push 5
push 4
push dword [0x441030]
push edx
call fcn.00433e50
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x41f413
mov esi, dword [edi]
mov eax, esi
mov ebx, edi
mov ecx, edi
xor edi, edi
nop
nop
lea edx, [ecx + eax]
mov eax, dword [ecx + eax]
dec edi
mov ecx, edx
test eax, eax
jne 0x41f140
mov eax, edi
neg eax
dec edi
and edi, 0x104
mov ecx, eax
and ecx, 0xfffffefb
imul ecx, edi
mov edx, eax
and edx, 0x104
or eax, 0x104
imul eax, edx
add eax, ecx
mov dword [esp + 0x18], ebx
jns 0x41f182
mov eax, 0xffffffff
jmp 0x41f184
add eax, eax
push eax
call fcn.00409090
add esp, 4
mov ebx, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
jmp 0x41f1b2
mov edi, ebx
add eax, esi
lea ebx, [edi + 2]
mov word [edi], 0xa
mov esi, dword [eax]
test esi, esi
je 0x41f1e3
mov ecx, dword [eax + esi + 0x3c]
movzx edx, word [ecx]
test dx, dx
je 0x41f1a0
add ecx, 2
mov edi, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41f1d0
jmp 0x41f1a2
xor edx, edx
mov eax, dword [esp + 4]
cmp ebx, eax
je 0x41f404
mov word [ebx], 0
movzx ecx, word [eax]
test cx, cx
je 0x41f24e
xor edx, edx
mov eax, dword [esp + 4]
jmp 0x41f224
mov ecx, dword [esp + 0x10]
add ecx, edx
mov edx, ecx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x41f24e
cmp eax, ebx
jae 0x41f24e
mov dword [esp + 0x10], edx
movzx esi, cx
cmp esi, 0x800
mov ecx, 3
sbb ecx, 0
mov edx, 1
cmp esi, 0x80
jb 0x41f210
mov edx, ecx
jmp 0x41f210
lea eax, [edx + 1]
mov dword [esp + 0x3c], eax
push eax
mov esi, edx
call fcn.00409090
add esp, 4
mov ecx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
test esi, esi
jle 0x41f365
mov ecx, dword [esp + 0x14]
cmp dword [esp + 4], ebx
jae 0x41f365
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, ecx
mov dword [esp + 0x40], eax
add dword [esp + 0x3c], ecx
mov edx, dword [esp + 4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, word [edx]
test bx, bx
je 0x41f365
cmp bx, 0x7f
ja 0x41f2c0
mov byte [ecx], bl
mov esi, 1
jmp 0x41f350
mov eax, ecx
not eax
add eax, dword [esp + 0x3c]
movzx esi, bx
cmp eax, 2
jb 0x41f300
cmp esi, 0x7ff
ja 0x41f300
mov eax, ebx
shr eax, 6
add al, 0xc0
mov byte [ecx], al
and bl, 0x3f
or bl, 0x80
mov byte [ecx + 1], bl
mov esi, 2
jmp 0x41f350
mov dword [esp + 0xc], esi
xor esi, esi
cmp eax, 3
jb 0x41f350
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 0xc
or al, 0xe0
mov byte [ecx], al
shr esi, 6
mov eax, esi
mov byte [esp + 0xc], al
mov eax, esi
xor byte [esp + 0xc], 0xc0
or al, 0x3f
and al, byte [esp + 0xc]
add al, 0x80
mov byte [ecx + 1], al
and bl, 0x3f
or bl, 0x80
mov byte [ecx + 2], bl
mov esi, 3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add ecx, esi
cmp ecx, dword [esp + 0x40]
jae 0x41f365
lea eax, [edx + 2]
cmp edx, edi
mov edx, eax
jb 0x41f2a0
mov byte [ecx], 0
mov dword [esp + 0x20], 0x94615bbc
mov dword [esp + 0x24], 0x92616695
mov dword [esp + 0x28], 0x636ea763
mov dword [esp + 0x2c], 0xf96c
mov byte [esp + 0x30], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x10
ja 0x41f3d9
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x20]
mov edx, 0x21
sub edx, eax
add eax, 0xa1f1fdde
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 8], edx
mov eax, dword [esp + 8]
add al, 0xee
mov ecx, dword [esp]
mov byte [esp + ecx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x11
jb 0x41f3a0
lea eax, [esp + 0x20]
mov ecx, dword [ebp + 8]
push dword [esp + 0x10]
mov esi, dword [esp + 0x18]
push esi
push eax
call fcn.00409bd0
mov ebx, eax
push esi
call fcn.004090a0
add esp, 4
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 4]
jmp 0x41f40a
xor ebx, ebx
mov edi, dword [esp + 0x18]
push eax
call fcn.004090a0
add esp, 4
push edi
call fcn.00432560
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret