Function at 0x651250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b7d86
mov eax, dword fs:[0]
push eax
sub esp, 0xac
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 eax, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x70], 0x17
mov dword [ebp - 0x6c], 0xf100e4
mov dword [ebp - 0x68], 0xe900ea
mov dword [ebp - 0x64], 0xca00d9
mov dword [ebp - 0x60], 0xd600cc
mov dword [ebp - 0x5c], 0xa400b4
mov dword [ebp - 0x58], 0x9f00b0
mov dword [ebp - 0x54], 0xa00096
mov dword [ebp - 0x50], 0x9500b1
mov dword [ebp - 0x4c], 0xa700bd
mov dword [ebp - 0x48], 0xe500f8
mov dword [ebp - 0x44], 0xb500a9
mov dword [ebp - 0x40], 0xcf00ab
nop dword [eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x6c], ax
inc ecx
mov eax, dword [ebp - 0x70]
cmp ecx, eax
jb 0x6512f0
xor ecx, ecx
mov word [ebp + eax*2 - 0x6c], cx
lea eax, [ebp - 0xb8]
push 5
push eax
call fcn.00427030
add esp, 8
push eax
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0
call fcn.00404120
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00408060
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x651354
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x65135c
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
lea ecx, [ebp - 0xa0]
mov esi, eax
call fcn.00404490
lea ecx, [ebp - 0x88]
call fcn.00404490
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 0xffffffff
call fcn.00404490
test esi, esi
je 0x65139c
xor eax, eax
jmp 0x651646
xorps xmm0, xmm0
xor edi, edi
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x28]
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], edi
call fcn.0041e050
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x24]
mov edx, eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x38], edx
mov esi, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x3c], esi
cmp esi, 8
jb 0x6513ef
mov esi, dword [eax]
mov dword [ebp - 0x28], esi
or esi, 0xffffffff
cmp ecx, 1
jne 0x651439
push ecx
push 0x7d8620
push dword [ebp - 0x28]
call fcn.004090d0
add esp, 0xc
test eax, eax
jne 0x651430
call fcn.00451090
push 1
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.004638b0
push eax
lea ecx, [ebp - 0x18]
call fcn.00429520
mov byte [ebp - 4], 4
jmp 0x651570
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x28], edx
jb 0x651446
mov eax, dword [eax]
jmp 0x651449
mov eax, dword [ebp - 0x28]
cmp ecx, 1
jne 0x65148b
push ecx
push 0x7da4d8
push eax
call fcn.004090d0
add esp, 0xc
test eax, eax
jne 0x651485
call fcn.00451090
push 2
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.004638b0
push eax
lea ecx, [ebp - 0x18]
call fcn.00429520
mov byte [ebp - 4], 5
jmp 0x651570
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
cmp dword [ebp - 0x3c], 8
mov eax, edx
jb 0x651498
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cmp ecx, 1
jne 0x6514da
push ecx
push 0x7da4d4
push eax
call fcn.004090d0
add esp, 0xc
test eax, eax
jne 0x6514d4
call fcn.00451090
push 5
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.004638b0
push eax
lea ecx, [ebp - 0x18]
call fcn.00429520
mov byte [ebp - 4], 6
jmp 0x651570
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
cmp dword [ebp - 0x3c], 8
mov eax, edx
jb 0x6514e7
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cmp ecx, 1
jne 0x651526
push ecx
push 0x7da4c4
push eax
call fcn.004090d0
add esp, 0xc
test eax, eax
jne 0x651520
call fcn.00451090
push 4
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.004638b0
push eax
lea ecx, [ebp - 0x18]
call fcn.00429520
mov byte [ebp - 4], 7
jmp 0x651570
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
cmp dword [ebp - 0x3c], 8
jb 0x651531
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
cmp ecx, 1
jne 0x65160b
push ecx
push 0x7da4c0
push edx
call fcn.004090d0
add esp, 0xc
test eax, eax
jne 0x65160b
call fcn.00451090
push 6
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.004638b0
push eax
lea ecx, [ebp - 0x18]
call fcn.00429520
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x651596
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x651596
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x651596
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 3
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x651608
lea eax, [edi + 0x24]
push eax
lea ecx, [ebp - 0x88]
call fcn.00404120
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x88]
cmp eax, ecx
je 0x6515f2
mov ecx, eax
call fcn.00404490
mov eax, dword [ebp - 0x30]
movups xmm0, xmmword [ebp - 0x88]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x78]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
lea ecx, [ebp - 0x88]
call fcn.00404490
mov eax, dword [edi + 8]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
jmp 0x651612
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x24]
call fcn.00404220
mov dword [ebp - 4], 0xa
test edi, edi
je 0x651643
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x651643
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x651643
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
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 0xc