Function at 0x41f9b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x468
xor ebx, ebx
cmp byte [esp + 0x480], 0
jne 0x41fc69
mov esi, dword [esp + 0x488]
mov ebp, dword [esp + 0x47c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x128d1080
mov dword [esp + 0x14], 0x164614b6
mov dword [esp + 0x18], 0xa570845
mov dword [esp + 0x1c], 0xe910caf
mov dword [esp + 0x20], 0x2010093
mov eax, ebx
add al, 0x27
xor al, byte [esp + ebx + 0x10]
add al, 0xc8
mov byte [esp + ebx + 0x10], al
inc ebx
cmp ebx, 0x14
jne 0x41fa10
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
call fcn.00436aa0
push 0xebc73df8
push dword [esp + 0xc]
call fcn.004385c0
add esp, 8
mov ecx, esp
push ecx
push 0x43b598
push 1
push 0
push 0x43b5a8
call eax
test eax, eax
js 0x41fabf
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 0x41fac6
mov ebx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebp + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0x41fa80
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 0x41faa0
sar ebx, 1
sar eax, 1
add eax, ebx
add eax, 2
test eax, eax
jns 0x41facd
mov eax, 0xffffffff
jmp 0x41facf
xor ebx, ebx
jmp 0x41fc69
xor ebx, ebx
jmp 0x41fc60
add eax, eax
push eax
call fcn.004082c0
add esp, 4
mov esi, eax
movzx ecx, word [edi]
test cx, cx
je 0x41fb01
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 0x41faf0
mov word [eax], 0x5c
add eax, 2
movzx ecx, word [ebp]
test cx, cx
je 0x41fb31
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 0x41fb20
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 0x41fba8
mov eax, dword [esp]
mov ecx, dword [eax]
push 1
push 0
push eax
call dword [ecx + 0x4c]
test eax, eax
js 0x41fba8
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 0x41fba8
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 0x41fb90
sar eax, 1
add ebx, eax
jns 0x41fbaf
mov ebx, 0xffffffff
jmp 0x41fbb1
xor ebx, ebx
jmp 0x41fc4d
add ebx, ebx
push ebx
call fcn.004082c0
add esp, 4
mov ebx, eax
movzx ecx, word [edi]
test cx, cx
je 0x41fbe1
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 0x41fbd0
mov word [eax], 0x2f
add eax, 2
movzx ecx, word [ebp]
test cx, cx
je 0x41fc14
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 0x41fc00
jmp 0x41fc1b
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.0041eda0
add esp, 0x1c
mov ecx, ebx
mov ebx, eax
push ecx
call fcn.004082d0
add esp, 4
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
call fcn.004082d0
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