Function at 0x6787b0a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6793873d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x67ad7034]
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 edi, ecx
mov eax, dword [edi + 0x2c]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x28], 0x78563412
test eax, eax
je 0x6787b34b
cmp eax, 1
je 0x6787b34b
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov byte [ebp - 0x1d], 0
test esi, esi
ja 0x6787b12f
jb 0x6787b128
cmp ebx, 0x7e
jae 0x6787b12f
mov ecx, 2
jmp 0x6787b145
mov ecx, 4
test esi, esi
jne 0x6787b140
cmp ebx, 0x10000
jb 0x6787b145
mov ecx, 0xa
lea eax, [ebp - 0x1d]
mov edx, 4
push eax
xor eax, eax
cmp byte [edi + 0x30], al
cmovne eax, edx
add eax, ecx
lea ecx, [ebp - 0x1c]
push eax
call fcn.6787b680
mov eax, dword [ebp - 0x1c]
mov cl, byte [ebp + 8]
mov edx, dword [ebp + 0x10]
or cl, 0x80
mov byte [eax], cl
mov cl, byte [edi + 0x30]
mov byte [ebp - 0x1d], cl
test edx, edx
ja 0x6787b1ba
jb 0x6787b180
cmp ebx, 0x7e
jae 0x6787b1ba
mov eax, dword [ebp - 0x1c]
neg cl
sbb cl, cl
and cl, 0x80
or cl, bl
mov byte [eax + 1], cl
cmp byte [edi + 0x30], 0
je 0x6787b2af
mov eax, dword [ebp - 0x1c]
mov byte [eax + 2], 0x12
mov eax, dword [ebp - 0x1c]
mov byte [eax + 3], 0x34
mov eax, dword [ebp - 0x1c]
mov byte [eax + 4], 0x56
mov eax, dword [ebp - 0x1c]
mov byte [eax + 5], 0x78
jmp 0x6787b2af
mov ecx, ebx
mov eax, edx
shrd ecx, eax, 8
mov dword [ebp - 0x24], ecx
test edx, edx
ja 0x6787b224
jb 0x6787b1d3
cmp ebx, 0x10000
jae 0x6787b224
cmp byte [ebp - 0x1d], 0
mov eax, 0xfe
mov ecx, 0x7e
cmovne ecx, eax
mov eax, dword [ebp - 0x1c]
mov byte [eax + 1], cl
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov byte [eax + 2], cl
mov eax, dword [ebp - 0x1c]
mov byte [eax + 3], bl
cmp byte [edi + 0x30], 0
je 0x6787b2af
mov eax, dword [ebp - 0x1c]
mov byte [eax + 4], 0x12
mov eax, dword [ebp - 0x1c]
mov byte [eax + 5], 0x34
mov eax, dword [ebp - 0x1c]
mov byte [eax + 6], 0x56
mov eax, dword [ebp - 0x1c]
mov byte [eax + 7], 0x78
jmp 0x6787b2af
cmp byte [ebp - 0x1d], 0
mov eax, 0xff
mov ecx, 0x7f
cmovne ecx, eax
mov eax, dword [ebp - 0x1c]
mov byte [eax + 1], cl
mov ecx, edx
mov eax, dword [ebp - 0x1c]
shr ecx, 0x18
mov byte [eax + 2], cl
mov ecx, edx
mov eax, dword [ebp - 0x1c]
shr ecx, 0x10
mov byte [eax + 3], cl
mov ecx, edx
mov eax, dword [ebp - 0x1c]
shr ecx, 8
mov byte [eax + 4], cl
mov ecx, ebx
mov eax, dword [ebp - 0x1c]
mov byte [eax + 5], dl
mov eax, edx
shrd ecx, eax, 0x18
mov eax, dword [ebp - 0x1c]
mov byte [eax + 6], cl
mov ecx, ebx
mov eax, edx
shrd ecx, eax, 0x10
mov eax, dword [ebp - 0x1c]
mov byte [eax + 7], cl
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov byte [eax + 8], cl
mov eax, dword [ebp - 0x1c]
mov byte [eax + 9], bl
cmp byte [edi + 0x30], 0
je 0x6787b2af
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0xa], 0x12
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0xb], 0x34
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0xc], 0x56
mov eax, dword [ebp - 0x1c]
mov byte [eax + 0xd], 0x78
lea esi, [edi + 0x10]
mov dword [ebp - 0x24], esi
mov ecx, esi
push dword [ebp - 0x24]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [edi + 0x14]
call fcn.6787b790
push dword [ebp - 0x24]
mov ecx, esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [edi + 0x14]
call fcn.6787b790
cmp byte [edi + 0x30], 0
je 0x6787b315
mov eax, esi
xor edx, edx
mov esi, dword [ebp + 0x10]
mov edi, dword [eax + 4]
sub edi, ebx
sub edi, dword [eax]
test ebx, ebx
jne 0x6787b2f7
test esi, esi
je 0x6787b315
mov ecx, dword [eax]
mov eax, edx
and eax, 3
add ecx, edx
inc edx
mov al, byte [ebp + eax - 0x28]
xor byte [ecx + edi], al
xor ecx, ecx
mov eax, dword [ebp - 0x24]
cmp edx, ebx
jne 0x6787b2f7
cmp ecx, esi
jne 0x6787b2f7
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x6787b34b
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x6787b341
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x6787b341
call dword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.67934867
add esp, 8
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 fcn.679343f5
mov esp, ebp
pop ebp
ret 0x14