Function at 0x101659f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10321691
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1043900c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x1060f55a], 0
je 0x10165ad0
mov ecx, dword [0x1060b274]
mov ebx, 1
mov dword [ebp - 0x44], ebx
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, ebx
jl 0x10165ad0
mov ecx, dword [0x1060b274]
push ebx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, eax
test edi, edi
je 0x10165ab9
mov edx, dword [edi + 8]
lea ecx, [edi + 8]
mov edx, dword [edx + 0x24]
call edx
test al, al
jne 0x10165ab9
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
call dword [eax + 8]
test eax, eax
je 0x10165ab9
mov ecx, dword [eax + 0x14]
mov eax, dword [0x1060b30c]
cmp ecx, dword [eax + 0xa4]
jne 0x10165ab9
mov eax, dword [0x104c14e0]
mov ecx, dword fs:[0x2c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [0x106119a4]
cmp eax, dword [ecx + 4]
jg 0x10165aec
mov eax, dword [0x10611a9c]
mov dword [eax + edi], 0x49435000
mov dword [eax + edi + 4], 0x49435000
mov dword [eax + edi + 8], 0x49435000
mov ecx, dword [0x1060b274]
inc ebx
mov dword [ebp - 0x44], ebx
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp ebx, eax
jle 0x10165a43
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102bb91c
mov esp, ebp
pop ebp
ret
push 0x106119a4
call fcn.102bba07
add esp, 4
cmp dword [0x106119a4], 0xffffffff
jne 0x10165a9d
mov dword [ebp - 4], 0
cmp byte [0x104a9cd0], 0
jne 0x10165b79
mov byte [0x104a9cd0], 1
xor esi, esi
jmp 0x10165b20
xor edx, edx
mov ebx, esi
xor edx, dword [0x104a9ce4]
xor ebx, dword [0x104a9ce0]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
xor edx, ecx
shl eax, 0xd
xor ebx, eax
mov ecx, edx
mov eax, ebx
shrd eax, ecx, 7
shr ecx, 7
xor ebx, eax
xor edx, ecx
mov ecx, ebx
shld edx, ecx, 0x11
shl ecx, 0x11
xor cl, byte [esi + 0x104a9cd1]
xor cl, bl
mov byte [esi + 0x104a9cd1], cl
inc esi
cmp esi, 0xb
jb 0x10165b20
jmp 0x10165b79
push ecx
push 0x104a9cdb
push 0x104a9cd1
lea ecx, [ebp - 0x40]
call fcn.1001a620
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
cmovae eax, dword [ebp - 0x40]
cmp byte [0x104a9b90], 0
mov dword [ebp - 0x48], eax
jne 0x10165c0b
mov byte [0x104a9b90], 1
xor esi, esi
jmp 0x10165bb2
xor edx, edx
mov ebx, esi
xor edx, dword [0x104a9ba4]
xor ebx, dword [0x104a9ba0]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
xor edx, ecx
shl eax, 0xd
xor ebx, eax
mov ecx, edx
mov eax, ebx
shrd eax, ecx, 7
shr ecx, 7
xor ebx, eax
xor edx, ecx
mov ecx, ebx
shld edx, ecx, 0x11
shl ecx, 0x11
xor cl, byte [esi + 0x104a9b91]
xor cl, bl
mov byte [esi + 0x104a9b91], cl
inc esi
cmp esi, 0xd
jb 0x10165bb2
jmp 0x10165c0b
push ecx
push 0x104a9b9d
push 0x104a9b91
lea ecx, [ebp - 0x28]
call fcn.1001a620
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push 0
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10171b70
lea ecx, [ebp - 0x28]
mov dword [0x10611a9c], eax
call fcn.10019dd0
lea ecx, [ebp - 0x40]
call fcn.10019dd0
push 0x106119a4
mov dword [ebp - 4], 0xffffffff
call fcn.102bb9b6
mov ebx, dword [ebp - 0x44]
add esp, 4
jmp 0x10165a9d