Function at 0x41f435
Capabilities:
Encode data using xor

Disassembly:
cmp dword [ecx], 0xffffffff
je 0x41f4a7
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov ebx, ecx
push 0xadeee8f4
push dword [0x44ab0c]
call fcn.0043e580
add esp, 8
lea ecx, [esp + 0x10]
push 0
push 2
push ecx
push dword [ebx]
call eax
test eax, eax
jg 0x41f4ac
cmp dword [ebx], 0xffffffff
je 0x41f4ac
push 0x59ea2086
push dword [0x44ab0c]
call fcn.0043e580
add esp, 8
push 2
push dword [ebx]
call eax
push 0x2e775759
push dword [0x44ab0c]
call fcn.0043e580
add esp, 8
push dword [ebx]
call eax
mov dword [ebx], 0xffffffff
jmp 0x41f7d4
xor eax, eax
ret 4
test eax, eax
jle 0x41f7d4
movzx eax, byte [esp + 0x11]
mov ecx, eax
and ecx, 0x7f
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0
cmp ecx, 0x7f
je 0x41f562
cmp ecx, 0x7e
jne 0x41f5f3
mov word [esp], 0
push 0xadeee8f4
push dword [0x44ab0c]
call fcn.0043e580
add esp, 8
mov ecx, esp
push 0
push 2
push ecx
push dword [ebx]
call eax
test eax, eax
setg dl
jg 0x41f546
cmp dword [ebx], 0xffffffff
je 0x41f546
push 0x59ea2086
push dword [0x44ab0c]
mov esi, edx
call fcn.0043e580
add esp, 8
push 2
push dword [ebx]
call eax
push 0x2e775759
push dword [0x44ab0c]
call fcn.0043e580
add esp, 8
push dword [ebx]
call eax
mov edx, esi
mov dword [ebx], 0xffffffff
movzx eax, word [esp]
rol ax, 8
movzx eax, ax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
jmp 0x41f5e8
mov dword [esp + 4], 0
mov dword [esp], 0
push 0xadeee8f4
push dword [0x44ab0c]
call fcn.0043e580
add esp, 8
mov ecx, esp
push 0
push 8
push ecx
push dword [ebx]
call eax
test eax, eax
setg dl
jg 0x41f5d5
cmp dword [ebx], 0xffffffff
je 0x41f5d5
push 0x59ea2086
push dword [0x44ab0c]
mov esi, edx
call fcn.0043e580
add esp, 8
push 2
push dword [ebx]
call eax
push 0x2e775759
push dword [0x44ab0c]
call fcn.0043e580
add esp, 8
push dword [ebx]
call eax
mov edx, esi
mov dword [ebx], 0xffffffff
mov eax, dword [esp]
mov ecx, dword [esp + 4]
bswap ecx
bswap eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
movzx eax, byte [esp + 0x11]
test al, al
jns 0x41f665
jmp 0x41f5f9
xor edx, edx
test al, al
jns 0x41f665
mov edi, edx
lea esi, [esp + 0x20]
push 0xadeee8f4
push dword [0x44ab0c]
call fcn.0043e580
add esp, 8
push 0
push 4
push esi
push dword [ebx]
call eax
test eax, eax
setg al
jg 0x41f7ca
cmp dword [ebx], 0xffffffff
mov edx, edi
je 0x41f667
push 0x59ea2086
push dword [0x44ab0c]
call fcn.0043e580
add esp, 8
push 2
push dword [ebx]
call eax
push 0x2e775759
push dword [0x44ab0c]
call fcn.0043e580
add esp, 8
push dword [ebx]
call eax
mov edx, edi
mov dword [ebx], 0xffffffff
xor eax, eax
test dl, dl
je 0x41f7d4
mov dword [esp + 0x28], eax
push dword [esp + 0x18]
call fcn.004082d0
add esp, 4
mov dword [esp + 0x24], eax
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x2c], ebx
jmp 0x41f6a1
add edi, ecx
mov ecx, dword [esp + 0x30]
adc ecx, 0
test eax, eax
jle 0x41f734
mov esi, dword [esp + 0x18]
cmp edi, esi
mov eax, ecx
sbb eax, dword [esp + 0x1c]
jae 0x41f734
mov dword [esp + 0x30], ecx
sub esi, edi
cmp esi, 0xffff
jl 0x41f6c6
mov esi, 0xffff
mov ebx, dword [esp + 0x24]
add ebx, edi
push 0xadeee8f4
push dword [0x44ab0c]
call fcn.0043e580
add esp, 8
push 0
push esi
push ebx
mov ebx, dword [esp + 0x38]
push dword [ebx]
call eax
test eax, eax
jg 0x41f6f4
cmp dword [ebx], 0xffffffff
jne 0x41f6fe
mov ecx, eax
test eax, eax
jg 0x41f690
xor ecx, ecx
jmp 0x41f690
push 0x59ea2086
push dword [0x44ab0c]
call fcn.0043e580
add esp, 8
push 2
push dword [ebx]
call eax
push 0x2e775759
push dword [0x44ab0c]
call fcn.0043e580
add esp, 8
push dword [ebx]
call eax
mov dword [ebx], 0xffffffff
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x1c]
setne al
mov ecx, dword [esp + 0x28]
and cl, al
cmp cl, 1
lea edi, [esp + 0x10]
jne 0x41f78b
xor eax, eax
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, eax
and edx, 3
movzx edx, byte [esp + edx + 0x20]
mov esi, dword [esp + 0x24]
xor byte [esi + eax], dl
lea edx, [eax + eax]
and edx, 2
xor eax, 1
add eax, edx
adc ecx, 0
cmp eax, dword [esp + 0x18]
mov edx, ecx
sbb edx, dword [esp + 0x1c]
jb 0x41f760
cmp byte [ebx + 5], 0
je 0x41f79e
mov eax, esp
mov ecx, ebx
push edi
push eax
call fcn.00420bb0
jmp 0x41f7a9
mov eax, esp
mov ecx, ebx
push edi
push eax
call fcn.00420a30
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 8]
mov dword [edx + 8], eax
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [edx + 4], ecx
mov dword [edx], eax
mov al, 1
jmp 0x41f7d6
mov edx, edi
test dl, dl
jne 0x41f66f
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4