Function at 0x41d5e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x6c6d6e6f
mov word [esp + 0x1c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x41d63e
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x18]
add eax, 0x7b264b98
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x41d610
mov eax, dword [esp + 0x18]
mov ecx, dword [0x440ee8]
test ecx, ecx
je 0x41d694
xor edx, edx
mov esi, dword [0x440eec]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xcecd21fd
je 0x41d670
inc edx
cmp ecx, edx
jne 0x41d660
jmp 0x41d694
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x41d694
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 5
push 4
push dword [0x440ef0]
push ecx
call fcn.00433ae0
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x41d730
push dword [esp + 0x14]
call fcn.00431b50
add esp, 4
mov ebp, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], 0x6c6d6e6f
mov word [esp + 0x1c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x41d6fe
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x18]
add eax, 0x7b264b98
xor eax, edx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 8
mov edx, dword [esp]
mov byte [esp + edx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x41d6d0
mov eax, dword [esp + 0x18]
mov edx, dword [0x440ee8]
test edx, edx
je 0x41d756
xor esi, esi
mov edi, dword [0x440eec]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0xcecd21fd
je 0x41d737
inc esi
cmp edx, esi
jne 0x41d720
jmp 0x41d756
xor ebx, ebx
jmp 0x41da34
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x41d756
push 0
push ecx
push ebp
push 5
push 4
push dword [0x440ef0]
push edx
call fcn.00433ae0
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x41da2b
mov edi, dword [ebp]
mov eax, edi
mov ecx, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea edx, [ecx + eax]
inc ebx
mov eax, dword [ecx + eax]
mov ecx, edx
test eax, eax
jne 0x41d770
mov eax, ebx
and eax, 0xfffffefb
mov ecx, ebx
and ecx, 0x104
or ebx, 0x104
imul ebx, ecx
xor ecx, 0x104
imul ecx, eax
add ebx, ecx
mov dword [esp + 0x10], ebp
jns 0x41d7ad
mov ebx, 0xffffffff
jmp 0x41d7af
add ebx, ebx
push ebx
call fcn.004095a0
add esp, 4
mov ebp, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x10]
jmp 0x41d7e2
mov esi, ebp
add eax, edi
lea ebp, [esi + 2]
mov word [esi], 0xa
mov edi, dword [eax]
test edi, edi
je 0x41d813
mov ecx, dword [eax + edi + 0x3c]
movzx edx, word [ecx]
test dx, dx
je 0x41d7d0
add ecx, 2
mov esi, ebp
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 0x41d800
jmp 0x41d7d2
xor ebx, ebx
mov eax, dword [esp + 4]
cmp ebp, eax
je 0x41da1e
mov word [ebp], 0
movzx ecx, word [eax]
test cx, cx
je 0x41d874
xor ebx, ebx
mov eax, dword [esp + 4]
jmp 0x41d84e
add ebx, edx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x41d874
cmp eax, ebp
jae 0x41d874
movzx edi, cx
cmp edi, 0x800
mov ecx, 3
sbb ecx, 0
mov edx, 1
cmp edi, 0x80
jb 0x41d840
mov edx, ecx
jmp 0x41d840
lea eax, [ebx + 1]
mov dword [esp + 0x2c], eax
push eax
call fcn.004095a0
add esp, 4
mov edx, eax
mov dword [esp + 0xc], eax
test ebx, ebx
jle 0x41d975
mov edx, dword [esp + 0xc]
cmp dword [esp + 4], ebp
jae 0x41d975
mov edx, dword [esp + 0xc]
lea eax, [edx + ebx]
mov dword [esp + 0x34], eax
add dword [esp + 0x2c], edx
mov ebp, dword [esp + 4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, word [ebp]
test cx, cx
je 0x41d975
cmp cx, 0x7f
ja 0x41d8e0
mov byte [edx], cl
mov edi, 1
jmp 0x41d960
mov eax, edx
not eax
add eax, dword [esp + 0x2c]
movzx edi, cx
cmp eax, 2
jb 0x41d920
cmp edi, 0x7ff
ja 0x41d920
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 edi, 2
jmp 0x41d960
mov dword [esp + 0x30], edi
xor edi, edi
cmp eax, 3
jb 0x41d960
mov edi, dword [esp + 0x30]
mov eax, edi
shr eax, 0xc
or al, 0xe0
mov byte [edx], al
mov eax, edi
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 edi, 3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add edx, edi
cmp edx, dword [esp + 0x34]
jae 0x41d975
lea eax, [ebp + 2]
cmp ebp, esi
mov ebp, eax
jb 0x41d8c0
mov byte [edx], 0
mov dword [esp + 0x18], 0x545b45bc
mov dword [esp + 0x1c], 0x5e4b4a53
mov dword [esp + 0x20], 0x494e9149
mov word [esp + 0x24], 0xff4c
mov dword [esp + 0x26], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x11
ja 0x41d9f5
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x18]
lea edx, [eax + ecx]
add edx, 0x360bb6d3
add eax, 0x360bb6d3
and eax, ecx
mov ecx, edx
xor ecx, eax
add ecx, eax
not eax
and eax, edx
add eax, eax
sub eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0xe1
mov ecx, dword [esp]
mov byte [esp + ecx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x12
jb 0x41d9b0
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x4c]
push ebx
mov esi, dword [esp + 0x10]
push esi
push eax
call fcn.0040a0a0
mov ebx, eax
push esi
call fcn.004095b0
add esp, 4
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 4]
jmp 0x41da22
mov ebp, dword [esp + 0x10]
push eax
call fcn.004095b0
add esp, 4
push ebp
call fcn.00431bc0
add esp, 4
mov eax, ebx
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret