Function at 0x41fc56
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x46c
cmp byte [esp + 0x484], 0
jne 0x41fd77
mov ebp, dword [esp + 0x480]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0x6508630d
mov dword [esp + 0x18], 0x693b6703
mov dword [esp + 0x1c], 0x6d426b38
mov dword [esp + 0x20], 0x91fc6f0a
mov dword [esp + 0x24], 0x959493fe
mov eax, 0x67e7e4f2
nop
nop
nop
nop
movzx edx, byte [esp + eax - 0x67e7e4de]
xor edx, eax
mov ecx, edx
and ecx, 0x6f
xor edx, 0xc0c0d86f
lea esi, [edx + ecx*2]
and edx, 1
lea ecx, [edx + edx]
or esi, 1
sub ecx, edx
add ecx, esi
mov byte [esp + eax - 0x67e7e4de], cl
inc eax
cmp eax, 0x67e7e506
jne 0x41fc80
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
call fcn.004377d0
push 0xebc73df8
push dword [esp + 0x10]
call fcn.00439550
add esp, 8
mov ecx, esp
push ecx
push 0x43b598
push 1
push 0
push 0x43b5a8
call eax
test eax, eax
js 0x41fd77
mov eax, dword [esp]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x43b5b8
push eax
call dword [ecx]
xor ebx, ebx
test eax, eax
js 0x41ff32
nop
nop
nop
nop
nop
nop
cmp word [ebp + ebx], 0
lea ebx, [ebx + 2]
jne 0x41fd10
lea eax, [ebx + ebp]
add eax, 0xfffffffe
add ebx, ebp
mov ecx, 1
sub ecx, ebx
and ecx, ebp
mov edi, ebp
not edi
and edi, eax
sub edi, ecx
mov eax, dword [esp + 0x48c]
mov ebx, dword [eax + 8]
xor eax, eax
cmp word [ebx + eax], 0
lea eax, [eax + 2]
jne 0x41fd40
sar edi, 1
lea ecx, [ebx + eax]
add ecx, 0xfffffffe
add eax, ebx
mov edx, 1
sub edx, eax
and edx, ebx
mov eax, ebx
not eax
and eax, ecx
sub eax, edx
sar eax, 1
add eax, edi
add eax, 2
test eax, eax
jns 0x41fd7e
mov eax, 0xffffffff
jmp 0x41fd80
xor ebx, ebx
jmp 0x41ff3b
add eax, eax
push eax
call fcn.00408f10
add esp, 4
mov esi, eax
movzx ecx, word [ebx]
test cx, cx
je 0x41fdb1
add ebx, 2
mov eax, esi
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x41fda0
mov word [eax], 0x5c
add eax, 2
movzx ecx, word [ebp]
test cx, cx
je 0x41fde1
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 0x41fdd0
mov word [eax], 0
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push 0
push esi
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x41fe70
mov eax, dword [esp]
mov ecx, dword [eax]
push 1
push 0
push eax
call dword [ecx + 0x4c]
test eax, eax
js 0x41fe70
mov eax, dword [esp]
mov ecx, dword [eax]
lea ebx, [esp + 0x264]
push 1
lea edx, [esp + 0x18]
push edx
push 0x104
push ebx
push eax
call dword [ecx + 0xc]
xor ebx, ebx
test eax, eax
js 0x41ff1f
mov dword [esp + 4], esi
add edi, 2
mov eax, dword [esp + 0x48c]
mov esi, dword [eax + 4]
cmp word [esi + ebx], 0
lea ebx, [ebx + 2]
jne 0x41fe40
lea eax, [esi + ebx]
add eax, 0xfffffffe
add ebx, esi
mov ecx, 1
sub ecx, ebx
and ecx, esi
mov edx, esi
not edx
and edx, eax
sub edx, ecx
sar edx, 1
add edi, edx
jns 0x41fe77
mov edi, 0xffffffff
jmp 0x41fe79
xor ebx, ebx
jmp 0x41ff1f
add edi, edi
push edi
call fcn.00408f10
add esp, 4
mov edi, eax
movzx ecx, word [esi]
test cx, cx
je 0x41feb1
add esi, 2
mov eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x41fea0
mov word [eax], 0x2f
add eax, 2
movzx ecx, word [ebp]
test cx, cx
je 0x41fee4
add ebp, 2
mov esi, dword [esp + 4]
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebp]
add ebp, 2
test cx, cx
jne 0x41fed0
jmp 0x41fee8
mov esi, dword [esp + 4]
mov word [eax], 0
mov ecx, dword [esp + 0x48c]
mov eax, dword [ecx + 0x14]
dec eax
push 1
push eax
push dword [ecx + 0x10]
push dword [ecx + 0xc]
lea eax, [esp + 0x274]
push eax
push edi
push dword [ecx]
call fcn.0041ed10
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00408f20
add esp, 4
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
call fcn.00408f20
add esp, 4
mov eax, dword [esp]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
add esp, 0x46c
pop esi
pop edi
pop ebx
pop ebp
ret 0x10