joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007344c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push r14
mov rbp, rsp
sub rsp, 0x50
and qword [rbp + 0x38], 0
lea rax, [rbp + 0x38]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rsi, rdx
mov r14, rcx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140073500
mov rcx, qword [rbp + 0x38]
lea r9, [rbp + 0x30]
and qword [rbp - 0x10], 0
lea r8, [rbp - 0x10]
and dword [rbp + 0x30], 0
call fcn.140010f34
mov ebx, eax
test eax, eax
jne 0x140073500
and qword [rsp + 0x38], 0
lea r9, [rbp + 0x30]
and qword [rsp + 0x30], 0
xor edx, edx
and qword [rsp + 0x28], 0
mov r8, qword [rbp - 0x10]
mov rcx, qword [rbp + 0x38]
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x1400734f3
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp + 0x38]
call fcn.14007344c
movzx ebx, ax
mov rcx, qword [rbp - 0x10]
call fcn.14001458c
test ebx, ebx
je 0x14007348b
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140073515
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
xor eax, eax
cmp ebx, 0x103
cmovne eax, ebx
test eax, eax
jne 0x14007353e
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
nop dword [rax + rax]
test eax, eax
jle 0x140073548
movzx eax, ax
or eax, 0x80070000
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r14
pop rsi
pop rbp
ret

Function at 0x1400737d8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 0x18]
lea rax, [r11 + 0x20]
mov qword [r11 - 0x10], rax
mov ebx, r8d
mov rax, qword [rsp + 0x60]
xor r8d, r8d
mov dword [r11 + 0x20], r9d
lea r9, [r11 + 0x18]
mov qword [r11 - 0x18], rax
mov dword [rsp + 0x50], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ecx, eax
test eax, eax
jne 0x140073823
cmp dword [rsp + 0x50], ebx
lea eax, [rcx + 0x57]
cmovne ecx, eax
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x140073833
mov eax, dword [rsp + 0x58]
mov dword [rdx], eax
test ecx, ecx
jle 0x140073840
movzx ecx, cx
or ecx, 0x80070000
mov eax, ecx
add rsp, 0x30
pop rbx
ret

Function at 0x140073850
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
mov qword [r11 + 0x10], rdx
push rbx
sub rsp, 0x30
mov eax, dword [r9]
lea rdx, str.Order
mov rcx, qword [rcx + 0x18]
mov rbx, r9
mov dword [rsp + 0x48], eax
lea r9, [r11 + 0x18]
lea rax, [r11 + 0x10]
mov dword [rsp + 0x50], 7
mov qword [r11 - 0x10], rax
xor r8d, r8d
and qword [r11 - 0x18], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400738b4
cmp dword [rsp + 0x50], 7
lea ecx, [rax + 0x57]
cmovne eax, ecx
mov ecx, dword [rsp + 0x48]
mov dword [rbx], ecx
test eax, eax
jle 0x1400738be
movzx eax, ax
or eax, 0x80070000
add rsp, 0x30
pop rbx
ret
Function at 0x140073a20
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
mov eax, dword [rcx + 0x14]
lea r9, [r11 + 8]
inc dword [rcx + 0x10]
mov rbx, rcx
mov r8, qword [rcx + 8]
mov edx, dword [rcx + 0x10]
mov rcx, qword [rcx]
mov dword [rsp + 0x50], eax
xor eax, eax
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov ecx, eax
call fcn.14001a0bc
mov dword [rbx + 0x18], eax
add rsp, 0x40
pop rbx
ret

Function at 0x140073ad0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1400b99b8]
test rdx, rdx
jne 0x140073aeb
mov eax, 0x80070057
add rsp, 0x28
ret
mov eax, dword [rcx + 8]
test eax, eax
js 0x140073b1a
mov rcx, qword [rcx]
mov r8, rdx
mov edx, 4
call qword [sym.imp.CRYPTSP.dll_CryptGenRandom]
nop dword [rax + rax]
test eax, eax
je 0x140073b15
xor eax, eax
add rsp, 0x28
ret
call fcn.140040ad8
add rsp, 0x28
ret

Function at 0x140073cb8
Capabilities:
Encode data using xor

Disassembly:
mov r11, rcx
test r9d, r9d
je 0x140073ce5
mov r10d, r9d
movzx r9d, byte [r8]
mov eax, edx
mov ecx, edx
xor r9, rax
shr ecx, 8
inc r8
movzx eax, r9b
mov edx, dword [r11 + rax*4 + 4]
xor edx, ecx
sub r10, 1
jne 0x140073cc3
mov rax, qword [rsp + 0x28]
mov dword [rax], edx
xor eax, eax
ret

Function at 0x140073e9c
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
and dword [rax + 0x10], 0
lea r8, [rax + 0x10]
mov rsi, rcx
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.SspiCli.dll_GetUserNameExW]
nop dword [rax + rax]
test al, al
je 0x140073ed2
xor ebx, ebx
jmp 0x140073f4e
call fcn.14000dcb4
mov ebx, eax
test eax, eax
jns 0x140073f4e
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140073f4e
lea ecx, [rax + 1]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
lea rdx, [0x1400b94bc]
cmovo rax, rcx
mov rcx, rax
call fcn.140013eb8
mov rdi, rax
test rax, rax
jne 0x140073f19
mov ebx, 0x8007000e
jmp 0x140073f4e
lea r8, [rsp + 0x38]
mov rdx, rdi
mov ecx, 2
call qword [sym.imp.SspiCli.dll_GetUserNameExW]
nop dword [rax + rax]
test al, al
jne 0x140073f41
call fcn.14000dcb4
mov ebx, eax
test eax, eax
js 0x140073f4e
mov rdx, rdi
mov rcx, rsi
call fcn.140010b68
mov ebx, eax
mov rcx, rdi
call fcn.140013044
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140076a30
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [0x1400b7c44], 0xffffffff
jne 0x140076ae1
xor ebx, ebx
lea rax, [rsp + 0x50]
mov r9d, 0x20019
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov dword [0x1400b7c44], ebx
lea rdx, [0x1400acad0]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140076ae1
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.PrintIsolationDefault
lea rax, [rsp + 0x40]
mov dword [rsp + 0x48], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140076ad0
cmp dword [rsp + 0x40], ebx
setne bl
mov dword [0x1400b7c44], ebx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, dword [0x1400b7c44]
add rsp, 0x30
pop rbx
ret

Function at 0x1400770f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrinters
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
jne 0x140077197
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x58], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PrintDriverIsolationOverrideCompat
mov dword [rsp + 0x60], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140077186
cmp dword [rsp + 0x58], 4
jne 0x140077186
cmp dword [rsp + 0x68], 1
sete bl
mov dword [rdi + 0x50], ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x1400771db
test byte [rcx + 0x1c], 2
je 0x1400771db
cmp dword [rdi + 0x50], 1
lea rax, str.kOverrideCompatOFF
mov rcx, qword [rcx + 0x10]
lea r9, str.kOverrideCompatON
cmovne r9, rax
lea r8, [0x1400acb50]
mov edx, 0xe
call fcn.140040cf0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400772cc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrinters
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
jne 0x14007736d
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x58], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PrintDriverIsolationExecutionPolicy
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140077352
cmp dword [rsp + 0x60], ebx
je 0x140077357
mov ebx, 1
mov dword [rdi + 0x4c], ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x140077374
mov dword [rdi + 0x4c], 1
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x1400773b8
test byte [rcx + 0x1c], 2
je 0x1400773b8
cmp dword [rdi + 0x4c], 1
lea rax, str.kExecuteInProc
mov rcx, qword [rcx + 0x10]
lea r9, str.kExecuteInSandbox
cmovne r9, rax
lea r8, [0x1400acb50]
mov edx, 0xd
call fcn.140040cf0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14007a5f4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x40
and dword [rsp + 0x68], 0
lea rax, [r11 + 0x20]
and dword [rsp + 0x30], 0
lea r9, [r11 - 0x18]
mov rdi, r8
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
xor r8d, r8d
mov rbx, rdx
mov rsi, rcx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14007a70c
cmp dword [rsp + 0x30], 3
jne 0x14007a70c
cmp dword [rsp + 0x68], 0x48
jbe 0x14007a70c
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov qword [rdi], rax
test rax, rax
je 0x14007a705
lea rcx, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14007a6f0
mov rcx, qword [rdi]
mov eax, dword [rsp + 0x68]
movzx edx, word [rcx + 0x44]
cmp edx, eax
ja 0x14007a6bf
movzx r8d, word [rcx + 0x46]
cmp r8d, eax
jae 0x14007a6bf
lea ecx, [r8 + rdx]
cmp eax, ecx
je 0x14007a73d
mov ebx, 0xd
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x14007a6f0
test byte [rcx + 0x1c], 4
je 0x14007a6f0
mov rcx, qword [rcx + 0x10]
lea edx, [rbx - 3]
lea r8, [0x14009cd48]
call fcn.1400305cc
mov rcx, qword [rdi]
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
and qword [rdi], 0
jmp 0x14007a73d
mov ebx, 8
jmp 0x14007a73d
mov ebx, 0xd
mov rcx, qword [0x1400b72f8]
lea rax, [0x1400b72f8]
cmp rcx, rax
je 0x14007a73d
test byte [rcx + 0x1c], 4
je 0x14007a73d
mov rcx, qword [rcx + 0x10]
lea edx, [rbx - 2]
lea r8, [0x14009cd48]
call fcn.1400305cc
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140121db0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140121dbd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140121dcd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140121db5
lea eax, [rcx + 1]
jmp 0x140121ddb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140121dee
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140121dd4
sub eax, 3
jb 0x140121e0e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140121e5d
sar eax, 1
movsxd rbp, eax
jb 0x140121e44
jmp 0x140121e1c
add ebx, ebx
jne 0x140121e1a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140121e44
inc ecx
add ebx, ebx
jne 0x140121e2a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140121e44
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140121e3d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140121e2c
add ecx, 2
jmp 0x140121e49
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140121d72
jmp 0x140121dbd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xa4200
mov dl, 0x26
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140121ea9
cmp rsi, rcx
jae 0x140121eb1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140121e90
cmp al, 0x8f
ja 0x140121e90
cmp byte [rsi - 2], 0xf
je 0x140121e96
sub al, 0xe8
cmp al, 1
ja 0x140121e7a
cmp rsi, rcx
jae 0x140121eb1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140121e80
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140121eb1
lodsb al, byte [rsi]
jmp 0x140121e90
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x11c000]
mov eax, dword [rdi]
or eax, eax
je 0x140121f1a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x124fc8]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140121ebe
jns 0x140121ef3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140121efd
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140121f14
mov qword [rbx], rax
add rbx, 8
jmp 0x140121ede
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140121f54
cmp al, 0xef
ja 0x140121f46
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140121f26
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140121f35
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x247]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140121fa8
sub rsp, 0xffffffffffffff80
jmp 0x14002c9d4
Function at 0x401850
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x00407054]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x40196a
mov rax, qword [0x00407058]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x40189e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x401950
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x401882
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x4019a2
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x00407058]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x00407058]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401985
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401949
sub eax, 0x40
and eax, 0xffffffbf
je 0x401949
mov r9, rbp
add r9, qword [0x00407058]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401971
add dword [0x00407054], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x4018ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x00407058]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x402580
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402590
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x4025a0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4025e1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x4025d8
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x4025e3
add rax, 0x28
cmp rax, r9
jne 0x4025c4
xor eax, eax
repz ret

Function at 0x402690
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x00404320]
cmp word [rbx], 0x5a4d
je 0x4026b0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4026a4
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x140440bb0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140440bbd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140440bcd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140440bb5
lea eax, [rcx + 1]
jmp 0x140440bdb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140440bee
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140440bd4
sub eax, 3
jb 0x140440c0e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140440c5d
sar eax, 1
movsxd rbp, eax
jb 0x140440c44
jmp 0x140440c1c
add ebx, ebx
jne 0x140440c1a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140440c44
inc ecx
add ebx, ebx
jne 0x140440c2a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140440c44
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140440c3d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140440c2c
add ecx, 2
jmp 0x140440c49
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140440b72
jmp 0x140440bbd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x220a00
mov dl, 0x19
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140440cad
cmp rsi, rcx
jae 0x140440cb5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140440c94
cmp al, 0x8f
ja 0x140440c94
cmp byte [rsi - 2], 0xf
je 0x140440c9a
sub al, 0xe8
cmp al, 1
ja 0x140440c7e
cmp rsi, rcx
jae 0x140440cb5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140440c84
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140440cb5
lodsb al, byte [rsi]
jmp 0x140440c94
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x43d000]
mov eax, dword [rdi]
or eax, eax
je 0x140440d12
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x45b930]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140440cc2
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140440d0c
mov qword [rbx], rax
add rbx, 8
jmp 0x140440ce2
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140440d56
cmp al, 0xef
ja 0x140440d3e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140440d1e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x140440d2d
mov eax, dword [rdi]
add rdi, 4
jmp 0x140440d2d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x23f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140440daa
sub rsp, 0xffffffffffffff80
jmp 0x140061c10
Function at 0x1800024c0
Capabilities:
Enumerate processes

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x2a8
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1803a0f20]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov byte [rsp + 0x20], 0
mov qword [rsp + 0x28], 0xffffffffffffffff
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x50], 0x238
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x1800025d2
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x1800025c7
lea rdx, [rsp + 0x7c]
lea rcx, [rsp + 0x30]
call fcn.180001920
nop
lea rcx, [rsp + 0x30]
call fcn.180003310
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x2b0]
call fcn.180001f20
movzx eax, al
test eax, eax
je 0x1800025a5
mov dword [rsp + 0x24], 0
lea rdx, [rsp + 0x24]
mov ecx, dword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
cmp dword [rsp + 0x24], 0x3e8
ja 0x1800025a0
mov eax, dword [rsp + 0x2b8]
cmp dword [rsp + 0x24], eax
jne 0x1800025a5
mov byte [rsp + 0x20], 1
lea rcx, [rsp + 0x30]
call fcn.180001cb0
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x18000253f
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x21], al
mov rcx, qword [rsp + 0x2b0]
call fcn.180001cb0
movzx eax, byte [rsp + 0x21]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1800edae0
add rsp, 0x2a8
ret