Function at 0x41f9e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov dword [esp + 0x1c], 0
mov byte [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0xa2a1a0a7
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x18
ja 0x41fa65
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
add al, 0x9b
xor al, byte [esp + ecx + 0x20]
add al, 0xc3
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x20], al
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 0x19
jb 0x41fa40
mov eax, dword [esp + 0x20]
mov ecx, dword [0x44a468]
test ecx, ecx
je 0x41fab4
xor edx, edx
mov esi, dword [0x44a46c]
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x18dc7455
je 0x41fa90
inc edx
cmp ecx, edx
jne 0x41fa80
jmp 0x41fab4
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x41fab4
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 5
push 4
push dword [0x44a470]
push ecx
call fcn.00438be0
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x41fb72
push dword [esp + 0x1c]
call fcn.00436a00
add esp, 4
mov edi, eax
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0xa2a1a0a7
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x18
ja 0x41fb45
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
add al, 0x9b
xor al, byte [esp + edx + 0x20]
add al, 0xc3
mov edx, dword [esp + 0xc]
mov byte [esp + edx + 0x20], al
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 0x19
jb 0x41fb20
mov eax, dword [esp + 0x20]
mov edx, dword [0x44a468]
test edx, edx
je 0x41fb9a
mov ebx, edi
xor esi, esi
mov edi, dword [0x44a46c]
nop
nop
nop
cmp dword [edi + esi*8], 0x18dc7455
je 0x41fb79
inc esi
cmp edx, esi
jne 0x41fb60
mov edi, ebx
jmp 0x41fb9a
xor ebx, ebx
jmp 0x41fe65
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
mov edi, ebx
je 0x41fb9a
push 0
push ecx
push edi
push 5
push 4
push dword [0x44a470]
push edx
call fcn.00438be0
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x41fe5c
mov eax, dword [edi]
xor ecx, ecx
mov edx, edi
nop
nop
nop
nop
nop
nop
lea esi, [edx + eax]
mov eax, dword [edx + eax]
add ecx, 0x104
add ebx, 0x208
mov edx, esi
test eax, eax
jne 0x41fbb0
test ecx, ecx
jns 0x41fbd1
mov ebx, 0xffffffff
push ebx
call fcn.00436a00
add esp, 4
mov ecx, eax
mov edx, dword [edi]
mov dword [esp + 0x10], edi
mov eax, edi
mov dword [esp + 0x14], ecx
mov edi, ecx
jmp 0x41fbfe
mov word [edi], 0xa
add edi, 2
mov edx, dword [eax]
test edx, edx
je 0x41fc23
mov ecx, dword [eax + edx + 0x3c]
add eax, edx
movzx edx, word [ecx]
test dx, dx
je 0x41fbf0
add ecx, 2
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41fc10
jmp 0x41fbf0
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x41fd75
mov word [edi], 0
movzx ecx, word [eax]
test cx, cx
je 0x41fd80
xor esi, esi
jmp 0x41fc60
add edx, esi
mov esi, edx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x41fc91
cmp eax, edi
jae 0x41fc91
mov edx, esi
movzx ebx, cx
xor ecx, ecx
cmp ebx, 0x800
setb byte [esp + 0x18]
mov esi, 1
cmp ebx, 0x80
jb 0x41fc50
movzx ebx, byte [esp + 0x18]
mov cl, bl
xor ecx, 3
mov esi, ecx
jmp 0x41fc50
lea eax, [esi + 1]
mov dword [esp + 0x48], eax
push eax
call fcn.00436a00
add esp, 4
test esi, esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], eax
jle 0x41fd9a
lea ecx, [eax + esi]
mov dword [esp + 0x18], ecx
add dword [esp + 0x48], eax
mov esi, eax
mov edx, dword [esp + 0x14]
jmp 0x41fce6
mov byte [esi], cl
mov eax, 1
add edx, 2
add esi, eax
cmp esi, dword [esp + 0x18]
jae 0x41fd9c
cmp edx, edi
jae 0x41fd9c
movzx ecx, word [edx]
test cx, cx
je 0x41fd9c
cmp cx, 0x7f
jbe 0x41fcd0
mov eax, esi
not eax
add eax, dword [esp + 0x48]
cmp eax, 2
jb 0x41fd40
movzx ebx, cx
cmp ebx, 0x7ff
ja 0x41fd40
mov eax, ecx
shr eax, 6
or al, 0xc0
mov byte [esi], al
and cl, 0x3f
or cl, 0x80
mov byte [esi + 1], cl
mov eax, 2
jmp 0x41fcd7
cmp eax, 3
mov eax, 0
jb 0x41fcd7
movzx ebx, cx
mov eax, ebx
shr eax, 0xc
or al, 0xe0
mov byte [esi], al
shr ebx, 6
and bl, 0x3f
or bl, 0x80
mov byte [esi + 1], bl
and cl, 0x3f
or cl, 0x80
mov byte [esi + 2], cl
mov eax, 3
jmp 0x41fcd7
xor ebx, ebx
mov edi, dword [esp + 0x10]
jmp 0x41fe53
mov dword [esp + 0x44], 0
push 1
call fcn.00436a00
add esp, 4
mov esi, eax
mov dword [esp + 0x40], eax
jmp 0x41fd9c
mov esi, eax
mov edi, dword [esp + 0x10]
mov byte [esi], 0
mov dword [esp + 0x20], 0x54619bbc
mov dword [esp + 0x24], 0x52616655
mov dword [esp + 0x28], 0x636e2763
mov word [esp + 0x2c], 0xf96c
mov dword [esp + 0x2e], 0
mov dword [esp + 0x32], 0
mov byte [esp + 0x36], 0
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x16
ja 0x41fe2e
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
movzx ecx, byte [esp + ecx + 0x20]
lea edx, [eax - 0x1652e982]
lea esi, [eax + 0x7e]
or edx, esi
and edx, ecx
and esi, ecx
add esi, edx
add eax, ecx
add eax, 0xe9ad167e
sub eax, esi
add al, 0x8e
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x20], al
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 0x17
jb 0x41fdf0
lea eax, [esp + 0x20]
mov ecx, dword [ebp + 8]
push dword [esp + 0x44]
mov esi, dword [esp + 0x44]
push esi
push eax
call fcn.00409870
mov ebx, eax
push esi
call fcn.00408f20
add esp, 4
mov eax, dword [esp + 0x14]
push eax
call fcn.00408f20
add esp, 4
push edi
call fcn.00436ac0
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret