Function at 0x59fa70
Capabilities:
Encode data using xor

Disassembly:
mov eax, pe_nt_image_headers32
call fcn.005bc520
mov eax, dword [0x68a300]
xor eax, esp
mov dword [esp + 0x11c], eax
test dword [0x699000], 0x800000
mov ecx, dword [esp + 0x128]
push ebp
mov ebp, dword [esp + 0x128]
mov dword [esp + 0x54], ebp
jne 0x5a01d1
push ebx
lea eax, [esp + 0x64]
sub eax, ebp
lea ebx, [ecx + 0x3f]
push esi
mov dword [esp + 0x58], eax
mov esi, ecx
push edi
lea eax, [esp + 0x6c]
mov dword [esp + 0x48], ebx
sub esi, eax
mov edi, 0xffffffc1
mov eax, dword [esp + 0x13c]
sub edi, ebp
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x58], eax
lea eax, [esp + 0xac]
xor edx, edx
cmp eax, ebx
ja 0x59fafc
lea eax, [ebx - 0x3f]
lea ecx, [esp + 0xeb]
cmp ecx, eax
jae 0x59fb42
lea eax, [esp + 0xac]
lea ecx, [ebp + 0x3f]
cmp eax, ecx
ja 0x59fb15
lea eax, [esp + 0xeb]
cmp eax, ebp
jae 0x59fb42
lea eax, [esp + 0x6c]
cmp eax, ebx
ja 0x59fb2f
lea edi, [esp + 0xab]
lea eax, [ebx - 0x3f]
cmp edi, eax
mov edi, dword [esp + 0x4c]
jae 0x59fb42
lea eax, [esp + 0x6c]
cmp eax, ecx
ja 0x59fb73
lea eax, [esp + 0xab]
cmp eax, ebp
jb 0x59fb73
mov esi, ebp
lea eax, [esp + 0xac]
sub esi, eax
lea ecx, [ecx]
lea eax, [esp + 0xac]
add eax, edx
mov cl, byte [eax + esi]
mov byte [eax], cl
add eax, esi
add eax, edi
mov al, byte [eax + ebx]
xor al, cl
mov byte [esp + edx + 0x6c], al
inc edx
cmp edx, 0x40
jl 0x59fb50
jmp 0x59fbb2
mov ecx, ebp
lea eax, [esp + 0x6c]
sub ecx, eax
jmp 0x59fb80
lea eax, [esp + 0x6c]
add eax, edx
movdqu xmm0, xmmword [eax + ecx]
movdqu xmm1, xmmword [esi + eax]
movdqu xmmword [esp + edx + 0xac], xmm0
movdqu xmm0, xmmword [esp + edx + 0xac]
add edx, 0x10
pxor xmm1, xmm0
movdqu xmmword [eax], xmm1
cmp edx, 0x40
jl 0x59fb80
mov eax, 0x650588
mov dword [esp + 0x54], eax
jmp 0x59fbc0
xor esi, esi
mov dword [esp + 0x1c], esi
test esi, esi
je 0x59fbdd
xorps xmm0, xmm0
movlpd qword [esp + 0x64], xmm0
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
jmp 0x59fbe2
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea eax, [esi*8]
mov dword [esp + 0x44], eax
lea ebp, [esp + 0xec]
add eax, ebp
mov dword [esp + 0x2c], eax
mov dword [eax], ecx
lea ecx, [esi - 1]
and ecx, 7
mov dword [eax + 4], edx
movzx ecx, byte [esp + ecx*8 + 0xad]
mov eax, dword [ecx*8 + 0x64fd88]
mov dword [esp + 0x38], eax
mov eax, dword [ecx*8 + 0x64fd8c]
lea ecx, [esi - 2]
and ecx, 7
mov dword [esp + 0x40], eax
movzx ecx, byte [esp + ecx*8 + 0xae]
mov eax, dword [ecx*8 + 0x64fd88]
mov dword [esp + 0x30], eax
mov eax, dword [ecx*8 + 0x64fd8c]
lea ecx, [esi - 3]
and ecx, 7
mov dword [esp + 0x24], eax
movzx ecx, byte [esp + ecx*8 + 0xaf]
mov eax, dword [ecx*8 + 0x64fd88]
mov dword [esp + 0x34], eax
mov eax, dword [ecx*8 + 0x64fd8c]
lea ecx, [esi - 4]
and ecx, 7
mov dword [esp + 0x28], eax
movzx ecx, byte [esp + ecx*8 + 0xb0]
mov edx, dword [ecx*8 + 0x64fd88]
mov ebp, dword [ecx*8 + 0x64fd8c]
lea ecx, [esi + 3]
and ecx, 7
mov dword [esp + 0x3c], edx
movzx ecx, byte [esp + ecx*8 + 0xb1]
mov ebx, dword [ecx*8 + 0x64fd88]
mov edi, dword [ecx*8 + 0x64fd8c]
lea ecx, [esi + 2]
and ecx, 7
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x40]
movzx ecx, byte [esp + ecx*8 + 0xb2]
mov esi, dword [ecx*8 + 0x64fd88]
mov edx, dword [ecx*8 + 0x64fd8c]
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x1c], ecx
and ecx, 7
movzx ecx, byte [esp + ecx*8 + 0xb3]
mov eax, dword [ecx*8 + 0x64fd88]
mov ecx, dword [ecx*8 + 0x64fd8c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x38]
shrd ecx, ebx, 8
xor ecx, dword [esp + 0x30]
shr ebx, 8
xor ebx, dword [esp + 0x24]
shrd ecx, ebx, 8
xor ecx, dword [esp + 0x34]
shr ebx, 8
xor ebx, dword [esp + 0x28]
shrd ecx, ebx, 8
mov dword [esp + 0x14], ebx
shr dword [esp + 0x14], 8
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
xor ebx, ebp
mov ecx, dword [esp + 0x3c]
xor dword [esp + 0x10], ecx
shrd dword [esp + 0x10], ebx, 8
shr ebx, 8
mov dword [esp + 0x14], ebx
mov ecx, ebx
mov ebx, dword [esp + 0x20]
xor ecx, edi
xor dword [esp + 0x10], ebx
shrd dword [esp + 0x10], ecx, 8
shr ecx, 8
xor dword [esp + 0x10], esi
xor ecx, edx
shrd dword [esp + 0x10], ecx, 8
xor dword [esp + 0x10], eax
shr ecx, 8
xor ecx, dword [esp + 0x18]
shld dword [esp + 0x18], eax, 8
shrd dword [esp + 0x10], ecx, 8
shl eax, 8
xor eax, esi
shr ecx, 8
mov esi, dword [esp + 0x18]
xor esi, edx
mov dword [esp + 0x20], eax
mov edx, eax
mov dword [esp + 0x14], ecx
shld esi, edx, 8
mov eax, dword [esp + 0x10]
shl edx, 8
xor esi, edi
xor edx, ebx
shld esi, edx, 8
shl edx, 8
xor esi, ebp
xor edx, dword [esp + 0x3c]
shld esi, edx, 8
xor esi, dword [esp + 0x28]
shl edx, 8
xor edx, dword [esp + 0x34]
shld esi, edx, 8
xor esi, dword [esp + 0x24]
shl edx, 8
xor edx, dword [esp + 0x30]
shld esi, edx, 8
xor esi, dword [esp + 0x40]
shl edx, 8
xor edx, dword [esp + 0x38]
shld esi, edx, 8
shl edx, 8
xor eax, edx
mov edx, ecx
mov ecx, dword [esp + 0x44]
xor edx, esi
mov esi, dword [esp + 0x1c]
movzx ecx, byte [esp + ecx + 0xac]
xor eax, dword [ecx*8 + 0x64fd88]
xor edx, dword [ecx*8 + 0x64fd8c]
mov ecx, dword [esp + 0x2c]
xor dword [ecx], eax
xor dword [ecx + 4], edx
mov eax, dword [esp + 0x54]
cmp esi, 8
jl 0x59fbc6
movdqu xmm0, xmmword [esp + 0xec]
mov esi, 2
mov dword [esp + 0x44], 0
mov dword [esp + 0x1c], esi
movdqu xmmword [esp + 0xac], xmm0
mov dword [esp + 0x20], 8
movdqu xmm0, xmmword [esp + 0xfc]
movdqu xmmword [esp + 0xbc], xmm0
movdqu xmm0, xmmword [esp + 0x10c]
movdqu xmmword [esp + 0xcc], xmm0
movdqu xmm0, xmmword [esp + 0x11c]
movdqu xmmword [esp + 0xdc], xmm0
lea ebx, [ebx]
lea ecx, [esi - 3]
and ecx, 7
movzx ecx, byte [esp + ecx*8 + 0x6d]
mov eax, dword [ecx*8 + 0x64fd88]
mov dword [esp + 0x34], eax
mov eax, dword [ecx*8 + 0x64fd8c]
lea ecx, [esi - 4]
and ecx, 7
mov dword [esp + 0x3c], eax
movzx ecx, byte [esp + ecx*8 + 0x6e]
mov eax, dword [ecx*8 + 0x64fd88]
mov dword [esp + 0x30], eax
mov eax, dword [ecx*8 + 0x64fd8c]
lea ecx, [esi + 3]
and ecx, 7
mov dword [esp + 0x28], eax
movzx ecx, byte [esp + ecx*8 + 0x6f]
mov eax, dword [ecx*8 + 0x64fd88]
mov dword [esp + 0x38], eax
mov eax, dword [ecx*8 + 0x64fd8c]
lea ecx, [esi + 2]
and ecx, 7
mov dword [esp + 0x24], eax
lea eax, [esi + 1]
mov dword [esp + 0x64], eax
and eax, 7
movzx ecx, byte [esp + ecx*8 + 0x70]
mov edx, dword [ecx*8 + 0x64fd88]
mov ebp, dword [ecx*8 + 0x64fd8c]
movzx ecx, byte [esp + eax*8 + 0x71]
mov dword [esp + 0x40], edx
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x3c]
mov ebx, dword [ecx*8 + 0x64fd88]
mov edi, dword [ecx*8 + 0x64fd8c]
mov ecx, esi
and ecx, 7
movzx ecx, byte [esp + ecx*8 + 0x72]
mov esi, dword [ecx*8 + 0x64fd88]
mov edx, dword [ecx*8 + 0x64fd8c]
mov ecx, dword [esp + 0x1c]
dec ecx
and ecx, 7
movzx ecx, byte [esp + ecx*8 + 0x73]
mov eax, dword [ecx*8 + 0x64fd88]
mov ecx, dword [ecx*8 + 0x64fd8c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
shrd ecx, ebp, 8
xor ecx, dword [esp + 0x30]
shr ebp, 8
xor ebp, dword [esp + 0x28]
shrd ecx, ebp, 8
xor ecx, dword [esp + 0x38]
shr ebp, 8
xor ebp, dword [esp + 0x24]
shrd ecx, ebp, 8
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x40]
xor dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
shr dword [esp + 0x14], 8
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x2c]
xor ecx, ebp
shrd dword [esp + 0x10], ecx, 8
xor dword [esp + 0x10], ebx
shr ecx, 8
xor ecx, edi
shrd dword [esp + 0x10], ecx, 8
xor dword [esp + 0x10], esi
shr ecx, 8
xor ecx, edx
shrd dword [esp + 0x10], ecx, 8
xor dword [esp + 0x10], eax
shr ecx, 8
xor ecx, dword [esp + 0x18]
shrd dword [esp + 0x10], ecx, 8
shr ecx, 8
shld dword [esp + 0x18], eax, 8
mov dword [esp + 0x14], ecx
shl eax, 8
xor eax, esi
mov esi, dword [esp + 0x18]
xor esi, edx
mov dword [esp + 0x2c], eax
mov edx, eax
mov eax, dword [esp + 0x10]
shld esi, edx, 8
shl edx, 8
xor esi, edi
xor edx, ebx
mov ebx, dword [esp + 0x44]
shld esi, edx, 8
shl edx, 8
xor esi, ebp
xor edx, dword [esp + 0x40]
shld esi, edx, 8
xor esi, dword [esp + 0x24]
shl edx, 8
xor edx, dword [esp + 0x38]
shld esi, edx, 8
xor esi, dword [esp + 0x28]
shl edx, 8
xor edx, dword [esp + 0x30]
shld esi, edx, 8
xor esi, dword [esp + 0x3c]
shl edx, 8
xor edx, dword [esp + 0x34]
shld esi, edx, 8
shl edx, 8
xor eax, edx
mov edx, ecx
movzx ecx, byte [esp + ebx + 0x6c]
xor edx, esi
mov esi, dword [esp + 0x64]
mov dword [esp + 0x1c], esi
xor eax, dword [ecx*8 + 0x64fd88]
xor edx, dword [ecx*8 + 0x64fd8c]
xor dword [esp + ebx + 0xec], eax
xor dword [esp + ebx + 0xf0], edx
add ebx, 8
dec dword [esp + 0x20]
mov dword [esp + 0x44], ebx
jne 0x59fe80
movdqu xmm0, xmmword [esp + 0xec]
mov eax, dword [esp + 0x54]
add eax, 8
mov dword [esp + 0x54], eax
movdqu xmmword [esp + 0x6c], xmm0
movdqu xmm0, xmmword [esp + 0xfc]
movdqu xmmword [esp + 0x7c], xmm0
movdqu xmm0, xmmword [esp + 0x10c]
movdqu xmmword [esp + 0x8c], xmm0
movdqu xmm0, xmmword [esp + 0x11c]
movdqu xmmword [esp + 0x9c], xmm0
cmp eax, 0x6505d8
jl 0x59fbc0
mov ebp, dword [esp + 0x60]
lea eax, [esp + 0xab]
xor edx, edx
lea ecx, [ebp + 0x3f]
cmp ebp, eax
ja 0x5a00fc
lea eax, [esp + 0x6c]
cmp ecx, eax
jae 0x5a010b
mov ebx, dword [esp + 0x48]
cmp ebp, ebx
ja 0x5a013e
lea eax, [ebx - 0x3f]
cmp ecx, eax
jb 0x5a013e
mov edi, dword [esp + 0x50]
mov edx, ebp
mov ebx, dword [esp + 0x5c]
mov esi, 0x40
lea ebx, [ebx]
lea eax, [edx + ebx]
mov cl, byte [edi + eax]
lea edx, [edx + 1]
xor cl, byte [edx - 1]
xor cl, byte [eax]
mov byte [edx - 1], cl
dec esi
jne 0x5a0120
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
jmp 0x5a019c
mov edi, dword [esp + 0x4c]
lea esi, [esp + 0x7c]
mov ecx, ebp
sub esi, ebp
mov ebp, dword [esp + 0x5c]
mov edi, edi
movdqu xmm0, xmmword [ecx]
lea eax, [ecx + edi]
movdqu xmm1, xmmword [eax + ebx]
lea ecx, [ecx + 0x20]
pxor xmm1, xmm0
movdqu xmm0, xmmword [ecx + ebp - 0x20]
pxor xmm1, xmm0
movdqu xmmword [ecx - 0x20], xmm1
movdqu xmm0, xmmword [ecx - 0x10]
movdqu xmm1, xmmword [edx + ebx - 0x2f]
add edx, 0x20
pxor xmm1, xmm0
movdqu xmm0, xmmword [esi + ecx - 0x20]
pxor xmm1, xmm0
movdqu xmmword [ecx - 0x10], xmm1
cmp edx, 0x40
jl 0x5a0150
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x50]
add ebx, 0x40
add esi, 0x40
mov dword [esp + 0x48], ebx
dec dword [esp + 0x58]
mov dword [esp + 0x50], esi
jne 0x59fae1
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.005ba7b4
add esp, 0x120
ret
push dword [esp + 0x130]
push ecx
push ebp
call fcn.0041de00
mov ecx, dword [esp + 0x12c]
add esp, 0xc
pop ebp
xor ecx, esp
call fcn.005ba7b4
add esp, 0x120
ret