Function at 0x100016bc
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
lea eax, [edx - 0x1a86]
xor edx, 0x1a86
mov dword [esp + 0x18], eax
lea ebp, [ecx - 0x2de]
mov eax, dword [esp + 0x10]
lea ebx, [ecx - 0x16b]
add eax, 0xfffffeb4
push esi
mov dword [esp + 0x24], eax
mov eax, ebp
push edi
lea edi, [ecx - 0x2114]
xor eax, 0x90d
mov ecx, dword [esp + 0x2c]
add ecx, 0xfffffcfe
cmp ebx, eax
jl 0x100019c9
mov ebp, dword [esp + 0x28]
mov eax, ebp
xor eax, 0x3f3f
cmp ecx, eax
jg 0x10001a1b
lea eax, [ebx - 0x86e]
cmp ecx, eax
jle 0x10001a1b
mov esi, dword [esp + 0x24]
mov eax, dword [0x10247e84]
mov ecx, dword [esi + 0xc4]
add ecx, 0x4f3
mov dword [eax + 0x44], ecx
mov eax, 0x135de0
sub eax, dword [esi + 0x80]
add dword [esi + 0x44], eax
xor edi, edi
mov dword [esi + 0x90], 0x101aac60
mov ebp, edi
mov eax, 0x138b44
sub eax, dword [0x10280b44]
add dword [0x10280b50], eax
mov eax, dword [0x10280b4c]
dec eax
xor dword [esi + 0x84], eax
mov eax, dword [esi + 0x80]
xor eax, 0x1362d2
imul eax, dword [esi + 0x7c]
mov dword [esi + 0x7c], eax
mov ecx, dword [0x10247e84]
mov eax, dword [ecx + 0x90]
mov ebx, dword [eax + ebp]
add ebp, 4
imul ebx, dword [ecx + 0x44]
mov eax, dword [0x10280b8c]
xor eax, 1
or dword [0x10280bd4], eax
mov eax, 0x104df6
sub eax, dword [esi + 0xb0]
add dword [ecx + 0xc4], eax
mov edx, ebx
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x9c]
shr edx, 0x18
mov byte [ecx + eax], dl
mov edx, ebx
inc dword [esi + 0x48]
mov eax, dword [0x10247e84]
shr edx, 0x10
mov ecx, dword [eax + 0x48]
mov eax, dword [esi + 0x9c]
mov byte [ecx + eax], dl
mov edx, ebx
mov eax, dword [0x10247e84]
shr edx, 8
inc dword [eax + 0x48]
mov eax, dword [0x10247e84]
mov ecx, dword [eax + 0x48]
mov eax, dword [esi + 0x9c]
mov byte [ecx + eax], dl
mov eax, dword [0x10247e84]
inc dword [eax + 0x48]
mov ecx, dword [0x10247e84]
mov eax, dword [esi + 0x10c]
xor eax, 0x1b108a
add dword [ecx + 0xfc], eax
mov eax, dword [esi + 0x64]
xor eax, 0x51
or dword [esi + 0x110], eax
mov eax, dword [0x10247e84]
mov ecx, dword [eax + 0x9c]
mov eax, dword [eax + 0x48]
mov byte [ecx + eax], bl
mov eax, dword [0x10247e84]
inc dword [eax + 0x48]
mov eax, 0x1710bc69
mov edx, dword [0x10247e84]
mov ecx, dword [edx + 0x1c]
xor ecx, dword [0x10280bb4]
sub eax, ecx
add dword [0x10280b2c], eax
cmp ebp, 0x6fb4
jl 0x10001765
mov eax, dword [0x10280b78]
cmp eax, dword [edx + 0xdc]
jb 0x10001896
mov dword [esi + 0x114], 0x10280ac8
jmp 0x100018a5
mov eax, dword [edx + 0x64]
xor eax, dword [esi + 0xbc]
or dword [esi + 0x124], eax
mov ecx, dword [0x10247e84]
mov ebp, dword [esp + 0x28]
mov eax, dword [ecx + 0xf8]
add eax, dword [ecx + 8]
add eax, dword [esi]
xor eax, 0x84539a3b
mov dword [ecx + 0x120], eax
mov edx, dword [0x10247e84]
mov eax, 0x104df6
sub eax, dword [edx + 0xb0]
add dword [0x10280b74], eax
mov ecx, dword [edx + 0x124]
add ecx, dword [edx + 0xa0]
mov eax, dword [0x10280b4c]
add eax, 0x931b6
add ecx, eax
mov dword [0x10280b4c], ecx
mov eax, dword [esi + 0xc8]
sub eax, dword [edx + 0x108]
xor eax, 0xfffffff8
or ecx, eax
mov dword [0x10280b4c], ecx
mov eax, dword [esi + 0x84]
sub eax, dword [edx + 0x38]
inc eax
imul eax, dword [0x10280b60]
mov dword [0x10280b60], eax
mov ecx, dword [esi + 0xa4]
mov eax, dword [esi + 0x74]
xor dword [edi + ecx], eax
add edi, 4
mov ecx, dword [0x10247e84]
mov eax, dword [ecx + 0xe8]
add dword [ecx + 0x74], eax
mov eax, dword [esi + 0xa0]
sub eax, dword [0x10280bd0]
xor eax, 0x1116d
imul eax, dword [0x10280b90]
mov dword [0x10280b90], eax
mov eax, dword [0x10247e84]
mov ecx, dword [eax + 0xfc]
mov eax, dword [0x10280bd4]
add eax, 0xffd1dce6
add eax, ecx
add dword [esi + 0x4c], eax
mov eax, dword [esi + 0xc8]
sub dword [esi + 0x124], eax
cmp edi, 0xc8574
jl 0x100018c5
cmp dword [esi + 0xf4], 0x7dae
jb 0x100019b7
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xac]
sub eax, dword [0x10280ad8]
add dword [esi + 0x108], eax
jmp 0x10001a1b
mov eax, dword [0x10247e84]
mov eax, dword [eax + 0xa4]
mov dword [0x10280b40], eax
jmp 0x10001a1b
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0xd4]
mov ecx, dword [esi + 0xac]
sub eax, 0x17ec
cmp ecx, eax
jbe 0x10001a17
and edi, dword [esp + 0x20]
cmp ebp, edi
je 0x10001a17
and ecx, edx
cmp dword [esi + 0xe4], ecx
jb 0x10001a17
lea eax, [ebx + ebx]
push eax
mov eax, dword [esi + 0x7c]
or eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
mov eax, dword [esi + 0xf4]
or eax, 0x1a86
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov ebp, dword [esp + 0x28]
pop edi
pop esi
lea eax, [ebp + 0x253]
pop ebp
pop ebx
ret