Function at 0x10001697
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
lea eax, [edx + 0x219]
xor edx, 0x3331
mov dword [esp + 0x18], eax
lea ebp, [ecx - 0x23d7]
mov eax, dword [esp + 0x10]
lea ebx, [ecx - 0xc9c]
add eax, 0xb1
push esi
mov dword [esp + 0x24], eax
mov eax, ebp
push edi
lea edi, [ecx - 0xa93]
xor eax, 0x2162
mov ecx, dword [esp + 0x2c]
add ecx, 0x6fb
cmp ebx, eax
jg 0x100019a2
mov ebp, dword [esp + 0x28]
mov eax, ebp
xor eax, 0x29
cmp ecx, eax
je 0x100019f4
lea eax, [ebx + 0x590]
cmp ecx, eax
jle 0x100019f4
mov esi, dword [esp + 0x24]
mov eax, dword [0x110102a4]
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], 0x10ab5478
mov ebp, edi
mov eax, 0x138b44
sub eax, dword [0x11010324]
add dword [0x11010330], eax
mov eax, dword [0x1101032c]
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 [0x110102a4]
mov eax, dword [ecx + 0x90]
mov ebx, dword [eax + ebp]
add ebp, 4
imul ebx, dword [ecx + 0x44]
mov eax, dword [0x1101036c]
xor eax, 1
or dword [0x110103b4], 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 [0x110102a4]
shr edx, 0x10
mov ecx, dword [eax + 0x48]
mov eax, dword [esi + 0x9c]
mov byte [ecx + eax], dl
mov edx, ebx
mov eax, dword [0x110102a4]
shr edx, 8
inc dword [eax + 0x48]
mov eax, dword [0x110102a4]
mov ecx, dword [eax + 0x48]
mov eax, dword [esi + 0x9c]
mov byte [ecx + eax], dl
mov eax, dword [0x110102a4]
inc dword [eax + 0x48]
mov ecx, dword [0x110102a4]
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 [0x110102a4]
mov ecx, dword [eax + 0x9c]
mov eax, dword [eax + 0x48]
mov byte [ecx + eax], bl
mov eax, dword [0x110102a4]
inc dword [eax + 0x48]
mov eax, 0x1710bc69
mov edx, dword [0x110102a4]
mov ecx, dword [edx + 0x1c]
xor ecx, dword [0x11010394]
sub eax, ecx
add dword [0x1101030c], eax
cmp ebp, 0x290e8
jl 0x1000173e
mov eax, dword [0x11010358]
cmp eax, dword [edx + 0xdc]
jb 0x1000186f
mov dword [esi + 0x114], 0x110102a8
jmp 0x1000187e
mov eax, dword [edx + 0x64]
xor eax, dword [esi + 0xbc]
or dword [esi + 0x124], eax
mov ecx, dword [0x110102a4]
mov ebp, dword [esp + 0x28]
mov eax, dword [ecx + 0xf8]
add eax, dword [ecx + 8]
add eax, dword [esi]
xor eax, 0x8769e900
mov dword [ecx + 0x120], eax
mov edx, dword [0x110102a4]
mov eax, 0x104df6
sub eax, dword [edx + 0xb0]
add dword [0x11010354], eax
mov ecx, dword [edx + 0x124]
add ecx, dword [edx + 0xa0]
mov eax, dword [0x1101032c]
add eax, 0x931b6
add ecx, eax
mov dword [0x1101032c], ecx
mov eax, dword [esi + 0xc8]
sub eax, dword [edx + 0x108]
xor eax, 0xfffffff8
or ecx, eax
mov dword [0x1101032c], ecx
mov eax, dword [esi + 0x84]
sub eax, dword [edx + 0x38]
inc eax
imul eax, dword [0x11010340]
mov dword [0x11010340], eax
mov ecx, dword [esi + 0xa4]
mov eax, dword [esi + 0x74]
xor dword [edi + ecx], eax
add edi, 4
mov ecx, dword [0x110102a4]
mov eax, dword [ecx + 0xe8]
add dword [ecx + 0x74], eax
mov eax, dword [esi + 0xa0]
sub eax, dword [0x110103b0]
xor eax, 0x1116d
imul eax, dword [0x11010370]
mov dword [0x11010370], eax
mov eax, dword [0x110102a4]
mov ecx, dword [eax + 0xfc]
mov eax, dword [0x110103b4]
add eax, 0xffd1dce6
add eax, ecx
add dword [esi + 0x4c], eax
mov eax, dword [esi + 0xc8]
sub dword [esi + 0x124], eax
cmp edi, 0x516574
jl 0x1000189e
cmp dword [esi + 0xf4], 0x7dae
jb 0x10001990
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xac]
sub eax, dword [0x110102b8]
add dword [esi + 0x108], eax
jmp 0x100019f4
mov eax, dword [0x110102a4]
mov eax, dword [eax + 0xa4]
mov dword [0x11010320], eax
jmp 0x100019f4
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0xd4]
mov ecx, dword [esi + 0xac]
sub eax, 0x1ccb
cmp ecx, eax
jbe 0x100019f0
and edi, dword [esp + 0x20]
cmp ebp, edi
je 0x100019f0
and ecx, edx
cmp dword [esi + 0xe4], ecx
jb 0x100019f0
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, 0x1915
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov ebp, dword [esp + 0x28]
pop edi
pop esi
lea eax, [ebp + 0x976]
pop ebp
pop ebx
ret