Function at 0x5939a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x601018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xd8], edx
mov edx, dword [ebp + 0x24]
push edi
xor edi, edi
mov dword [ebp - 0xc8], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0xb4], edx
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xcc], ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov edx, esi
lea ecx, [ecx]
mov ecx, dword [eax]
inc dword [ebp + ecx*4 - 0x44]
lea ecx, [ebp + ecx*4 - 0x44]
add eax, 4
dec edx
jne 0x593a20
cmp dword [ebp - 0x44], esi
jne 0x593a52
mov eax, dword [ebp - 0xc8]
mov dword [eax], edi
mov dword [ebx], edi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00596083
mov esp, ebp
pop ebp
ret
mov esi, dword [ebx]
mov dword [ebp - 0x88], esi
mov ecx, 1
nop
cmp dword [ebp + ecx*4 - 0x44], edi
jne 0x593a6c
inc ecx
cmp ecx, 0xf
jbe 0x593a60
mov edx, ecx
mov dword [ebp - 0x90], edx
cmp esi, ecx
jae 0x593a80
mov dword [ebp - 0x88], ecx
mov esi, ecx
mov eax, 0xf
cmp dword [ebp + eax*4 - 0x44], edi
jne 0x593a8e
dec eax
jne 0x593a85
mov dword [ebp - 0xac], eax
cmp esi, eax
jbe 0x593aa0
mov dword [ebp - 0x88], eax
mov esi, eax
mov dword [ebx], esi
mov ebx, 1
shl ebx, cl
cmp ecx, eax
jae 0x593ac1
lea ecx, [ecx]
sub ebx, dword [ebp + ecx*4 - 0x44]
js 0x593bcf
inc ecx
add ebx, ebx
cmp ecx, eax
jb 0x593ab0
lea ecx, [eax*4]
mov dword [ebp - 0x98], ecx
mov ecx, dword [ebp + ecx - 0x44]
sub ebx, ecx
mov dword [ebp - 0xd0], ebx
js 0x593bcf
add ecx, ebx
mov ebx, dword [ebp - 0x98]
mov dword [ebp + ebx - 0x44], ecx
xor ecx, ecx
dec eax
mov dword [ebp - 0x80], ecx
je 0x593b04
xor ebx, ebx
add ecx, dword [ebp + ebx - 0x40]
add ebx, 4
dec eax
mov dword [ebp + ebx - 0x80], ecx
jne 0x593af6
mov ebx, dword [ebp - 0xa0]
xor ecx, ecx
lea esp, [esp]
mov eax, dword [ebx]
add ebx, 4
mov dword [ebp - 0x94], ebx
test eax, eax
je 0x593b46
mov ebx, dword [ebp - 0xb4]
lea eax, [ebp + eax*4 - 0x84]
mov dword [ebp - 0x8c], eax
mov eax, dword [eax]
mov dword [ebx + eax*4], ecx
mov ebx, dword [ebp - 0x8c]
inc eax
mov dword [ebx], eax
mov ebx, dword [ebp - 0x94]
inc ecx
cmp ecx, dword [ebp - 0xb0]
jb 0x593b10
mov ecx, dword [ebp - 0x98]
mov eax, dword [ebp + ecx - 0x84]
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x94], ecx
mov ecx, dword [ebp - 0xac]
mov ebx, esi
mov dword [ebp - 0xb0], eax
xor eax, eax
neg ebx
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x9c], 0xffffffff
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0xa0], eax
cmp edx, ecx
jg 0x593eba
lea eax, [ebp + edx*4 - 0x44]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
mov eax, dword [eax]
test eax, eax
je 0x593ea2
lea ecx, [eax + 1]
mov dword [ebp - 0xc4], ecx
jmp 0x593bf6
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00596083
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x98]
dec dword [ebp - 0xc4]
dec eax
mov dword [ebp - 0x98], eax
lea eax, [ebx + esi]
cmp edx, eax
jle 0x593d64
sub ebx, esi
mov dword [ebp - 0xc0], ebx
jmp 0x593c26
mov esi, dword [ebp - 0x88]
mov edx, dword [ebp - 0xac]
inc dword [ebp - 0x9c]
add dword [ebp - 0xc0], esi
mov ebx, eax
mov eax, dword [ebp - 0x88]
sub edx, ebx
cmp edx, eax
jbe 0x593c48
mov edx, eax
mov ecx, dword [ebp - 0x90]
sub ecx, ebx
mov eax, 1
shl eax, cl
cmp eax, dword [ebp - 0xc4]
jbe 0x593c9e
or esi, 0xffffffff
sub esi, dword [ebp - 0x98]
add eax, esi
mov esi, dword [ebp - 0xa4]
cmp ecx, edx
jae 0x593c9e
inc ecx
cmp ecx, edx
jae 0x593c9e
jmp 0x593c86
mov esi, dword [ebp - 0x8c]
add esi, 4
mov dword [ebp - 0x8c], esi
mov esi, dword [esi]
add eax, eax
cmp eax, esi
jbe 0x593c9e
inc ecx
sub eax, esi
cmp ecx, edx
jb 0x593c80
mov eax, dword [ebp - 0xcc]
mov eax, dword [eax]
mov edx, 1
shl edx, cl
mov dword [ebp - 0xa0], edx
add edx, eax
cmp edx, 0x5a0
ja 0x593bcf
mov esi, dword [ebp - 0xd8]
lea esi, [esi + eax*8]
mov eax, dword [ebp - 0x9c]
lea eax, [ebp + eax*4 - 0x114]
mov dword [ebp - 0xd4], eax
mov dword [eax], esi
mov eax, dword [ebp - 0xcc]
mov dword [eax], edx
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x8c], esi
test eax, eax
je 0x593d41
mov edi, dword [ebp - 0xa8]
mov dl, byte [ebp - 0x88]
mov dword [ebp + eax*4 - 0x84], edi
mov byte [ebp - 0xbc], cl
mov ecx, dword [ebp - 0xc0]
mov eax, edi
shr eax, cl
mov ecx, dword [ebp - 0xd4]
mov ecx, dword [ecx - 4]
mov edi, esi
sub edi, ecx
mov byte [ebp - 0xbb], dl
mov edx, dword [ebp - 0xbc]
sar edi, 3
sub edi, eax
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], edi
jmp 0x593d49
mov eax, dword [ebp - 0xc8]
mov dword [eax], esi
mov ecx, dword [ebp - 0x88]
lea eax, [ebx + ecx]
cmp dword [ebp - 0x90], eax
jg 0x593c20
mov edx, dword [ebp - 0x90]
mov ecx, dword [ebp - 0xb4]
mov al, dl
sub al, bl
mov byte [ebp - 0xbb], al
mov eax, dword [ebp - 0xb0]
lea ecx, [ecx + eax*4]
mov eax, dword [ebp - 0x94]
cmp eax, ecx
jb 0x593d90
mov byte [ebp - 0xbc], 0xc0
jmp 0x593dd2
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jae 0x593db0
cmp eax, 0x100
sbb cl, cl
and cl, 0xa0
add cl, 0x60
mov byte [ebp - 0xbc], cl
mov edi, eax
jmp 0x593dcb
sub eax, ecx
mov ecx, dword [ebp + 0x18]
add eax, eax
add eax, eax
mov cl, byte [eax + ecx]
add cl, 0x50
mov byte [ebp - 0xbc], cl
mov ecx, dword [ebp + 0x14]
mov edi, dword [eax + ecx]
add dword [ebp - 0x94], 4
mov esi, dword [ebp - 0xa8]
mov ecx, edx
sub ecx, ebx
mov edx, 1
shl edx, cl
mov eax, esi
mov ecx, ebx
shr eax, cl
cmp eax, dword [ebp - 0xa0]
jae 0x593e24
mov ecx, dword [ebp - 0x8c]
lea ecx, [ecx + eax*8]
lea ebx, [ebx]
mov esi, dword [ebp - 0xbc]
mov dword [ecx], esi
lea esi, [edx*8]
mov dword [ecx + 4], edi
add eax, edx
add ecx, esi
cmp eax, dword [ebp - 0xa0]
jb 0x593e00
mov esi, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0x90]
dec ecx
mov eax, 1
shl eax, cl
test esi, eax
je 0x593e3e
xor esi, eax
shr eax, 1
test esi, eax
jne 0x593e36
mov edx, 1
mov ecx, ebx
shl edx, cl
xor esi, eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa8], esi
dec edx
and edx, esi
cmp edx, dword [ebp + eax*4 - 0x84]
je 0x593e83
sub ebx, dword [ebp - 0x88]
mov edx, 1
mov ecx, ebx
shl edx, cl
dec eax
dec edx
and edx, esi
cmp edx, dword [ebp + eax*4 - 0x84]
jne 0x593e61
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x98], 0
mov edx, dword [ebp - 0x90]
mov esi, dword [ebp - 0x88]
jne 0x593bf0
mov ecx, dword [ebp - 0xac]
add dword [ebp - 0xa4], 4
inc edx
mov dword [ebp - 0x90], edx
cmp edx, ecx
jle 0x593bb4
xor eax, eax
cmp dword [ebp - 0xd0], eax
je 0x593ecc
cmp ecx, 1
je 0x593ecc
mov eax, 0xfffffffb
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00596083
mov esp, ebp
pop ebp
ret