Function at 0x41f8d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x468
cmp byte [esp + 0x480], 0
jne 0x41f9ff
mov esi, dword [esp + 0x488]
mov ebp, dword [esp + 0x47c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x59f457f9
mov dword [esp + 0x14], 0x5d0f5bff
mov dword [esp + 0x18], 0x412e5f0c
mov dword [esp + 0x1c], 0x45e843e6
mov dword [esp + 0x20], 0x494847ea
mov eax, 0x66
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x56]
lea edx, [eax - 0x76dc4100]
or edx, ecx
and ecx, eax
sub edx, ecx
mov ecx, edx
and ecx, 0x4f
xor edx, 0xcf
lea ecx, [edx + ecx*2]
inc cl
mov byte [esp + eax - 0x56], cl
inc eax
cmp eax, 0x7a
jne 0x41f940
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
call fcn.00436da0
push 0xebc73df8
push dword [esp + 0xc]
call fcn.00438620
add esp, 8
mov ecx, esp
push ecx
push 0x43b598
push 1
push 0
push 0x43b5a8
call eax
test eax, eax
js 0x41f9ff
mov eax, dword [esp]
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push 0x43b5b8
push eax
call dword [ecx]
test eax, eax
js 0x41fa06
mov ebx, 0xfffffffe
nop
nop
nop
nop
cmp word [ebp + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0x41f9c0
mov edi, dword [esi + 8]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x41f9e0
sar ebx, 1
sar eax, 1
add eax, ebx
add eax, 2
test eax, eax
jns 0x41fa0d
mov eax, 0xffffffff
jmp 0x41fa0f
xor ebx, ebx
jmp 0x41fba9
xor ebx, ebx
jmp 0x41fba0
add eax, eax
push eax
call fcn.00408330
add esp, 4
mov esi, eax
movzx ecx, word [edi]
test cx, cx
je 0x41fa41
add edi, 2
mov eax, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x41fa30
mov word [eax], 0x5c
add eax, 2
movzx ecx, word [ebp]
test cx, cx
je 0x41fa71
lea edx, [ebp + 2]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x41fa60
mov word [eax], 0
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push 0
push esi
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x41fae8
mov eax, dword [esp]
mov ecx, dword [eax]
push 1
push 0
push eax
call dword [ecx + 0x4c]
test eax, eax
js 0x41fae8
mov eax, dword [esp]
mov ecx, dword [eax]
lea edi, [esp + 0x260]
push 1
lea edx, [esp + 0x14]
push edx
push 0x104
push edi
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x41fae8
add ebx, 2
mov eax, dword [esp + 0x488]
mov edi, dword [eax + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x41fad0
sar eax, 1
add ebx, eax
jns 0x41faef
mov ebx, 0xffffffff
jmp 0x41faf1
xor ebx, ebx
jmp 0x41fb8d
add ebx, ebx
push ebx
call fcn.00408330
add esp, 4
mov ebx, eax
movzx ecx, word [edi]
test cx, cx
je 0x41fb21
add edi, 2
mov eax, ebx
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x41fb10
mov word [eax], 0x2f
add eax, 2
movzx ecx, word [ebp]
test cx, cx
je 0x41fb54
add ebp, 2
lea edx, [esp + 0x260]
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebp]
add ebp, 2
test cx, cx
jne 0x41fb40
jmp 0x41fb5b
lea edx, [esp + 0x260]
mov word [eax], 0
mov ecx, dword [esp + 0x488]
mov eax, dword [ecx + 0x14]
dec eax
push 1
push eax
push dword [ecx + 0x10]
push dword [ecx + 0xc]
push edx
push ebx
push dword [ecx]
call fcn.0041e6c0
add esp, 0x1c
mov ecx, ebx
mov ebx, eax
push ecx
call fcn.00408340
add esp, 4
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
call fcn.00408340
add esp, 4
mov eax, dword [esp]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
add esp, 0x468
pop esi
pop edi
pop ebx
pop ebp
ret 0x10