Function at 0x57f320
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5833a4
mov eax, dword fs:[0]
push eax
sub esp, 0xbd8
mov eax, dword [0x5f2e00]
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 0x694f4f
push eax
call 0x694dbb
call 0x694dcd
push 0xa
lea ecx, [ebp - 0x1c]
push ecx
push eax
call 0x6b0fd4
add esp, 0x14
call fcn.005ac8b9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x57f391
push 0x80004005
call fcn.0053dc90
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 0x57f3d3
mov edx, ecx
movzx esi, dx
push esi
call fcn.005a6607
test eax, eax
je 0x57f3e8
push esi
push eax
lea ecx, [ebp - 0xbc4]
call fcn.0053eb30
jmp 0x57f3e2
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xbc4]
call fcn.0055b610
mov edi, dword [ebp - 0xbc4]
mov dword [ebp - 4], 1
mov eax, dword [edi - 0xc]
push eax
push edi
call dword [fcn.0058e504]
test eax, eax
jne 0x57f403
call fcn.0053ee60
mov esi, 0xf423f
xor ecx, ecx
cmp word [eax + ecx*2], 0
je 0x57f41d
mov dl, byte [eax + ecx*2]
mov byte [ebp + ecx - 0x184], dl
jmp 0x57f427
xor esi, esi
mov byte [ebp + ecx - 0x184], 0
inc ecx
cmp ecx, esi
jb 0x57f40a
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 0x57f44f
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 0x57f47a
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 0x57f461
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 0x5bc6e4
push eax
call 0x69502d
add esp, 0xc
call fcn.005ac8b9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x57f4b6
push 0x80004005
call fcn.0053dc90
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 0x57f4f8
mov edx, ecx
movzx esi, dx
push esi
call fcn.005a6607
test eax, eax
je 0x57f507
push esi
push eax
lea ecx, [ebp - 0xbc4]
call fcn.0053eb30
jmp 0x57f507
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0xbc4]
call fcn.0055b610
lea ecx, [ebp - 0xbc4]
push ecx
mov ecx, ebx
mov dword [ebp - 4], 3
call fcn.00541c50
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 0x57f545
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 [0x58e078]
test eax, eax
je 0x57f709
lea eax, [ebp - 0x9b8]
push eax
lea ecx, [ebp - 0xbc4]
call fcn.0053e950
mov dword [ebp - 4], 4
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call dword [fcn.0058e504]
test eax, eax
jne 0x57f59a
call fcn.0053ee60
mov esi, 0xf423f
xor ecx, ecx
cmp word [eax + ecx*2], 0
je 0x57f5b4
mov dl, byte [eax + ecx*2]
mov byte [ebp + ecx - 0x184], dl
jmp 0x57f5be
xor esi, esi
mov byte [ebp + ecx - 0x184], 0
inc ecx
cmp ecx, esi
jb 0x57f5a1
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 0x57f5ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edx, [ebp - 0x184]
call fcn.0057fce0
push eax
lea ecx, [ebp - 0x80]
push 0x5bc6e4
push ecx
call 0x69502d
add esp, 0xc
lea edx, [ebp - 0x80]
push edx
lea ecx, [ebp - 0xbcc]
call fcn.0055b170
mov esi, eax
push 0x5b6c40
lea ecx, [ebp - 0xbe4]
mov dword [ebp - 4], 5
call fcn.0053e950
push eax
lea eax, [ebp - 0xbd4]
push ebx
push eax
mov byte [ebp - 4], 6
call fcn.0055b330
push esi
push eax
lea ecx, [ebp - 0xbc4]
mov bl, 7
push ecx
mov byte [ebp - 4], bl
call fcn.0055b330
add esp, 0x18
mov ecx, dword [ebp - 0xbc8]
push eax
mov byte [ebp - 4], 8
call fcn.00541c50
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 0x57f68e
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 0x57f6b4
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 0x57f6da
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 0x57f703
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 [0x58e410]
test eax, eax
je 0x57f84b
lea eax, [ebp - 0x9b8]
push eax
lea ecx, [ebp - 0xbcc]
call fcn.0053e950
mov dword [ebp - 4], 9
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call dword [fcn.0058e504]
test eax, eax
jne 0x57f75e
call fcn.0053ee60
mov esi, 0xf423f
xor ecx, ecx
cmp word [eax + ecx*2], 0
je 0x57f778
mov dl, byte [eax + ecx*2]
mov byte [ebp + ecx - 0x184], dl
jmp 0x57f782
xor esi, esi
mov byte [ebp + ecx - 0x184], 0
inc ecx
cmp ecx, esi
jb 0x57f765
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 0x57f7ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edx, [ebp - 0x184]
call fcn.0057fce0
push eax
lea ecx, [ebp - 0x1e8]
push 0x5bc6e4
push ecx
call 0x69502d
add esp, 0xc
lea edx, [ebp - 0x1e8]
push edx
lea ecx, [ebp - 0xbdc]
call fcn.0055b170
push eax
lea eax, [ebp - 0xbd0]
push ebx
push eax
mov dword [ebp - 4], 0xa
call fcn.0055b330
add esp, 0xc
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xb
call fcn.00541c50
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 0x57f829
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 0x57f84b
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 0x692a51
mov esp, ebp
pop ebp
ret