Function at 0x5177f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004054b0
xor eax, eax
push ebp
push 0x517a8c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.004050c8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x517852
mov eax, dword [ebp - 0x30]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
and eax, 0x80000001
jns 0x517861
dec eax
or eax, 0xfffffffe
inc eax
dec eax
je 0x517a54
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00517590
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x18]
call fcn.004050c8
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x18]
call fcn.004050c8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x5178a0
mov eax, dword [ebp - 0x34]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
sar eax, 1
jns 0x5178aa
adc eax, 0
cmp eax, 1
jl 0x517a49
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x5178cd
mov eax, dword [ebp - 0x38]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
sar eax, 1
jns 0x5178d7
adc eax, 0
cmp eax, dword [ebp - 0x10]
je 0x5178e7
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x24]
call fcn.004050c8
lea eax, [ebp - 0x24]
call fcn.00405030
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x517906
mov eax, dword [ebp - 0x3c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
sar eax, 1
jns 0x517910
adc eax, 0
test eax, eax
jle 0x517a3c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 1
mov edx, 0x517a98
lea eax, [ebp - 0x44]
call fcn.00403868
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x14]
add edx, edx
mov ecx, dword [ebp - 0x20]
mov dl, byte [ecx + edx - 2]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x44]
mov cl, 2
call fcn.00403838
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x4c]
call fcn.00403868
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x14]
add edx, edx
mov ecx, dword [ebp - 0x20]
mov dl, byte [ecx + edx - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x4c]
mov cl, 3
call fcn.00403838
lea edx, [ebp - 0x4c]
lea eax, [ebp - 0x40]
call fcn.00405294
mov eax, dword [ebp - 0x40]
call fcn.00409af4
mov byte [ebp - 0x25], al
mov edx, 0x517a98
lea eax, [ebp - 0x44]
call fcn.00403868
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x10]
add edx, edx
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ecx + edx - 2]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x44]
mov cl, 2
call fcn.00403838
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x4c]
call fcn.00403868
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x10]
add edx, edx
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ecx + edx - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x4c]
mov cl, 3
call fcn.00403838
lea edx, [ebp - 0x4c]
lea eax, [ebp - 0x50]
call fcn.00405294
mov eax, dword [ebp - 0x50]
call fcn.00409af4
mov byte [ebp - 0x26], al
mov al, byte [ebp - 0x25]
xor al, byte [ebp - 0x26]
mov byte [ebp - 0x27], al
lea eax, [ebp - 0x58]
mov dl, byte [ebp - 0x27]
call fcn.00405218
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.00517590
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x24]
call fcn.004052fc
inc dword [ebp - 0x14]
dec dword [ebp - 0x2c]
jne 0x517922
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0
jne 0x5178b6
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
call fcn.00517654
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x517a93
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.00405054
lea eax, [ebp - 0x40]
call fcn.00405030
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00405054
lea eax, [ebp - 8]
call fcn.00405030
ret