Function at 0x100845a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
mov eax, dword [0x101165b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2a0], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [eax]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2a4], ecx
lea ecx, [esi + esi + 1]
mov dword [ebp - 0x28c], edx
mov dword [ebp - 0x294], eax
cmp edi, ecx
jae 0x100845fc
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008600b
mov esp, ebp
pop ebp
ret
sub edi, esi
push ebx
push edi
mov dword [ebp - 0x290], edi
call fcn.10085e5d
push edi
mov ebx, eax
call fcn.10085e5d
mov ecx, dword [ebp - 0x28c]
push edi
mov edi, dword [ebp - 0x294]
add ecx, esi
push esi
push eax
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x298], ecx
call fcn.10082a20
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x1008467e
test esi, esi
je 0x1008465b
mov eax, dword [ebp - 0x288]
mov edi, dword [ebp - 0x28c]
sub edi, eax
mov edx, esi
mov cl, byte [edi + eax]
xor byte [eax], cl
inc eax
dec edx
jne 0x10084652
mov edx, dword [ebp - 0x290]
mov edi, dword [ebp - 0x294]
mov ecx, dword [ebp - 0x288]
push esi
push edx
push ebx
call fcn.10082a20
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100846a6
push ebx
call fcn.10085a2f
mov eax, dword [ebp - 0x288]
push eax
call fcn.10085a2f
add esp, 8
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008600b
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x290]
xor eax, eax
test edi, edi
je 0x100846c3
mov ecx, dword [ebp - 0x298]
mov dl, byte [ecx + eax]
xor byte [eax + ebx], dl
inc eax
cmp eax, edi
jb 0x100846b2
push esi
call fcn.10085e5d
mov edi, eax
mov eax, dword [ebp - 0x294]
push eax
lea ecx, [ebp - 0x284]
push ecx
mov dword [ebp - 0x28c], edi
call sym.cis_cc_3.2.dll_HASH_Initialize
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x2a0]
push edx
push eax
lea ecx, [ebp - 0x284]
push ecx
call sym.cis_cc_3.2.dll_HASH_Update_PCIS
lea edx, [ebp - 0x284]
push edx
lea eax, [ebp - 0x2a8]
push eax
push edi
call sym.cis_cc_3.2.dll_HASH_Finalize
add esp, 0x24
xor edi, edi
test esi, esi
je 0x1008472f
mov ecx, dword [ebp - 0x28c]
mov eax, ebx
sub ecx, ebx
mov dl, byte [ecx + eax]
cmp dl, byte [eax]
jne 0x1008477b
inc edi
inc eax
cmp edi, esi
jb 0x10084722
mov edx, dword [ebp - 0x28c]
push edx
call fcn.10085a2f
add esp, 4
mov edi, edi
mov al, byte [edi + ebx]
inc edi
test al, al
je 0x10084740
cmp byte [edi + ebx - 1], 1
lea ecx, [edi + ebx]
je 0x100847b0
push ebx
call fcn.10085a2f
mov ecx, dword [ebp - 0x288]
push ecx
call fcn.10085a2f
add esp, 8
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008600b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x28c]
push eax
call fcn.10085a2f
push ebx
call fcn.10085a2f
mov ecx, dword [ebp - 0x288]
push ecx
call fcn.10085a2f
add esp, 0xc
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008600b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x290]
mov edx, dword [ebp - 0x2a4]
sub eax, edi
push eax
mov dword [edx], eax
mov eax, dword [ebp - 0x29c]
push ecx
push eax
call fcn.10086490
push ebx
call fcn.10085a2f
mov ecx, dword [ebp - 0x288]
push ecx
call fcn.10085a2f
mov ecx, dword [ebp - 4]
add esp, 0x14
pop ebx
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.1008600b
mov esp, ebp
pop ebp
ret