Function at 0x41c720
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], 0x1c1d1e1f
mov dword [esp + 0x10], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x41c77e
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0xc]
add eax, 0x2fee2984
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x64
mov ecx, dword [esp]
mov byte [esp + ecx + 0xc], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x41c750
mov eax, dword [esp + 0xc]
mov edx, dword [0x441e1c]
mov ecx, dword [edx]
mov edx, dword [edx + 4]
cmp ecx, edx
je 0x41c7d4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx], 0xcecd21fd
je 0x41c7b1
add ecx, 8
cmp ecx, edx
jne 0x41c7a0
jmp 0x41c7d4
mov ecx, dword [ecx + 4]
cmp ecx, eax
je 0x41c7d4
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 5
push 4
push dword [0x441e20]
push ecx
call fcn.00434480
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x41c871
push dword [esp + 0x24]
call fcn.004326e0
add esp, 4
mov edi, eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xc], 0x1c1d1e1f
mov dword [esp + 0x10], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x41c83e
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0xc]
add eax, 0x2fee2984
xor eax, edx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x64
mov edx, dword [esp]
mov byte [esp + edx + 0xc], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x41c810
mov eax, dword [esp + 0xc]
mov esi, dword [0x441e1c]
mov edx, dword [esi]
mov esi, dword [esi + 4]
cmp edx, esi
je 0x41c896
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx], 0xcecd21fd
je 0x41c878
add edx, 8
cmp edx, esi
jne 0x41c860
jmp 0x41c896
xor ebx, ebx
jmp 0x41cb3d
mov edx, dword [edx + 4]
cmp edx, eax
je 0x41c896
push 0
push ecx
push edi
push 5
push 4
push dword [0x441e20]
push edx
call fcn.00434480
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x41cb34
mov ebp, dword [edi]
xor eax, eax
mov ecx, ebp
mov edx, edi
nop
nop
nop
nop
nop
nop
nop
nop
lea esi, [edx + ecx]
mov ecx, dword [edx + ecx]
add eax, 0x208
add ebx, 0x104
mov edx, esi
test ecx, ecx
jne 0x41c8b0
mov dword [esp + 0x20], edi
test ebx, ebx
jns 0x41c8d4
mov eax, 0xffffffff
push eax
call fcn.00409600
add esp, 4
mov edi, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
jmp 0x41c902
mov esi, edi
add eax, ebp
lea edi, [esi + 2]
mov word [esi], 0xa
mov ebp, dword [eax]
test ebp, ebp
je 0x41c933
mov ecx, dword [eax + ebp + 0x3c]
movzx edx, word [ecx]
test dx, dx
je 0x41c8f0
add ecx, 2
mov esi, edi
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 0x41c920
jmp 0x41c8f2
xor ebx, ebx
mov eax, dword [esp + 4]
cmp edi, eax
je 0x41cb27
mov word [edi], 0
movzx ecx, word [eax]
test cx, cx
je 0x41c994
xor ebx, ebx
mov eax, dword [esp + 4]
jmp 0x41c96e
add ebx, edx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x41c994
cmp eax, edi
jae 0x41c994
movzx ebp, cx
cmp ebp, 0x800
mov ecx, 3
sbb ecx, 0
mov edx, 1
cmp ebp, 0x80
jb 0x41c960
mov edx, ecx
jmp 0x41c960
lea eax, [ebx + 1]
mov dword [esp + 0x28], eax
push eax
call fcn.00409600
add esp, 4
mov edx, eax
mov dword [esp + 0x1c], eax
test ebx, ebx
jle 0x41ca95
mov edx, dword [esp + 0x1c]
cmp dword [esp + 4], edi
jae 0x41ca95
mov edx, dword [esp + 0x1c]
lea eax, [edx + ebx]
mov dword [esp + 0x30], eax
add dword [esp + 0x28], edx
mov edi, dword [esp + 4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, word [edi]
test cx, cx
je 0x41ca95
cmp cx, 0x7f
ja 0x41ca00
mov byte [edx], cl
mov ebp, 1
jmp 0x41ca80
mov eax, edx
not eax
add eax, dword [esp + 0x28]
movzx ebp, cx
cmp eax, 2
jb 0x41ca40
cmp ebp, 0x7ff
ja 0x41ca40
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 ebp, 2
jmp 0x41ca80
mov dword [esp + 0x2c], ebp
xor ebp, ebp
cmp eax, 3
jb 0x41ca80
mov ebp, dword [esp + 0x2c]
mov eax, ebp
shr eax, 0xc
or al, 0xe0
mov byte [edx], al
mov eax, ebp
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [edx + 1], al
and cl, 0x3f
or cl, 0x80
mov byte [edx + 2], cl
mov ebp, 3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add edx, ebp
cmp edx, dword [esp + 0x30]
jae 0x41ca95
lea eax, [edi + 2]
cmp edi, esi
mov edi, eax
jb 0x41c9e0
mov byte [edx], 0
mov dword [esp + 0xc], 0x2439331c
mov dword [esp + 0x10], 0x3a293625
mov dword [esp + 0x14], 0x2b2e672b
mov dword [esp + 0x18], 0x512c
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xf
ja 0x41cafe
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0xc]
add eax, 0xe78689ca
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x7a
mov ecx, dword [esp]
mov byte [esp + ecx + 0xc], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x10
jb 0x41cad0
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0x48]
push ebx
mov esi, dword [esp + 0x20]
push esi
push eax
call fcn.0040a260
mov ebx, eax
push esi
call fcn.00409610
add esp, 4
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 4]
jmp 0x41cb2b
mov edi, dword [esp + 0x20]
push eax
call fcn.00409610
add esp, 4
push edi
call fcn.00432760
add esp, 4
mov eax, ebx
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret