Function at 0x5dadb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x645470
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ecx]
test eax, eax
je 0x5db20b
mov esi, dword [eax + 4]
mov dword [ebp - 0x18], esi
test esi, esi
jle 0x5db20b
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x5db20b
mov dword [ebp - 0x14], esi
nop
mov eax, dword [ecx]
test eax, eax
je 0x5dae26
cmp ebx, dword [eax + 4]
jge 0x5dae26
test ebx, ebx
js 0x5dae26
mov ecx, dword [eax + 0xc]
add ecx, ebx
jmp 0x5dae2b
mov ecx, 0x651f40
cmp byte [ecx], 2
jne 0x5db093
mov ecx, dword [edi + 0x2c]
and ecx, 3
jne 0x5daedc
mov esi, dword [edi + 0x24]
xor edx, edx
mov eax, dword [ebp + 0x10]
div esi
mov dword [ebp - 0x24], esi
mov esi, dword [edi + 0x28]
lea eax, [esi + edx*4]
mov esi, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x5daedf
cmp dword [eax + 4], esi
je 0x5dae6d
mov eax, dword [eax]
test eax, eax
jne 0x5dae60
jmp 0x5daedf
mov esi, dword [eax + 8]
test esi, esi
je 0x5daedc
mov ecx, dword [esi + 0xd4]
lea eax, [esi + 0xd4]
cmp ecx, eax
je 0x5dae8c
test ecx, ecx
jne 0x5db013
cmp byte [ebp + 0x18], 0
je 0x5db013
xor edx, edx
mov ecx, dword [edi + 0x28]
mov eax, 0xfffffffe
div dword [ebp - 0x24]
mov eax, dword [ecx + edx*4]
test eax, eax
je 0x5db013
nop
cmp dword [eax + 4], 0xfffffffe
je 0x5daec1
mov eax, dword [eax]
test eax, eax
jne 0x5daeb0
jmp 0x5db013
mov eax, dword [eax + 8]
test eax, eax
je 0x5db013
push dword [ebp - 0x20]
mov ecx, esi
push eax
call fcn.005daa20
jmp 0x5db013
mov esi, dword [ebp + 0x10]
cmp byte [ebp + 0x18], 0
je 0x5db20b
test ecx, ecx
jne 0x5dafd6
xor edx, edx
mov eax, 0xfffffffe
div dword [edi + 0x24]
mov eax, dword [edi + 0x28]
lea eax, [eax + edx*4]
mov eax, dword [eax]
test eax, eax
je 0x5dafd6
nop dword [eax + eax]
cmp dword [eax + 4], 0xfffffffe
je 0x5daf21
mov eax, dword [eax]
test eax, eax
jne 0x5daf10
jmp 0x5dafd6
mov edi, dword [eax + 8]
test edi, edi
je 0x5dafd3
push 0xef
call fcn.00606edf
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x5e]
movsd xmm0, qword [edi + 0x66]
mov dword [ebp - 0x1c], 0
lea ecx, [ecx + ecx*4]
push ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
movsd qword [esp], xmm0
or edx, 1
push esi
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], edx
push ecx
push 2
mov ecx, eax
mov dword [ebp - 0x24], edx
call fcn.005d8b00
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
test al, 1
je 0x5dafa4
mov ecx, dword [ebp - 0x1c]
and eax, 0xfffffffe
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x5dafa4
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
jne 0x5dafa4
push ecx
call fcn.005a47b0
test esi, esi
je 0x5dafd3
mov ecx, dword [ebp + 0x14]
push esi
call fcn.005da650
test al, al
je 0x5dafcb
push dword [ebp - 0x20]
mov ecx, esi
push edi
call fcn.005daa20
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [esi + 0xc], ecx
jmp 0x5dafd9
push ecx
mov ecx, esi
call fcn.00542980
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
test byte [edi + 0x2c], 3
jne 0x5db20b
xor edx, edx
mov eax, ecx
div dword [edi + 0x24]
mov eax, dword [edi + 0x28]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x5db20b
cmp dword [eax + 4], ecx
je 0x5db008
mov eax, dword [eax]
test eax, eax
jne 0x5daff8
jmp 0x5db20b
mov esi, dword [eax + 8]
test esi, esi
je 0x5db20b
add ebx, 1
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, eax
mov edi, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov dword [ebp + 0x14], esi
js 0x5db257
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x5db046
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ecx
jmp 0x5db04d
mov edx, 0x651f68
xor eax, eax
lea ecx, [eax + edx]
lea eax, [edx + ebx]
cmp eax, ecx
jae 0x5db257
nop dword [eax + eax]
cmp byte [eax], 1
je 0x5db080
inc eax
cmp eax, ecx
jb 0x5db060
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
sub eax, edx
js 0x5db257
mov edi, dword [ebp + 0x14]
lea ebx, [eax + 1]
jmp 0x5db245
test ebx, ebx
js 0x5db0be
test eax, eax
je 0x5db0a3
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 4]
jmp 0x5db0aa
mov edx, 0x651f68
xor eax, eax
lea ecx, [eax + edx]
lea eax, [edx + ebx]
cmp eax, ecx
jae 0x5db0be
cmp byte [eax], 1
je 0x5db12f
inc eax
cmp eax, ecx
jb 0x5db0b4
or eax, 0xffffffff
test eax, eax
mov ecx, esi
cmovns ecx, eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], ecx
xor esi, esi
sub ecx, ebx
mov dword [ebp - 0x24], esi
push ecx
mov ecx, dword [ebp + 8]
push ebx
push eax
call fcn.005ac890
mov ecx, dword [eax]
cmp esi, ecx
je 0x5db0f1
mov esi, ecx
mov dword [ebp - 0x24], ecx
mov dword [eax], 0
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x5db108
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
jne 0x5db108
push ecx
call fcn.005a47b0
test byte [edi + 0x51], 3
jne 0x5db1f5
test esi, esi
je 0x5db1b2
movzx eax, word [esi + 0x10]
mov ecx, eax
mov dword [ebp - 0x2c], ecx
test al, 2
je 0x5db133
mov ecx, dword [esi + 8]
jmp 0x5db1b4
sub eax, edx
jmp 0x5db0c1
mov edi, dword [esi + 4]
xor ecx, ecx
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x1c], ecx
cmp edi, 4
ja 0x5db156
push edi
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.00609db0
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
jmp 0x5db1a0
mov ebx, edi
xor eax, eax
sar ebx, 2
test ebx, ebx
je 0x5db17e
xor esi, esi
mov ecx, esi
shr eax, 0x19
shl ecx, 7
or ecx, eax
xor ecx, dword [edx]
add edx, 4
mov eax, ecx
mov esi, eax
sub ebx, 1
jne 0x5db163
mov esi, dword [ebp - 0x24]
mov ebx, eax
and edi, 3
je 0x5db1a0
mov ecx, eax
shl ebx, 7
movzx eax, byte [edx]
lea edx, [edx + 1]
shr ecx, 0x19
or ecx, ebx
xor ecx, eax
mov eax, ecx
mov ebx, eax
sub edi, 1
jne 0x5db185
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp + 0x14]
or eax, 2
mov dword [esi + 8], ecx
mov word [esi + 0x10], ax
jmp 0x5db1b4
xor ecx, ecx
xor edx, edx
mov eax, ecx
div dword [edi + 0x49]
mov eax, dword [edi + 0x4d]
mov edi, dword [eax + edx*4]
test edi, edi
je 0x5db1f5
mov ecx, dword [edi + 4]
cmp ecx, esi
je 0x5db221
test ecx, ecx
je 0x5db1ef
test esi, esi
je 0x5db1ef
mov eax, dword [ecx + 4]
cmp eax, dword [esi + 4]
jne 0x5db1ef
mov edx, dword [esi + 0xc]
mov ecx, dword [ecx + 0xc]
push eax
call fcn.005a4c60
add esp, 4
test al, al
jne 0x5db221
mov edi, dword [edi]
test edi, edi
jne 0x5db1c5
test esi, esi
je 0x5db20b
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
jne 0x5db20b
push ecx
mov ecx, esi
call fcn.005a47b0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edi, dword [edi + 8]
mov dword [ebp + 0x14], edi
test edi, edi
je 0x5db1f5
mov ebx, dword [ebp - 0x30]
inc ebx
test esi, esi
je 0x5db245
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
jne 0x5db245
push ecx
mov ecx, esi
call fcn.005a47b0
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
cmp ebx, dword [ebp - 0x14]
jl 0x5dae10
mov esi, dword [ebp + 0x14]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14