joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495d60
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x20]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
add rbx, 0x10
pxor xmm4, xmm4
cmp ecx, 0xc
je 0x495e30
jb 0x495e8f
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call fcn.00495b80
aeskeygenassist xmm1, xmm0, 1
call fcn.00495ba0
aeskeygenassist xmm1, xmm2, 2
call fcn.00495b80
aeskeygenassist xmm1, xmm0, 2
call fcn.00495ba0
aeskeygenassist xmm1, xmm2, 4
call fcn.00495b80
aeskeygenassist xmm1, xmm0, 4
call fcn.00495ba0
aeskeygenassist xmm1, xmm2, 8
call fcn.00495b80
aeskeygenassist xmm1, xmm0, 8
call fcn.00495ba0
aeskeygenassist xmm1, xmm2, 0x10
call fcn.00495b80
aeskeygenassist xmm1, xmm0, 0x10
call fcn.00495ba0
aeskeygenassist xmm1, xmm2, 0x20
call fcn.00495b80
aeskeygenassist xmm1, xmm0, 0x20
call fcn.00495ba0
aeskeygenassist xmm1, xmm2, 0x40
call fcn.00495b80
jmp 0x495efd
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call fcn.00495ae0
aeskeygenassist xmm1, xmm2, 2
call fcn.00495b40
aeskeygenassist xmm1, xmm2, 4
call fcn.00495ae0
aeskeygenassist xmm1, xmm2, 8
call fcn.00495b40
aeskeygenassist xmm1, xmm2, 0x10
call fcn.00495ae0
aeskeygenassist xmm1, xmm2, 0x20
call fcn.00495b40
aeskeygenassist xmm1, xmm2, 0x40
call fcn.00495ae0
aeskeygenassist xmm1, xmm2, 0x80
call fcn.00495b40
jmp 0x495efd
aeskeygenassist xmm1, xmm0, 1
call fcn.00495aa0
aeskeygenassist xmm1, xmm0, 2
call fcn.00495aa0
aeskeygenassist xmm1, xmm0, 4
call fcn.00495aa0
aeskeygenassist xmm1, xmm0, 8
call fcn.00495aa0
aeskeygenassist xmm1, xmm0, 0x10
call fcn.00495aa0
aeskeygenassist xmm1, xmm0, 0x20
call fcn.00495aa0
aeskeygenassist xmm1, xmm0, 0x40
call fcn.00495aa0
aeskeygenassist xmm1, xmm0, 0x80
call fcn.00495aa0
aeskeygenassist xmm1, xmm0, 0x1b
call fcn.00495aa0
aeskeygenassist xmm1, xmm0, 0x36
call fcn.00495aa0
sub rbx, 0x10
movups xmm1, xmmword [rbx]
movups xmmword [rdx], xmm1
dec rcx
movups xmm1, xmmword [rbx - 0x10]
aesimc xmm0, xmm1
movups xmmword [rdx + 0x10], xmm0
sub rbx, 0x10
add rdx, 0x10
dec rcx
jne 0x495f0a
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
ret
Function at 0x4d1b60
Capabilities:
Execute syscall

Disassembly:
xor rax, rax
mov ax, word [rsp + 8]
push rcx
mov rcx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x18]
mov rdi, qword gs:[0x30]
mov dword [rdi + 0x68], 0
sub rsp, 0x40
mov rdi, rsp
cld
rep movsq qword [rdi], qword [rsi]
mov rsi, rsp
sub rsp, 8
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
mov r9, qword [rsi + 0x18]
movq xmm0, rcx
movq xmm1, rdx
movq xmm2, r8
movq xmm3, r9
mov r10, rcx
syscall
add rsp, 0x48
pop rcx
mov dword [rsp + 0x28], eax
mov rdi, qword gs:[0x30]
mov eax, dword [rdi + 0x68]
mov qword [rsp + 0x30], rax
ret
Function at 0x140001bd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
lea rcx, [0x1400067c0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140001c02
lea rdx, [0x1400067c0]
lea rcx, [0x1400013d0]
call qword [sym.imp.msvcrt.dll_printf]
mov eax, dword [0x14000540c]
jmp 0x140001c2d
lea rcx, [0x1400067c0]
call fcn.140002410
cmp dword [0x1400059cc], 0
je 0x140001c1b
xor eax, eax
jmp 0x140001c2d
lea rcx, [0x1400067c0]
call fcn.140001a30
mov eax, dword [0x14000540c]
add rsp, 0x28
ret

Function at 0x140001c40
Capabilities:
Check for sandbox and av modules
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x58
cmp dword [0x1400066a0], 0
je 0x140001c64
lea rcx, [0x1400013f0]
call qword [sym.imp.msvcrt.dll_printf]
mov eax, 1
jmp 0x140001dbb
lea rcx, [0x1400068d0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140001c95
lea rdx, [0x1400068d0]
lea rcx, [0x1400013d0]
call qword [sym.imp.msvcrt.dll_printf]
mov eax, dword [0x14000540c]
jmp 0x140001dbb
lea rcx, [0x1400068d0]
call fcn.140002150
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140001cb8
mov eax, 1
jmp 0x140001dbb
lea rcx, [0x140001430]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140001cea
lea rcx, [0x140001440]
call qword [sym.imp.msvcrt.dll_printf]
mov eax, dword [0x14000540c]
jmp 0x140001dbb
lea rdx, [0x140001468]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140001d21
lea rcx, [0x140001480]
call qword [sym.imp.msvcrt.dll_printf]
mov eax, dword [0x14000540c]
jmp 0x140001dbb
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400068d0]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [0x1400059c0]
call qword [rsp + 0x38]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140001d6b
lea rdx, [0x1400068d0]
lea rcx, [0x1400014b0]
call qword [sym.imp.msvcrt.dll_printf]
mov eax, dword [0x14000540c]
jmp 0x140001dbb
lea r8, [0x140001dd0]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [0x1400059c0]
call qword [sym.imp.dbghelp.dll_SymEnumSourceFileTokens]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140001d9c
lea rcx, [0x1400014d0]
call qword [sym.imp.msvcrt.dll_printf]
mov rcx, qword [0x1400059c0]
call qword [sym.imp.dbghelp.dll_SymCleanup]
lea rcx, [0x1400068d0]
call fcn.140001a30
mov eax, dword [0x14000540c]
add rsp, 0x58
ret
Function at 0x1400029b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
jmp 0x1400029e7
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x58]
add rax, 8
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x24], eax
jge 0x140002bf9
cmp dword [rsp + 0x24], 0
jne 0x1400029fe
jmp 0x1400029cf
mov rax, qword [rsp + 0x58]
cmp qword [rax], 0
jne 0x140002a0e
jmp 0x140002bf9
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
cmp eax, 0x2d
je 0x140002a39
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
cmp eax, 0x2f
jne 0x140002ba2
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax + 1]
mov ecx, eax
call qword [sym.imp.msvcrt.dll_tolower]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
sub eax, 0x63
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x15
ja case.0x140002a7a.101
movsxd rax, dword [rsp + 0x38]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x2c04]
add rax, rcx
jmp rax
mov dword [0x1400059cc], 1
jmp 0x140002ba0
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
cmp eax, 0x3a
jne 0x140002ac3
mov rax, qword [rsp + 0x30]
inc rax
mov r8d, 0x105
lea rdx, [0x1400059d0]
mov rcx, rax
call fcn.140002920
jmp 0x140002ba0
mov dword [0x140005ad8], 1
jmp 0x140002ba0
mov dword [0x140005adc], 1
jmp 0x140002ba0
mov dword [0x140006698], 1
jmp 0x140002ba0
mov dword [0x14000669c], 1
jmp 0x140002ba0
mov dword [0x1400066a0], 1
jmp 0x140002ba0
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movsx eax, byte [rax]
cmp eax, 0x3a
jne 0x140002b4a
mov rax, qword [rsp + 0x30]
inc rax
mov r8, rax
mov edx, 0x105
lea rcx, [0x1400066b0]
call fcn.1400034a4
xor edx, edx
lea rcx, [0x1400066b0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rcx, [0x1400066b0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xffffffff
je 0x140002b7c
mov eax, dword [rsp + 0x28]
and eax, 0x10
test eax, eax
jne 0x140002b97
lea rdx, [0x1400066b0]
lea rcx, [0x1400018c0]
call qword [sym.imp.msvcrt.dll_printf]
call fcn.140002880
jmp 0x140002bfd
jmp 0x140002ba0
call fcn.140002880
jmp 0x140002bfd
jmp 0x140002bf4
mov rcx, qword [rsp + 0x30]
call fcn.140002c70
test eax, eax
je 0x140002bd3
mov r8, qword [rsp + 0x30]
mov edx, 0x104
lea rcx, [0x1400067c0]
call fcn.1400034a4
test eax, eax
je 0x140002bd1
call fcn.140002880
jmp 0x140002bfd
jmp 0x140002bf4
mov r8, qword [rsp + 0x30]
mov edx, 0x104
lea rcx, [0x1400068d0]
call fcn.1400034a4
test eax, eax
je 0x140002bf4
call fcn.140002880
jmp 0x140002bfd
jmp 0x1400029cf
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret
Function at 0x140002d70
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1400069f0], rbx
je 0x140002dbc
cmp rax, rbx
jne 0x140002daf
mov ebx, 1
mov esi, ebx
jmp 0x140002dc1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002d94
mov ebx, 1
mov eax, dword [0x1400069e8]
cmp eax, ebx
jne 0x140002dd7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140002e34
mov eax, dword [0x1400069e8]
test eax, eax
jne 0x140002e2e
mov dword [0x1400069e8], ebx
lea r13, [0x140001208]
lea rdi, [0x1400011f0]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r13
jae 0x140002e20
test eax, eax
jne 0x140002e24
mov rcx, qword [rdi]
test rcx, rcx
je 0x140002e15
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140002dfe
test eax, eax
je 0x140002e34
mov eax, 0xff
jmp 0x140002f05
mov dword [0x14000543c], ebx
mov eax, dword [0x1400069e8]
cmp eax, ebx
jne 0x140002e5b
lea rdx, [0x1400011e8]
lea rcx, [0x1400011d8]
call sub.msvcrt.dll__initterm
mov dword [0x1400069e8], 2
test esi, esi
jne 0x140002e68
xor eax, eax
xchg qword [0x1400069f0], rax
cmp qword [0x1400069f8], 0
je 0x140002e91
lea rcx, [0x1400069f8]
call fcn.14000370c
test eax, eax
je 0x140002e91
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x1400069f8]
mov r8, qword [0x140005420]
mov rdx, qword [0x140005428]
mov ecx, dword [0x140005418]
call fcn.140001b40
mov dword [0x140005438], eax
cmp dword [0x14000541c], 0
jne 0x140002ec1
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000543c], 0
jne 0x140002ed6
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140005438]
jmp 0x140002f05
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.140003820
add rsp, 0x28
jmp 0x140002d70
Function at 0x140003020
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140005100]
jne 0x14000303b
rol rcx, 0x10
test cx, 0xffff
jne 0x140003037
ret 0
ror rcx, 0x10
jmp 0x1400038dc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400054f0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400055e8]
mov qword [rsp + 0x58], rax
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 0x140003961
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, [0x1400054f0]
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 0x140003983
mov rax, qword [rsp + 0x88]
mov qword [0x1400055e8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140005588], rax
mov rax, qword [0x1400055e8]
mov qword [0x140005460], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140005570], rax
mov dword [0x140005450], 0xc0000409
mov dword [0x140005454], 1
mov rax, qword [0x140005100]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140005108]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140001268]
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, 0x88
ret

Function at 0x140003048
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x540
mov rax, qword [0x140005100]
xor rax, rsp
mov qword [rsp + 0x530], rax
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 0x1400030c5
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 0x1400030e5
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, [0x140001230]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140003020
add rsp, 0x540
pop rbx
ret

Function at 0x140003778
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
test rcx, rcx
je 0x1400037c5
cmp rcx, 0xffffffffffffffff
je 0x1400037c5
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400037bd
cmp dword [rcx + 0x3c], edx
jl 0x1400037bd
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400037bd
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 0x1400037c5
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14001119a
Capabilities:
Create thread
Inject thread

Disassembly:
jmp 0x140014820
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x40]
lea rcx, [0x14002a33e]
call fcn.1400115fa
nop
mov r8d, dword [rbp + 0x140]
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140014868
jmp 0x14001497e
mov rcx, qword [rbp + 0x148]
call fcn.140011280
inc rax
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8, rax
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1400148af
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x14001497e
mov rcx, qword [rbp + 0x148]
call fcn.140011280
inc rax
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x148]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x140014940
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x14001497e
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x14001134d
Capabilities:
Terminate process

Disassembly:
jmp 0x140017970
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]
nop
add rsp, 0x28
ret
Function at 0x14001142e
Capabilities:
Parse pe header

Disassembly:
jmp 0x140018da0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140018dc0
xor al, al
jmp 0x140018e41
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140018dd3
xor al, al
jmp 0x140018e41
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140018dfd
xor al, al
jmp 0x140018e41
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140018e11
xor al, al
jmp 0x140018e41
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140018e23
xor al, al
jmp 0x140018e41
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140018e3f
xor al, al
jmp 0x140018e41
mov al, 1
add rsp, 0x38
ret
Function at 0x140016ba0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011627
movzx eax, al
test eax, eax
jne 0x140016bc0
mov ecx, 7
call fcn.140011505
nop
mov byte [rsp + 0x20], 0
call fcn.140011541
mov byte [rsp + 0x21], al
cmp dword [0x140024c68], 1
jne 0x140016be4
mov ecx, 7
call fcn.140011505
nop
jmp 0x140016c3c
cmp dword [0x140024c68], 0
jne 0x140016c37
mov dword [0x140024c68], 1
lea rdx, [0x14001f660]
lea rcx, [0x14001f330]
call fcn.1400112bc
test eax, eax
je 0x140016c18
mov eax, 0xff
jmp 0x140016d41
lea rdx, [0x14001f220]
lea rcx, [section..rdata]
call fcn.140011528
mov dword [0x140024c68], 2
jmp 0x140016c3c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400114f1
call fcn.140011451
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140016c99
mov rcx, qword [rsp + 0x30]
call fcn.140011235
movzx eax, al
test eax, eax
je 0x140016c99
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14002b020]
nop
call fcn.14001149c
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140016ccd
mov rcx, qword [rsp + 0x38]
call fcn.140011235
movzx eax, al
test eax, eax
je 0x140016ccd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400115d7
nop
call fcn.140016df0
mov dword [rsp + 0x28], eax
call fcn.14001142e
movzx eax, al
test eax, eax
jne 0x140016cec
mov ecx, dword [rsp + 0x28]
call fcn.140011069
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140016cfb
call fcn.1400115e6
nop
xor edx, edx
mov cl, 1
call fcn.140011208
mov eax, dword [rsp + 0x28]
jmp 0x140016d41
add rsp, 0x68
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14002dd20]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14002dd30]
mov dword [rax], 1
mov rax, qword [0x14002dd40]
mov dword [rax], 1
mov rax, qword [0x14002dca0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14002dd10]
mov dword [0x14003600c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14002de00]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14002dde0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14002da70]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001530
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp + 0x20], rcx
lea rax, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov qword [rbp - 8], rax
lea rax, str.MyProgram
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
mov r9d, 2
mov r8d, 0
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
test eax, eax
sete al
test al, al
je 0x1400015e1
mov rax, qword [rbp + 0x20]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.size___const
lea ebx, [rax + 1]
mov rax, qword [rbp + 0x20]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rcx, rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rcx
mov r9d, 1
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
nop
add rsp, 0x58
pop rbx
pop rbp
ret
Function at 0x1400043d0
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [rcx + 0x18]
movzx edx, byte [rax]
cmp dl, 0x4c
je 0x140004440
jg 0x140004400
sub edx, 0x49
cmp dl, 1
ja 0x140004450
add rax, 1
mov qword [rcx + 0x18], rax
add rsp, 0x30
pop rsi
jmp sym.d_template_args_1
cmp dl, 0x58
jne 0x140004450
add rax, 1
mov esi, dword [rcx + 0x4c]
mov dword [rcx + 0x4c], 1
mov qword [rcx + 0x18], rax
mov qword [rsp + 0x28], rcx
call sym.d_expression_1
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx + 0x18]
mov dword [rcx + 0x4c], esi
cmp byte [rdx], 0x45
jne 0x140004460
add rdx, 1
mov qword [rcx + 0x18], rdx
add rsp, 0x30
pop rsi
ret
add rsp, 0x30
pop rsi
jmp sym.d_expr_primary
add rsp, 0x30
pop rsi
jmp sym.d_type
xor eax, eax
jmp 0x14000443a