Function at 0x5883c2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588124
mov eax, dword fs:[0]
push eax
sub esp, 0xbd8
mov eax, dword [0x5fadc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0
mov dword [ebp - 0xbc8], ebx
call 0x69eabf
push eax
call 0x69e92b
call 0x69e93d
push 0xa
lea ecx, [ebp - 0x1c]
push ecx
push eax
call 0x69d27a
add esp, 0x14
call fcn.005b637b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x588361
push 0x80004005
call fcn.00542c90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0xbc4], edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
test ecx, 0xffff0000
jne 0x5883a3
mov edx, ecx
movzx esi, dx
push esi
call fcn.005b00d5
test eax, eax
je 0x5883b8
push esi
push eax
lea ecx, [ebp - 0xbc4]
call fcn.00543b60
jmp 0x5883b2
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xbc4]
call fcn.00561ad0
mov edi, dword [ebp - 0xbc4]
mov dword [ebp - 4], 1
mov eax, dword [edi - 0xc]
push eax
push edi
call dword [fcn.0059450c]
test eax, eax
jne 0x5883d3
call fcn.00543e90
mov esi, 0xf423f
xor ecx, ecx
cmp word [eax + ecx*2], 0
je 0x5883ed
mov dl, byte [eax + ecx*2]
mov byte [ebp + ecx - 0x184], dl
jmp 0x5883f7
xor esi, esi
mov byte [ebp + ecx - 0x184], 0
inc ecx
cmp ecx, esi
jb 0x5883da
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x58841f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov cl, byte [ebp - 0x184]
xor eax, eax
lea edx, [ebp - 0x184]
test cl, cl
je 0x58844a
movsx ecx, cl
add eax, ecx
imul eax, eax, 0x401
mov ecx, eax
shr ecx, 6
inc edx
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x588431
lea eax, [eax + eax*8]
mov edx, eax
shr edx, 0xb
xor eax, edx
imul eax, eax, 0x8001
push eax
lea eax, [ebp - 0x80]
push 0x5c2e74
push eax
call 0x69eb9d
add esp, 0xc
call fcn.005b637b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x588486
push 0x80004005
call fcn.00542c90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xbc4], eax
lea ecx, [ebp - 0x80]
mov dword [ebp - 4], 2
test ecx, 0xffff0000
jne 0x5884c8
mov edx, ecx
movzx esi, dx
push esi
call fcn.005b00d5
test eax, eax
je 0x5884d7
push esi
push eax
lea ecx, [ebp - 0xbc4]
call fcn.00543b60
jmp 0x5884d7
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0xbc4]
call fcn.00561ad0
lea ecx, [ebp - 0xbc4]
push ecx
mov ecx, ebx
mov dword [ebp - 4], 3
call fcn.00546ce0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xbc4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x588515
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0xbd8]
push ecx
lea edx, [ebp - 0x9b8]
push edx
mov dword [ebp - 0xbd8], 0x7d0
call dword [0x59407c]
test eax, eax
je 0x5886d9
lea eax, [ebp - 0x9b8]
push eax
lea ecx, [ebp - 0xbc4]
call fcn.00543980
mov dword [ebp - 4], 4
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call dword [fcn.0059450c]
test eax, eax
jne 0x58856a
call fcn.00543e90
mov esi, 0xf423f
xor ecx, ecx
cmp word [eax + ecx*2], 0
je 0x588584
mov dl, byte [eax + ecx*2]
mov byte [ebp + ecx - 0x184], dl
jmp 0x58858e
xor esi, esi
mov byte [ebp + ecx - 0x184], 0
inc ecx
cmp ecx, esi
jb 0x588571
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xbc4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5885bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edx, [ebp - 0x184]
call fcn.00588cb0
push eax
lea ecx, [ebp - 0x80]
push 0x5c2e74
push ecx
call 0x69eb9d
add esp, 0xc
lea edx, [ebp - 0x80]
push edx
lea ecx, [ebp - 0xbcc]
call fcn.00561590
mov esi, eax
push 0x5bcc28
lea ecx, [ebp - 0xbe4]
mov dword [ebp - 4], 5
call fcn.00543980
push eax
lea eax, [ebp - 0xbd4]
push ebx
push eax
mov byte [ebp - 4], 6
call fcn.00561840
push esi
push eax
lea ecx, [ebp - 0xbc4]
mov bl, 7
push ecx
mov byte [ebp - 4], bl
call fcn.00561840
add esp, 0x18
mov ecx, dword [ebp - 0xbc8]
push eax
mov byte [ebp - 4], 8
call fcn.00546ce0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0xbc4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x58865e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xbd4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x588684
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xbe4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5886aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xbcc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5886d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0xbc8]
lea ecx, [ebp - 0xbe0]
push ecx
lea edx, [ebp - 0xbc0]
push edx
mov dword [ebp - 0xbe0], 0x104
call dword [0x594410]
test eax, eax
je 0x58881b
lea eax, [ebp - 0x9b8]
push eax
lea ecx, [ebp - 0xbcc]
call fcn.00543980
mov dword [ebp - 4], 9
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call dword [fcn.0059450c]
test eax, eax
jne 0x58872e
call fcn.00543e90
mov esi, 0xf423f
xor ecx, ecx
cmp word [eax + ecx*2], 0
je 0x588748
mov dl, byte [eax + ecx*2]
mov byte [ebp + ecx - 0x184], dl
jmp 0x588752
xor esi, esi
mov byte [ebp + ecx - 0x184], 0
inc ecx
cmp ecx, esi
jb 0x588735
or esi, 0xffffffff
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xbcc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x58877e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edx, [ebp - 0x184]
call fcn.00588cb0
push eax
lea ecx, [ebp - 0x1e8]
push 0x5c2e74
push ecx
call 0x69eb9d
add esp, 0xc
lea edx, [ebp - 0x1e8]
push edx
lea ecx, [ebp - 0xbdc]
call fcn.00561590
push eax
lea eax, [ebp - 0xbd0]
push ebx
push eax
mov dword [ebp - 4], 0xa
call fcn.00561840
add esp, 0xc
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xb
call fcn.00546ce0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0xbd0]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5887f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xbdc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x58881b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call 0x69c52c
mov esp, ebp
pop ebp
ret