Function at 0x593990
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73f740
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x20], ebx
cmp dword [ebx + 0xc], 0
mov dword [ebx + 0x4c], 0
je 0x593e50
push 0x2c
mov dword [ebp - 0x18], 0
call fcn.00516cd0
add esp, 4
lea ecx, [ebp - 0x1c]
mov dword [eax], eax
push dword [ebp - 0x20]
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x1c], eax
push eax
mov eax, dword [ebx + 0x24]
push dword [eax + 4]
call fcn.00588190
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x28]
mov dword [ebp - 0x18], eax
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x593a45
mov ecx, dword [edx]
cmp byte [ecx + 0xd], 0
jne 0x593a24
mov eax, dword [ecx]
mov edx, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x593a18
mov dword [esi], edx
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
jne 0x593a40
mov ecx, eax
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
je 0x593a35
mov dword [edx + 8], ecx
jmp 0x593a4d
mov dword [esi], esi
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], eax
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax]
mov dword [ebp - 0x10], esi
cmp esi, eax
je 0x593ab7
nop dword [eax]
mov edi, dword [ebx + 0x4c]
lea eax, [esi + 0x10]
push eax
call fcn.004d49e0
mov ecx, edi
mov edx, edi
shr ecx, 2
add esp, 4
add ecx, 0x9e3779b9
shl edx, 6
add edx, ecx
add edx, eax
xor edx, edi
mov dword [ebx + 0x4c], edx
mov eax, edx
movzx ecx, byte [esi + 0x28]
shr eax, 2
add ecx, eax
mov eax, edx
shl eax, 6
add ecx, 0x9e3779b9
add eax, ecx
lea ecx, [ebp - 0x10]
xor eax, edx
mov dword [ebx + 0x4c], eax
call fcn.004cde50
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
cmp esi, eax
jne 0x593a60
push dword [eax + 4]
lea eax, [ebp - 0x1c]
push eax
mov ecx, eax
call fcn.005885a0
push 0x2c
push dword [ebp - 0x1c]
call fcn.00516d60
push 0x30
mov dword [ebp - 0x24], 0
call fcn.00516cd0
add esp, 0xc
lea ecx, [ebp - 0x28]
mov dword [eax], eax
push dword [ebp - 0x20]
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x28], eax
push eax
mov eax, dword [ebx + 0x2c]
push dword [eax + 4]
call fcn.00587e80
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 4], eax
mov esi, dword [ebp - 0x28]
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x24], eax
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x593b50
mov ecx, dword [edx]
cmp byte [ecx + 0xd], 0
jne 0x593b2f
mov eax, dword [ecx]
mov edx, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x593b23
mov dword [esi], edx
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
jne 0x593b4b
mov ecx, eax
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
je 0x593b40
mov dword [edx + 8], ecx
jmp 0x593b58
mov dword [esi], esi
mov eax, dword [ebp - 0x28]
mov dword [eax + 8], eax
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
mov dword [ebp - 0x18], esi
cmp esi, eax
je 0x593bee
mov edi, dword [ebx + 0x4c]
nop dword [eax + eax]
lea eax, [esi + 0x10]
push eax
call fcn.004d49e0
mov ecx, edi
mov edx, edi
shr ecx, 2
add esp, 4
add ecx, 0x9e3779b9
shl edx, 6
add ecx, edx
xorps xmm1, xmm1
add ecx, eax
xor ecx, edi
mov dword [ebx + 0x4c], ecx
movsd xmm0, qword [esi + 0x28]
ucomisd xmm0, xmm1
mov dword [ebp - 0x10], ecx
lahf
test ah, 0x44
jp 0x593bae
xor eax, eax
jmp 0x593bc4
lea eax, [ebp - 0x30]
movsd qword [ebp - 0x30], xmm0
push 8
push eax
call fcn.00593f10
mov ecx, dword [ebp - 0x10]
add esp, 8
mov edi, ecx
shr ecx, 2
shl edi, 6
add ecx, 0x9e3779b9
add edi, eax
add edi, ecx
lea ecx, [ebp - 0x18]
xor edi, dword [ebp - 0x10]
mov dword [ebx + 0x4c], edi
call fcn.004cde50
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
cmp esi, eax
jne 0x593b70
push dword [eax + 4]
lea eax, [ebp - 0x28]
push eax
mov ecx, eax
call fcn.00588510
push 0x30
push dword [ebp - 0x28]
call fcn.00516d60
push 0x30
mov dword [ebp - 0x24], 0
call fcn.00516cd0
add esp, 0xc
lea ecx, [ebp - 0x28]
mov dword [eax], eax
push dword [ebp - 0x20]
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x28], eax
push eax
mov eax, dword [ebx + 0x34]
push dword [eax + 4]
call fcn.00588090
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 4], eax
mov esi, dword [ebp - 0x28]
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x24], eax
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x593c90
mov ecx, dword [edx]
cmp byte [ecx + 0xd], 0
jne 0x593c6c
nop word [eax + eax]
mov eax, dword [ecx]
mov edx, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x593c60
mov dword [esi], edx
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
jne 0x593c8b
nop dword [eax]
mov ecx, eax
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
je 0x593c80
mov dword [edx + 8], ecx
jmp 0x593c98
mov dword [esi], esi
mov eax, dword [ebp - 0x28]
mov dword [eax + 8], eax
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
mov dword [ebp - 0x18], esi
cmp esi, eax
je 0x593d1f
mov edi, dword [ebx + 0x4c]
lea eax, [esi + 0x10]
push eax
call fcn.004d49e0
mov edx, edi
mov ecx, edi
shl edx, 6
add esp, 4
add edx, 0x9e3779b9
shr ecx, 2
add edx, ecx
add eax, edx
xor eax, edi
mov dword [ebx + 0x4c], eax
mov edx, dword [esi + 0x2c]
mov edi, dword [esi + 0x28]
mov dword [ebp - 0x10], eax
test edx, edx
jg 0x593ce1
jl 0x593cdf
test edi, edi
jae 0x593ce1
not edx
mov eax, edx
mov ecx, edx
shl eax, 6
add eax, edi
shr ecx, 2
add ecx, eax
xor ecx, edx
mov edx, dword [ebp - 0x10]
mov eax, edx
mov edi, edx
shr edi, 2
shl eax, 6
add edi, 0x9e3779b9
add ecx, eax
add edi, ecx
lea ecx, [ebp - 0x18]
xor edi, edx
mov dword [ebx + 0x4c], edi
call fcn.004cde50
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
cmp esi, eax
jne 0x593ca7
push dword [eax + 4]
lea eax, [ebp - 0x28]
push eax
mov ecx, eax
call fcn.00588510
push 0x30
push dword [ebp - 0x28]
call fcn.00516d60
push 0x40
mov dword [ebp - 0x10], 0
call fcn.00516cd0
add esp, 0xc
lea ecx, [ebp - 0x14]
mov dword [eax], eax
push dword [ebp - 0x20]
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x14], eax
push eax
mov eax, dword [ebx + 0x44]
push dword [eax + 4]
call fcn.00587f80
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], eax
mov esi, dword [ebp - 0x14]
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0x10], eax
mov edx, dword [esi + 4]
cmp byte [edx + 0xd], 0
jne 0x593dc0
mov ecx, dword [edx]
cmp byte [ecx + 0xd], 0
jne 0x593d9c
nop dword [eax + eax]
mov eax, dword [ecx]
mov edx, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x593d90
mov dword [esi], edx
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 4]
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
jne 0x593dbb
nop dword [eax]
mov ecx, eax
mov eax, dword [ecx + 8]
cmp byte [eax + 0xd], 0
je 0x593db0
mov dword [edx + 8], ecx
jmp 0x593dc8
mov dword [esi], esi
mov eax, dword [ebp - 0x14]
mov dword [eax + 8], eax
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
mov dword [ebp - 0x18], esi
cmp esi, eax
je 0x593e35
mov edi, dword [ebx + 0x4c]
lea eax, [esi + 0x10]
push eax
call fcn.004d49e0
mov ebx, edi
mov ecx, edi
shl ebx, 6
add eax, 0x9e3779b9
shr ecx, 2
add esi, 0x28
add ebx, ecx
add ebx, eax
mov eax, dword [ebp - 0x20]
xor ebx, edi
push esi
mov dword [eax + 0x4c], ebx
call fcn.004d49e0
mov ecx, ebx
mov edx, ebx
shr ecx, 2
add esp, 8
add ecx, 0x9e3779b9
shl edx, 6
add edx, ecx
lea ecx, [ebp - 0x18]
add eax, edx
xor eax, ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebx + 0x4c], eax
call fcn.004cde50
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
cmp esi, eax
jne 0x593dd4
push dword [eax + 4]
lea eax, [ebp - 0x14]
push eax
mov ecx, eax
call fcn.004ccc40
push 0x40
push dword [ebp - 0x14]
call fcn.00516d60
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret