Function at 0x100ad540
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x22c
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
mov ebx, ecx
push ebp
push esi
mov esi, dword [esp + 0x23c]
push edi
lea ecx, [ebx + 0x414]
mov dword [esp + 0x18], esi
call fcn.1010ce60
lea eax, [esp + 0x38]
mov edx, 0x1ff
mov ecx, eax
sub esi, ecx
nop dword [eax]
mov cl, byte [esi + eax]
test cl, cl
je 0x100ad58f
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x100ad580
lea edx, [esp + 0x38]
mov byte [eax], 0
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x100ad5a0
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, 0x101e7798
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
nop dword [eax]
xor ebp, ebp
test edx, edx
je 0x100ad674
nop word [eax + eax]
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 0x100ad66d
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 0x100ad634
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
add ebp, 2
cmp ebp, edx
jb 0x100ad600
inc esi
mov dword [esp + 0x10], esi
cmp esi, 0x100
jb 0x100ad5f0
test dl, 0xf
je 0x100ad6aa
mov ecx, edx
mov eax, edx
or ecx, 0xf
cmp edx, ecx
ja 0x100ad6aa
cmp eax, 0x200
jae 0x100ad83c
mov byte [esp + eax + 0x38], 0
inc eax
cmp eax, ecx
jbe 0x100ad695
xor ecx, ecx
mov dword [esp + 0x18], ecx
test edx, edx
je 0x100ad821
nop dword [eax + eax]
lea edi, [esp + 0x38]
add edi, ecx
mov dword [esp + 0x28], edi
mov ecx, dword [edi]
xor ecx, dword [ebx + 0x914]
mov esi, dword [edi + 8]
xor esi, dword [ebx + 0x91c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 4]
xor ecx, dword [ebx + 0x918]
mov dword [esp + 0x10], ecx
mov ecx, dword [edi + 0xc]
mov edi, ecx
xor edi, dword [ebx + 0x920]
xor eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x14], eax
and eax, 3
mov ecx, edi
ror ecx, 0x15
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 0x100ad701
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.100ad850
mov ecx, dword [esp + 0x18]
add ecx, 0x10
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x20]
jb 0x100ad6c0
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10151433
add esp, 0x22c
ret 4
call fcn.10151c42
int3