Function at 0x767630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7c1df1
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 8
mov dword [ebp - 0x54], 0xd500fb
mov dword [ebp - 0x58], eax
xor ecx, ecx
mov dword [ebp - 0x50], 0xc800d5
mov dword [ebp - 0x4c], 0xfc00d9
mov dword [ebp - 0x48], 0xcf00ce
mov dword [ebp - 0x44], 0xc0
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x54], ax
inc ecx
mov eax, dword [ebp - 0x58]
cmp ecx, eax
jb 0x767690
xor ecx, ecx
mov word [ebp + eax*2 - 0x54], cx
xor eax, eax
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x74], 7
lea edx, [ecx + 2]
mov word [ebp - 0x88], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x7676c3
sub ecx, edx
lea eax, [ebp - 0x54]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x88]
call fcn.004044f0
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x50], 0xdc00f5
mov dword [ebp - 0x4c], 0xc800c9
mov dword [ebp - 0x48], 0xda00dd
mov dword [ebp - 0x44], 0xbf00db
nop
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x50], ax
inc ecx
mov eax, dword [ebp - 0x54]
cmp ecx, eax
jb 0x767710
xor ecx, ecx
mov word [ebp + eax*2 - 0x50], cx
xor eax, eax
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x5c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x70], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x767740
sub ecx, edx
lea eax, [ebp - 0x50]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.004044f0
mov byte [ebp - 4], 1
call fcn.00451100
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x40]
push ecx
mov ecx, eax
call fcn.0048d320
mov edx, dword [ebp - 0x5c]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x7677bb
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x7677b1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x7677b1
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 - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov edx, dword [ebp - 0x74]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x767812
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x767808
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x767808
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 - 0x78], 0
mov word [ebp - 0x88], ax
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 0x74], 7
call fcn.00660180
add esp, 4
mov esi, eax
push 2
xor eax, eax
mov byte [ebp - 4], 5
push 0x7c61ec
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
call fcn.004044f0
push esi
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00405530
mov edx, dword [ebp - 0x8c]
add esp, 0xc
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x7678cb
mov ecx, dword [ebp - 0xa0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x7678c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x7678c1
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 - 0xa4]
xor eax, eax
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x76792e
mov ecx, dword [ebp - 0xb8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x767924
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x767924
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
lea eax, [ebp - 0x28]
push eax
call fcn.00660180
add esp, 4
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push 0x24
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0x14]
cmp eax, 6
sete bl
cmp edx, 8
jb 0x76799e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x767994
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x767994
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 - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x7679ee
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x7679e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x7679e4
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 al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret