Function at 0x41db60
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov dword [esp + 0x24], 0
mov word [esp + 0x10], 0x605
mov byte [esp + 0x12], 7
mov dword [esp + 0x13], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x41dbe5
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + ecx]
add edx, 0x74653d81
add eax, 0x74653d81
and eax, ecx
mov ecx, edx
not ecx
and ecx, eax
add ecx, eax
not eax
and eax, edx
sub eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x7b
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x41dba0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x443f58]
test ecx, ecx
je 0x41dc34
xor edx, edx
mov esi, dword [0x443f5c]
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xcecd21fd
je 0x41dc10
inc edx
cmp ecx, edx
jne 0x41dc00
jmp 0x41dc34
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x41dc34
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 5
push 4
push dword [0x443f60]
push ecx
call fcn.00436440
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x41dcf0
push dword [esp + 0x24]
call fcn.00433ee0
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x24]
mov word [esp + 0x10], 0x605
mov byte [esp + 0x12], 7
mov dword [esp + 0x13], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x41dcc5
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x10]
lea esi, [eax + edx]
add esi, 0x74653d81
add eax, 0x74653d81
and eax, edx
mov edx, esi
not edx
and edx, eax
add edx, eax
not eax
and eax, esi
sub eax, edx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x7b
mov edx, dword [esp]
mov byte [esp + edx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x41dc80
mov eax, dword [esp + 0x10]
mov edx, dword [0x443f58]
test edx, edx
je 0x41dd19
xor esi, esi
mov edi, dword [0x443f5c]
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0xcecd21fd
je 0x41dcf7
inc esi
cmp edx, esi
jne 0x41dce0
jmp 0x41dd19
xor ebx, ebx
jmp 0x41dfb6
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x41dd19
push 0
push ecx
push dword [esp + 0x14]
push 5
push 4
push dword [0x443f60]
push edx
call fcn.00436440
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x41dfaa
mov edx, dword [esp + 0xc]
mov ebp, dword [edx]
xor eax, eax
mov ecx, ebp
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 0x41dd30
test ebx, ebx
jns 0x41dd50
mov eax, 0xffffffff
push eax
call fcn.004097d0
add esp, 4
mov edi, eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc]
jmp 0x41dd82
mov esi, edi
add eax, ebp
lea edi, [esi + 2]
mov word [esi], 0xa
mov ebp, dword [eax]
test ebp, ebp
je 0x41ddb3
mov ecx, dword [eax + ebp + 0x3c]
movzx edx, word [ecx]
test dx, dx
je 0x41dd70
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 0x41dda0
jmp 0x41dd72
xor ebx, ebx
mov eax, dword [esp + 8]
cmp edi, eax
je 0x41dfa1
mov word [edi], 0
movzx ecx, word [eax]
test cx, cx
je 0x41de1d
xor ebx, ebx
jmp 0x41dded
inc ebx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x41de1d
cmp eax, edi
jae 0x41de1d
cmp cx, 0x7f
jbe 0x41dde0
movzx ecx, cx
cmp ecx, 0x7ff
ja 0x41de10
add ebx, 2
jmp 0x41dde1
mov ecx, ebx
and ecx, 3
xor ebx, 3
lea ebx, [ebx + ecx*2]
jmp 0x41dde1
lea eax, [ebx + 1]
mov dword [esp + 0x28], eax
push eax
call fcn.004097d0
add esp, 4
mov edx, eax
mov dword [esp + 0x20], eax
test ebx, ebx
jle 0x41df15
mov edx, dword [esp + 0x20]
cmp dword [esp + 8], edi
jae 0x41df15
mov edx, dword [esp + 0x20]
lea eax, [edx + ebx]
mov dword [esp + 0x30], eax
add dword [esp + 0x28], edx
mov edi, dword [esp + 8]
nop
nop
nop
nop
movzx ecx, word [edi]
test cx, cx
je 0x41df15
cmp cx, 0x7f
ja 0x41de80
mov byte [edx], cl
mov ebp, 1
jmp 0x41df00
mov eax, edx
not eax
add eax, dword [esp + 0x28]
movzx ebp, cx
cmp eax, 2
jb 0x41dec0
cmp ebp, 0x7ff
ja 0x41dec0
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 0x41df00
mov dword [esp + 0x2c], ebp
xor ebp, ebp
cmp eax, 3
jb 0x41df00
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 0x41df15
lea eax, [edi + 2]
cmp edi, esi
mov edi, eax
jb 0x41de60
mov byte [edx], 0
mov dword [esp + 0x10], 0xc8c5b7e8
mov dword [esp + 0x14], 0xcebdbac9
mov dword [esp + 0x18], 0x474203bf
mov dword [esp + 0x1c], 0xcd40
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xf
ja 0x41df7e
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
add eax, 0xd16b4d76
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xb2
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x10
jb 0x41df50
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x48]
push ebx
mov esi, dword [esp + 0x24]
push esi
push eax
call fcn.0040a0b0
mov ebx, eax
push esi
call fcn.004097e0
add esp, 4
mov eax, dword [esp + 8]
push eax
call fcn.004097e0
add esp, 4
push dword [esp + 0xc]
call fcn.00433ff0
add esp, 4
mov eax, ebx
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret