Function at 0x1000b9a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x22c
mov eax, dword [0x10047810]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
mov ebx, ecx
push esi
mov esi, dword [esp + 0x23c]
push edi
lea eax, [ebx + 0x414]
mov dword [esp + 0x18], esi
push eax
call fcn.1000ad60
push 0x200
lea eax, [esp + 0x40]
push esi
push eax
call fcn.100223e0
lea edx, [esp + 0x48]
add esp, 0x10
lea ecx, [edx + 1]
jmp 0x1000b9f0
mov al, byte [edx]
inc edx
test al, al
jne 0x1000b9f0
sub edx, ecx
mov dword [ebx + 0x914], 0xd3a3b879
lea edi, [ebx + 0x814]
mov dword [ebx + 0x918], 0x3f6d12f7
mov ecx, 0x40
mov dword [ebx + 0x91c], 0x7515a235
mov esi, section..data
mov dword [ebx + 0x920], 0xa4e7f123
rep movsd dword es:[edi], dword [esi]
xor esi, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], esi
lea ecx, [ecx]
xor ebp, ebp
test edx, edx
je 0x1000bac4
jmp 0x1000ba50
mov ecx, dword [esp + 0x18]
mov edi, 1
movzx eax, byte [ecx + ebp]
movzx ecx, byte [ecx + ebp + 1]
sub eax, esi
add ecx, esi
movzx eax, al
movzx ecx, cl
movzx eax, byte [ebx + eax*4 + 0x414]
movzx ecx, byte [ebx + ecx*4 + 0x414]
mov dword [esp + 0x14], ecx
cmp eax, ecx
je 0x1000babd
mov dl, byte [ebx + eax + 0x814]
lea ecx, [edi + eax]
add ecx, ebp
lea edi, [edi + 1]
movzx esi, cl
mov cl, byte [esi + ebx + 0x814]
mov byte [ebx + eax + 0x814], cl
inc eax
movzx eax, al
mov byte [esi + ebx + 0x814], dl
cmp eax, dword [esp + 0x14]
jne 0x1000ba84
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
add ebp, 2
cmp ebp, edx
jb 0x1000ba50
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x100
jb 0x1000ba40
test dl, 0xf
je 0x1000bafa
mov ecx, edx
mov eax, edx
or ecx, 0xf
cmp edx, ecx
ja 0x1000bafa
cmp eax, 0x200
jae 0x1000bc8c
mov byte [esp + eax + 0x38], 0
inc eax
cmp eax, ecx
jbe 0x1000bae5
xor ecx, ecx
mov dword [esp + 0x18], ecx
test edx, edx
je 0x1000bc71
jmp 0x1000bb10
lea edi, [esp + 0x38]
add edi, ecx
mov dword [esp + 0x28], edi
mov ecx, dword [edi]
xor ecx, dword [ebx + 0x914]
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 8]
xor esi, dword [ebx + 0x91c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 4]
mov edi, eax
xor ecx, dword [ebx + 0x918]
xor edi, dword [ebx + 0x920]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
and eax, 3
mov ecx, edi
rol ecx, 0xb
add ecx, esi
mov edx, dword [ebx + eax*4 + 0x914]
xor ecx, edx
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx ebp, byte [eax + ebx + 0x814]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + ebx + 0x814]
shl eax, 8
or ebp, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl ebp, 8
movzx eax, byte [eax + ebx + 0x814]
or ebp, eax
movzx eax, cl
mov ecx, esi
shl ebp, 8
ror ecx, 0xf
xor ecx, edi
movzx eax, byte [eax + ebx + 0x814]
add ecx, edx
or ebp, eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
xor ebp, dword [esp + 0x1c]
mov dword [esp + 0x1c], esi
movzx edx, byte [eax + ebx + 0x814]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + ebx + 0x814]
shl eax, 8
or edx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + ebx + 0x814]
or edx, eax
movzx eax, cl
shl edx, 8
mov ecx, esi
mov esi, ebp
movzx eax, byte [eax + ebx + 0x814]
or edx, eax
mov eax, dword [esp + 0x14]
xor edx, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], edi
mov edi, edx
mov dword [esp + 0x14], eax
cmp eax, 0x20
jl 0x1000bb51
mov edi, dword [esp + 0x28]
mov eax, dword [ebx + 0x914]
xor eax, ebp
push edi
mov dword [edi], eax
mov eax, dword [ebx + 0x918]
xor eax, edx
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x91c]
xor eax, ecx
mov ecx, ebx
mov dword [edi + 8], eax
mov eax, dword [ebx + 0x920]
xor eax, dword [esp + 0x14]
mov dword [edi + 0xc], eax
call fcn.1000c340
mov ecx, dword [esp + 0x18]
add ecx, 0x10
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x20]
jb 0x1000bb10
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100308d8
add esp, 0x22c
ret 4
call fcn.10030bf0
int3