Function at 0x40b330
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x108
mov edi, dword [esp + 0x11c]
lea eax, [edi + 0x8f12]
push 0x90
push 8
push eax
call fcn.0040ce90
add esp, 0xc
lea eax, [edi + 0x8fa2]
push 0x70
push 9
push eax
call fcn.0040ce90
add esp, 0xc
mov dword [edi + 0x9012], 0x7070707
mov dword [edi + 0x9016], 0x7070707
mov dword [edi + 0x901a], 0x7070707
mov dword [edi + 0x901e], 0x7070707
mov dword [edi + 0x9022], 0x7070707
mov dword [edi + 0x9026], 0x7070707
mov dword [edi + 0x902e], 0x8080808
mov dword [edi + 0x902a], 0x8080808
mov dword [edi + 0x9032], 0x5050505
mov dword [edi + 0x9036], 0x5050505
mov dword [edi + 0x903a], 0x5050505
mov dword [edi + 0x903e], 0x5050505
mov dword [edi + 0x9042], 0x5050505
mov dword [edi + 0x9046], 0x5050505
mov dword [edi + 0x904a], 0x5050505
mov dword [edi + 0x904e], 0x5050505
mov eax, esp
push 0x84
push 0
push eax
call fcn.0040ce90
add esp, 0xc
xor eax, eax
nop
nop
movzx ecx, byte [edi + eax + 0x8f12]
mov edx, dword [esp + ecx*4]
mov ebx, edx
and ebx, 1
xor edx, 1
lea edx, [edx + ebx*2]
mov dword [esp + ecx*4], edx
movzx ecx, byte [edi + eax + 0x8f13]
mov edx, dword [esp + ecx*4]
mov ebx, edx
and ebx, 1
xor edx, 1
lea edx, [edx + ebx*2]
mov dword [esp + ecx*4], edx
add eax, 2
cmp eax, 0x120
jne 0x40b420
mov dword [esp + 0x88], 0
mov eax, dword [esp + 4]
add eax, eax
mov dword [esp + 0x8c], eax
add 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
xor eax, eax
jmp 0x40b54b
mov edi, dword [esp + 0x11c]
mov word [edi + eax*2 + 0x8852], dx
inc eax
cmp eax, 0x120
je 0x40b5c9
movzx ebx, byte [edi + eax + 0x8f12]
test ebx, ebx
je 0x40b53f
mov esi, dword [esp + ebx*4 + 0x84]
lea edx, [esi + 1]
mov dword [esp + ebx*4 + 0x84], edx
xor edx, edx
cmp ebx, 1
je 0x40b5ad
mov ebp, ebx
and ebp, 0xfffffffe
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, esi
not ecx
or ecx, 1
add ecx, esi
mov edi, esi
shr edi, 1
shl edx, 2
lea ecx, [ecx*2 + 2]
or ecx, edx
mov edx, edi
not edx
or edx, 1
add edx, edi
inc edx
or edx, ecx
shr esi, 2
add ebp, 0xfffffffe
jne 0x40b580
test bl, 1
je 0x40b530
add edx, edx
mov ecx, esi
not ecx
or ecx, 1
add ecx, esi
inc ecx
or edx, ecx
jmp 0x40b530
push 0x84
push 0
lea eax, [esp + 8]
push eax
call fcn.0040ce90
add esp, 0xc
xor eax, eax
nop
movzx ecx, byte [edi + eax + 0x9032]
mov edx, dword [esp + ecx*4]
mov esi, edx
and esi, 1
xor edx, 1
lea edx, [edx + esi*2]
mov dword [esp + ecx*4], edx
movzx ecx, byte [edi + eax + 0x9033]
mov edx, dword [esp + ecx*4]
mov esi, edx
and esi, 1
xor edx, 1
lea edx, [edx + esi*2]
mov dword [esp + ecx*4], edx
add eax, 2
cmp eax, 0x20
jne 0x40b5e0
mov dword [esp + 0x88], 0
mov eax, dword [esp + 4]
add eax, eax
mov dword [esp + 0x8c], eax
add 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
xor eax, eax
jmp 0x40b6f5
mov edi, dword [esp + 0x11c]
mov word [edi + eax*2 + 0x8a92], dx
inc eax
cmp eax, 0x20
je 0x40b765
movzx ebx, byte [edi + eax + 0x9032]
test ebx, ebx
je 0x40b6ef
mov ecx, dword [esp + ebx*4 + 0x84]
lea edx, [ecx + 1]
mov dword [esp + ebx*4 + 0x84], edx
xor edx, edx
cmp ebx, 1
je 0x40b74d
mov edi, ebx
and edi, 0xfffffffe
xor edx, edx
mov esi, ecx
not esi
or esi, 1
add esi, ecx
mov ebp, ecx
shr ebp, 1
shl edx, 2
lea esi, [esi*2 + 2]
or esi, edx
mov edx, ebp
not edx
or edx, 1
add edx, ebp
inc edx
or edx, esi
shr ecx, 2
add edi, 0xfffffffe
jne 0x40b720
test bl, 1
je 0x40b6e0
add edx, edx
mov esi, ecx
not esi
or esi, 1
add ecx, esi
inc ecx
or edx, ecx
jmp 0x40b6e0
mov ecx, dword [edi + 0x44]
mov eax, dword [edi + 0x48]
bts eax, ecx
mov dword [edi + 0x48], eax
add ecx, 2
mov dword [edi + 0x44], ecx
cmp ecx, 8
jae 0x40b7a1
add esp, 0x108
pop esi
pop edi
pop ebx
pop ebp
ret
shr eax, 8
mov dword [edi + 0x48], eax
add ecx, 0xfffffff8
mov dword [edi + 0x44], ecx
cmp ecx, 7
jbe 0x40b77c
mov edx, dword [edi + 0x30]
cmp edx, dword [edi + 0x34]
jae 0x40b790
lea ecx, [edx + 1]
mov dword [edi + 0x30], ecx
mov byte [edx], al
mov ecx, dword [edi + 0x44]
mov eax, dword [edi + 0x48]
jmp 0x40b790