Function at 0x140003820
Capabilities:
Encode data using xor
Enumerate process modules

Disassembly:
push rbx
push r14
sub rsp, 0x4d8
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
mov rax, qword [rcx + 0x20]
mov r14, rdx
mov rdx, qword [rcx]
mov rbx, rcx
mov rcx, qword [rcx + 8]
mov r8d, dword [rax + 0x3c]
call sub.VCRUNTIME140.dll_memcpy
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x14000387c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
mov eax, 0x1010000b
jmp 0x140003b9a
lea rdx, str.NtWriteVirtualMemory
mov qword [rsp + 0x500], rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
jne 0x1400038af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
mov eax, 0x10100001
jmp 0x140003b92
mov rax, qword [rbx + 0x18]
mov qword [rsp + 0x4d0], rsi
mov qword [rsp + 0x4c8], rdi
mov qword [rsp + 0x4c0], r15
xor r15d, r15d
movzx edi, word [rax + 0x14]
mov esi, r15d
add rdi, rax
mov rax, qword [rbx + 0x28]
cmp word [rax + 2], si
je 0x140003913
add rdi, 0x28
mov eax, dword [rdi]
test eax, eax
je 0x140003901
mov edx, dword [rdi + 4]
mov r8d, eax
mov ecx, dword [rdi - 4]
add rdx, qword [rbx]
add rcx, qword [rbx + 8]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + 0x28]
inc esi
add rdi, 0x28
movzx ecx, word [rax + 2]
cmp esi, ecx
jne 0x1400038e6
test byte [rbx + 0x70], 8
je 0x1400039bb
mov ecx, dword [rbx + 0x38]
mov eax, 4
shr rcx, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400045d8
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov r8d, dword [rbx + 0x38]
mov edx, r15d
mov ecx, r8d
mov r9, rax
shr rcx, 2
cmp rcx, 1
je 0x14000399e
mov rcx, r15
nop dword [rax]
nop word [rax + rax]
mov dword [rdi + rcx*4], r9d
mov eax, edx
mov r8d, dword [rbx + 0x38]
mov ecx, edx
and ecx, 0x1f
inc edx
shl eax, cl
xor r9d, eax
mov ecx, edx
mov eax, r8d
sub r9d, 0x11111111
shr rax, 2
dec rax
cmp rcx, rax
jb 0x140003970
mov rdx, qword [rbx + 0x40]
mov r9d, r8d
mov rcx, qword [rbx + 0x68]
mov r8, rdi
mov qword [rsp + 0x20], r15
call rbp
mov rcx, rdi
call fcn.1400045a4
mov rsi, qword [rbx + 0x68]
lea rcx, [rsp + 0x74]
xor edx, edx
mov r8d, 0x434
call sub.VCRUNTIME140.dll_memset
mov rcx, rsi
mov dword [rsp + 0x70], 0x438
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140003b0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x140003a35
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edx, eax
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140003b0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
je 0x140003a07
mov rdi, r15
mov rcx, qword [rbx + 0x68]
lea r9, [rsp + 0x30]
lea r8, str.LoadLibraryA
mov qword [rsp + 0x30], r15
mov rdx, rdi
call fcn.1400034c0
mov rsi, qword [rsp + 0x4d0]
test al, al
je 0x140003b7d
mov rcx, qword [rbx + 0x68]
lea r9, [rsp + 0x38]
lea r8, [0x1400067a0]
mov qword [rsp + 0x38], r15
mov rdx, rdi
call fcn.1400034c0
test al, al
je 0x140003b7d
mov rax, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rdx, qword [rbx + 0x58]
mov r9d, 0x28
mov rcx, qword [rbx + 0x68]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rax, qword [rbx + 0x48]
mov qword [rsp + 0x58], rax
mov eax, dword [rbx + 0x70]
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x64], r15d
mov qword [rsp + 0x20], r15
call rbp
test eax, eax
js 0x140003afa
mov rdx, qword [rbx + 0x50]
lea r9, [0x140004270]
mov rcx, qword [rbx + 0x68]
lea r8, [0x140003f70]
sub r9d, r8d
mov qword [rsp + 0x20], r15
call rbp
test eax, eax
jns 0x140003b79
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
mov eax, 9
jmp 0x140003b82
test rdi, rdi
je 0x140003a35
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
mov esi, eax
nop dword [rax]
nop word [rax + rax]
lea rdx, str.kernel32.dll
lea rcx, [rsp + 0xa0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140003b5d
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32NextW]
mov esi, eax
test eax, eax
jne 0x140003b30
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x98]
test esi, esi
cmove rdi, r15
jmp 0x140003a38
xor eax, eax
jmp 0x140003b82
mov eax, 7
mov rdi, qword [rsp + 0x4c8]
mov r15, qword [rsp + 0x4c0]
mov rbp, qword [rsp + 0x500]
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.140004540
add rsp, 0x4d8
pop r14
pop rbx
ret