Function at 0x41daf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0xea959497
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x41db7e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x20]
mov edx, 0x42
sub edx, eax
add eax, 0xc80c9cbd
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
add al, 0xd5
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x20], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x10
jb 0x41db40
mov eax, dword [esp + 0x20]
mov ecx, dword [0x43f060]
test ecx, ecx
je 0x41dbd4
xor edx, edx
mov esi, dword [0x43f064]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x10def2fc
je 0x41dbb0
inc edx
cmp ecx, edx
jne 0x41dba0
jmp 0x41dbd4
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x41dbd4
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 5
push 4
push dword [0x43f068]
push ecx
call fcn.00432610
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x41dca2
push dword [esp + 0x1c]
call fcn.00430d60
add esp, 4
mov edi, eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], 0xea959497
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x41dc6e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x20]
mov esi, 0x42
sub esi, eax
add eax, 0xc80c9cbd
xor esi, eax
and esi, edx
xor esi, eax
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0xc]
add al, 0xd5
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x20], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x10
jb 0x41dc30
mov eax, dword [esp + 0x20]
mov edx, dword [0x43f060]
test edx, edx
je 0x41dcca
mov ebx, edi
xor esi, esi
mov edi, dword [0x43f064]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0x10def2fc
je 0x41dca9
inc esi
cmp edx, esi
jne 0x41dc90
mov edi, ebx
jmp 0x41dcca
xor ebx, ebx
jmp 0x41dfc1
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
mov edi, ebx
je 0x41dcca
push 0
push ecx
push edi
push 5
push 4
push dword [0x43f068]
push edx
call fcn.00432610
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x41dfb8
mov esi, dword [edi]
mov eax, esi
mov ebx, edi
mov ecx, edi
xor edi, edi
nop
nop
lea edx, [ecx + eax]
mov eax, dword [ecx + eax]
inc edi
mov ecx, edx
test eax, eax
jne 0x41dce0
mov eax, 0xf329b7ff
sub eax, edi
and eax, 0x104
mov ecx, edi
and ecx, 0xfffffefb
imul ecx, eax
mov eax, edi
and eax, 0x104
or edi, 0x104
imul edi, eax
add edi, ecx
mov dword [esp + 0x18], ebx
jns 0x41dd23
mov edi, 0xffffffff
jmp 0x41dd25
add edi, edi
push edi
call fcn.00408a30
add esp, 4
mov ebx, eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
jmp 0x41dd52
mov edi, ebx
add eax, esi
lea ebx, [edi + 2]
mov word [edi], 0xa
mov esi, dword [eax]
test esi, esi
je 0x41dd83
mov ecx, dword [eax + esi + 0x3c]
movzx edx, word [ecx]
test dx, dx
je 0x41dd40
add ecx, 2
mov edi, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x41dd70
jmp 0x41dd42
xor edx, edx
mov eax, dword [esp + 8]
cmp ebx, eax
je 0x41dfa9
mov word [ebx], 0
movzx ecx, word [eax]
test cx, cx
je 0x41ddee
xor edx, edx
mov eax, dword [esp + 8]
jmp 0x41ddc4
mov ecx, dword [esp + 0x10]
add ecx, edx
mov edx, ecx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x41ddee
cmp eax, ebx
jae 0x41ddee
mov dword [esp + 0x10], edx
movzx esi, cx
cmp esi, 0x800
mov ecx, 3
sbb ecx, 0
mov edx, 1
cmp esi, 0x80
jb 0x41ddb0
mov edx, ecx
jmp 0x41ddb0
lea eax, [edx + 1]
mov dword [esp + 0x38], eax
push eax
mov esi, edx
call fcn.00408a30
add esp, 4
mov ecx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
test esi, esi
jle 0x41def5
mov ecx, dword [esp + 0x14]
cmp dword [esp + 8], ebx
jae 0x41def5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, ecx
mov dword [esp + 0x40], eax
add dword [esp + 0x38], ecx
mov edx, dword [esp + 8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, word [edx]
test bx, bx
je 0x41def5
cmp bx, 0x7f
ja 0x41de60
mov byte [ecx], bl
mov esi, 1
jmp 0x41dee0
mov eax, ecx
not eax
add eax, dword [esp + 0x38]
movzx esi, bx
cmp eax, 2
jb 0x41dea0
cmp esi, 0x7ff
ja 0x41dea0
mov eax, ebx
shr eax, 6
add al, 0xc0
mov byte [ecx], al
and bl, 0x3f
or bl, 0x80
mov byte [ecx + 1], bl
mov esi, 2
jmp 0x41dee0
mov dword [esp + 0x3c], esi
xor esi, esi
cmp eax, 3
jb 0x41dee0
mov esi, dword [esp + 0x3c]
mov eax, esi
shr eax, 0xc
or al, 0xe0
mov byte [ecx], al
mov eax, esi
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [ecx + 1], al
and bl, 0x3f
or bl, 0x80
mov byte [ecx + 2], bl
mov esi, 3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add ecx, esi
cmp ecx, dword [esp + 0x40]
jae 0x41def5
lea eax, [edx + 2]
cmp edx, edi
mov edx, eax
jb 0x41de40
mov byte [ecx], 0
mov dword [esp + 0x20], 0x908d83e0
mov dword [esp + 0x24], 0x92858691
mov dword [esp + 0x28], 0x83bef7bb
mov word [esp + 0x2c], 0xdb8
mov dword [esp + 0x2e], 0
mov byte [esp + 0x32], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x12
ja 0x41df7e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x20]
mov edx, 0xa7
sub edx, eax
add eax, 0x27341058
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
add al, 0x98
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x20], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x13
jb 0x41df40
lea eax, [esp + 0x20]
mov ecx, dword [ebp + 8]
push dword [esp + 0x10]
mov esi, dword [esp + 0x18]
push esi
push eax
call fcn.00409560
mov ebx, eax
push esi
call fcn.00408a40
add esp, 4
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 8]
jmp 0x41dfaf
xor ebx, ebx
mov edi, dword [esp + 0x18]
push eax
call fcn.00408a40
add esp, 4
push edi
call fcn.00430e10
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret