Function at 0x40b2f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10c
mov ebx, dword [esp + 0x120]
lea eax, [ebx + 0x8f12]
push 0x90
push 8
push eax
call fcn.0040cef0
add esp, 0xc
lea eax, [ebx + 0x8fa2]
push 0x70
push 9
push eax
call fcn.0040cef0
add esp, 0xc
mov dword [ebx + 0x9012], 0x7070707
mov dword [ebx + 0x9016], 0x7070707
mov dword [ebx + 0x901a], 0x7070707
mov dword [ebx + 0x901e], 0x7070707
mov dword [ebx + 0x9022], 0x7070707
mov dword [ebx + 0x9026], 0x7070707
mov dword [ebx + 0x902e], 0x8080808
mov dword [ebx + 0x902a], 0x8080808
mov dword [ebx + 0x9032], 0x5050505
mov dword [ebx + 0x9036], 0x5050505
mov dword [ebx + 0x903a], 0x5050505
mov dword [ebx + 0x903e], 0x5050505
mov dword [ebx + 0x9042], 0x5050505
mov dword [ebx + 0x9046], 0x5050505
mov dword [ebx + 0x904a], 0x5050505
mov dword [ebx + 0x904e], 0x5050505
lea eax, [esp + 4]
push 0x84
push 0
push eax
call fcn.0040cef0
add esp, 0xc
xor eax, eax
movzx ecx, byte [ebx + eax + 0x8f12]
mov edx, dword [esp + ecx*4 + 4]
mov edi, edx
and edi, 1
xor edx, 1
lea edx, [edx + edi*2]
mov dword [esp + ecx*4 + 4], edx
movzx ecx, byte [ebx + eax + 0x8f13]
mov edx, dword [esp + ecx*4 + 4]
mov edi, edx
and edi, 1
xor edx, 1
lea edx, [edx + edi*2]
mov dword [esp + ecx*4 + 4], edx
add eax, 2
cmp eax, 0x120
jne 0x40b3e0
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 8]
add eax, eax
mov dword [esp + 0x90], eax
add eax, dword [esp + 0xc]
add eax, eax
mov dword [esp + 0x94], eax
add eax, dword [esp + 0x10]
add eax, eax
mov dword [esp + 0x98], eax
add eax, dword [esp + 0x14]
add eax, eax
mov dword [esp + 0x9c], eax
add eax, dword [esp + 0x18]
add eax, eax
mov dword [esp + 0xa0], eax
add eax, dword [esp + 0x1c]
add eax, eax
mov dword [esp + 0xa4], eax
add eax, dword [esp + 0x20]
add eax, eax
mov dword [esp + 0xa8], eax
add eax, dword [esp + 0x24]
add eax, eax
mov dword [esp + 0xac], eax
add eax, dword [esp + 0x28]
add eax, eax
mov dword [esp + 0xb0], eax
add eax, dword [esp + 0x2c]
add eax, eax
mov dword [esp + 0xb4], eax
add eax, dword [esp + 0x30]
add eax, eax
mov dword [esp + 0xb8], eax
add eax, dword [esp + 0x34]
add eax, eax
mov dword [esp + 0xbc], eax
add eax, dword [esp + 0x38]
add eax, eax
mov dword [esp + 0xc0], eax
add eax, dword [esp + 0x3c]
add eax, eax
mov dword [esp + 0xc4], eax
xor edx, edx
jmp 0x40b511
mov eax, dword [esp + 0x120]
mov edx, dword [esp]
mov word [eax + edx*2 + 0x8852], bx
mov ebx, eax
inc edx
cmp edx, 0x120
je 0x40b592
movzx ecx, byte [ebx + edx + 0x8f12]
test ecx, ecx
je 0x40b504
mov dword [esp], edx
mov esi, dword [esp + ecx*4 + 0x88]
lea edi, [esi + 1]
mov dword [esp + ecx*4 + 0x88], edi
xor ebx, ebx
cmp cl, 4
jb 0x40b56f
mov ebp, ecx
and ebp, 0xfffffffc
xor ebx, ebx
nop
mov edi, esi
shr edi, 2
mov eax, esi
and eax, 2
mov edx, esi
and edx, 1
shl edx, 2
lea edx, [edx + ebx*8]
or edx, eax
mov eax, esi
shr eax, 3
and edi, 1
or edi, edx
shr esi, 4
and eax, 1
lea ebx, [eax + edi*2]
add ebp, 0xfffffffc
jne 0x40b540
and ecx, 3
je 0x40b4f0
mov edi, esi
nop
nop
nop
nop
nop
nop
shr edi, 1
and esi, 1
lea ebx, [esi + ebx*2]
mov esi, edi
dec ecx
jne 0x40b580
jmp 0x40b4f0
push 0x84
push 0
lea eax, [esp + 0xc]
push eax
call fcn.0040cef0
add esp, 0xc
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [ebx + eax + 0x9032]
mov edx, dword [esp + ecx*4 + 4]
mov esi, edx
and esi, 1
xor edx, 1
lea edx, [edx + esi*2]
mov dword [esp + ecx*4 + 4], edx
movzx ecx, byte [ebx + eax + 0x9033]
mov edx, dword [esp + ecx*4 + 4]
mov esi, edx
and esi, 1
xor edx, 1
lea edx, [edx + esi*2]
mov dword [esp + ecx*4 + 4], edx
add eax, 2
cmp eax, 0x20
jne 0x40b5b0
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 8]
add eax, eax
mov dword [esp + 0x90], eax
add eax, dword [esp + 0xc]
add eax, eax
mov dword [esp + 0x94], eax
add eax, dword [esp + 0x10]
add eax, eax
mov dword [esp + 0x98], eax
add eax, dword [esp + 0x14]
add eax, eax
mov dword [esp + 0x9c], eax
add eax, dword [esp + 0x18]
add eax, eax
mov dword [esp + 0xa0], eax
add eax, dword [esp + 0x1c]
add eax, eax
mov dword [esp + 0xa4], eax
add eax, dword [esp + 0x20]
add eax, eax
mov dword [esp + 0xa8], eax
add eax, dword [esp + 0x24]
add eax, eax
mov dword [esp + 0xac], eax
add eax, dword [esp + 0x28]
add eax, eax
mov dword [esp + 0xb0], eax
add eax, dword [esp + 0x2c]
add eax, eax
mov dword [esp + 0xb4], eax
add eax, dword [esp + 0x30]
add eax, eax
mov dword [esp + 0xb8], eax
add eax, dword [esp + 0x34]
add eax, eax
mov dword [esp + 0xbc], eax
add eax, dword [esp + 0x38]
add eax, eax
mov dword [esp + 0xc0], eax
add eax, dword [esp + 0x3c]
add eax, eax
mov dword [esp + 0xc4], eax
xor ecx, ecx
jmp 0x40b6dc
mov ebx, dword [esp + 0x120]
mov ecx, dword [esp]
mov word [ebx + ecx*2 + 0x8a92], di
inc ecx
cmp ecx, 0x20
je 0x40b762
movzx eax, byte [ebx + ecx + 0x9032]
test eax, eax
je 0x40b6d2
mov dword [esp], ecx
mov ebx, dword [esp + eax*4 + 0x88]
lea esi, [ebx + 1]
mov dword [esp + eax*4 + 0x88], esi
xor edi, edi
cmp al, 4
jb 0x40b73f
mov ecx, eax
and ecx, 0xfffffffc
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
mov ebp, ebx
shr ebp, 2
mov esi, ebx
and esi, 2
mov edx, ebx
and edx, 1
shl edx, 2
lea edx, [edx + edi*8]
or edx, esi
mov esi, ebx
shr esi, 3
and ebp, 1
or ebp, edx
shr ebx, 4
and esi, 1
lea edi, [esi + ebp*2]
add ecx, 0xfffffffc
jne 0x40b710
and eax, 3
je 0x40b6c0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
shr ecx, 1
and ebx, 1
lea edi, [ebx + edi*2]
mov ebx, ecx
dec eax
jne 0x40b750
jmp 0x40b6c0
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x48]
bts eax, ecx
mov dword [ebx + 0x48], eax
add ecx, 2
mov dword [ebx + 0x44], ecx
cmp ecx, 8
jae 0x40b7a1
add esp, 0x10c
pop esi
pop edi
pop ebx
pop ebp
ret
shr eax, 8
mov dword [ebx + 0x48], eax
add ecx, 0xfffffff8
mov dword [ebx + 0x44], ecx
cmp ecx, 7
jbe 0x40b779
mov edx, dword [ebx + 0x30]
cmp edx, dword [ebx + 0x34]
jae 0x40b790
lea ecx, [edx + 1]
mov dword [ebx + 0x30], ecx
mov byte [edx], al
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x48]
jmp 0x40b790