Function at 0x41f4f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x98999697
mov word [esp + 0x1c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x41f54e
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x18]
add eax, 0x10c2d756
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x3e
mov ecx, dword [esp]
mov byte [esp + ecx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x41f520
mov eax, dword [esp + 0x18]
mov ecx, dword [0x44ab54]
test ecx, ecx
je 0x41f5a4
xor edx, edx
mov esi, dword [0x44ab58]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xcecd21fd
je 0x41f580
inc edx
cmp ecx, edx
jne 0x41f570
jmp 0x41f5a4
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x41f5a4
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 5
push 4
push dword [0x44ab5c]
push ecx
call fcn.0043d150
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x41f640
push dword [esp + 0x14]
call fcn.0043b280
add esp, 4
mov ebp, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], 0x98999697
mov word [esp + 0x1c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x41f60e
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x18]
add eax, 0x10c2d756
xor eax, edx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x3e
mov edx, dword [esp]
mov byte [esp + edx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x41f5e0
mov eax, dword [esp + 0x18]
mov edx, dword [0x44ab54]
test edx, edx
je 0x41f666
xor esi, esi
mov edi, dword [0x44ab58]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0xcecd21fd
je 0x41f647
inc esi
cmp edx, esi
jne 0x41f630
jmp 0x41f666
xor ebx, ebx
jmp 0x41f92d
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x41f666
push 0
push ecx
push ebp
push 5
push 4
push dword [0x44ab5c]
push edx
call fcn.0043d150
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x41f924
mov edi, dword [ebp]
mov eax, edi
mov ecx, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea edx, [ecx + eax]
mov eax, dword [ecx + eax]
dec ebx
mov ecx, edx
test eax, eax
jne 0x41f680
mov eax, ebx
neg eax
mov ecx, eax
or ecx, 0x104
mov edx, eax
and edx, 0x104
imul edx, ecx
and eax, 0xfffffefb
dec ebx
and ebx, 0x104
imul ebx, eax
add ebx, edx
mov dword [esp + 0x10], ebp
jns 0x41f6c2
mov ebx, 0xffffffff
jmp 0x41f6c4
add ebx, ebx
push ebx
call fcn.004095a0
add esp, 4
mov ebp, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10]
jmp 0x41f6f2
mov esi, ebp
add eax, edi
lea ebp, [esi + 2]
mov word [esi], 0xa
mov edi, dword [eax]
test edi, edi
je 0x41f723
mov ecx, dword [eax + edi + 0x3c]
movzx edx, word [ecx]
test dx, dx
je 0x41f6e0
add ecx, 2
mov esi, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], dx
add esi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41f710
jmp 0x41f6e2
xor ebx, ebx
mov eax, dword [esp + 4]
cmp ebp, eax
je 0x41f917
mov word [ebp], 0
movzx ecx, word [eax]
test cx, cx
je 0x41f784
xor ebx, ebx
mov eax, dword [esp + 4]
jmp 0x41f75e
add ebx, edx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x41f784
cmp eax, ebp
jae 0x41f784
movzx edi, cx
cmp edi, 0x800
mov ecx, 3
sbb ecx, 0
mov edx, 1
cmp edi, 0x80
jb 0x41f750
mov edx, ecx
jmp 0x41f750
lea eax, [ebx + 1]
mov dword [esp + 0x2c], eax
push eax
call fcn.004095a0
add esp, 4
mov edx, eax
mov dword [esp + 0xc], eax
test ebx, ebx
jle 0x41f885
mov edx, dword [esp + 0xc]
cmp dword [esp + 4], ebp
jae 0x41f885
mov edx, dword [esp + 0xc]
lea eax, [edx + ebx]
mov dword [esp + 0x34], eax
add dword [esp + 0x2c], edx
mov ebp, dword [esp + 4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, word [ebp]
test cx, cx
je 0x41f885
cmp cx, 0x7f
ja 0x41f7f0
mov byte [edx], cl
mov edi, 1
jmp 0x41f870
mov eax, edx
not eax
add eax, dword [esp + 0x2c]
movzx edi, cx
cmp eax, 2
jb 0x41f830
cmp edi, 0x7ff
ja 0x41f830
mov eax, ecx
shr eax, 6
add al, 0xc0
mov byte [edx], al
and cl, 0x3f
or cl, 0x80
mov byte [edx + 1], cl
mov edi, 2
jmp 0x41f870
mov dword [esp + 0x30], edi
xor edi, edi
cmp eax, 3
jb 0x41f870
mov edi, dword [esp + 0x30]
mov eax, edi
shr eax, 0xc
or al, 0xe0
mov byte [edx], al
mov eax, edi
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [edx + 1], al
mov eax, ecx
not eax
or eax, 0x3f
add eax, ecx
add al, 0x81
mov byte [edx + 2], al
mov edi, 3
nop
nop
nop
nop
nop
nop
nop
nop
nop
add edx, edi
cmp edx, dword [esp + 0x34]
jae 0x41f885
lea eax, [ebp + 2]
cmp ebp, esi
mov ebp, eax
jb 0x41f7d0
mov byte [edx], 0
mov dword [esp + 0x18], 0xe5f2f6ab
mov dword [esp + 0x1c], 0xeff2f3ea
mov dword [esp + 0x20], 0xf6f1baf0
mov word [esp + 0x24], 0x48f3
mov dword [esp + 0x26], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x11
ja 0x41f8ee
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x18]
add eax, 0x21e7f19f
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x1c
mov ecx, dword [esp]
mov byte [esp + ecx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x12
jb 0x41f8c0
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x4c]
push ebx
mov esi, dword [esp + 0x10]
push esi
push eax
call fcn.00409ec0
mov ebx, eax
push esi
call fcn.004095b0
add esp, 4
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 4]
jmp 0x41f91b
mov ebp, dword [esp + 0x10]
push eax
call fcn.004095b0
add esp, 4
push ebp
call fcn.0043b320
add esp, 4
mov eax, ebx
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret