Function at 0x651f90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b94b6
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x831184]
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], 0xe200f5
mov dword [ebp - 0x68], 0xfe00fb
mov dword [ebp - 0x64], 0xd900c8
mov dword [ebp - 0x60], 0xd900dd
mov dword [ebp - 0x5c], 0xd700c5
mov dword [ebp - 0x58], 0xe800c1
mov dword [ebp - 0x54], 0xd300e7
mov dword [ebp - 0x50], 0xea00c0
mov dword [ebp - 0x4c], 0xd400cc
mov dword [ebp - 0x48], 0x920089
mov dword [ebp - 0x44], 0xc600d8
mov dword [ebp - 0x40], 0xc000da
nop dword [eax]
lea eax, [ecx + 0xa9]
xor word [ebp + ecx*2 - 0x6c], ax
inc ecx
mov eax, dword [ebp - 0x70]
cmp ecx, eax
jb 0x652030
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 0x652094
mov eax, dword [eax]
cmp dword [esi + 0x14], 8
jb 0x65209c
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 0x6520dc
xor eax, eax
jmp 0x652386
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 0x65212f
mov esi, dword [eax]
mov dword [ebp - 0x28], esi
or esi, 0xffffffff
cmp ecx, 1
jne 0x652179
push ecx
push 0x7da668
push dword [ebp - 0x28]
call fcn.004090d0
add esp, 0xc
test eax, eax
jne 0x652170
call fcn.00451b60
push 1
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.004645c0
push eax
lea ecx, [ebp - 0x18]
call fcn.00429520
mov byte [ebp - 4], 4
jmp 0x6522b0
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 0x652186
mov eax, dword [eax]
jmp 0x652189
mov eax, dword [ebp - 0x28]
cmp ecx, 1
jne 0x6521cb
push ecx
push 0x7dc520
push eax
call fcn.004090d0
add esp, 0xc
test eax, eax
jne 0x6521c5
call fcn.00451b60
push 2
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.004645c0
push eax
lea ecx, [ebp - 0x18]
call fcn.00429520
mov byte [ebp - 4], 5
jmp 0x6522b0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
cmp dword [ebp - 0x3c], 8
mov eax, edx
jb 0x6521d8
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cmp ecx, 1
jne 0x65221a
push ecx
push 0x7dc51c
push eax
call fcn.004090d0
add esp, 0xc
test eax, eax
jne 0x652214
call fcn.00451b60
push 5
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.004645c0
push eax
lea ecx, [ebp - 0x18]
call fcn.00429520
mov byte [ebp - 4], 6
jmp 0x6522b0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
cmp dword [ebp - 0x3c], 8
mov eax, edx
jb 0x652227
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cmp ecx, 1
jne 0x652266
push ecx
push 0x7dc528
push eax
call fcn.004090d0
add esp, 0xc
test eax, eax
jne 0x652260
call fcn.00451b60
push 4
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.004645c0
push eax
lea ecx, [ebp - 0x18]
call fcn.00429520
mov byte [ebp - 4], 7
jmp 0x6522b0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
cmp dword [ebp - 0x3c], 8
jb 0x652271
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
cmp ecx, 1
jne 0x65234b
push ecx
push 0x7dc524
push edx
call fcn.004090d0
add esp, 0xc
test eax, eax
jne 0x65234b
call fcn.00451b60
push 6
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call fcn.004645c0
push eax
lea ecx, [ebp - 0x18]
call fcn.00429520
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x6522d6
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x6522d6
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x6522d6
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 0x652348
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 0x652332
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 0x652352
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 0x652383
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x652383
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x652383
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.0076eb7e
mov esp, ebp
pop ebp
ret 0xc