Function at 0x100e2160
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
xor ebp, ebp
mov dword [esp + 0x1c], ebp
test edi, edi
je 0x100e2432
mov esi, dword [esp + 0x28]
cmp esi, 8
jb 0x100e2432
cmp esi, 0x4000
ja 0x100e2432
mov eax, dword [edi + 8]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x10], eax
test eax, eax
je 0x100e2432
push ebx
lea ebx, [esi + esi*4]
shl ebx, 2
push ebx
lfence
call dword [0x1030d458]
add esp, 4
mov dword [edi + 4], eax
test eax, eax
jne 0x100e21d4
mov esi, dword [esp + 0x14]
or eax, 0xffffffff
pop ebx
mov dword [edi + 4], esi
pop edi
pop esi
pop ebp
add esp, 0x14
ret
push ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x34]
add esp, 0xc
mov dword [edi + 8], esi
test ecx, ecx
je 0x100e241b
mov esi, dword [esp + 0x14]
mov eax, ecx
add esi, 4
mov dword [esp + 0x10], ecx
nop dword [eax]
cmp dword [esi + 8], 0
je 0x100e22ed
cmp ecx, 0x80
je 0x100e2217
mov ebx, dword [esi + 0xc]
jmp 0x100e2272
cmp dword [edi + 8], 0x80
jne 0x100e2234
push dword [edi + 0x18]
push dword [esi + 4]
push dword [esi]
call fcn.100e1db0
add esp, 0xc
mov ebx, eax
jmp 0x100e2272
mov ebp, dword [esi + 4]
test ebp, ebp
jle 0x100e2270
mov ebx, dword [esi]
test ebx, ebx
je 0x100e2270
mov ecx, dword [edi + 0x18]
xor edx, edx
movzx eax, byte [edx + ebx]
inc edx
add eax, ecx
imul ecx, eax, 0x401
mov eax, ecx
shr eax, 6
xor ecx, eax
cmp edx, ebp
jl 0x100e2246
lea ecx, [ecx + ecx*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul ebx, eax, 0x8001
jmp 0x100e2272
xor ebx, ebx
xor edx, edx
mov ecx, dword [edi + 4]
mov eax, ebx
div dword [edi + 8]
lea ebp, [edx + edx*4]
cmp dword [ecx + ebp*4 + 0xc], 0
jne 0x100e22a8
movups xmm0, xmmword [esi - 4]
movups xmmword [ecx + ebp*4], xmm0
mov eax, dword [esi + 0xc]
mov dword [ecx + ebp*4 + 0x10], eax
mov eax, dword [edi + 4]
mov dword [eax + ebp*4], 0
mov eax, dword [edi + 4]
mov dword [eax + ebp*4 + 0x10], ebx
jmp 0x100e22e5
push 0x14
call dword [0x1030d458]
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x100e22de
mov eax, dword [esi]
mov dword [ecx + 4], eax
mov eax, dword [esi + 4]
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], ebx
mov eax, dword [edi + 4]
mov eax, dword [eax + ebp*4]
mov dword [ecx], eax
mov dword [ecx + 0xc], 1
mov eax, dword [edi + 4]
mov dword [eax + ebp*4], ecx
jmp 0x100e22e5
or ebp, 0xffffffff
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
add esi, 0x14
sub eax, 1
mov dword [esp + 0x10], eax
jne 0x100e2200
mov eax, dword [esp + 0x14]
mov edx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
nop dword [eax + eax]
mov esi, dword [eax]
test esi, esi
je 0x100e2403
nop word [eax + eax]
mov ebp, dword [esi]
mov dword [esp + 0x10], ebp
cmp ecx, 0x80
je 0x100e2333
mov ecx, dword [esi + 0x10]
jmp 0x100e2394
cmp dword [edi + 8], 0x80
jne 0x100e2351
push dword [edi + 0x18]
push dword [esi + 8]
push dword [esi + 4]
call fcn.100e1db0
add esp, 0xc
mov ecx, eax
jmp 0x100e2394
mov ebp, dword [esi + 8]
test ebp, ebp
jle 0x100e238e
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x100e238e
mov eax, dword [edi + 0x18]
xor edx, edx
movzx ecx, byte [edx + ebx]
inc edx
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
cmp edx, ebp
jl 0x100e2364
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul ecx, eax, 0x8001
jmp 0x100e2390
xor ecx, ecx
mov ebp, dword [esp + 0x10]
xor edx, edx
mov ebx, dword [edi + 4]
mov eax, ecx
div dword [edi + 8]
lea edx, [edx + edx*4]
shl edx, 2
add ebx, edx
cmp dword [ebx + 0xc], 0
jne 0x100e23e0
movups xmm0, xmmword [esi]
push esi
movups xmmword [ebx], xmm0
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [edi + 4]
mov dword [edx + eax], 0
mov eax, dword [edi + 4]
mov dword [edx + eax + 0xc], 1
mov eax, dword [edi + 4]
mov dword [edx + eax + 0x10], ecx
call dword [0x1030d464]
add esp, 4
jmp 0x100e23ed
mov eax, dword [ebx]
mov dword [esi], eax
mov dword [esi + 0x10], ecx
mov eax, dword [edi + 4]
mov dword [edx + eax], esi
mov ecx, dword [esp + 0x28]
mov esi, ebp
test ebp, ebp
jne 0x100e2320
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add eax, 0x14
sub edx, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jne 0x100e2310
mov ebp, dword [esp + 0x20]
push dword [esp + 0x14]
call dword [0x1030d464]
add esp, 4
mov eax, ebp
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x14
ret