Function at 0x41f830
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x468
cmp byte [esp + 0x480], 0
jne 0x41f960
mov edi, dword [esp + 0x488]
mov ebp, dword [esp + 0x47c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0xfd84fdb8
mov dword [esp + 0x14], 0xfdc9fdbc
mov dword [esp + 0x18], 0xfdc2fdc9
mov dword [esp + 0x1c], 0xfd82fdb9
mov dword [esp + 0x20], 0xfc10fd83
mov eax, 0xaadf
mov ecx, 0x5520
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, word [esp + eax*2 - 0x155ae]
mov esi, ecx
xor esi, eax
and esi, edx
xor esi, eax
add esi, 0xffffa908
mov word [esp + eax*2 - 0x155ae], si
inc eax
dec ecx
cmp eax, 0xaae9
jne 0x41f8a0
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
call fcn.00437160
push 0xebc73df8
push dword [esp + 0xc]
call fcn.00439000
add esp, 8
mov ecx, esp
push ecx
push 0x43c598
push 1
push 0
push 0x43c5a8
call eax
test eax, eax
js 0x41f960
mov eax, dword [esp]
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push 0x43c5b8
push eax
call dword [ecx]
test eax, eax
js 0x41f967
mov ebx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebp + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0x41f920
mov edi, dword [edi + 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 0x41f940
sar ebx, 1
sar eax, 1
lea ecx, [ebx + eax]
add ecx, 2
test ecx, ecx
jns 0x41f96e
mov eax, 0xffffffff
jmp 0x41f977
xor ebx, ebx
jmp 0x41fb19
xor ebx, ebx
jmp 0x41fb10
add eax, ebx
lea eax, [eax*2 + 4]
push eax
call fcn.00407fa0
add esp, 4
mov esi, eax
movzx ecx, word [edi]
test cx, cx
je 0x41f9a1
add edi, 2
mov eax, esi
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x41f990
mov word [eax], 0x5c
add eax, 2
movzx ecx, word [ebp]
test cx, cx
je 0x41f9d1
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 0x41f9c0
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 0x41fa53
mov eax, dword [esp]
mov ecx, dword [eax]
push 1
push 0
push eax
call dword [ecx + 0x4c]
test eax, eax
js 0x41fa53
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 0x41fa53
mov eax, dword [esp + 0x488]
mov edi, dword [eax + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x41fa30
sar eax, 1
inc eax
mov ecx, eax
and ecx, ebx
xor eax, ebx
lea edx, [eax + ecx*2]
inc edx
test edx, edx
jns 0x41fa5a
mov eax, 0xffffffff
jmp 0x41fa64
xor ebx, ebx
jmp 0x41fafd
lea eax, [eax + ecx*2]
lea eax, [eax*2 + 2]
push eax
call fcn.00407fa0
add esp, 4
mov ebx, eax
movzx ecx, word [edi]
test cx, cx
je 0x41fa91
add edi, 2
mov eax, ebx
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x41fa80
mov word [eax], 0x2f
add eax, 2
movzx ecx, word [ebp]
test cx, cx
je 0x41fac4
add ebp, 2
mov edx, dword [esp + 0x488]
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebp]
add ebp, 2
test cx, cx
jne 0x41fab0
jmp 0x41facb
mov edx, dword [esp + 0x488]
mov word [eax], 0
mov eax, dword [edx + 0x14]
dec eax
push 1
push eax
push dword [edx + 0x10]
push dword [edx + 0xc]
lea eax, [esp + 0x270]
push eax
push ebx
push dword [edx]
call fcn.0041ee60
add esp, 0x1c
mov ecx, ebx
mov ebx, eax
push ecx
call fcn.00407fb0
add esp, 4
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
call fcn.00407fb0
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