joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3859ecec0
Capabilities:
Parse pe header

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

Function at 0x3859ecf00
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x385ab19a0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x3859ecf20
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x3859ecf28
ret
cmp word [rdx + 0x18], 0x20b
jne 0x3859ecf20
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x3859ecf70
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x3859ecf67
test rcx, rcx
je 0x3859ecf20
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x3859ecf58
xor eax, eax
ret

Function at 0x3859ecf80
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x385ab19a0]
xor r8d, r8d
cmp word [r11], 0x5a4d
mov r10d, ecx
jne 0x3859ed074
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
cmp dword [rcx], 0x4550
je 0x3859ed080
mov rax, r8
ret
cmp word [rcx + 0x18], 0x20b
jne 0x3859ed074
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x3859ed074
movzx edx, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rdx, [rcx + rdx + 0x18]
test r9w, r9w
je 0x3859ed074
lea ecx, [r9 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rdx + 0xc]
mov rcx, r8
cmp rax, r8
jb 0x3859ed0cc
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x3859ed0e0
add rdx, 0x28
cmp r9, rdx
jne 0x3859ed0b8
xor r8d, r8d
mov rax, r8
ret
add rax, r11
jmp 0x3859ed0f0
sub r10d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x3859ed0fe
mov edx, dword [rax + 0xc]
test edx, edx
je 0x3859ed0d5
test r10d, r10d
jg 0x3859ed0e8
mov r8d, dword [rax + 0xc]
add r8, r11
mov rax, r8
ret
Function at 0x3859edca0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x385ab0db0]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x3859edcd8
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x3859edd40
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x3859edd50
mov esi, dword [0x385ada168]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x3859edda8
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x3859eddf0
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x3859edcc7
mov rcx, rbx
call fcn.3859edc00
mov qword [rsi + r12*8 + 8], rax
jmp 0x3859edcc7
call fcn.3859edc00
mov qword [rbx + 0x10], rax
jmp 0x3859edcc7
mov r10d, dword [rsi]
test r10d, r10d
je 0x3859ede81
mov r9d, dword [0x385aa5040]
test r9d, r9d
je 0x3859edea9
lea rcx, [0x385ada180]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x3859ede8e
mov eax, dword [rsi]
test eax, eax
je 0x3859edce1
lea rcx, [0x385ada180]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x3859edce1
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sym.calloc
mov rsi, rax
test rax, rax
je 0x3859edee4
mov qword [rax], rdi
mov ecx, dword [0x385ada168]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x3859edd1b
call r13
jmp 0x3859edd1b
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sym.realloc
mov rsi, rax
test rax, rax
je 0x3859edee4
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sym.memset
jmp 0x3859eddcb
lea rcx, [0x385ada180]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x3859ededc
lea rdx, [0x3859edbb0]
mov ecx, eax
mov dword [0x385ada168], eax
call dbg.__mingwthr_key_dtor
test eax, eax
jne 0x3859edee4
mov dword [0x385aa5040], 1
mov edx, dword [rsi]
test edx, edx
jne 0x3859edd6c
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x3859edce1
mov rax, qword [0x385ada160]
lea r12, [rax + 1]
mov qword [0x385ada160], r12
mov qword [rbx + 0x10], r12
jmp 0x3859edd86
lock add dword [0x385aa5044], 1
je 0x3859ede39
mov r8d, dword [0x385aa5040]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x385aa5040]
test r8d, r8d
jne 0x3859ede77
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x3859eded0
jmp 0x3859ede77
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x3859ede69
call sym.abort
nop
nop word [rax + rax]
Function at 0x3859f6200
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rbx, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rsi
test rax, rax
je 0x3859f6250
mov rcx, rbx
mov qword [dbg.init_rand_s], rax
add rsp, 0x20
pop rbx
pop rsi
pop rbp
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rsi
mov qword [0x385adaca0], rax
lea rax, [dbg.mingw_rand_s]
jmp 0x3859f6234

Function at 0x3859f8a50
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x3859f8a7c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x3859f96f0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x385aa8000], 0
jne 0x3859f97f6
mov byte [0x385aa8000], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x3859f97cc
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [dbg.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x3859f97bd
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x385aab941]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x3859f97b8
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x3859f9787
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x3859f988b
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x3859f97f1
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x3859f97f1
Function at 0x1400010a2
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, eax
nop
cpuid
nop
mov eax, 1
nop
cpuid
nop
movabs r9, 0xb2d05e00
nop
cpuid
nop
rdtsc
nop
shl rdx, 0x20
nop
or rax, rdx
nop
mov rcx, rax
nop
fldpi
nop
frndint
nop
rdtsc
nop
shl rdx, 0x20
nop
or rax, rdx
nop
sub rax, rcx
nop
cmp rax, r9
nop
jb 0x1400010cf
nop
nop
push rbp
nop
mov rbp, rsp
nop
sub rsp, 8
nop
mov r10, 0xa
nop
mov rcx, 0xffffffff9f345678
nop
dec rcx
nop
xor r9, r9
nop
mov rax, rcx
nop
jne 0x140001108
nop
xor rax, rax
nop
mov rax, rbx
nop
add rax, rdx
nop
dec r10
nop
xor r11, r11
nop
jne 0x1400010ff
nop
xor rax, rax
mov rax, 0xa
nop
dec rax
nop
add rsp, 8
pop rbp
ret

Function at 0x140003a24
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0xa0
mov rcx, 0
mov rdx, 0xaa7c
mov r8, 0x1000
lea r9, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x140003a75
mov rbx, rax
call 0x140003a58
nop
pop rsi
mov r9, rax
add rsi, 0x278b3
mov rcx, 0xaa7c
mov r8, rcx
lea rax, [rsi]
mov dl, byte [rax]
mov byte [rbx], dl
add rsi, 1
add rbx, 1
add rax, 1
dec r8
jne 0x140003a71
call r9
mov ecx, 1
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x30
xor edi, edi
mov ebx, r8d
mov rbp, rcx
test edx, edx
je 0x1400041d6
mov r8d, edx
mov ecx, 0x1fffff
xor edx, edx
mov qword [rsp + 0x40], rsi
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x1400041bf
test ebx, ebx
je 0x1400041b6
dec ebx
je 0x14000412b
dec ebx
jne 0x1400041b6
mov eax, 2
jmp 0x140004166
lea r8, str.inventor.exe
mov r9d, 6
mov rdx, rax
mov rcx, rbp
call fcn.1400041f0
test eax, eax
jne 0x140004161
lea r9d, [rax + 6]
lea r8, str.Perforation.exe
mov rdx, rsi
mov rcx, rbp
call fcn.1400041f0
test eax, eax
je 0x1400041b6
mov eax, 1
imul rax, rax, 0x104
lea rcx, [rbp + 0x210]
lea rbx, [rbp + 0x620]
add rbx, rax
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400041b6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400041b6
lea rdx, [rsp + 0x20]
mov r8d, 2
mov rcx, rsi
call fcn.14001e990
mov edi, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x1400041f0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x470]
sub rsp, 0x570
mov rsi, rcx
mov r15, r8
mov rbx, rdx
lea rcx, [rbp + 0x62]
xor r14d, r14d
xor edx, edx
mov r8d, 0x206
mov rdi, r9
mov word [rbp + 0x60], r14w
call fcn.140005880
lea r9, [rsp + 0x38]
lea r8, [rbp + 0x60]
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x38], 0x104
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
lea edx, [r14 + 0x5c]
lea rcx, [rbp + 0x60]
call fcn.140004d50
mov r13, rax
test rax, rax
je 0x1400044a3
mov qword [rsp + 0x5b8], r12
mov ebx, r14d
mov r12d, r14d
test rdi, rdi
je 0x14000447f
mov rcx, qword [rbp + 0x4c8]
mov rdi, r15
mov rdx, qword [rdi]
test rdx, rdx
je 0x14000439a
lea rcx, [r13 + 2]
call fcn.140004ec0
test eax, eax
jne 0x140004393
mov edx, ebx
mov rcx, rsi
call fcn.140004730
test eax, eax
je 0x140004393
cmp dword [rdi + 8], r14d
je 0x14000449c
lea rdx, [rsp + 0x34]
lea rcx, [rbp + 0x60]
mov dword [rsp + 0x34], r14d
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov r15d, eax
test eax, eax
je 0x140004393
mov ecx, r15d
mov dword [rsp + 0x30], r14d
call fcn.140004b28
mov rsi, rax
test rax, rax
je 0x14000438c
mov edx, dword [rsp + 0x34]
lea rcx, [rbp + 0x60]
mov r9, rax
mov r8d, r15d
call sub.VERSION.dll_GetFileVersionInfoW
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rdx, str.VarFileInfoTranslation
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x140004384
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x50], r14b
call fcn.140005880
mov rax, qword [rsp + 0x40]
movzx r9d, word [rax + 2]
movzx r8d, word [rax]
lea rdx, str.StringFileInfo_04x_04xProductVersion
lea rcx, [rsp + 0x50]
call fcn.140004000
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x1400043b4
mov rcx, rsi
call fcn.140004bd0
mov rsi, qword [rbp + 0x4b0]
mov rcx, qword [rbp + 0x4c8]
inc ebx
inc r12
add rdi, 0x28
movsxd rax, ebx
cmp rax, rcx
jb 0x140004293
jmp 0x14000447f
lea rcx, [rbp + 0x271]
xor edx, edx
mov r8d, 0x1ff
mov byte [rbp + 0x270], r14b
call fcn.140005880
mov rdx, qword [rbp + 0x4c0]
movsxd rax, ebx
mov edi, r14d
lea rcx, [rax + rax*4]
cmp dword [rdx + rcx*8 + 8], r14d
jbe 0x140004477
lea rax, [r12 + r12*4]
lea r15, [rdx + rax*8]
lea rbx, [r15 + 0x10]
nop word [rax + rax]
mov r9, qword [rbx]
lea rdx, [rbp + 0x270]
mov r8d, 0x200
xor ecx, ecx
mov qword [rsp + 0x20], 0x200
call fcn.140005498
mov rax, qword [rbx]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], r14w
jne 0x140004430
mov rcx, qword [rsp + 0x48]
lea rdx, [rbp + 0x270]
call fcn.140004cd0
test eax, eax
je 0x140004471
lea rcx, [rbp + 0x270]
xor edx, edx
mov r8d, 0x200
call fcn.140005880
inc edi
add rbx, 8
cmp edi, dword [r15 + 8]
jb 0x140004400
jmp 0x140004477
mov r14d, 1
mov rcx, rsi
call fcn.140004bd0
mov eax, r14d
mov r12, qword [rsp + 0x5b8]
add rsp, 0x570
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov eax, 1
jmp 0x140004482
mov eax, r14d
jmp 0x14000448a
Function at 0x1400044b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x130
mov rsi, rcx
lea rcx, [rsp + 0x20]
and al, 0x20

Function at 0x140004730
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
lea rax, [rsp + 0x60]
mov edi, edx
mov qword [rsp + 0x30], rax
lea rsi, [section..data]
lea r8, str.AiLdaAppStatusInfo
lea r9d, [rbx + 8]
lea rdx, str.SOFTWAREAMDEEU
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x60], 0x30
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14000479a
cmp edi, 5
ja 0x14000479a
cmp dword [rsi + rdi*8 + 4], ebx
mov ecx, 1
cmovne ebx, ecx
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140004970
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xe60
lea rcx, [rsp + 0x220]
xor edi, edi
mov ebx, edi
call fcn.140004060
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea rdx, str.HookType
mov rcx, rax
call fcn.140005a6c
mov rcx, rax
test rax, rax
je 0x140004a93
add rcx, 9
je 0x1400049fc
movzx edx, byte [rcx]
mov r8d, edi
test dl, dl
je 0x1400049f2
lea r9, [rsp + 0x120]
sub r9, rcx
nop word [rax + rax]
cmp dl, 0x20
je 0x1400049f2
movsxd rax, r8d
cmp rax, 0xff
jae 0x1400049f2
mov byte [r9 + rcx], dl
movzx edx, byte [rcx + 1]
inc rcx
inc r8d
test dl, dl
jne 0x1400049d0
movsxd rax, r8d
mov byte [rsp + rax + 0x120], bl
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea rdx, str.ProcessID
mov rcx, rax
call fcn.140005a6c
test rax, rax
je 0x140004a93
add rax, 0xa
je 0x140004a5a
movzx edx, byte [rax]
mov r8d, edi
test dl, dl
je 0x140004a53
lea r9, [rsp + 0x20]
sub r9, rax
nop
cmp dl, 0x20
je 0x140004a53
movsxd rcx, r8d
cmp rcx, 0xff
jae 0x140004a53
mov byte [r9 + rax], dl
movzx edx, byte [rax + 1]
inc rax
inc r8d
test dl, dl
jne 0x140004a30
movsxd rax, r8d
mov byte [rsp + rax + 0x20], bl
xor edx, edx
lea rcx, [rsp + 0x120]
lea r8d, [rdx + 0x10]
call fcn.140005ed4
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x10]
mov ebx, eax
call fcn.140005ed4
lea rcx, [rsp + 0x220]
mov r8d, ebx
mov edx, eax
call fcn.1400040d0
mov ebx, eax
lea rcx, [rsp + 0x220]
call fcn.140004090
cmp ebx, 1
mov rbx, qword [rsp + 0xe70]
setne dil
mov eax, edi
add rsp, 0xe60
pop rdi
ret

Function at 0x14000ce24
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14000cc8c
Function at 0x14001e1b8
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r15
push rbp
lea rbp, [rax - 0xb8]
sub rsp, 0x1b0
mov rdi, rcx
mov r15d, 0x30
lea rcx, [rsp + 0x30]
mov r8d, r15d
xor edx, edx
call fcn.140005880
mov ebx, 0x10000
lea r8, [rsp + 0x30]
mov r9, r15
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x14001e2c6
cmp dword [rsp + 0x50], 0x1000
jne 0x14001e2b2
test dword [rsp + 0x54], 0x100
jne 0x14001e2b2
xor edx, edx
lea rcx, [rsp + 0x60]
lea r8d, [rdx + 0x40]
call fcn.140005880
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x60]
mov r9d, 0x40
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14001e2b2
mov eax, 0x5a4d
cmp word [rsp + 0x60], ax
jne 0x14001e2b2
lea rcx, [rbp - 0x60]
xor edx, edx
mov r8d, 0x108
call fcn.140005880
movsxd rdx, dword [rbp - 0x64]
and qword [rsp + 0x20], 0
lea r8, [rbp - 0x60]
add rdx, rbx
mov r9d, 0x108
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14001e2b2
cmp dword [rbp - 0x60], 0x4550
jne 0x14001e2b2
mov eax, 0x2000
test word [rbp - 0x4a], ax
je 0x14001e2c1
mov rbx, qword [rsp + 0x48]
add rbx, qword [rsp + 0x30]
jmp 0x14001e1f3
mov rax, rbx
jmp 0x14001e2ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r15, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14001e518
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x138]
sub rsp, 0x210
mov r14d, r9d
mov r15, r8
mov r12, rdx
lea r8d, [r14 + 0x1c8]
xor edx, edx
mov r9d, 0x1000
mov rdi, rcx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
je 0x14001e76d
and qword [rsp + 0x30], 0
mov r13d, 0x40
lea rcx, [rbp - 0x40]
mov r8d, r13d
xor edx, edx
call fcn.140005880
mov eax, 0x5a4d
lea r8, [rbp - 0x40]
mov word [rbp - 0x40], ax
lea rax, [rsp + 0x30]
mov r9d, r13d
mov rdx, rsi
mov rcx, rdi
mov dword [rbp - 4], r13d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x14001e76d
cmp qword [rsp + 0x30], r13
jne 0x14001e76d
lea rcx, [rbp]
xor edx, edx
mov r8d, 0x108
lea rbx, [rsi + 0x40]
call fcn.140005880
lea eax, [r13 - 0x3f]
mov word [rbp + 6], ax
lea rax, [rsp + 0x30]
lea r8, [rbp]
mov r9d, 0x108
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov dword [rbp], 0x4550
mov dword [rbp + 0x14], 0x200000f0
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x14001e76d
mov eax, 0x108
cmp qword [rsp + 0x30], rax
jne 0x14001e76d
lea r8d, [r13 - 0x18]
lea rcx, [rsp + 0x50]
xor edx, edx
add rbx, rax
call fcn.140005880
movabs rax, 0x72756f7465642e
mov qword [rsp + 0x50], rax
mov eax, ebx
lea r9d, [r13 - 0x18]
sub eax, esi
lea esi, [r14 + 0x58]
lea r8, [rsp + 0x50]
add eax, 0x28
mov rdx, rbx
mov rcx, rdi
mov dword [rsp + 0x5c], eax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x14001e76d
cmp qword [rsp + 0x30], 0x28
jne 0x14001e76d
lea rcx, [rbp - 0x80]
mov r8d, r13d
xor edx, edx
add rbx, 0x28
call fcn.140005880
lea rax, [rsp + 0x30]
lea r8, [rbp - 0x80]
mov r9d, r13d
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x80], r13d
mov dword [rbp - 0x7c], 0x727444
mov dword [rbp - 0x78], r13d
mov dword [rbp - 0x74], esi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x14001e76d
cmp qword [rsp + 0x30], r13
jne 0x14001e76d
lea esi, [r13 - 0x28]
lea rcx, [rsp + 0x38]
xor edx, edx
mov r8d, esi
add rbx, r13
call fcn.140005880
and dword [rsp + 0x3c], 0
lea eax, [r14 + 0x18]
movups xmm0, xmmword [r12]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x38]
movdqu xmmword [rsp + 0x40], xmm0
mov r9d, esi
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x14001e76d
cmp qword [rsp + 0x30], rsi
jne 0x14001e76d
lea rcx, [rsp + 0x30]
lea rdx, [rbx + 0x18]
mov r9d, r14d
mov qword [rsp + 0x20], rcx
mov rcx, rdi
mov r8, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x14001e76d
cmp qword [rsp + 0x30], r14
jne 0x14001e76d
lea eax, [rsi - 0x17]
jmp 0x14001e76f
xor eax, eax
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret