Function at 0x41ffc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], 0xbdbcbfbe
mov word [esp + 0x18], 0
mov byte [esp + 0x1a], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x42002e
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 + 0x14]
add eax, 0x5b20f734
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x75
mov ecx, dword [esp]
mov byte [esp + ecx + 0x14], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x420000
mov eax, dword [esp + 0x14]
mov ecx, dword [0x449d34]
test ecx, ecx
je 0x420084
xor edx, edx
mov esi, dword [0x449d38]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xcecd21fd
je 0x420060
inc edx
cmp ecx, edx
jne 0x420050
jmp 0x420084
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x420084
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 5
push 4
push dword [0x449d3c]
push ecx
call fcn.0043c4a0
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x420130
push dword [esp + 0x28]
call fcn.0043a080
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], 0xbdbcbfbe
mov word [esp + 0x18], 0
mov byte [esp + 0x1a], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x4200fe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x14]
add eax, 0x5b20f734
xor eax, edx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x75
mov edx, dword [esp]
mov byte [esp + edx + 0x14], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x4200d0
mov eax, dword [esp + 0x14]
mov edx, dword [0x449d34]
test edx, edx
je 0x420159
xor esi, esi
mov edi, dword [0x449d38]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0xcecd21fd
je 0x420137
inc esi
cmp edx, esi
jne 0x420120
jmp 0x420159
xor ebx, ebx
jmp 0x420416
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x420159
push 0
push ecx
push dword [esp + 0x14]
push 5
push 4
push dword [0x449d3c]
push edx
call fcn.0043c4a0
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x42040a
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 0x420170
test ebx, ebx
jns 0x420190
mov eax, 0xffffffff
push eax
call fcn.00409630
add esp, 4
mov edi, eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc]
jmp 0x4201c2
mov esi, edi
add eax, ebp
lea edi, [esi + 2]
mov word [esi], 0xa
mov ebp, dword [eax]
test ebp, ebp
je 0x4201f3
mov ecx, dword [eax + ebp + 0x3c]
movzx edx, word [ecx]
test dx, dx
je 0x4201b0
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 0x4201e0
jmp 0x4201b2
xor ebx, ebx
mov eax, dword [esp + 8]
cmp edi, eax
je 0x420401
mov word [edi], 0
movzx ecx, word [eax]
test cx, cx
je 0x420265
xor ebx, ebx
jmp 0x420237
mov ecx, ebx
and ecx, 1
xor ebx, 1
lea ebx, [ebx + ecx*2]
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x420265
cmp eax, edi
jae 0x420265
cmp cx, 0x7f
jbe 0x420220
movzx ecx, cx
cmp ecx, 0x7ff
ja 0x420260
mov ecx, ebx
and ecx, 2
xor ebx, 2
jmp 0x420228
add ebx, 3
jmp 0x42022b
lea eax, [ebx + 1]
mov dword [esp + 0x30], eax
push eax
call fcn.00409630
add esp, 4
mov dword [esp + 0x10], eax
test ebx, ebx
jle 0x420375
mov eax, dword [esp + 0x10]
cmp dword [esp + 8], edi
jae 0x420375
mov eax, dword [esp + 0x10]
lea ebp, [eax + ebx]
add dword [esp + 0x30], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x2c], ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, word [ecx]
test dx, dx
je 0x420375
cmp dx, 0x7f
mov dword [esp + 0x34], ecx
ja 0x4202e0
mov byte [eax], dl
mov edi, 1
jmp 0x420360
mov ebp, dword [esp + 0x30]
sub ebp, eax
mov ecx, ebp
xor ecx, 1
and ebp, 0xfffffffe
add ebp, ebp
sub ebp, ecx
movzx ecx, dx
cmp ebp, 2
jb 0x420320
cmp ecx, 0x7ff
ja 0x420320
mov ecx, edx
shr ecx, 6
add cl, 0xc0
mov byte [eax], cl
and dl, 0x3f
or dl, 0x80
mov byte [eax + 1], dl
mov edi, 2
mov ebp, dword [esp + 0x2c]
jmp 0x420360
xor edi, edi
cmp ebp, 3
mov ebp, dword [esp + 0x2c]
jb 0x420360
mov edi, ecx
shr ecx, 0xc
or cl, 0xe0
mov byte [eax], cl
mov ecx, edi
shr ecx, 6
and cl, 0x3f
or cl, 0x80
mov byte [eax + 1], cl
mov ecx, edx
not ecx
or ecx, 0x3f
add ecx, edx
add cl, 0x81
mov byte [eax + 2], cl
mov edi, 3
nop
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
cmp eax, ebp
jae 0x420375
mov edx, dword [esp + 0x34]
lea ecx, [edx + 2]
cmp edx, esi
jb 0x4202b0
mov byte [eax], 0
mov dword [esp + 0x14], 0xd2cfc1ee
mov dword [esp + 0x18], 0xd4c7c4d7
mov dword [esp + 0x1c], 0xbdb8f5b9
mov dword [esp + 0x20], 0xc3be
mov byte [esp + 0x24], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x10
ja 0x4203de
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x14]
add eax, 0x3569afb8
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xfa
mov ecx, dword [esp]
mov byte [esp + ecx + 0x14], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x11
jb 0x4203b0
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x4c]
push ebx
mov esi, dword [esp + 0x14]
push esi
push eax
call fcn.0040a090
mov ebx, eax
push esi
call fcn.00409640
add esp, 4
mov eax, dword [esp + 8]
push eax
call fcn.00409640
add esp, 4
push dword [esp + 0xc]
call fcn.0043a100
add esp, 4
mov eax, ebx
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret