Function at 0x6540b0
Capabilities:
Encode data using xor
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7b82d7
mov eax, dword fs:[0]
push eax
sub esp, 0x380
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 esi, ecx
mov dword [ebp - 0x2c8], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2e8], eax
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x1c]
jne 0x6540fd
mov al, 1
jmp 0x6549dd
push 0
push 0x20
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.0041b2e0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x654169
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
mov dword [ebp - 0x2e4], eax
test edi, edi
je 0x654169
nop
or esi, 0xffffffff
cmp edi, 0xffffffff
cmovb esi, edi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
mov eax, dword [ebp - 0x2e4]
add eax, esi
mov dword [ebp - 0x2e4], eax
sub edi, esi
jne 0x654140
mov esi, dword [ebp - 0x2c8]
push ecx
lea eax, [ebp - 0x2c1]
mov dword [ebp - 0x5c], 0
push eax
xorps xmm0, xmm0
mov byte [ebp - 0x2c1], 0
push 0x20
lea ecx, [ebp - 0x64]
movq qword [ebp - 0x64], xmm0
call fcn.0041e2a0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
push dword [ebp - 0x64]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x2e0]
call fcn.0063c400
mov dword [ebp - 0x10c], 0
xor ecx, ecx
mov dword [ebp - 0x108], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x11c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x10c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x2e0]
call fcn.00404490
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 0xf
mov byte [ebp - 0x104], 0
lea edx, [ebp - 0x104]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.0065e0d0
test al, al
jne 0x654242
mov byte [ebp - 0x2c1], al
jmp 0x6549b1
xorps xmm0, xmm0
lea ecx, [ebp - 0x58]
push 7
movups xmmword [ebp - 0x58], xmm0
movq qword [ebp - 0x48], xmm0
call fcn.00770fe0
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x2e4], esp
push 1
call fcn.00770d70
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2e0]
movaps xmm0, xmmword [0x7e3a60]
xor eax, eax
mov dword [ebp - 0x2e0], 0x10
movups xmmword [ebp - 0x2dc], xmm0
mov byte [ebp - 0x2cc], 0xc8
mov word [ebp - 0x2cb], ax
mov byte [ebp - 0x2c9], al
call fcn.004131e0
push eax
lea ecx, [ebp - 0x58]
call fcn.00771500
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.007712b0
sub esp, 0x18
lea eax, [ebp - 0x104]
mov ecx, esp
mov dword [ebp - 0x2e4], esp
push eax
call fcn.00770c70
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x18], 0xd3c9d8d0
mov byte [ebp - 0x14], 0xbc
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
call fcn.004131e0
push eax
lea ecx, [ebp - 0x58]
call fcn.00771500
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.007712b0
xorps xmm0, xmm0
lea ecx, [ebp - 0xec]
push 6
movups xmmword [ebp - 0xec], xmm0
movq qword [ebp - 0xdc], xmm0
call fcn.00770fe0
mov byte [ebp - 4], 7
mov edi, dword [ebp - 0x2c8]
mov esi, dword [esi + 0x18]
mov edi, dword [edi + 0x1c]
cmp esi, edi
je 0x654394
push esi
lea ecx, [ebp - 0x28]
call fcn.00404120
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x2e0]
call fcn.00770cc0
lea eax, [ebp - 0x2e0]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0xec]
call fcn.00771cc0
lea ecx, [ebp - 0x2e0]
call fcn.007711e0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00404490
add esi, 0x18
cmp esi, edi
jne 0x654344
sub esp, 0x18
lea eax, [ebp - 0xec]
mov ecx, esp
mov dword [ebp - 0x2c8], esp
push eax
call fcn.00770aa0
push 0x7da4fc
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.00771500
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.007712b0
lea eax, [ebp - 0xd4]
push eax
lea ecx, [ebp - 0x58]
call fcn.00773600
push 0x58
lea eax, [ebp - 0xbc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x38c]
push eax
call fcn.00654a00
mov edi, eax
xor ecx, ecx
mov edx, dword [edi]
lea esi, [edi + 4]
test edx, edx
je 0x654413
lea eax, [ecx + 0xb8]
xor word [esi + ecx*2], ax
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jb 0x654402
xor eax, eax
mov word [esi + edx*2], ax
mov dword [ebp - 0xbc], eax
mov word [ebp - 0xb8], ax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], 7
mov word [ebp - 0xb4], ax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
call fcn.0042d730
mov dword [ebp - 0x6c], eax
mov ecx, esi
mov byte [ebp - 4], 0xf
xor eax, eax
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2cc], 7
mov word [ebp - 0x2e0], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6544a0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2e0]
call fcn.004044f0
lea eax, [ebp - 0x2e0]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0xbc]
call fcn.0042bf30
lea ecx, [ebp - 0x2e0]
call fcn.00404490
lea eax, [ebp - 0x164]
mov byte [ebp - 4], 0x11
push eax
call fcn.00653c90
push 0xe8
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 0x12
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x24c]
call fcn.00618ad0
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xc0], 0x10
lea ecx, [ebp - 0x24c]
push dword [ebp - 0xc4]
cmovae eax, dword [ebp - 0xd4]
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.00619420
test al, al
je 0x654933
mov eax, 0x10
mov dword [ebp - 0x30c], 0xc900d9
mov dword [ebp - 0x310], eax
xor ecx, ecx
mov dword [ebp - 0x308], 0xd700ca
mov dword [ebp - 0x304], 0xde00d5
mov dword [ebp - 0x300], 0xcb00df
mov dword [ebp - 0x2fc], 0xae00a9
mov dword [ebp - 0x2f8], 0xec00ac
mov dword [ebp - 0x2f4], 0xb600ae
mov dword [ebp - 0x2f0], 0xa900a9
mov dword [ebp - 0x2ec], 0xc8
nop dword [eax]
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x30c], ax
inc ecx
mov eax, dword [ebp - 0x310]
cmp ecx, eax
jb 0x6545c0
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov word [ebp + eax*2 - 0x30c], cx
xor eax, eax
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x30c]
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x654600
sub ecx, edx
lea eax, [ebp - 0x30c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004044f0
mov byte [ebp - 4], 0x14
mov eax, 0xc
mov dword [ebp - 0x308], eax
xor ecx, ecx
mov dword [ebp - 0x304], 0xd600fb
mov dword [ebp - 0x300], 0xcf00d4
mov dword [ebp - 0x2fc], 0xd300d9
mov dword [ebp - 0x2f8], 0x9200ca
mov dword [ebp - 0x2f4], 0xb80094
mov dword [ebp - 0x2f0], 0xa600b2
mov dword [ebp - 0x2ec], 0xc4
nop word [eax + eax]
lea eax, [ecx + 0xb8]
xor word [ebp + ecx*2 - 0x304], ax
inc ecx
mov eax, dword [ebp - 0x308]
cmp ecx, eax
jb 0x654680
xor ecx, ecx
mov dword [ebp - 0x2cc], 7
mov word [ebp + eax*2 - 0x304], cx
xor eax, eax
mov dword [ebp - 0x2d0], ecx
lea ecx, [ebp - 0x304]
mov word [ebp - 0x2e0], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6546c5
sub ecx, edx
lea eax, [ebp - 0x304]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2e0]
call fcn.004044f0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x15
push eax
lea eax, [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x24c]
call fcn.0061cca0
lea ecx, [ebp - 0x2e0]
call fcn.00404490
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x13
call fcn.00404490
lea ecx, [ebp - 0x24c]
call fcn.00619e80
movzx ecx, byte [ebp - 0x16b]
xor edx, edx
test al, al
mov byte [ebp - 0x16c], 1
cmovne ecx, edx
mov byte [ebp - 0x16b], cl
je 0x654933
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x24c]
call fcn.0061ced0
mov byte [ebp - 4], 0x16
cmp dword [ebp - 0x124], 0
jne 0x65477a
lea ecx, [ebp - 0x134]
mov byte [ebp - 0x2c1], 0
call fcn.00407a10
jmp 0x65493a
lea ecx, [ebp - 0x58]
call fcn.00772360
push 0x74
lea eax, [ebp - 0x2c0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x2c0]
call fcn.00773690
push 1
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0x17
push eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x2c0]
call fcn.00774de0
test al, al
je 0x654914
lea ecx, [ebp - 0x58]
call fcn.00772ad0
test al, al
je 0x654914
lea ecx, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 9
mov dword [ebp - 0x2d4], 0xd5ddd0cb
mov dword [ebp - 0x2d0], 0xcdcbc9dd
mov dword [ebp - 0x2cc], 0xc1a5
call fcn.004131e0
push eax
lea ecx, [ebp - 0x58]
call fcn.00771500
lea ecx, [ebp - 0x14c]
push ecx
mov ecx, eax
call fcn.007721f0
mov byte [ebp - 4], 0x18
cmp dword [ebp - 0x13c], 0
jne 0x654842
lea ecx, [ebp - 0x14c]
mov byte [ebp - 0x2c1], 0
call fcn.00404490
jmp 0x65491b
sub esp, 0x18
lea eax, [ebp - 0x58]
mov ecx, esp
push eax
call fcn.00770aa0
mov esi, dword [ebp - 0x2e8]
mov ecx, esi
call fcn.007712b0
sub esp, 0x18
lea eax, [ebp - 0x11c]
mov ecx, esp
mov dword [ebp - 0x2e8], esp
push eax
call fcn.00770cc0
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x18], 0xcfd6d8cb
mov byte [ebp - 0x14], 0xbc
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
call fcn.004131e0
push eax
mov ecx, esi
call fcn.00771500
mov ecx, eax
mov byte [ebp - 4], 0x18
call fcn.007712b0
sub esp, 0x18
lea eax, [ebp - 0x164]
mov ecx, esp
mov dword [ebp - 0x2e8], esp
push eax
call fcn.00770cc0
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 9
mov dword [ebp - 0x1c], 0xded7d0cc
mov dword [ebp - 0x18], 0xd2dfc9cf
mov dword [ebp - 0x14], 0xc1b0
call fcn.004131e0
push eax
mov ecx, esi
call fcn.00771500
mov ecx, eax
mov byte [ebp - 4], 0x18
call fcn.007712b0
lea ecx, [ebp - 0x14c]
mov byte [ebp - 0x2c1], 1
call fcn.00404490
jmp 0x65491b
mov byte [ebp - 0x2c1], 0
lea ecx, [ebp - 0x2c0]
call fcn.00430850
lea ecx, [ebp - 0x134]
call fcn.00407a10
jmp 0x65493a
mov byte [ebp - 0x2c1], 0
lea ecx, [ebp - 0x24c]
call fcn.00619320
lea ecx, [ebp - 0x164]
call fcn.00404490
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x6c]
push eax
push dword [eax]
lea eax, [ebp - 0x2e8]
push eax
call fcn.0042d190
push 0x40
push dword [ebp - 0x6c]
call fcn.0076d313
add esp, 8
lea ecx, [ebp - 0x84]
call fcn.00404490
lea ecx, [ebp - 0x9c]
call fcn.00404490
lea ecx, [ebp - 0xb4]
call fcn.00404490
lea ecx, [ebp - 0xd4]
call fcn.00407a10
lea ecx, [ebp - 0xec]
call fcn.007711e0
lea ecx, [ebp - 0x58]
call fcn.007711e0
lea ecx, [ebp - 0x104]
call fcn.00407a10
lea ecx, [ebp - 0x11c]
call fcn.00404490
lea ecx, [ebp - 0x64]
call fcn.0040f050
lea ecx, [ebp - 0x40]
call fcn.00407a10
mov al, byte [ebp - 0x2c1]
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 4