Function at 0x4317b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5064e0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x541074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x14]
mov ebx, dword [eax + 0x10]
mov dword [ebp - 0x1c], ecx
cmp ecx, 8
jb 0x4317fa
mov esi, dword [eax]
jmp 0x4317fc
mov esi, eax
lea edi, [ebx + ebx]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x431821
nop word [eax + eax]
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x431810
mov ebx, dword [ebp - 0x18]
lea ecx, [ebx + 4]
mov dword [ebp - 0x28], ecx
mov eax, dword [ebx + 0x18]
mov edi, dword [ebx + 0xc]
and eax, edx
lea edx, [eax*8]
mov eax, dword [edi + edx]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], eax
cmp eax, dword [ecx]
jne 0x43184a
mov edi, dword [ecx]
jmp 0x431850
mov edi, dword [edi + edx + 4]
mov edi, dword [edi]
cmp edi, eax
je 0x4318ad
mov edi, dword [edi + 4]
cmp dword [edi + 0x1c], 8
lea ecx, [edi + 8]
lea edx, [ecx + 0x10]
mov dword [ebp - 0x24], edx
jb 0x431868
mov ecx, dword [ecx]
cmp dword [ebp - 0x1c], 8
jb 0x431875
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebx]
jmp 0x431878
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx]
mov ebx, edx
cmp dword [eax + 0x10], edx
mov edx, eax
mov eax, dword [ebp - 0x20]
cmovb ebx, dword [edx + 0x10]
test ebx, ebx
jne 0x4318f5
xor ecx, ecx
test ecx, ecx
jne 0x4318a6
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp + 0xc]
mov ecx, dword [edx]
mov ebx, dword [esi + 0x10]
cmp ebx, ecx
jb 0x4318a6
jbe 0x431910
cmp edi, eax
jne 0x431854
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp + 0x10]
mov dword [ebp + 0xc], esi
mov eax, dword [esi]
cmp edi, eax
je 0x4318da
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], esi
mov ecx, dword [eax + 4]
mov edx, dword [edi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov dword [esi + 4], edx
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebx + 0xc]
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x43193c
mov dword [ecx], esi
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [eax + ecx + 4], esi
jmp 0x43195f
mov dx, word [esi]
cmp dx, word [ecx]
jne 0x431908
add esi, 2
add ecx, 2
sub ebx, 1
jmp 0x43188d
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
jmp 0x431891
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp + 0xc]
push eax
call fcn.00431fc0
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, edi
jne 0x431944
mov dword [ecx], esi
jmp 0x43195f
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, esi
je 0x43195f
mov ecx, dword [ebp - 0x14]
add ecx, dword [ebx + 0xc]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.00431e90
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc