Function at 0x5d9d60
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x34
call fcn.00609610
mov eax, dword [0x761774]
test eax, eax
push ebx
push ebp
je 0x5d9e4b
push 0xdc
push 0x64e0c0
push 0x13
push 5
call fcn.005b4cd0
call fcn.005b4cb0
mov ebx, dword [0x761778]
xor ecx, ecx
cmp ebx, eax
sete cl
push 0xde
push 0x64e0c0
push 0x13
push 6
mov ebp, ecx
mov dword [esp + 0x28], ebp
call fcn.005b4cd0
add esp, 0x20
test ebp, ebp
jne 0x5d9dd4
push 0xe3
push 0x64e0c0
push 0x12
push 9
call fcn.005b4cd0
add esp, 0x10
mov edx, dword [0x761760]
mov ecx, dword [0x761764]
mov eax, dword [0x76175c]
mov dword [esp + 0x10], edx
mov edx, dword [0x761744]
push esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x18], ecx
mov ecx, dword [0x761748]
mov dword [esp + 0x2c], edx
mov edx, dword [0x76174c]
push edi
mov edi, eax
add eax, esi
cmp eax, 0x3ff
mov dword [esp + 0x34], ecx
mov ecx, dword [0x761750]
mov dword [esp + 0x38], edx
mov edx, dword [0x761754]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [0x76175c], eax
jl 0x5d9e5c
cdq
mov ecx, 0x3ff
idiv ecx
mov dword [0x761758], ecx
mov dword [0x76175c], edx
jmp 0x5d9e73
mov dword [esp + 8], 0
mov ebp, dword [esp + 8]
jmp 0x5d9dbe
mov ecx, dword [0x761758]
cmp ecx, 0x3ff
jge 0x5d9e73
cmp eax, ecx
jle 0x5d9e73
mov dword [0x761758], eax
mov eax, esi
cdq
mov ecx, 0x14
idiv ecx
xor ecx, ecx
test edx, edx
mov edx, dword [0x761764]
setg cl
add ecx, eax
add edx, ecx
test ebp, ebp
mov dword [0x761764], edx
jne 0x5d9eae
push 0x103
push 0x64e0c0
push 0x12
push 0xa
call fcn.005b4cd0
add esp, 0x10
lea edx, [esp + 0x20]
push edx
call fcn.005beae0
add esp, 4
test esi, esi
jle 0x5d9fe0
mov ebp, dword [esp + 0x48]
mov ecx, esi
dec esi
mov eax, 0xcccccccd
mul esi
shr edx, 4
inc edx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x14], edx
jmp 0x5d9ee3
mov ecx, dword [esp + 0x4c]
cmp ecx, 0x14
mov esi, ecx
jle 0x5d9eef
mov esi, 0x14
push 0
call fcn.005b3060
push eax
lea eax, [esp + 0x28]
push eax
call fcn.005bebd0
push 0x14
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.005bec80
lea ebx, [esi + edi - 0x3ff]
add esp, 0x18
test ebx, ebx
lea edx, [esp + 0x20]
lea ecx, [edi + 0x761330]
jle 0x5d9f4b
mov eax, esi
sub eax, ebx
push eax
push ecx
push edx
call fcn.005bec80
push ebx
lea eax, [esp + 0x30]
push 0x761330
push eax
call fcn.005bec80
add esp, 0x18
jmp 0x5d9f56
push esi
push ecx
push edx
call fcn.005bec80
add esp, 0xc
push esi
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.005bec80
push 8
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.005bec80
push 0
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.005bec90
mov ebx, dword [esp + 0x40]
add esp, 0x24
inc ebx
add ebp, esi
xor eax, eax
test esi, esi
mov dword [esp + 0x1c], ebx
jle 0x5d9fc2
jmp 0x5d9fa0
mov bl, byte [edi + 0x761330]
mov dl, byte [esp + eax + 0x30]
xor bl, dl
mov byte [edi + 0x761330], bl
inc edi
cmp edi, 0x3ff
jl 0x5d9fbd
xor edi, edi
inc eax
cmp eax, esi
jl 0x5d9fa0
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
sub ecx, 0x14
dec eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x14], eax
jne 0x5d9edf
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
call fcn.005bed10
add esp, 4
test ebp, ebp
pop edi
pop esi
jne 0x5da009
push 0x12e
push 0x64e0c0
push 0x12
push 9
call fcn.005b4cd0
add esp, 0x10
xor eax, eax
jmp 0x5da010
mov cl, byte [esp + eax + 0x28]
mov dl, byte [eax + 0x761744]
mov bl, byte [eax + 0x761745]
xor dl, cl
mov cl, byte [esp + eax + 0x2a]
mov byte [eax + 0x761744], dl
mov dl, byte [esp + eax + 0x29]
xor bl, dl
mov dl, byte [eax + 0x761746]
xor dl, cl
mov cl, byte [eax + 0x761747]
mov byte [eax + 0x761746], dl
mov dl, byte [esp + eax + 0x2b]
xor cl, dl
mov byte [eax + 0x761745], bl
mov bl, byte [eax + 0x761748]
mov byte [eax + 0x761747], cl
mov cl, byte [esp + eax + 0x2c]
xor bl, cl
mov byte [eax + 0x761748], bl
add eax, 5
cmp eax, 0x14
jl 0x5da010
fld qword [0x761768]
fcomp qword [0x64e0b8]
fnstsw ax
test ah, 5
jp 0x5da095
fld qword [0x761768]
fadd qword [esp + 0x48]
fstp qword [0x761768]
test ebp, ebp
pop ebp
pop ebx
jne 0x5da0b1
push 0x139
push 0x64e0c0
push 0x12
push 0xa
call fcn.005b4cd0
add esp, 0x10
add esp, 0x34
ret