joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a014
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x20
mov rax, qword [0x140045948]
xor rax, rsp
mov qword [rsp + 0x10], rax
mov ebx, 1
mov r11, rcx
cmp dword [rcx + 4], ebx
jle 0x14001a0dc
lea r10, [rcx + 0x28]
lea r14, [0x140000000]
xor r9d, r9d
lea rbp, [rsp + r9]
lea rsi, [r10 + 2]
mov r12d, 4
movzx eax, byte [rsi + 1]
lea rdx, [r9 + rax*4]
movzx eax, byte [rsi - 1]
mov r8b, byte [rdx + r14 + 0x52ef0]
lea rcx, [r9 + rax*4]
movzx eax, byte [rsi - 2]
xor r8b, byte [rcx + r14 + 0x536f0]
lea rcx, [r9 + rax*4]
movzx eax, byte [rsi]
xor r8b, byte [rcx + r14 + 0x53af0]
lea rcx, [r9 + rax*4]
add rsi, 4
xor r8b, byte [rcx + r14 + 0x532f0]
mov byte [rbp], r8b
add rbp, 4
sub r12, 1
jne 0x14001a068
inc r9
cmp r9, 4
jl 0x14001a05a
movdqu xmm0, xmmword [rsp]
inc ebx
movdqu xmmword [r10], xmm0
add r10, 0x10
cmp ebx, dword [r11 + 4]
jl 0x14001a057
mov rcx, qword [rsp + 0x10]
xor rcx, rsp
call fcn.14002c700
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r12
pop rdi
ret
Function at 0x14001bae8
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x30
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
xor ebx, ebx
mov r14, r9
mov r12d, r8d
mov r13d, edx
mov rsi, rcx
cmp edx, ebx
jne 0x14001bb2e
mov r8, rdi
xor edx, edx
mov rcx, rbp
call fcn.14002c730
mov r9, r14
mov r8d, r12d
mov edx, r13d
mov rcx, rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbp
call fcn.14001b650
cmp al, bl
jne 0x14001bbe9
cmp r12d, ebx
jne 0x14001bbad
cmp qword [rsi + 0x38], rdi
je 0x14001bb88
mov rcx, qword [rsi + 0x30]
call fcn.14002e23c
mov rcx, 0xffffffffffffffff
mov eax, 4
mul rdi
cmovo rax, rcx
mov rcx, rax
call fcn.14002beb0
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov r8, rbx
cmp rdi, rbx
jbe 0x14001bbad
movzx edx, word [r8 + r14]
mov rax, qword [rsi + 8]
mov rcx, qword [rsi + 0x30]
mov eax, dword [rax + rdx*4]
mov dword [rcx + r8*4], eax
add r8, 2
cmp r8, rdi
jb 0x14001bb90
mov ecx, dword [rsi + 0x14]
mov rax, qword [rsi + 0x28]
imul ecx, r12d
add ecx, r13d
mov edx, dword [rax + rcx*4]
mov rax, qword [rsi + 8]
mov r8d, dword [rax + rdx*4]
cmp rdi, rbx
jbe 0x14001bbe9
mov rax, qword [rsi + 0x30]
mov ecx, dword [rax + rbx*4]
mov rax, qword [rsi]
add ecx, r8d
movzx ecx, word [rax + rcx*4]
xor word [rbx + rbp], cx
add rbx, 2
cmp rbx, rdi
jb 0x14001bbcb
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
ret

Function at 0x14001be44
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
mov eax, 0x1040
call fcn.1400398a0
sub rsp, rax
mov rax, qword [0x140045948]
xor rax, rsp
mov qword [rsp + 0x1030], rax
xor r12d, r12d
mov rbx, rdx
mov rsi, rcx
cmp byte [rdx], r12b
je 0x14001bf35
lea rdi, [rcx + 0x2022]
mov rcx, rdi
call fcn.1400136bc
mov rbp, rax
cmp rax, rdi
jbe 0x14001bebf
mov rcx, rdi
mov word [rax - 2], r12w
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [r12 + 0x5c]
mov word [rbp - 2], cx
cmp eax, 0xffffffff
je 0x14001bebf
bt eax, 0xa
jae 0x14001bebf
mov byte [rbx], r12b
lea rdx, str.System_Volume_Information_
mov rcx, rdi
call fcn.14002e888
cmp rax, r12
je 0x14001bed6
mov byte [rbx], r12b
cmp byte [rbx], r12b
je 0x14001bf35
mov rcx, qword [rsi + 0x5030]
cmp rcx, r12
je 0x14001bf02
mov r9b, 1
xor r8d, r8d
mov rdx, rdi
mov byte [rsp + 0x20], 1
call fcn.140006e84
cmp al, r12b
je 0x14001bf02
mov byte [rbx], r12b
cmp byte [rbx], r12b
je 0x14001bf35
lea rdx, [rsp + 0x30]
mov r8d, 0x800
mov rcx, rdi
call fcn.140014210
lea rdx, [rsp + 0x30]
mov ecx, 0x54
call fcn.14000144c
lea rcx, [0x140050e70]
call fcn.14000b12c
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14002c700
lea r11, [rsp + 0x1040]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x14001c728
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rsp + 0x50]
mov rax, r8
mov rdi, rcx
cmp rax, rbx
mov r8, rbx
mov rcx, r9
cmovb r8, rax
mov rsi, r9
add r8, r8
call fcn.14002ca30
mov r9b, byte [rdi + 0x101]
mov r8b, byte [rsp + 0x58]
lea rdx, [rbx + rbx]
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14001c5bc

Function at 0x14001dde4
Capabilities:
Hash data using sha1

Disassembly:
and dword [rcx + 0x18], 0
and dword [rcx + 0x14], 0
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
mov dword [rcx + 0x10], 0xc3d2e1f0
ret

Function at 0x14001e07c
Capabilities:
Hash data using sha256

Disassembly:
and qword [rcx + 0x20], 0
mov dword [rcx], 0x6a09e667
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov dword [rcx + 0x1c], 0x5be0cd19
ret
Function at 0x14001e3cc
Capabilities:
Hash data using sha256

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x140
mov rsi, qword [rcx + 0x20]
mov edi, dword [rcx + 0x20]
lea rbp, [rcx + 0x30]
shl rsi, 3
and edi, 0x3f
mov qword [rcx + 0x28], rbp
mov r12, rdx
mov rbx, rcx
mov byte [rdi + rcx + 0x30], 0x80
jmp 0x14001e41d
and edi, 0x3f
jne 0x14001e418
mov rcx, rbx
call fcn.14001e0bc
mov byte [rdi + rbx + 0x30], 0
inc edi
cmp edi, 0x38
jne 0x14001e40b
movsxd rax, edi
lea edx, [rdi - 0x30]
lea rcx, [rax + rbx + 0x30]
mov rax, rsi
shl rsi, 8
shr rax, 0x38
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x14001e42f
mov rcx, rbx
call fcn.14001e0bc
xor r11d, r11d
xor r8d, r8d
mov eax, r11d
mov ecx, 3
inc r11d
and eax, 3
sub ecx, eax
mov rax, r8
inc r8
shr rax, 2
shl ecx, 3
mov edx, dword [rbx + rax*4]
shr edx, cl
mov byte [r12], dl
inc r12
cmp r11d, 0x20
jb 0x14001e453
and qword [rbx + 0x20], 0
lea rcx, [rsp + 0x20]
mov edx, 0x20
mov dword [rbx], 0x6a09e667
mov dword [rbx + 4], 0xbb67ae85
mov dword [rbx + 8], 0x3c6ef372
mov dword [rbx + 0xc], 0xa54ff53a
mov dword [rbx + 0x10], 0x510e527f
mov dword [rbx + 0x14], 0x9b05688c
mov dword [rbx + 0x18], 0x1f83d9ab
mov dword [rbx + 0x1c], 0x5be0cd19
call fcn.14001c710
lea rcx, [rsp + 0x40]
mov edx, 0x100
call fcn.14001c710
mov edx, 0x40
mov rcx, rbp
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
jmp fcn.14001c710

Function at 0x14001ed70
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14001edd6
lea r8, [rsp + 0x34]
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
and qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x50]
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, 0x80000000
mov ecx, 0xd
call qword [sym.imp.USER32.dll_ExitWindowsEx]
add rsp, 0x48
ret
Function at 0x14001f364
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rbx, rcx
cmp dword [rcx], esi
jbe 0x14001f40f
lea rdi, [rcx + 8]
lea rax, [rsp + 0x40]
lea r8, [0x14001f2e4]
mov r9, rbx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
jne 0x14001f3e5
lea rdx, str.CreateThread_failed
lea rcx, [0x140050e70]
call fcn.14000b308
lea rcx, [0x140050e70]
call fcn.14000b12c
lea edx, [rbp + 2]
lea rcx, [0x140050e70]
call fcn.14000b0ac
mov qword [rdi], rbp
inc dword [rbx + 0x108]
mov edx, dword [0x14005a14c]
test edx, edx
je 0x14001f401
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc esi
add rdi, 8
cmp esi, dword [rbx]
jb 0x14001f389
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14002e07c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140033420
nop
cmp dword [0x14005a458], 1
je 0x14002e028
mov dword [0x14005a454], 1
mov byte [0x14005a450], r12b
test ebx, ebx
jne 0x14002e014
mov rcx, qword [0x14005b4d8]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14002e001
mov rcx, qword [0x14005b4d0]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x14002dfa0
call fcn.14002f274
cmp qword [rdi], rax
jne 0x14002dfa0
jmp 0x14002df86
cmp rdi, rsi
jb 0x14002e001
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.14002f274
mov qword [rdi], rax
call rbx
mov rcx, qword [0x14005b4d8]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x14005b4d0]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14002dfdf
cmp r13, rax
je 0x14002dfff
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x14002df86
lea rdx, [0x14003c560]
lea rcx, [0x14003c548]
call fcn.14002ddd0
lea rdx, [0x14003c570]
lea rcx, [0x14003c568]
call fcn.14002ddd0
nop
test r12d, r12d
je 0x14002e037
mov ecx, 8
call fcn.140033320
test r12d, r12d
jne 0x14002e062
mov dword [0x14005a458], 1
lea ecx, [r12 + 8]
call fcn.140033320
mov ecx, r15d
call fcn.14002dd64
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x14002def0

Function at 0x14002e088
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14002def0
Function at 0x140030e23
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140045948]
jne 0x14002c71a
rol rcx, 0x10
test cx, 0xffff
jne 0x14002c716
repz ret
ror rcx, 0x10
jmp 0x140030d7c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14005a540]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14005a638]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140030e01
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14005a540]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140030e23
mov rax, qword [rsp + 0x88]
mov qword [0x14005a638], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14005a5d8], rax
mov rax, qword [0x14005a638]
mov qword [0x14005a4b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14005a5c0], rax
mov dword [0x14005a4a0], 0xc0000409
mov dword [0x14005a4a4], 1
mov rax, qword [0x140045948]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140045950]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14005a538], eax
mov ecx, 1
call fcn.140036a48
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14003e440]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14005a538], 0
jne 0x140030eaa
mov ecx, 1
call fcn.140036a48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140037060
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.14002f274
xor ebx, ebx
mov rdi, rax
cmp qword [0x14005b138], rbx
jne 0x140037166
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14003723b
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003723b
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14005b138], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14005b140], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x14005b148], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14005b158], rax
test rax, rax
je 0x14003715d
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14005b150], rax
jmp 0x14003716d
mov rax, qword [0x14005b150]
jmp 0x140037174
mov rax, qword [0x14005b150]
mov r11, qword [0x14005b158]
cmp rax, rdi
je 0x1400371dc
cmp r11, rdi
je 0x1400371dc
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14005b158]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x1400371dc
test rax, rax
je 0x1400371dc
call rsi
test rax, rax
je 0x1400371d6
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400371d6
test byte [rsp + 0x38], 1
jne 0x1400371dc
bts ebp, 0x15
jmp 0x14003721a
mov rcx, qword [0x14005b140]
cmp rcx, rdi
je 0x14003721a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003721a
call rax
mov rbx, rax
test rax, rax
je 0x14003721a
mov rcx, qword [0x14005b148]
cmp rcx, rdi
je 0x14003721a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003721a
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14005b138]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003723b
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14003723d
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x4020fe
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x00425200]
test rax, rax
je 0x402111
call rax
mov ecx, 2
call qword [fcn.00416970]
mov r8d, 0xe
mov edx, 1
lea rcx, str.out_of_memory_n
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop

Function at 0x406260
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Inject apc
Resume thread
Use process replacement

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xd0
xor eax, eax
xor r9d, r9d
xor r8d, r8d
lea rdi, [rsp + 0x68]
mov rsi, rcx
mov ecx, 0x1a
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x50]
mov ecx, 6
mov rbx, rdx
rep stosd dword [rdi], eax
lea rax, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rcx, str.C:WindowsSystem32_notepad.exe
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov r12, qword [rsp + 0x50]
mov r8, rbx
xor edx, edx
mov rdi, qword [rsp + 0x58]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9, rbx
mov r8, rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov rbp, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
add rsp, 0xd0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [0x0041e970]
movsxd rdx, dword [rax]
mov rax, qword [0x0041e960]
mov rcx, qword [rax]
jmp 0x406260
sub rsp, 0x28
call fcn.00406357
nop
add rsp, 0x28
jmp 0x40636c
Function at 0x40636c
Capabilities:
Inject apc
Use process replacement

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xd0
xor eax, eax
xor r9d, r9d
xor r8d, r8d
lea rdi, [rsp + 0x68]
mov rsi, rcx
mov ecx, 0x1a
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x50]
mov ecx, 6
mov rbx, rdx
rep stosd dword [rdi], eax
lea rax, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rcx, str.C:WindowsSystem32_notepad.exe
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov r12, qword [rsp + 0x50]
mov r8, rbx
xor edx, edx
mov rdi, qword [rsp + 0x58]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9, rbx
mov r8, rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov rbp, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
add rsp, 0xd0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [0x0041e970]
movsxd rdx, dword [rax]
mov rax, qword [0x0041e960]
mov rcx, qword [rax]
jmp 0x406260
sub rsp, 0x28
call fcn.00406357
nop
add rsp, 0x28
jmp 0x40636c

Function at 0x406387
Capabilities:
Inject apc
Use process replacement

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xd0
xor eax, eax
xor r9d, r9d
xor r8d, r8d
lea rdi, [rsp + 0x68]
mov rsi, rcx
mov ecx, 0x1a
rep stosd dword [rdi], eax
lea rdi, [rsp + 0x50]
mov ecx, 6
mov rbx, rdx
rep stosd dword [rdi], eax
lea rax, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rcx, str.C:WindowsSystem32_notepad.exe
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov r12, qword [rsp + 0x50]
mov r8, rbx
xor edx, edx
mov rdi, qword [rsp + 0x58]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9, rbx
mov r8, rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov rbp, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
add rsp, 0xd0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [0x0041e970]
movsxd rdx, dword [rax]
mov rax, qword [0x0041e960]
mov rcx, qword [rax]
jmp 0x406260
sub rsp, 0x28
call fcn.00406357
nop
add rsp, 0x28
jmp 0x40636c
Function at 0x40ffc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00425844]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x410148
mov rax, qword [0x00425848]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x41000c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x410095
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x40fff0
mov rcx, rbx
call fcn.00410c60
test rax, rax
mov r12, rax
je 0x41017d
mov rax, qword [0x00425848]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00410d90
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00425848]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x410160
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x41008e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4100f0
add dword [0x00425844], 1
cmp edi, 8
jae 0x4100c3
test dil, 4
jne 0x410134
test edi, edi
je 0x4100b8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x41014f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4100b8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x4100dc
jmp 0x4100b8
add rsi, qword [0x00425848]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41008e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00419220
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4100b8
xor esi, esi
jmp 0x410017
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4100b8
mov rax, qword [0x00425848]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00419220
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00419220
nop
nop dword [rax]

Function at 0x4108d0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00425b20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00425b00]
test rbx, rbx
je 0x410924
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x41091b
test rsi, rsi
je 0x41091b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x410900
lea rcx, [0x00425b20]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x410c60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0041e820]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x410ccd
mov rcx, r8
call fcn.00410b40
test eax, eax
je 0x410ccd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x410ccd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x410cc4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x410ccf
add rax, 0x28
cmp rax, r9
jne 0x410cb0
xor eax, eax
add rsp, 0x28
ret

Function at 0x411a20
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x00425b80], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x00425b88], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x411a70
lea rdx, [0x00411940]
mov ecx, eax
mov dword [0x00425b78], eax
call fcn.00416c40
test eax, eax
jne 0x411a7a
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x411a6b
call sub.msvcrt.dll_abort
nop