Function at 0x10051c10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
mov ebx, ecx
xor edx, edx
push esi
push edi
mov ecx, 0x41
mov dword [ebp - 8], edx
lea eax, [ebx + 0x104]
mov esi, ebx
mov edi, eax
mov dword [ebp - 4], eax
rep movsd dword es:[edi], dword [esi]
mov eax, 0x104
sub eax, edx
push eax
lea eax, [edx + ebx]
push eax
mov eax, dword [ebx + 0x20c]
call eax
mov edx, dword [ebp - 8]
add esp, 8
add edx, eax
mov dword [ebp - 8], edx
cmp edx, 0x104
jb 0x10051c34
lea ecx, [ebx + 1]
mov edx, 0x34
movzx eax, byte [ecx + 0x103]
lea ecx, [ecx + 5]
not al
xor byte [ecx - 6], al
movzx eax, byte [ecx + 0xff]
not al
xor byte [ecx - 5], al
movzx eax, byte [ecx + 0x100]
not al
xor byte [ecx - 4], al
movzx eax, byte [ecx + 0x101]
not al
xor byte [ecx - 3], al
movzx eax, byte [ecx + 0x102]
not al
xor byte [ecx - 2], al
sub edx, 1
jne 0x10051c63
xor esi, esi
lea esp, [esp]
mov edi, 0x104
sub edi, esi
test esi, esi
je 0x10051ce7
mov eax, dword [esi + ebx - 0x14]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + ebx - 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + ebx - 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + ebx - 8]
mov dword [ebp - 0x50], eax
mov eax, dword [esi + ebx - 4]
mov dword [ebp - 0x4c], eax
cmp edi, 0x40
ja 0x10051d14
mov ecx, edi
jmp 0x10051d19
mov eax, dword [ebx + 0xf0]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebx + 0xf4]
mov dword [ebp - 0x58], eax
mov eax, dword [ebx + 0xf8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebx + 0xfc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebx + 0x100]
mov dword [ebp - 0x4c], eax
mov ecx, 0x40
push ecx
lea eax, [esi + ebx]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.1007d410
add esp, 0xc
cmp edi, 0x40
jae 0x10051d45
lea eax, [esi - 0xc4]
push eax
lea eax, [ebp - 0x48]
add eax, edi
push ebx
push eax
call fcn.1007d410
add esp, 0xc
lea ecx, [ebp - 0x64]
call fcn.10051f80
mov eax, dword [ebp - 0x5c]
lea ecx, [esi + ebx]
mov dword [ecx], eax
add esi, 0x14
mov eax, dword [ebp - 0x58]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x54]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x50]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x4c]
mov dword [ecx + 0x10], eax
cmp esi, 0x104
jb 0x10051cb0
xor esi, esi
mov edi, edi
mov ecx, dword [ebp - 4]
mov edi, 0x104
sub edi, esi
test esi, esi
je 0x10051dba
mov eax, dword [esi + ecx - 0x14]
mov dword [ebp - 0x5c], eax
mov eax, dword [esi + ecx - 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + ecx - 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + ecx - 8]
mov dword [ebp - 0x50], eax
mov eax, dword [esi + ecx - 4]
mov dword [ebp - 0x4c], eax
cmp edi, 0x40
ja 0x10051de7
mov eax, edi
jmp 0x10051dec
mov eax, dword [ecx + 0xf0]
mov dword [ebp - 0x5c], eax
mov eax, dword [ecx + 0xf4]
mov dword [ebp - 0x58], eax
mov eax, dword [ecx + 0xf8]
mov dword [ebp - 0x54], eax
mov eax, dword [ecx + 0xfc]
mov dword [ebp - 0x50], eax
mov eax, dword [ecx + 0x100]
mov dword [ebp - 0x4c], eax
mov eax, 0x40
push eax
lea ebx, [esi + ecx]
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.1007d410
add esp, 0xc
cmp edi, 0x40
jae 0x10051e1b
lea eax, [esi - 0xc4]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x48]
add eax, edi
push eax
call fcn.1007d410
add esp, 0xc
lea ecx, [ebp - 0x64]
call fcn.10051f80
mov eax, dword [ebp - 0x5c]
add esi, 0x14
mov dword [ebx], eax
mov eax, dword [ebp - 0x58]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x54]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebx + 0x10], eax
cmp esi, 0x104
jb 0x10051d80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret