Function at 0x100524f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b6888
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword [ecx]
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
add eax, 0x50
cmp eax, ebx
jae 0x100526eb
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
test eax, eax
je 0x1005254d
mov ecx, dword [eax + 0x84]
jmp 0x1005254f
xor ecx, ecx
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.10097c50
mov edx, dword [esi + 4]
mov ecx, dword [ebp - 0x10]
cmp ecx, edx
jbe 0x1005256c
mov ecx, edx
test al, al
je 0x100526eb
cmp ecx, dword [ebp - 0x14]
jbe 0x100526eb
test ecx, ecx
je 0x100526eb
cmp ecx, ebx
ja 0x100526eb
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1005259c
mov ecx, dword [ecx + 0x84]
jmp 0x1005259e
xor ecx, ecx
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
sar eax, 2
cmp di, ax
jae 0x100526eb
mov eax, dword [ecx + 0xc]
sub eax, dword [ecx + 8]
movzx esi, di
sar eax, 2
cmp esi, eax
jae 0x100525c8
mov eax, dword [ecx + 8]
mov esi, dword [eax + esi*4]
jmp 0x100525ca
xor esi, esi
cmp byte [esi + 0x24], 0
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
jne 0x100525dc
mov ecx, esi
call fcn.10097cc0
mov eax, dword [esi + 0x20]
add eax, edi
cmp edi, eax
ja 0x100526eb
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp + 8]
push 0x24
mov dword [ebp - 0x10], 0xe983cd8b
movzx ecx, byte [ebx + esi + 0x13]
movzx eax, byte [ebx + esi + 0x12]
shl cx, 8
or cx, ax
movzx eax, byte [ebx + esi + 0x10]
movzx edx, cx
movzx ecx, byte [ebx + esi + 0x11]
shl cx, 8
or cx, ax
shl edx, 0x10
movzx ebx, cx
lea ecx, [ebp - 0x28]
or ebx, edx
call fcn.100940a0
mov dword [ebp - 4], 0
mov eax, ebx
mov edi, dword [ebp - 0x28]
add esi, 0x1a
mov edx, dword [ebp - 0x18]
shr eax, 8
mov dword [ebp + 8], eax
mov eax, ebx
shr eax, 0x10
lea ecx, [edi + 1]
mov dword [ebp - 0x14], eax
mov eax, ebx
shr eax, 0x18
add edx, esi
mov dword [ebp - 0x1c], eax
mov esi, 9
nop
mov al, byte [edx - 1]
lea edx, [edx + 4]
xor al, bl
lea ecx, [ecx + 4]
mov byte [ecx - 5], al
mov al, byte [edx - 4]
xor al, byte [ebp + 8]
mov byte [ecx - 4], al
mov al, byte [edx - 3]
xor al, byte [ebp - 0x14]
mov byte [ecx - 3], al
mov al, byte [edx - 2]
xor al, byte [ebp - 0x1c]
mov byte [ecx - 2], al
dec esi
jne 0x10052660
mov esi, edi
lea eax, [ebp - 0x10]
xor edx, edx
sub esi, eax
lea ecx, [ebp - 0x10]
add ecx, edx
mov al, byte [ecx]
cmp al, byte [esi + ecx]
jne 0x100526ab
inc edx
cmp edx, 4
jb 0x10052695
mov bl, 1
jmp 0x100526ad
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x100526d7
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret