Function at 0x41bd12
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
push ebx
cmp eax, 0x80
push esi
push edi
je 0x41bd37
cmp eax, 0xc0
je 0x41bd3f
cmp eax, 0x100
je 0x41bd47
jmp 0x41bd4f
mov dword [ecx], 0xa
jmp 0x41bd5b
mov dword [ecx], 0xc
jmp 0x41bd5b
mov dword [ecx], 0xe
jmp 0x41bd5b
pop edi
mov eax, 0xffffffe0
pop esi
pop ebx
add esp, 0x28
ret
mov dword [esp + 0x38], ecx
cmp dword [0x46ff90], 0
jne 0x41bd77
call fcn.0041b934
mov dword [0x46ff90], 1
mov edx, dword [esp + 0x38]
xor ecx, ecx
mov edi, ecx
mov dword [edx + 4], ecx
lea edi, [edx + ecx*4 + 8]
xor esi, esi
mov ecx, dword [esp + 0x40]
shr ecx, 5
je 0x41be1d
mov dword [esp + 0x2c], ecx
cmp byte [0x4661b8], 1
jne 0x41bdf4
mov edx, dword [esp + 0x3c]
lea ecx, [edx + esi*4]
push 4
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.0045a4e0
add esp, 0xc
mov ecx, dword [esp + 0x24]
and ecx, 0xff000000
mov edx, dword [esp + 0x24]
and edx, 0xff0000
mov eax, dword [esp + 0x24]
and eax, 0xff
mov ebx, dword [esp + 0x24]
and ebx, 0xff00
shl eax, 0x18
shl ebx, 8
shr edx, 8
or eax, ebx
shr ecx, 0x18
or edx, eax
or ecx, edx
jmp 0x41be0f
mov ecx, dword [esp + 0x3c]
lea edx, [ecx + esi*4]
push 4
push edx
lea ecx, [esp + 0x30]
push ecx
call fcn.0045a4e0
add esp, 0xc
mov ecx, dword [esp + 0x28]
mov dword [edi + esi*4], ecx
inc esi
cmp esi, dword [esp + 0x2c]
jb 0x41bd99
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
cmp eax, 0xa
je 0x41be3f
cmp eax, 0xc
je 0x41bee2
cmp eax, 0xe
je 0x41bf95
jmp 0x41c0aa
xor esi, esi
mov dword [esp + 0x30], esi
movzx ecx, byte [edi + 0xc]
movzx eax, byte [ecx + 0x49ba18]
mov ebx, dword [edi + 0xc]
mov dword [esp + 0x20], ebx
shr ebx, 0x18
shl eax, 0x18
and ebx, 0xff
movzx edx, byte [ebx + 0x49ba18]
shl edx, 0x10
mov cx, word [edi + 0xe]
and ecx, 0xff
and ecx, 0xff
movzx esi, byte [ecx + 0x49ba18]
mov ecx, dword [esp + 0x30]
mov ebx, dword [edi]
xor ebx, dword [ecx*4 + 0x49bb1c]
mov ecx, dword [esp + 0x20]
shr ecx, 8
shl esi, 8
and ecx, 0xff
movzx ecx, byte [ecx + 0x49ba18]
xor ebx, ecx
xor esi, ebx
xor edx, esi
xor eax, edx
mov edx, dword [edi + 4]
xor edx, eax
mov dword [edi + 0x10], eax
mov eax, dword [edi + 8]
xor eax, edx
mov dword [edi + 0x14], edx
mov ebx, dword [edi + 0xc]
xor ebx, eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ebx
add edi, 0x10
inc dword [esp + 0x30]
cmp dword [esp + 0x30], 0xa
jb 0x41be45
jmp 0x41c0aa
xor esi, esi
mov dword [esp + 0x30], esi
movzx ebx, byte [edi + 0x14]
movzx esi, byte [ebx + 0x49ba18]
mov edx, dword [edi + 0x14]
mov dword [esp + 0x1c], edx
shr edx, 0x18
shl esi, 0x18
and edx, 0xff
movzx ecx, byte [edx + 0x49ba18]
shl ecx, 0x10
mov bx, word [edi + 0x16]
and ebx, 0xff
and ebx, 0xff
movzx eax, byte [ebx + 0x49ba18]
mov ebx, dword [esp + 0x30]
mov edx, dword [edi]
xor edx, dword [ebx*4 + 0x49bb1c]
mov ebx, dword [esp + 0x1c]
shr ebx, 8
shl eax, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x49ba18]
xor edx, ebx
xor eax, edx
xor ecx, eax
xor esi, ecx
mov eax, dword [edi + 4]
xor eax, esi
mov ecx, dword [edi + 8]
xor ecx, eax
mov edx, dword [edi + 0xc]
mov dword [edi + 0x18], esi
xor edx, ecx
mov esi, dword [edi + 0x10]
xor esi, edx
mov ebx, dword [edi + 0x14]
xor ebx, esi
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], edx
mov dword [edi + 0x28], esi
mov dword [edi + 0x2c], ebx
add edi, 0x18
inc dword [esp + 0x30]
cmp dword [esp + 0x30], 8
jb 0x41bee8
jmp 0x41c0aa
xor esi, esi
mov dword [esp + 0x30], esi
movzx edx, byte [edi + 0x1c]
movzx ebx, byte [edx + 0x49ba18]
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0x14], ecx
shr ecx, 0x18
shl ebx, 0x18
and ecx, 0xff
movzx esi, byte [ecx + 0x49ba18]
shl esi, 0x10
mov dx, word [edi + 0x1e]
and edx, 0xff
and edx, 0xff
movzx eax, byte [edx + 0x49ba18]
mov edx, dword [esp + 0x30]
mov ecx, dword [edi]
xor ecx, dword [edx*4 + 0x49bb1c]
mov edx, dword [esp + 0x14]
shr edx, 8
shl eax, 8
and edx, 0xff
movzx edx, byte [edx + 0x49ba18]
xor ecx, edx
xor eax, ecx
xor esi, eax
xor ebx, esi
mov eax, dword [edi + 4]
xor eax, ebx
mov dword [edi + 0x20], ebx
mov ecx, dword [edi + 8]
xor ecx, eax
mov dword [edi + 0x24], eax
mov ebx, dword [edi + 0xc]
xor ebx, ecx
mov dword [edi + 0x2c], ebx
mov dword [esp + 0x18], ebx
shr ebx, 0x18
and ebx, 0xff
mov dword [edi + 0x28], ecx
movzx esi, byte [ebx + 0x49ba18]
mov ax, word [edi + 0x2e]
shl esi, 0x18
and eax, 0xff
and eax, 0xff
movzx edx, byte [eax + 0x49ba18]
mov ebx, dword [esp + 0x18]
shr ebx, 8
shl edx, 0x10
and ebx, 0xff
movzx ecx, byte [ebx + 0x49ba18]
shl ecx, 8
mov eax, dword [edi + 0x10]
movzx ebx, byte [edi + 0x2c]
movzx ebx, byte [ebx + 0x49ba18]
xor eax, ebx
xor ecx, eax
xor edx, ecx
xor esi, edx
mov ecx, dword [edi + 0x14]
xor ecx, esi
mov edx, dword [edi + 0x18]
xor edx, ecx
mov dword [edi + 0x30], esi
mov eax, dword [edi + 0x1c]
xor eax, edx
mov dword [edi + 0x34], ecx
mov dword [edi + 0x38], edx
mov dword [edi + 0x3c], eax
inc dword [esp + 0x30]
add edi, 0x20
cmp dword [esp + 0x30], 7
jb 0x41bf9b
pop edi
xor eax, eax
pop esi
pop ebx
add esp, 0x28
ret