Function at 0x10001693
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
lea ebp, [ecx + 0x32e]
add edx, 0xffffffb2
lea ebx, [ecx - 0x262]
lea eax, [edi + 0x41f]
xor edi, 0x2096
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffff5fb
mov dword [esp + 0x28], eax
mov eax, ebp
xor eax, 0x58f
cmp ecx, eax
jl 0x10001997
mov ebp, dword [esp + 0x28]
mov eax, ebp
xor eax, 0x3d8
cmp edx, eax
je 0x100019e9
lea eax, [ecx - 0x1d8]
cmp edx, eax
jle 0x100019e9
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], 0x101aac30
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, 0x7404
jl 0x10001733
mov eax, dword [0x10280b78]
cmp eax, dword [edx + 0xdc]
jb 0x10001864
mov dword [esi + 0x114], 0x10280ac8
jmp 0x10001873
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, 0x8790660e
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 0x10001893
cmp dword [esi + 0xf4], 0x7dae
jb 0x10001985
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xac]
sub eax, dword [0x10280ad8]
add dword [esi + 0x108], eax
jmp 0x100019e9
mov eax, dword [0x10247e84]
mov eax, dword [eax + 0xa4]
mov dword [0x10280b40], eax
jmp 0x100019e9
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0xd4]
mov edx, dword [esi + 0xac]
sub eax, 0x1ee7
cmp edx, eax
jbe 0x100019e5
and ebx, dword [esp + 0x20]
cmp ebp, ebx
je 0x100019e5
and edx, edi
cmp dword [esi + 0xe4], edx
jb 0x100019e5
lea eax, [ecx + ecx]
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 + 0x6c4]
pop ebp
pop ebx
ret