Function at 0x507350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6596aa
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x6dc0b8]
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
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x148], edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
push 0xffffffffffffffff
mov dword [ebp - 0x154], 0
push 0
push esi
mov dword [ebp - 0x170], edi
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
call fcn.004147e0
push 0xa
mov dword [ebp - 4], 1
lea eax, [ebp - 0x1c]
push 0xa
push eax
push dword [esi + 0x10]
xorps xmm0, xmm0
mov byte [ebp - 0x1c], 0
movq qword [ebp - 0x1b], xmm0
mov byte [ebp - 0x13], 0
call fcn.005f8aaf
mov eax, dword [ebp - 0x24]
add esp, 0x10
cmp dword [ebp - 0x20], 0x10
mov dword [ebp - 0x140], eax
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
cmp byte [ebp - 0x1c], 0
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x158], 0xf
mov dword [ebp - 0x15c], 0
mov byte [ebp - 0x16c], 0
jne 0x50742d
xor ecx, ecx
jmp 0x50743c
lea ecx, [ebp - 0x1c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x507433
sub ecx, edx
push ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x16c]
call fcn.00414ab0
mov eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0x138]
cmp dword [ebp - 0x158], 0x10
mov edx, 0x100
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x16c]
cmovae eax, dword [ebp - 0x16c]
mov dword [ebp - 0x14c], eax
xor eax, eax
nop
mov byte [ecx], al
lea ecx, [ecx + 1]
inc eax
cmp ax, dx
jl 0x507480
mov edi, dword [ebp - 0x14c]
lea esi, [ebp - 0x138]
xor dl, dl
mov word [ebp - 0x38], 0
xor ebx, ebx
mov dword [ebp - 0x13c], 0x100
nop dword [eax + eax]
mov cl, byte [esi]
lea esi, [esi + 1]
movzx edx, dl
mov al, byte [edx + edi]
add al, bl
add al, cl
movzx ebx, al
movzx eax, byte [ebp + ebx - 0x138]
mov byte [esi - 1], al
lea eax, [edx + 1]
cdq
idiv dword [ebp - 0x150]
sub dword [ebp - 0x13c], 1
mov byte [ebp + ebx - 0x138], cl
jne 0x5074b0
mov edi, dword [ebp - 0x144]
xor esi, esi
cmp dword [ebp - 0x140], esi
jle 0x50755d
movzx edx, byte [ebp - 0x38]
movzx ebx, byte [ebp - 0x37]
mov edi, dword [ebp - 0x148]
nop word [eax + eax]
inc dl
movzx edx, dl
mov cl, byte [ebp + edx - 0x138]
add bl, cl
movzx ebx, bl
movzx eax, byte [ebp + ebx - 0x138]
mov byte [ebp + edx - 0x138], al
mov al, cl
mov byte [ebp + ebx - 0x138], cl
add al, byte [ebp + edx - 0x138]
movzx eax, al
movzx eax, byte [ebp + eax - 0x138]
xor byte [edi + esi], al
inc esi
cmp esi, dword [ebp - 0x140]
jl 0x507510
mov edi, dword [ebp - 0x144]
mov eax, dword [ebp - 0x158]
cmp eax, 0x10
jb 0x50757b
inc eax
lea ecx, [ebp - 0x16c]
push eax
push dword [ebp - 0x16c]
call fcn.00414c80
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x13c]
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x34]
cmovae ecx, dword [ebp - 0x34]
push eax
push 0
mov dword [ebp - 0x13c], 0
call fcn.0050bac0
mov dword [edi + 0x14], 0xf
add esp, 8
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov eax, dword [ebp - 0x13c]
mov ecx, dword [edi + 0x10]
inc eax
mov dword [ebp - 0x154], 1
cmp eax, ecx
ja 0x5075e6
mov dword [edi + 0x10], eax
cmp dword [edi + 0x14], 0x10
jb 0x5075de
mov ecx, dword [edi]
mov byte [eax + ecx], 0
jmp 0x5075f2
mov ecx, edi
mov byte [eax + ecx], 0
jmp 0x5075f2
sub eax, ecx
mov ecx, edi
push 0
push eax
call fcn.004c3a30
cmp dword [edi + 0x14], 0x10
jb 0x5075fc
mov eax, dword [edi]
jmp 0x5075fe
mov eax, edi
cmp dword [ebp - 0x20], 0x10
lea edx, [ebp - 0x13c]
push edx
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x34]
cmovae ecx, dword [ebp - 0x34]
push eax
call fcn.0050bac0
mov ecx, dword [ebp - 0x20]
add esp, 8
cmp ecx, 0x10
jb 0x507631
inc ecx
push ecx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
call fcn.00414c80
mov eax, edi
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.00545b50
mov esp, ebp
pop ebp
ret