Function at 0x648670
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b6bce
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
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 dword [ebp - 0x90], ecx
push 0x28
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
call fcn.00648a20
push 0x29
lea eax, [ebp + 8]
push eax
call fcn.00648a20
push 0x3b
lea eax, [ebp + 8]
push eax
call fcn.00648a20
cmp dword [ebp + 0x1c], 0x10
lea edi, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmovae edi, dword [ebp + 8]
test eax, eax
je 0x6486f3
push eax
push 0x2c
push edi
call sub.VCRUNTIME140.dll_memchr
mov esi, eax
add esp, 0xc
test esi, esi
je 0x6486f3
sub esi, edi
jmp 0x6486f6
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x6489ef
cmp dword [ebp + 0x18], esi
lea eax, [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x78], 0
cmovb ecx, dword [ebp + 0x18]
cmp dword [ebp + 0x1c], 0x10
push ecx
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x88]
push eax
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
call fcn.00407ab0
lea edx, [ebp - 0x88]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00405660
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.00407a10
lea eax, [ebp - 0x70]
push eax
call fcn.00648ac0
mov eax, dword [ebp + 0x18]
inc esi
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0xf
mov byte [ebp - 0xa8], 0
cmp eax, esi
jb 0x648a14
sub eax, esi
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
add eax, esi
lea ecx, [ebp - 0xa8]
push eax
call fcn.00407ab0
lea edx, [ebp - 0xa8]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00405660
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 6
call fcn.00407a10
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x88]
call fcn.004060a0
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x64880e
mov ecx, eax
call fcn.00404490
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movq qword [ebp - 0x18], xmm0
mov word [esi], ax
lea ecx, [ebp - 0x88]
call fcn.00404490
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
push eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x54]
push 0x7cd378
mov dword [ebp - 0x58], eax
call fcn.004044f0
xorps xmm0, xmm0
mov byte [ebp - 0x30], 0
movlpd qword [ebp - 0x38], xmm0
mov byte [ebp - 4], 8
mov eax, 4
mov dword [ebp - 0x80], eax
xor ecx, ecx
mov dword [ebp - 0x7c], 0xcb00cc
mov dword [ebp - 0x78], 0xde00cf
mov dword [ebp - 0x74], 0xbc
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x7c], ax
inc ecx
mov eax, dword [ebp - 0x80]
cmp ecx, eax
jb 0x648871
xor ecx, ecx
mov word [ebp + eax*2 - 0x7c], cx
lea ecx, [ebp - 0x7c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x648891
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
sub ecx, edx
sar ecx, 1
cmp edi, 8
cmovae eax, dword [ebp - 0x28]
cmp esi, ecx
jne 0x6488d7
push esi
lea ecx, [ebp - 0x7c]
push ecx
push eax
call fcn.004090d0
add esp, 0xc
test eax, eax
jne 0x6488d7
mov esi, 2
mov byte [ebp - 0x30], 1
mov dword [ebp - 0x58], esi
jmp 0x648992
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], 5
mov dword [ebp - 0x7c], 0xd800de
mov dword [ebp - 0x78], 0xc800d6
mov dword [ebp - 0x74], 0xbd00d9
call fcn.00403e20
mov edx, eax
mov dword [ebp - 0x8c], eax
lea eax, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x648906
sub edx, eax
lea eax, [ebp - 0x28]
sar edx, 1
cmp edi, 8
cmovae eax, dword [ebp - 0x28]
cmp esi, edx
jne 0x648944
push esi
push dword [ebp - 0x8c]
push eax
call fcn.004090d0
add esp, 0xc
test eax, eax
jne 0x648944
mov esi, 2
mov byte [ebp - 0x30], al
mov dword [ebp - 0x58], esi
jmp 0x648992
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xa8]
call fcn.00404120
cmp dword [ebp - 0x94], 8
lea eax, [ebp - 0xa8]
cmovae eax, dword [ebp - 0xa8]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi64]
add esp, 4
lea ecx, [ebp - 0xa8]
mov esi, eax
mov edi, edx
call fcn.00404490
mov dword [ebp - 0x38], esi
mov esi, 1
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x34], edi
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x70]
push eax
add ecx, 0x18
call fcn.006498d0
mov edi, eax
lea eax, [ebp - 0x54]
lea ecx, [edi + 4]
mov dword [edi], esi
cmp ecx, eax
je 0x6489c5
cmp dword [ebp - 0x40], 8
mov edx, eax
push dword [ebp - 0x44]
cmovae edx, dword [ebp - 0x54]
push edx
call fcn.004044f0
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x54]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x34]
mov dword [edi + 0x24], eax
mov al, byte [ebp - 0x30]
mov byte [edi + 0x28], al
call fcn.00404490
lea ecx, [ebp - 0x28]
call fcn.00404490
lea ecx, [ebp - 0x70]
call fcn.00404490
lea ecx, [ebp + 8]
call fcn.00407a10
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 0x18
call fcn.004046a0
int3