Function at 0x65e930
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7ba4b0
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
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 dword [ebp - 0x68], edx
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x65e96c
mov eax, dword [esi]
mov dword [esi + 0x10], 0
mov byte [eax], 0
push 0x20
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0076e8c3
mov dword [ebp - 0x18], 0x19
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0x1f
add esp, 4
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
mov word [eax + 0x18], 0
mov dword [ebp - 0x28], eax
lea ecx, [edi + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x64], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x65ea4d
add ecx, ecx
cmp dword [edi + 0x14], 8
jb 0x65e9d5
mov edi, dword [edi]
push ecx
push edi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.00407ab0
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0065e790
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x40]
cmovae eax, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x40]
cmovae edx, dword [ebp - 0x40]
add edx, dword [ebp - 0x30]
cmp dword [ebp - 0x2c], 0x10
cmovae eax, dword [ebp - 0x40]
sub edx, eax
push edx
push eax
push dword [ebp - 0x60]
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.00407a10
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.00407a10
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x68]
cmovae ecx, eax
mov eax, edx
sar eax, 0x18
mov byte [ecx + 0x14], al
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov eax, edx
cmovae ecx, dword [ebp - 0x28]
sar eax, 0x10
mov byte [ecx + 0x15], al
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov eax, edx
cmovae ecx, dword [ebp - 0x28]
sar eax, 8
mov byte [ecx + 0x16], al
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 0x17], dl
mov eax, dword [ebp - 0x64]
cmp dword [eax], 0
jne 0x65eaa6
test edx, edx
je 0x65eb3f
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
lea edi, [ebp - 0x28]
cmp ecx, 0x10
cmovae eax, edx
add eax, 0x18
cmp ecx, 0x10
mov dword [ebp - 0x64], eax
cmovae edi, edx
test eax, eax
je 0x65eb45
mov byte [eax], 0
test edi, edi
je 0x65eb3f
lea edx, [edi + 1]
xor al, al
mov edi, 4
nop dword [eax]
movzx ecx, byte [edx - 1]
lea edx, [edx + 6]
movzx eax, al
xor ecx, eax
movzx eax, byte [edx - 6]
movzx ecx, byte [ecx + 0x7d11d0]
xor ecx, eax
movzx eax, byte [edx - 5]
movzx ecx, byte [ecx + 0x7d11d0]
xor ecx, eax
movzx eax, byte [edx - 4]
movzx ecx, byte [ecx + 0x7d11d0]
xor ecx, eax
movzx eax, byte [edx - 3]
movzx ecx, byte [ecx + 0x7d11d0]
xor ecx, eax
movzx eax, byte [edx - 2]
movzx ecx, byte [ecx + 0x7d11d0]
xor ecx, eax
mov al, byte [ecx + 0x7d11d0]
sub edi, 1
jne 0x65eae0
mov ecx, dword [ebp - 0x64]
xor al, 0x55
mov byte [ecx], al
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea edi, [ebp - 0x28]
mov eax, esi
cmovae edi, edx
cmp dword [esi + 0x14], 0x10
jb 0x65eb58
mov eax, dword [esi]
mov dword [esi + 0x10], 0
mov byte [eax], 0
test edi, edi
jne 0x65eb6f
mov byte [ebp - 0x59], 0
jmp 0x65ec0c
mov ecx, dword [esi + 0x10]
cmp ecx, 0x32
jb 0x65eb8e
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x65eb81
mov eax, dword [esi]
mov dword [esi + 0x10], 0x32
mov byte [eax + 0x32], 0
jmp 0x65eb9f
mov eax, 0x32
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00407bf0
mov ecx, 0x32
lea edx, [edi + 0x19]
movzx eax, byte [edx - 1]
dec edx
shr eax, 4
sub ecx, 2
mov dword [ebp - 0x60], edx
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x59], al
cmp dword [esi + 0x10], ecx
jbe 0x65ec60
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x65ebd1
mov eax, dword [esi]
mov dl, byte [ebp - 0x59]
lea edi, [ecx + 1]
mov byte [eax + ecx], dl
mov edx, dword [ebp - 0x60]
movzx eax, byte [edx]
and eax, 0xf
mov al, byte [eax + str.0123456789ABCDEF]
mov byte [ebp - 0x59], al
cmp dword [esi + 0x10], edi
jbe 0x65ec60
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x65ebfb
mov eax, dword [esi]
mov dl, byte [ebp - 0x59]
mov byte [eax + edi], dl
mov edx, dword [ebp - 0x60]
test ecx, ecx
jne 0x65eba7
mov byte [ebp - 0x59], 1
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x65ec42
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x65ec38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x65ec38
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0076e8f3
add esp, 8
mov al, byte [ebp - 0x59]
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
call fcn.004046a0
int3