Function at 0x41eb50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 0x10]
movzx eax, word [esi]
push edi
push eax
call fcn.0043e2f0
add esp, 4
test eax, eax
je 0x41eb87
lea esp, [esp]
movzx ecx, word [esi + 2]
add esi, 2
push ecx
call fcn.0043e2f0
add esp, 4
test eax, eax
jne 0x41eb70
mov dword [ebp + 0x10], esi
mov edi, dword [ebp + 0xc]
movzx edx, word [edi]
push edx
call fcn.0043e2f0
add esp, 4
test eax, eax
je 0x41ebb7
lea ebx, [ebx]
movzx eax, word [edi + 2]
add edi, 2
push eax
call fcn.0043e2f0
add esp, 4
test eax, eax
jne 0x41eba0
mov dword [ebp + 0xc], edi
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ebc0
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, esi
mov dword [ebp - 4], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ebe0
sub eax, edx
sar eax, 1
mov ebx, eax
mov dword [ebp - 8], ebx
test edi, edi
je 0x41ec1c
mov ecx, dword [ebp + 0xc]
lea esi, [ecx + edi*2 - 2]
nop
movzx edx, word [esi]
push edx
call fcn.0043e2f0
add esp, 4
test eax, eax
je 0x41ec16
sub esi, 2
dec edi
jne 0x41ec00
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], edi
test ebx, ebx
je 0x41ec3d
lea esi, [esi + ebx*2 - 2]
movzx eax, word [esi]
push eax
call fcn.0043e2f0
add esp, 4
test eax, eax
je 0x41ec3a
sub esi, 2
dec ebx
jne 0x41ec24
mov dword [ebp - 8], ebx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x38]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ec46
mov ecx, dword [esi + 0x18]
sub eax, edx
sar eax, 1
mov dword [ebp - 0x10], eax
add eax, ebx
add eax, edi
lea eax, [ecx + eax*2 + 9]
and eax, 0xfffffffc
add eax, 0xa8
push eax
mov dword [ebp - 0xc], eax
call fcn.0043bdae
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41ee0a
lea eax, [ebx + 0xa8]
mov ecx, 0xc
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, eax
sub edx, ebx
mov dword [ebx], ecx
mov word [ebx + 0x38], dx
mov edx, dword [ebp + 8]
lea ecx, [edi + edi + 2]
push ecx
mov ecx, dword [edx + 0x38]
push ecx
push eax
call fcn.0043f860
mov ecx, dword [ebp + 0xc]
lea esi, [ebx + edi*2 + 0xaa]
mov edi, dword [ebp - 4]
add edi, edi
push edi
mov eax, esi
push ecx
sub eax, ebx
push esi
mov word [ebx + 0x3a], ax
call fcn.0043f860
mov ecx, dword [ebp - 4]
mov edx, ecx
and edx, 0x3f
mov ax, word [edx*2 + 0x466140]
mov word [edi + esi], ax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x41ed06
mov edi, edi
mov edx, eax
and edx, 0x3f
mov dx, word [edx*2 + 0x466140]
xor word [esi + eax*2], dx
inc eax
cmp eax, ecx
jb 0x41ecf0
mov ecx, dword [ebp + 0x10]
lea esi, [edi + esi + 2]
mov edi, dword [ebp - 8]
mov eax, esi
sub eax, ebx
mov word [ebx + 0x3c], ax
lea eax, [edi + edi]
push eax
push ecx
push esi
mov dword [ebp - 0x10], eax
call fcn.0043f860
mov ecx, dword [ebp - 0x10]
mov edx, edi
and edx, 0x3f
mov ax, word [edx*2 + 0x466140]
mov word [ecx + esi], ax
add esp, 0xc
xor eax, eax
test edi, edi
je 0x41ed59
mov edx, eax
and edx, 0x3f
mov dx, word [edx*2 + 0x466140]
xor word [esi + eax*2], dx
inc eax
cmp eax, edi
jb 0x41ed43
lea esi, [ecx + esi + 2]
mov ecx, dword [ebp + 8]
mov eax, esi
sub eax, ebx
mov word [ebx + 0x3e], ax
mov eax, dword [ecx + 0x18]
mov edi, ecx
mov edx, dword [edi + 0x30]
push eax
push edx
push esi
call fcn.0043f860
add esp, 0xc
cmp dword [edi + 4], 4
jge 0x41edb4
mov ecx, dword [edi + 0x3c]
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41edb4
mov edx, dword [ebp - 0x28]
push edx
push str.0x_X
lea eax, [ebx + 0x40]
push 0x14
push eax
call fcn.0043e703
add esp, 0x10
xor ecx, ecx
mov word [ebx + 0x66], cx
jmp 0x41edba
xor edx, edx
mov word [ebx + 0x40], dx
mov eax, dword [edi + 0x34]
push 0x5c
push eax
call fcn.0043c850
mov ecx, dword [edi + 0x34]
push 0x2f
push ecx
mov esi, eax
call fcn.0043c850
add esp, 0x10
cmp esi, eax
ja 0x41eddb
mov esi, eax
test esi, esi
jne 0x41ede4
mov esi, dword [edi + 0x34]
jmp 0x41ede7
add esi, 2
push 0x20
lea edx, [ebx + 0x68]
push esi
push edx
call fcn.0043e383
xor eax, eax
add esp, 0xc
mov word [ebx + 0xa6], ax
mov eax, dword [0x49bf9c]
push ebx
call fcn.0041ea30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret