Function at 0x41ebc0
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], 0x62656467
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov byte [esp + 0x2c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0x41ec4e
nop
nop
nop
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, 0xee
sub edx, eax
add eax, 0x9c90311
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
add al, 0x89
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x20], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xd
jb 0x41ec10
mov eax, dword [esp + 0x20]
mov ecx, dword [0x44132c]
test ecx, ecx
je 0x41eca4
xor edx, edx
mov esi, dword [0x441330]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x10def2fc
je 0x41ec80
inc edx
cmp ecx, edx
jne 0x41ec70
jmp 0x41eca4
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x41eca4
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 5
push 4
push dword [0x441334]
push ecx
call fcn.00433920
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x41ed62
push dword [esp + 0x1c]
call fcn.00431ff0
add esp, 4
mov edi, eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], 0x62656467
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov byte [esp + 0x2c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0x41ed2e
nop
mov eax, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x20]
mov esi, 0xee
sub esi, eax
add eax, 0x9c90311
xor esi, eax
and esi, edx
xor esi, eax
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0xc]
add al, 0x89
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x20], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xd
jb 0x41ecf0
mov eax, dword [esp + 0x20]
mov edx, dword [0x44132c]
test edx, edx
je 0x41ed8a
mov ebx, edi
xor esi, esi
mov edi, dword [0x441330]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0x10def2fc
je 0x41ed69
inc esi
cmp edx, esi
jne 0x41ed50
mov edi, ebx
jmp 0x41ed8a
xor ebx, ebx
jmp 0x41f05f
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
mov edi, ebx
je 0x41ed8a
push 0
push ecx
push edi
push 5
push 4
push dword [0x441334]
push edx
call fcn.00433920
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x41f056
mov edx, edi
xor edi, edi
mov ebx, dword [edx]
xor eax, eax
mov ecx, ebx
mov dword [esp + 0x18], edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea esi, [edx + ecx]
mov ecx, dword [edx + ecx]
add eax, 0x208
add edi, 0x104
mov edx, esi
test ecx, ecx
jne 0x41edb0
test edi, edi
jns 0x41edd0
mov eax, 0xffffffff
push eax
call fcn.004090a0
add esp, 4
mov esi, eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
jmp 0x41ee02
mov edi, esi
add eax, ebx
lea esi, [edi + 2]
mov word [edi], 0xa
mov ebx, dword [eax]
test ebx, ebx
je 0x41ee33
mov ecx, dword [eax + ebx + 0x3c]
movzx edx, word [ecx]
test dx, dx
je 0x41edf0
add ecx, 2
mov edi, esi
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 0x41ee20
jmp 0x41edf2
xor ebx, ebx
mov eax, dword [esp + 8]
cmp esi, eax
je 0x41f049
mov word [esi], 0
movzx ecx, word [eax]
test cx, cx
je 0x41ee9c
xor ebx, ebx
mov eax, dword [esp + 8]
jmp 0x41ee72
mov ebx, dword [esp + 0x10]
add ebx, edx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x41ee9c
cmp eax, esi
jae 0x41ee9c
mov dword [esp + 0x10], ebx
movzx ebx, cx
cmp ebx, 0x800
mov ecx, 3
sbb ecx, 0
mov edx, 1
cmp ebx, 0x80
jb 0x41ee60
mov edx, ecx
jmp 0x41ee60
lea eax, [ebx + 1]
mov dword [esp + 0x38], eax
push eax
call fcn.004090a0
add esp, 4
mov ecx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jle 0x41efa5
mov ecx, dword [esp + 0x14]
cmp dword [esp + 8], esi
jae 0x41efa5
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
nop
nop
nop
nop
movzx ebx, word [edx]
test bx, bx
je 0x41efa5
cmp bx, 0x7f
ja 0x41ef10
mov byte [ecx], bl
mov esi, 1
jmp 0x41ef90
mov eax, ecx
not eax
add eax, dword [esp + 0x38]
movzx esi, bx
cmp eax, 2
jb 0x41ef50
cmp esi, 0x7ff
ja 0x41ef50
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 0x41ef90
mov dword [esp + 0x3c], esi
xor esi, esi
cmp eax, 3
jb 0x41ef90
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 0x41efa5
lea eax, [edx + 2]
cmp edx, edi
mov edx, eax
jb 0x41eef0
mov byte [ecx], 0
mov dword [esp + 0x20], 0x54619bbc
mov dword [esp + 0x24], 0x52616655
mov dword [esp + 0x28], 0x636e2763
mov dword [esp + 0x2c], 0xf96c
mov byte [esp + 0x30], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x10
ja 0x41f01e
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x20]
mov edx, 1
sub edx, eax
add eax, 0xb66ee6fe
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
add al, 0xe
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x20], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x11
jb 0x41efe0
lea eax, [esp + 0x20]
mov ecx, dword [ebp + 8]
push dword [esp + 0x10]
mov esi, dword [esp + 0x18]
push esi
push eax
call fcn.00409d00
mov ebx, eax
push esi
call fcn.004090b0
add esp, 4
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 8]
jmp 0x41f04d
mov edi, dword [esp + 0x18]
push eax
call fcn.004090b0
add esp, 4
push edi
call fcn.00432090
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret