Function at 0x41fde5
Capabilities:
Encode data using xor

Disassembly:
cmp dword [ecx], 0xffffffff
je 0x41fe57
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov edi, ecx
push 0xadeee8f4
push dword [0x44cd9c]
call fcn.00440990
add esp, 8
lea ecx, [esp + 0x10]
push 0
push 2
push ecx
push dword [edi]
call eax
test eax, eax
jg 0x41fe5c
cmp dword [edi], 0xffffffff
je 0x41fe5c
push 0x59ea2086
push dword [0x44cd9c]
call fcn.00440990
add esp, 8
push 2
push dword [edi]
call eax
push 0x2e775759
push dword [0x44cd9c]
call fcn.00440990
add esp, 8
push dword [edi]
call eax
mov dword [edi], 0xffffffff
jmp 0x4200ae
xor eax, eax
ret 4
test eax, eax
jle 0x4200ae
movzx eax, byte [esp + 0x11]
mov ecx, eax
or ecx, 0x7f
xor eax, 0x80
and eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
cmp eax, 0x7f
je 0x41ff20
cmp eax, 0x7e
jne 0x41ffab
mov word [esp], 0
push 0xadeee8f4
push dword [0x44cd9c]
call fcn.00440990
add esp, 8
mov ecx, esp
push 0
push 2
push ecx
push dword [edi]
call eax
test eax, eax
setg bl
jg 0x41fef9
cmp dword [edi], 0xffffffff
je 0x41fef9
push 0x59ea2086
push dword [0x44cd9c]
call fcn.00440990
add esp, 8
push 2
push dword [edi]
call eax
push 0x2e775759
push dword [0x44cd9c]
call fcn.00440990
add esp, 8
push dword [edi]
call eax
mov dword [edi], 0xffffffff
movzx eax, word [esp]
rol ax, 8
movzx eax, ax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
cmp byte [esp + 0x11], 0
jns 0x420016
jmp 0x41ffb4
mov dword [esp + 4], 0
mov dword [esp], 0
push 0xadeee8f4
push dword [0x44cd9c]
call fcn.00440990
add esp, 8
mov ecx, esp
push 0
push 8
push ecx
push dword [edi]
call eax
test eax, eax
setg bl
jg 0x41ff8f
cmp dword [edi], 0xffffffff
je 0x41ff8f
push 0x59ea2086
push dword [0x44cd9c]
call fcn.00440990
add esp, 8
push 2
push dword [edi]
call eax
push 0x2e775759
push dword [0x44cd9c]
call fcn.00440990
add esp, 8
push dword [edi]
call eax
mov dword [edi], 0xffffffff
mov eax, dword [esp]
mov ecx, dword [esp + 4]
bswap ecx
bswap eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
cmp byte [esp + 0x11], 0
jns 0x420016
jmp 0x41ffb4
xor ebx, ebx
cmp byte [esp + 0x11], 0
jns 0x420016
lea esi, [esp + 0x20]
push 0xadeee8f4
push dword [0x44cd9c]
call fcn.00440990
add esp, 8
push 0
push 4
push esi
push dword [edi]
call eax
test eax, eax
setg al
jg 0x420018
cmp dword [edi], 0xffffffff
je 0x420018
push 0x59ea2086
push dword [0x44cd9c]
call fcn.00440990
add esp, 8
push 2
push dword [edi]
call eax
push 0x2e775759
push dword [0x44cd9c]
call fcn.00440990
add esp, 8
push dword [edi]
call eax
mov dword [edi], 0xffffffff
xor eax, eax
test bl, bl
je 0x4200ae
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], edi
push dword [esp + 0x18]
call fcn.004083f0
add esp, 4
mov dword [esp + 0x24], eax
xor edi, edi
xor ecx, ecx
jmp 0x420051
add edi, ecx
mov ecx, dword [esp + 0x30]
adc ecx, 0
test eax, eax
jle 0x4200f0
mov esi, dword [esp + 0x18]
cmp edi, esi
mov eax, ecx
sbb eax, dword [esp + 0x1c]
jae 0x4200f0
mov dword [esp + 0x30], ecx
sub esi, edi
cmp esi, 0xffff
jl 0x420076
mov esi, 0xffff
mov ebx, dword [esp + 0x24]
add ebx, edi
push 0xadeee8f4
push dword [0x44cd9c]
call fcn.00440990
add esp, 8
push 0
push esi
push ebx
mov esi, dword [esp + 0x34]
push dword [esi]
call eax
test eax, eax
jg 0x4200a4
cmp dword [esi], 0xffffffff
jne 0x4200ba
mov ecx, eax
test eax, eax
jg 0x420040
xor ecx, ecx
jmp 0x420040
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
push 0x59ea2086
push dword [0x44cd9c]
call fcn.00440990
add esp, 8
push 2
push dword [esi]
call eax
push 0x2e775759
push dword [0x44cd9c]
call fcn.00440990
add esp, 8
push dword [esi]
call eax
mov dword [esi], 0xffffffff
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x1c]
setne al
mov ecx, dword [esp + 0x2c]
and cl, al
cmp cl, 1
jne 0x420133
xor eax, eax
xor ecx, ecx
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 0x24]
mov esi, eax
and esi, 3
movzx ebx, byte [esp + esi + 0x20]
xor byte [edx + eax], bl
add eax, 1
adc ecx, 0
cmp eax, dword [esp + 0x18]
mov edx, ecx
sbb edx, dword [esp + 0x1c]
jb 0x420110
mov ecx, dword [esp + 0x28]
cmp byte [ecx + 5], 0
je 0x42014c
mov eax, esp
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00421710
jmp 0x420159
mov eax, esp
lea edx, [esp + 0x10]
push edx
push eax
call fcn.00421580
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 0x4200b0