Function at 0x5a3970
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1e2476
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x48
push esi
push edi
push 0
push 0x1ff4b8
mov ecx, 0x212b94
mov dword [ebp - 4], 2
call fcn.005ff020
xor esi, esi
nop dword [eax + eax]
push 0
push 0x14e57
call fcn.005a2120
mov cl, byte [esi + 0x1f73c0]
add esp, 8
mov edx, dword [0x212ba4]
xor cl, al
mov edi, dword [0x212ba8]
mov byte [ebp - 0x18], cl
cmp edx, edi
jae 0x5a39bb
lea eax, [edx + 1]
cmp edi, 0x10
mov dword [0x212ba4], eax
mov eax, 0x212b94
cmovae eax, dword [0x212b94]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x5a39d1
push dword [ebp - 0x18]
mov byte [ebp - 0x14], 0
mov ecx, 0x212b94
push dword [ebp - 0x14]
push 1
call fcn.0059ccf0
inc esi
cmp esi, 0x10ce
jb 0x5a3970
mov dword [ebp - 0x18], 0x1001a02
xor ecx, ecx
lea eax, [ecx + 0xf]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 2
jb 0x5a39e3
xorps xmm0, xmm0
mov byte [ebp - 0x15], 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x40], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5a3a10
sub ecx, edx
lea eax, [ebp - 0x18]
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.0059cc10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x13]
xorps xmm0, xmm0
mov word [ebp - 0x13], 0xa
mov byte [ebp - 0x11], 0
lea edx, [ecx + 1]
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5a3a50
sub ecx, edx
lea eax, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.0059cc10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3c]
cmp dword [ebp - 0x28], 0x10
mov edi, 0x212b94
mov edx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x2c]
cmovae ecx, edx
cmp dword [0x212ba8], 0x10
mov eax, dword [0x212ba4]
cmovae edi, dword [0x212b94]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], edi
cmp esi, eax
ja 0x5a3b77
sub eax, esi
test esi, esi
jne 0x5a3aad
xor edi, edi
jmp 0x5a3b59
movsx ecx, byte [ecx]
inc eax
add eax, edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], eax
sub eax, edi
push eax
push ecx
push edi
call fcn.00679bd0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x5a3b74
mov edx, dword [ebp - 0x18]
mov ecx, edi
sub esi, 4
jb 0x5a3af1
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x5a3af6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x5a3ae0
cmp esi, 0xfffffffc
je 0x5a3b2a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x5a3b23
cmp esi, 0xfffffffd
je 0x5a3b2a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x5a3b23
cmp esi, 0xfffffffe
je 0x5a3b2a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x5a3b23
cmp esi, 0xffffffff
je 0x5a3b2a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x5a3b2a
sbb eax, eax
or eax, 1
jmp 0x5a3b2c
xor eax, eax
test eax, eax
je 0x5a3b4e
mov eax, dword [ebp - 0x14]
inc edi
sub eax, edi
push eax
push dword [ebp - 0x1c]
push edi
call fcn.00679bd0
mov esi, dword [ebp - 0x2c]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x5a3ad0
jmp 0x5a3b74
sub edi, dword [ebp - 0x24]
cmp edi, 0xffffffff
je 0x5a3b74
mov esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x40], 0x10
lea eax, [ebp - 0x54]
push dword [ebp - 0x44]
cmovae eax, dword [ebp - 0x54]
mov ecx, 0x212b94
push eax
push esi
push edi
call fcn.00601b90
mov edx, dword [ebp - 0x3c]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x28]
cmp eax, 0x10
jb 0x5a3bae
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x5a3ba4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a42fc
push ecx
push edx
call fcn.00676402
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x5a3be6
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x5a3bdc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a42fc
push ecx
push edx
call fcn.00676402
add esp, 8
mov dword [ebp - 0x18], 0x1001a02
xor ecx, ecx
nop
lea eax, [ecx + 0xf]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 2
jb 0x5a3bf0
lea eax, [ebp - 0x18]
mov byte [ebp - 0x15], 0
push eax
mov ecx, 0x212b94
call fcn.005ff150
mov edx, dword [ebx + 0x18]
mov eax, 0x6c
test edx, edx
je 0x5a3de4
sub eax, edx
xor edi, edi
mov esi, eax
and eax, 1
shr esi, 1
add eax, esi
je 0x5a3c70
nop
mov dword [ebp - 0x24], 0x9184ed
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx + 0xf]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x5a3c40
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0x212b94
call fcn.005ff150
mov edx, dword [ebx + 0x18]
inc edi
mov eax, edx
neg eax
and eax, 1
add eax, esi
cmp edi, eax
jb 0x5a3c30
lea ecx, [ebp - 0x13]
mov word [ebp - 0x17], 0x20
mov byte [ebp - 0x15], 0
lea edi, [ecx + 1]
mov word [ebp - 0x13], 0x20
mov byte [ebp - 0x11], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5a3c90
mov eax, 0x7fffffff
sub ecx, edi
sub eax, edx
cmp eax, ecx
jb 0x5a42de
cmp dword [ebx + 0x1c], 0x10
lea eax, [ebx + 8]
push edx
cmovae eax, dword [ebx + 8]
push eax
push ecx
lea eax, [ebp - 0x13]
push eax
push ecx
push dword [ebp - 0x23]
lea ecx, [ebp - 0x3c]
call fcn.00606cf0
lea eax, [ebp - 0x17]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x3c]
call fcn.005ff150
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x54], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x44], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 6
push eax
mov ecx, 0x212b94
call fcn.005ff1c0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x5a3d42
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x5a3d38
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a42e3
push ecx
push edx
call fcn.00676402
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x5a3d7a
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x5a3d70
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a42e3
push ecx
push edx
call fcn.00676402
add esp, 8
test esi, esi
je 0x5a3db4
nop
mov dword [ebp - 0x24], 0x9184ed
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx + 0xf]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x5a3d90
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0x212b94
call fcn.005ff150
sub esi, 1
jne 0x5a3d80
mov dword [ebp - 0x18], 0x1001a02
xor ecx, ecx
nop dword [eax]
lea eax, [ecx + 0xf]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 2
jb 0x5a3dc0
lea eax, [ebp - 0x18]
mov byte [ebp - 0x15], 0
push eax
mov ecx, 0x212b94
call fcn.005ff150
mov eax, 0x6c
mov edx, dword [ebx + 0x30]
test edx, edx
je 0x5a3faf
sub eax, edx
xor edi, edi
mov esi, eax
and eax, 1
shr esi, 1
add eax, esi
je 0x5a3e40
nop
mov dword [ebp - 0x24], 0x9184ed
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx + 0xf]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x5a3e10
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0x212b94
call fcn.005ff150
mov edx, dword [ebx + 0x30]
inc edi
mov eax, edx
neg eax
and eax, 1
add eax, esi
cmp edi, eax
jb 0x5a3e00
lea ecx, [ebp - 0x13]
mov word [ebp - 0x17], 0x20
mov byte [ebp - 0x15], 0
lea edi, [ecx + 1]
mov word [ebp - 0x13], 0x20
mov byte [ebp - 0x11], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5a3e60
mov eax, 0x7fffffff
sub ecx, edi
sub eax, edx
cmp eax, ecx
jb 0x5a42e8
cmp dword [ebx + 0x34], 0x10
lea eax, [ebx + 0x20]
push edx
cmovae eax, dword [ebx + 0x20]
push eax
push ecx
lea eax, [ebp - 0x13]
push eax
push ecx
push dword [ebp - 0x23]
lea ecx, [ebp - 0x3c]
call fcn.00606cf0
lea eax, [ebp - 0x17]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x3c]
call fcn.005ff150
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x54], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x44], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 8
push eax
mov ecx, 0x212b94
call fcn.005ff1c0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x5a3f12
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x5a3f08
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a42ed
push ecx
push edx
call fcn.00676402
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x5a3f4a
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x5a3f40
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a42ed
push ecx
push edx
call fcn.00676402
add esp, 8
test esi, esi
je 0x5a3f84
nop
mov dword [ebp - 0x24], 0x9184ed
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx + 0xf]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x5a3f60
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0x212b94
call fcn.005ff150
sub esi, 1
jne 0x5a3f50
mov dword [ebp - 0x18], 0x1001a02
xor ecx, ecx
nop dword [eax]
lea eax, [ecx + 0xf]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 2
jb 0x5a3f90
lea eax, [ebp - 0x18]
mov byte [ebp - 0x15], 0
push eax
mov ecx, 0x212b94
call fcn.005ff150
mov edx, dword [ebx + 0x48]
test edx, edx
je 0x5a417f
mov eax, 0x6c
xor edi, edi
sub eax, edx
mov esi, eax
and eax, 1
shr esi, 1
add eax, esi
je 0x5a4010
nop
mov dword [ebp - 0x24], 0x9184ed
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx + 0xf]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x5a3fe0
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0x212b94
call fcn.005ff150
mov edx, dword [ebx + 0x48]
inc edi
mov eax, edx
neg eax
and eax, 1
add eax, esi
cmp edi, eax
jb 0x5a3fd0
lea ecx, [ebp - 0x13]
mov word [ebp - 0x17], 0x20
mov byte [ebp - 0x15], 0
lea edi, [ecx + 1]
mov word [ebp - 0x13], 0x20
mov byte [ebp - 0x11], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5a4030
mov eax, 0x7fffffff
sub ecx, edi
sub eax, edx
cmp eax, ecx
jb 0x5a42f2
cmp dword [ebx + 0x4c], 0x10
lea eax, [ebx + 0x38]
push edx
cmovae eax, dword [ebx + 0x38]
push eax
push ecx
lea eax, [ebp - 0x13]
push eax
push ecx
push dword [ebp - 0x23]
lea ecx, [ebp - 0x3c]
call fcn.00606cf0
lea eax, [ebp - 0x17]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x3c]
call fcn.005ff150
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x54], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x44], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 0xa
push eax
mov ecx, 0x212b94
call fcn.005ff1c0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x5a40e2
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x5a40d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a42f7
push ecx
push edx
call fcn.00676402
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x5a411a
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x5a4110
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a42f7
push ecx
push edx
call fcn.00676402
add esp, 8
test esi, esi
je 0x5a4154
nop
mov dword [ebp - 0x24], 0x9184ed
xor ecx, ecx
mov byte [ebp - 0x20], 1
nop dword [eax]
lea eax, [ecx + 0xf]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, 3
jb 0x5a4130
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push eax
mov ecx, 0x212b94
call fcn.005ff150
sub esi, 1
jne 0x5a4120
mov dword [ebp - 0x18], 0x1001a02
xor ecx, ecx
nop dword [eax]
lea eax, [ecx + 0xf]
xor byte [ebp + ecx - 0x18], al
inc ecx
cmp ecx, 2
jb 0x5a4160
lea eax, [ebp - 0x18]
mov byte [ebp - 0x15], 0
push eax
mov ecx, 0x212b94
call fcn.005ff150
xor esi, esi
push 0
push 0x14e57
call fcn.005a2120
mov cl, byte [esi + 0x1f8490]
add esp, 8
mov edx, dword [0x212ba4]
xor cl, al
mov edi, dword [0x212ba8]
mov byte [ebp - 0x24], cl
cmp edx, edi
jae 0x5a41cc
lea eax, [edx + 1]
cmp edi, 0x10
mov dword [0x212ba4], eax
mov eax, 0x212b94
cmovae eax, dword [0x212b94]
mov byte [eax + edx], cl
mov byte [eax + edx + 1], 0
jmp 0x5a41e2
push dword [ebp - 0x24]
mov byte [ebp - 0x1c], 0
mov ecx, 0x212b94
push dword [ebp - 0x1c]
push 1
call fcn.0059ccf0
inc esi
cmp esi, 0x14a
jb 0x5a4181
mov dword [ebp - 0x18], 0x1001a02
xor edx, edx
lea eax, [edx + 0xf]
xor byte [ebp + edx - 0x18], al
inc edx
cmp edx, 2
jb 0x5a41f4
lea eax, [ebp - 0x18]
mov byte [ebp - 0x15], 0
push eax
mov ecx, 0x212b94
call fcn.005ff150
mov ecx, dword [ebx + 0x1c]
cmp ecx, 0x10
jb 0x5a4247
mov edx, dword [ebx + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x5a423d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a42fc
push ecx
push edx
call fcn.00676402
add esp, 8
mov ecx, dword [ebx + 0x34]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0xf
mov byte [ebx + 8], 0
cmp ecx, 0x10
jb 0x5a4289
mov edx, dword [ebx + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x5a427f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a42fc
push ecx
push edx
call fcn.00676402
add esp, 8
mov ecx, dword [ebx + 0x4c]
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0xf
mov byte [ebx + 0x20], 0
cmp ecx, 0x10
jb 0x5a42cb
mov edx, dword [ebx + 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x5a42c1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a42fc
push ecx
push edx
call fcn.00676402
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0059c440
call fcn.0067b6a0
call fcn.0059c440
call fcn.0067b6a0
call fcn.0059c440
call fcn.0067b6a0
call fcn.0067b6a0
int3