Function at 0x766680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7c1d10
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x88], 0
mov dword [ebp - 0xdc], eax
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov dword [ebp - 0x90], ecx
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x88], 1
cmp byte [ecx + 0xc], al
je 0x766d2a
mov eax, dword [ecx + 4]
test eax, eax
je 0x766d2a
push dword [eax]
lea eax, [ebp - 0x3e]
push eax
call fcn.00413b90
mov ecx, eax
mov dword [ebp - 0xc8], 0
xor eax, eax
mov dword [ebp - 0xc4], 7
mov word [ebp - 0xd8], ax
add esp, 8
lea eax, [ebp - 0x3e]
cmp ecx, eax
je 0x76674b
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0xd8]
call fcn.004044f0
mov dword [ebp - 0x88], 7
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.00413b90
mov ecx, eax
mov dword [ebp - 0x98], 0
xor eax, eax
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
add esp, 8
lea eax, [ebp - 0x12]
cmp ecx, eax
je 0x7667a6
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0xa8]
call fcn.004044f0
mov dword [ebp - 0x88], 0x1f
push 0x7d5790
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.00408060
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.00413490
mov esi, eax
add esp, 0x18
cmp edi, esi
je 0x766817
mov ecx, edi
call fcn.00404490
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [edi], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0xe0]
cmp edx, 8
jb 0x766859
mov ecx, dword [ebp - 0xf4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x76684f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x76684f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0076d313
add esp, 8
mov edx, dword [ebp - 0xac]
xor eax, eax
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 7
mov word [ebp - 0xf4], ax
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x7668bc
mov ecx, dword [ebp - 0xc0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x7668b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x7668b2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0076d313
add esp, 8
mov edx, dword [ebp - 0x94]
xor eax, eax
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 7
mov word [ebp - 0xc0], ax
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x76691f
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x766915
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x766915
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0076d313
add esp, 8
mov edx, dword [ebp - 0xc4]
xor eax, eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
mov byte [ebp - 4], al
cmp edx, 8
jb 0x766981
mov ecx, dword [ebp - 0xd8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x766977
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x766977
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0076d313
add esp, 8
mov eax, dword [ebp - 0x90]
push dword [eax]
lea eax, [ebp - 0x54]
push eax
call fcn.0041dbf0
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 4], 4
push eax
call fcn.004057b0
mov esi, eax
push dword [ebp - 0xdc]
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
push eax
call fcn.0041dbf0
push eax
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 6
push eax
call fcn.004057b0
push eax
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 7
push 0x7d5790
push eax
call fcn.00413810
push 0x7d5790
push eax
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], 8
push eax
call fcn.00408060
push esi
push eax
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 9
push eax
call fcn.00413490
add esp, 0x44
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov byte [ebp - 4], 0xa
jb 0x766a1c
mov eax, dword [eax]
push ecx
push eax
mov ecx, edi
call fcn.00407c50
mov edx, dword [ebp - 0xac]
mov byte [ebp - 4], 9
cmp edx, 8
jb 0x766a6b
mov ecx, dword [ebp - 0xc0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x766a61
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x766a61
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0076d313
add esp, 8
mov edx, dword [ebp - 0xe0]
xor eax, eax
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 7
mov word [ebp - 0xc0], ax
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x766ace
mov ecx, dword [ebp - 0xf4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x766ac4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x766ac4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0076d313
add esp, 8
mov edx, dword [ebp - 0xc4]
xor eax, eax
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 7
mov word [ebp - 0xf4], ax
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x766b31
mov ecx, dword [ebp - 0xd8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x766b27
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x766b27
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0076d313
add esp, 8
mov edx, dword [ebp - 0x94]
xor eax, eax
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 7
mov word [ebp - 0xd8], ax
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x766b94
mov ecx, dword [ebp - 0xa8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x766b8a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x766b8a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0076d313
add esp, 8
xor eax, eax
mov dword [ebp - 0x98], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
call fcn.00406b00
mov edx, dword [ebp - 0xf8]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x766bff
mov ecx, dword [ebp - 0x10c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x766bf5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x766bf5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0076d313
add esp, 8
xor eax, eax
mov dword [ebp - 0xfc], 0
lea ecx, [ebp - 0x54]
mov dword [ebp - 0xf8], 7
mov word [ebp - 0x10c], ax
mov byte [ebp - 4], al
call fcn.00406b00
mov ecx, dword [ebp - 0x90]
mov eax, dword [ecx + 4]
lea ecx, [ebp - 0xc0]
add eax, 8
push eax
call fcn.00404120
mov dword [ebp - 0x88], 0x3f
lea eax, [ebp - 0xc0]
mov dword [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x10c]
push 0x7d5790
push eax
call fcn.00413810
add esp, 0xc
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov byte [ebp - 4], 0xc
jb 0x766c7a
mov eax, dword [eax]
push ecx
push eax
mov ecx, edi
call fcn.00407c50
mov edx, dword [ebp - 0xf8]
cmp edx, 8
jb 0x766cc5
mov ecx, dword [ebp - 0x10c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x766cbb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x766cbb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0076d313
add esp, 8
mov edx, dword [ebp - 0xac]
xor eax, eax
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf8], 7
mov word [ebp - 0x10c], ax
cmp edx, 8
jb 0x766d88
mov ecx, dword [ebp - 0xc0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x766d1e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x766d1e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0076d313
add esp, 8
jmp 0x766d88
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x89]
call fcn.00762af0
mov esi, eax
xor ecx, ecx
mov eax, dword [esi]
lea edx, [esi + 4]
test eax, eax
je 0x766d61
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [edx + ecx*2], ax
inc ecx
mov eax, dword [esi]
cmp ecx, eax
jb 0x766d50
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x766d70
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.004044f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret