Function at 0x100525c0
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]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x18]
mov esi, dword [edi]
sub ebx, esi
mov dword [ebp - 0x2a0], eax
mov eax, dword [ebp + 0x10]
dec ebx
push ebx
mov dword [ebp - 0x29c], ecx
mov dword [ebp - 0x294], edx
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x2a4], 0
call fcn.10085e5d
push ebx
mov dword [ebp - 0x288], eax
call fcn.10085e5d
mov ecx, dword [ebp - 0x294]
push ebx
lea ecx, [ecx + esi + 1]
push esi
push eax
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x298], ecx
call fcn.1004d750
add esp, 0x14
mov dword [ebp - 0x28c], eax
test eax, eax
je 0x10052678
mov edx, dword [ebp - 0x288]
push edx
call fcn.10085a2f
mov eax, dword [ebp - 0x290]
push eax
call fcn.10085a2f
mov eax, dword [ebp - 0x28c]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008600b
mov esp, ebp
pop ebp
ret
xor eax, eax
test esi, esi
je 0x10052698
mov edi, edi
mov ecx, dword [ebp - 0x294]
mov dl, byte [ecx + eax + 1]
mov ecx, dword [ebp - 0x290]
xor byte [eax + ecx], dl
inc eax
cmp eax, esi
jb 0x10052680
mov eax, dword [ebp - 0x288]
mov ecx, dword [ebp - 0x290]
push esi
push ebx
push eax
call fcn.1004d750
add esp, 0xc
mov dword [ebp - 0x28c], eax
test eax, eax
je 0x100526eb
mov ecx, dword [ebp - 0x288]
push ecx
call fcn.10085a2f
mov edx, dword [ebp - 0x290]
push edx
call fcn.10085a2f
mov eax, dword [ebp - 0x28c]
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008600b
mov esp, ebp
pop ebp
ret
xor eax, eax
test ebx, ebx
je 0x10052708
mov ecx, dword [ebp - 0x298]
mov dl, byte [ecx + eax]
mov ecx, dword [ebp - 0x288]
xor byte [eax + ecx], dl
inc eax
cmp eax, ebx
jb 0x100526f1
push esi
call fcn.10085e5d
mov dword [ebp - 0x28c], eax
lea eax, [ebp - 0x284]
push edi
push eax
call sym.cis_cc_3.2.dll_HASH_Initialize
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x2a8]
push ecx
push edx
lea eax, [ebp - 0x284]
push eax
call sym.cis_cc_3.2.dll_HASH_Update_PCIS
mov eax, dword [ebp - 0x28c]
lea ecx, [ebp - 0x284]
push ecx
lea edx, [ebp - 0x2a4]
push edx
push eax
call sym.cis_cc_3.2.dll_HASH_Finalize
add esp, 0x24
xor edi, edi
test esi, esi
je 0x1005277d
mov eax, dword [ebp - 0x288]
mov ecx, dword [ebp - 0x28c]
sub ecx, eax
lea esp, [esp]
mov dl, byte [ecx + eax]
cmp dl, byte [eax]
jne 0x100527d3
inc edi
inc eax
cmp edi, esi
jb 0x10052770
mov eax, dword [ebp - 0x28c]
push eax
call fcn.10085a2f
add esp, 4
lea esp, [esp]
mov ecx, dword [ebp - 0x288]
mov dl, byte [edi + ecx]
inc edi
test dl, dl
je 0x10052790
mov esi, ecx
cmp byte [edi + esi - 1], 1
lea eax, [edi + esi]
je 0x1005280e
push esi
call fcn.10085a2f
mov eax, dword [ebp - 0x290]
push eax
call fcn.10085a2f
add esp, 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
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
mov ecx, dword [ebp - 0x288]
push ecx
call fcn.10085a2f
mov edx, dword [ebp - 0x290]
push edx
call fcn.10085a2f
add esp, 0xc
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008600b
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x2a0]
mov ecx, dword [ebp - 0x29c]
sub ebx, edi
push ebx
push eax
push edx
mov dword [ecx], ebx
call fcn.10086490
push esi
call fcn.10085a2f
mov eax, dword [ebp - 0x290]
push eax
call fcn.10085a2f
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1008600b
mov esp, ebp
pop ebp
ret