Function at 0x41fa80
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x468
cmp byte [esp + 0x480], 0
jne 0x41fbaf
mov esi, dword [esp + 0x488]
mov ebp, dword [esp + 0x47c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x2bc629c7
mov dword [esp + 0x14], 0x2f1d2dc9
mov dword [esp + 0x18], 0x331c3102
mov dword [esp + 0x1c], 0x37da35d0
mov dword [esp + 0x20], 0x3b3a39d4
mov eax, 0xe3feaa68
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x1c0155a8]
xor ecx, eax
add ecx, 0xe00aacbf
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov byte [esp + eax + 0x1c0155a8], cl
inc eax
cmp eax, 0xe3feaa7c
jne 0x41faf0
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
call fcn.00437c80
push 0xebc73df8
push dword [esp + 0xc]
call fcn.00439be0
add esp, 8
mov ecx, esp
push ecx
push 0x43d598
push 1
push 0
push 0x43d5a8
call eax
test eax, eax
js 0x41fbaf
mov eax, dword [esp]
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push 0x43d5b8
push eax
call dword [ecx]
test eax, eax
js 0x41fbb6
mov ebx, 0xfffffffe
nop
nop
nop
nop
nop
cmp word [ebp + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0x41fb70
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 0x41fb90
sar ebx, 1
sar eax, 1
add eax, ebx
add eax, 2
test eax, eax
jns 0x41fbbd
mov eax, 0xffffffff
jmp 0x41fbbf
xor ebx, ebx
jmp 0x41fd64
xor ebx, ebx
jmp 0x41fd5b
add eax, eax
push eax
call fcn.004082a0
add esp, 4
mov esi, eax
movzx ecx, word [edi]
test cx, cx
je 0x41fbf1
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 0x41fbe0
mov word [eax], 0x5c
add eax, 2
movzx ecx, word [ebp]
test cx, cx
je 0x41fc21
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 0x41fc10
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 0x41fc98
mov eax, dword [esp]
mov ecx, dword [eax]
push 1
push 0
push eax
call dword [ecx + 0x4c]
test eax, eax
js 0x41fc98
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 0x41fc98
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 0x41fc80
sar eax, 1
add ebx, eax
jns 0x41fc9f
mov ebx, 0xffffffff
jmp 0x41fca1
xor ebx, ebx
jmp 0x41fd48
add ebx, ebx
push ebx
call fcn.004082a0
add esp, 4
mov ebx, eax
movzx ecx, word [edi]
test cx, cx
je 0x41fcd1
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 0x41fcc0
mov word [eax], 0x2f
add eax, 2
movzx ecx, word [ebp]
test cx, cx
je 0x41fd04
add ebp, 2
lea edi, [esp + 0x260]
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebp]
add ebp, 2
test cx, cx
jne 0x41fcf0
jmp 0x41fd0b
lea edi, [esp + 0x260]
mov word [eax], 0
mov edx, dword [esp + 0x488]
mov eax, dword [edx + 0x14]
mov ecx, eax
xor ecx, 1
and eax, 0xfffffffe
add eax, eax
sub eax, ecx
push 1
push eax
push dword [edx + 0x10]
push dword [edx + 0xc]
push edi
push ebx
push dword [edx]
call fcn.0041ef40
add esp, 0x1c
mov ecx, ebx
mov ebx, eax
push ecx
call fcn.004082b0
add esp, 4
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
call fcn.004082b0
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