Function at 0x10162210
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x110
mov eax, dword [0x10266a40]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x130]
xorps xmm0, xmm0
push ebx
mov ebx, dword [esp + 0x130]
push ebp
mov ebp, dword [esp + 0x130]
push esi
mov esi, dword [esp + 0x120]
mov ecx, esi
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x140]
push edi
mov edi, dword [esp + 0x128]
mov edx, edi
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x148]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], 0
movups xmmword [esp + 0x60], xmm0
mov dword [esp + 0x98], 0
movups xmmword [esp + 0x70], xmm0
mov dword [esp + 0x9c], 0
movups xmmword [esp + 0x80], xmm0
movq qword [esp + 0x90], xmm0
nop dword [eax]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc dword [esp + eax*4 + 0x60]
sub edx, 1
jne 0x101622b0
cmp dword [esp + 0x60], edi
jne 0x101622d0
mov dword [ebp], edx
mov dword [ebx], edx
xor eax, eax
jmp 0x1016268a
mov eax, dword [ebx]
mov ecx, 1
cmp dword [esp + ecx*4 + 0x60], 0
jne 0x101622e4
inc ecx
cmp ecx, 0xf
jbe 0x101622d7
cmp eax, ecx
mov dword [esp + 0x14], ecx
mov edx, ecx
cmovae edx, eax
mov eax, 0xf
cmp dword [esp + eax*4 + 0x60], 0
jne 0x10162300
sub eax, 1
jne 0x101622f4
cmp edx, eax
mov dword [esp + 0x34], eax
mov ebp, eax
cmovbe ebp, edx
mov edx, 1
shl edx, cl
mov dword [esp + 0x24], ebp
mov dword [ebx], ebp
cmp ecx, eax
jae 0x10162331
nop dword [eax]
sub edx, dword [esp + ecx*4 + 0x60]
js 0x10162685
inc ecx
add edx, edx
cmp ecx, eax
jb 0x10162320
lea ebx, [eax*4]
mov ecx, edx
sub edx, dword [esp + ebx + 0x60]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x5c], edx
js 0x10162685
xor edx, edx
mov dword [esp + ebx + 0x60], ecx
mov dword [esp + 0xa4], edx
sub eax, 1
je 0x10162373
xor ecx, ecx
add edx, dword [esp + ecx + 0x64]
lea ecx, [ecx + 4]
mov dword [esp + ecx + 0xa4], edx
sub eax, 1
jne 0x10162360
mov ebx, dword [esp + 0x38]
xor ecx, ecx
nop dword [eax]
mov edx, dword [esi]
lea esi, [esi + 4]
test edx, edx
je 0x1016239b
mov eax, dword [esp + edx*4 + 0xa0]
mov dword [ebx + eax*4], ecx
inc eax
mov dword [esp + edx*4 + 0xa0], eax
inc ecx
cmp ecx, edi
jb 0x10162380
mov ebx, dword [esp + 0x28]
xor edi, edi
mov edx, dword [esp + 0x24]
or ecx, 0xffffffff
xor esi, esi
mov dword [esp + 0x20], edi
xor ebp, ebp
mov dword [esp + 0x10], ecx
mov eax, dword [esp + ebx + 0xa0]
mov ebx, edx
mov dword [esp + 0x58], eax
neg ebx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xa0], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0xe0], edi
cmp eax, dword [esp + 0x34]
jg 0x10162668
lea edi, [esp + 0x60]
lea edi, [edi + eax*4]
mov dword [esp + 0x30], edi
mov edi, esi
nop dword [eax]
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx]
test ecx, ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x10]
je 0x10162654
mov eax, dword [esp + 0x2c]
nop word [eax + eax]
mov dword [esp + 0x48], eax
dec eax
mov dword [esp + 0x2c], eax
lea eax, [edx + ebx]
cmp dword [esp + 0x14], eax
jle 0x10162530
mov edi, dword [esp + 0x34]
inc ecx
mov dword [esp + 0x50], ebx
mov eax, 1
add ebx, edx
mov dword [esp + 0x10], ecx
sub edi, ebx
mov dword [esp + 0x28], ebx
cmp edi, edx
cmova edi, edx
mov edx, dword [esp + 0x14]
sub edx, ebx
mov ecx, edx
shl eax, cl
cmp eax, dword [esp + 0x48]
jbe 0x10162493
mov esi, dword [esp + 0x30]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x2c]
add eax, ecx
cmp edx, edi
jae 0x10162493
inc edx
cmp edx, edi
jae 0x10162493
nop dword [eax + eax]
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
add eax, eax
cmp eax, ecx
jbe 0x10162493
inc edx
sub eax, ecx
cmp edx, edi
jb 0x10162480
mov eax, dword [esp + 0x44]
mov ebp, 1
mov ecx, edx
shl ebp, cl
mov eax, dword [eax]
lea edi, [eax + ebp]
cmp edi, 0x5a0
ja 0x10162685
mov ecx, dword [esp + 0x4c]
lea esi, [ecx + eax*8]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
mov dword [esp + ecx*4 + 0xe0], esi
mov dword [eax], edi
mov edi, dword [esp + 0x20]
test ecx, ecx
je 0x10162519
mov eax, dword [esp + 0x24]
mov dword [esp + ecx*4 + 0xa0], edi
mov ecx, dword [esp + 0x50]
mov byte [esp + 0x3c], dl
mov edx, edi
shr edx, cl
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x3d], al
mov eax, esi
mov ecx, dword [esp + ecx*4 + 0xdc]
sub eax, ecx
sar eax, 3
sub eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + edx*8], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + edx*8 + 4], eax
mov ecx, dword [esp + 0x10]
jmp 0x1016251f
mov eax, dword [esp + 0x54]
mov dword [eax], esi
mov edx, dword [esp + 0x24]
lea eax, [edx + ebx]
cmp dword [esp + 0x14], eax
jg 0x10162436
mov edx, dword [esp + 0x14]
mov al, dl
mov ecx, dword [esp + 0x58]
sub al, bl
mov byte [esp + 0x3d], al
mov eax, dword [esp + 0x38]
lea eax, [eax + ecx*4]
cmp dword [esp + 0x18], eax
jb 0x10162554
mov byte [esp + 0x3c], 0xc0
jmp 0x101625aa
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
add eax, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x12c]
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jae 0x10162582
cmp ecx, 0x100
sbb al, al
and al, 0xa0
add al, 0x60
mov byte [esp + 0x3c], al
jmp 0x101625aa
sub ecx, eax
mov eax, dword [esp + 0x134]
mov al, byte [eax + ecx*4]
add al, 0x50
mov byte [esp + 0x3c], al
mov eax, dword [esp + 0x130]
mov ecx, dword [eax + ecx*4]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov ecx, edx
mov eax, edi
sub ecx, ebx
mov edx, 1
shl edx, cl
mov ecx, ebx
shr eax, cl
cmp eax, ebp
jae 0x101625dc
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x1c]
mov dword [esi + eax*8], ecx
mov dword [esi + eax*8 + 4], ebx
add eax, edx
cmp eax, ebp
jb 0x101625c7
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov eax, 1
lea ecx, [ecx - 1]
shl eax, cl
test edi, eax
je 0x101625f8
nop
xor edi, eax
shr eax, 1
test edi, eax
jne 0x101625f0
mov edx, dword [esp + 0x24]
xor edi, eax
mov ecx, ebx
mov dword [esp + 0x20], edi
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x10]
dec eax
and eax, edi
cmp eax, dword [esp + ecx*4 + 0xa0]
je 0x10162644
nop dword [eax + eax]
dec ecx
sub ebx, edx
mov dword [esp + 0x10], ecx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
dec eax
and eax, edi
cmp eax, dword [esp + ecx*4 + 0xa0]
jne 0x10162620
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x10162420
mov eax, dword [esp + 0x14]
add dword [esp + 0x30], 4
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x34]
jle 0x10162400
cmp dword [esp + 0x5c], 0
je 0x101622c9
cmp dword [esp + 0x34], 1
je 0x101622c9
mov eax, 0xfffffffb
jmp 0x1016268a
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1010c1a2
add esp, 0x110
ret