Function at 0x100858a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x104
mov eax, dword [0x101ed004]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x11c]
xorps xmm0, xmm0
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
mov ebp, dword [esp + 0x11c]
push esi
mov dword [esp + 0x44], eax
mov esi, ecx
mov eax, dword [esp + 0x12c]
push edi
mov edi, edx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x44], eax
movups xmmword [esp + 0x90], xmm0
movups xmmword [esp + 0xa0], xmm0
movups xmmword [esp + 0xb0], xmm0
movups xmmword [esp + 0xc0], xmm0
nop word [eax + eax]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc dword [esp + eax*4 + 0x90]
sub edx, 1
jne 0x10085910
cmp dword [esp + 0x90], edi
jne 0x10085936
mov dword [ebp], edx
mov dword [ebx], edx
xor eax, eax
jmp 0x10085ce6
mov edx, dword [ebx]
mov ecx, 1
nop dword [eax]
cmp dword [esp + ecx*4 + 0x90], 0
jne 0x10085950
inc ecx
cmp ecx, 0xf
jbe 0x10085940
cmp edx, ecx
mov dword [esp + 0x18], ecx
mov eax, ecx
cmovae eax, edx
mov edx, 0xf
cmp dword [esp + edx*4 + 0x90], 0
jne 0x1008596f
sub edx, 1
jne 0x10085960
cmp eax, edx
mov dword [esp + 0x34], edx
mov ebp, edx
cmovbe ebp, eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x20], ebp
mov dword [ebx], ebp
mov dword [esp + 0x30], eax
cmp ecx, edx
jae 0x100859a8
nop
sub eax, dword [esp + ecx*4 + 0x90]
js 0x10085ce3
inc ecx
add eax, eax
mov dword [esp + 0x30], eax
cmp ecx, edx
jb 0x10085990
mov ecx, dword [esp + 0x30]
lea ebx, [edx*4]
mov eax, dword [esp + ebx + 0x90]
sub ecx, eax
mov dword [esp + 0x30], ecx
js 0x10085ce3
add eax, ecx
xor ecx, ecx
mov dword [esp + ebx + 0x90], eax
mov dword [esp + 0xd4], ecx
sub edx, 1
je 0x100859f6
xor eax, eax
nop
add ecx, dword [esp + eax + 0x94]
lea eax, [eax + 4]
mov dword [esp + eax + 0xd4], ecx
sub edx, 1
jne 0x100859e0
xor ecx, ecx
mov edx, dword [esi]
lea esi, [esi + 4]
test edx, edx
je 0x10085a17
mov eax, dword [esp + edx*4 + 0xd0]
mov dword [eax*4 + 0x10203c58], ecx
inc eax
mov dword [esp + edx*4 + 0xd0], eax
inc ecx
cmp ecx, edi
jb 0x100859f8
mov eax, dword [esp + ebx + 0xd0]
xor edx, edx
mov esi, dword [esp + 0x18]
mov ecx, ebp
mov dword [esp + 0x50], eax
neg ecx
or eax, 0xffffffff
mov dword [esp + 0x1c], edx
xor ebx, ebx
mov dword [esp + 0xd0], edx
xor edi, edi
mov dword [esp + 0x38], 0x10203c58
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x3c], ebx
cmp esi, dword [esp + 0x34]
jg 0x10085ccd
lea edx, [esp + 0x90]
lea edx, [edx + esi*4]
mov dword [esp + 0x2c], edx
mov edx, ebx
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
je 0x10085cb9
nop dword [eax + eax]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x40], ebp
dec ebp
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x20]
add ebp, ecx
cmp esi, ebp
jle 0x10085b9c
nop dword [eax + eax]
mov edi, dword [esp + 0x34]
inc eax
sub edi, ebp
mov dword [esp + 0x14], eax
cmp edi, dword [esp + 0x20]
mov edx, esi
mov eax, 1
cmova edi, dword [esp + 0x20]
sub edx, ebp
mov ecx, edx
shl eax, cl
cmp eax, dword [esp + 0x40]
jbe 0x10085b03
mov esi, dword [esp + 0x2c]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x28]
add eax, ecx
cmp edx, edi
jae 0x10085b03
inc edx
cmp edx, edi
jae 0x10085b03
nop dword [eax]
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
add eax, eax
cmp eax, ecx
jbe 0x10085b03
inc edx
sub eax, ecx
cmp edx, edi
jb 0x10085af0
mov ecx, edx
mov ebx, 1
shl ebx, cl
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x3c], ebx
mov eax, dword [ecx]
lea esi, [eax + ebx]
cmp esi, 0x5a0
ja 0x10085ce3
mov edi, dword [esp + 0x48]
mov dword [ecx], esi
lea edi, [edi + eax*4]
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x54], edi
test eax, eax
je 0x10085b7c
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x10], dl
mov edx, esi
mov dword [esp + eax*4 + 0xd0], esi
mov eax, dword [esp + 0x20]
shr edx, cl
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x11], al
mov eax, edi
mov ecx, dword [esp + ecx*4 + 0x50]
sub eax, ecx
sar eax, 2
sub eax, edx
mov word [esp + 0x12], ax
mov eax, dword [esp + 0x10]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x14]
jmp 0x10085b82
mov ecx, dword [esp + 0x4c]
mov dword [ecx], edi
mov esi, dword [esp + 0x18]
mov ecx, ebp
add ebp, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
cmp esi, ebp
jg 0x10085ab0
mov edx, dword [esp + 0x1c]
mov al, byte [esp + 0x18]
mov esi, dword [esp + 0x38]
sub al, cl
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x50]
lea eax, [eax*4 + 0x10203c58]
cmp esi, eax
jb 0x10085bc0
mov byte [esp + 0x10], 0xc0
jmp 0x10085c11
mov ecx, dword [esi]
add esi, 4
mov eax, dword [esp + 0x118]
mov dword [esp + 0x38], esi
cmp ecx, eax
jae 0x10085beb
cmp ecx, 0x100
mov word [esp + 0x12], cx
sbb al, al
and al, 0xa0
add al, 0x60
mov byte [esp + 0x10], al
jmp 0x10085c11
sub ecx, eax
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x120]
mov al, byte [eax + ecx*2]
add al, 0x50
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x11c]
mov ax, word [eax + ecx*2]
mov word [esp + 0x12], ax
mov ecx, dword [esp + 0x18]
mov esi, 1
sub ecx, dword [esp + 0x24]
shl esi, cl
mov ecx, dword [esp + 0x24]
shr edx, cl
cmp edx, ebx
jae 0x10085c39
mov eax, dword [esp + 0x10]
nop
mov dword [edi + edx*4], eax
add edx, esi
cmp edx, ebx
jb 0x10085c30
mov ecx, dword [esp + 0x18]
mov eax, 1
mov esi, dword [esp + 0x1c]
lea ecx, [ecx - 1]
shl eax, cl
test esi, eax
je 0x10085c58
nop
xor esi, eax
shr eax, 1
test esi, eax
jne 0x10085c50
mov ecx, dword [esp + 0x24]
xor esi, eax
mov edx, dword [esp + 0x14]
mov eax, 1
shl eax, cl
dec eax
mov dword [esp + 0x1c], esi
and eax, esi
cmp eax, dword [esp + edx*4 + 0xd0]
je 0x10085ca2
mov ebx, dword [esp + 0x20]
nop dword [eax]
sub ecx, ebx
mov eax, 1
shl eax, cl
dec edx
dec eax
and eax, esi
cmp eax, dword [esp + edx*4 + 0xd0]
jne 0x10085c80
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x28], 0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
jne 0x10085a90
add dword [esp + 0x2c], 4
inc esi
mov dword [esp + 0x18], esi
cmp esi, dword [esp + 0x34]
jle 0x10085a75
cmp dword [esp + 0x30], 0
je 0x1008592f
cmp dword [esp + 0x34], 1
je 0x1008592f
or eax, 0xffffffff
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10142783
add esp, 0x104
ret