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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140007750]
mov rcx, qword [0x140007700]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x140007760]
cmp word [rcx], 0x5a4d
mov dword [rax], 1
mov rax, qword [0x140007770]
mov dword [rax], 1
jne 0x140001083
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001083
mov ecx, dword [rax + 0x18]
cmp cx, 0x10b
je 0x14000105e
cmp cx, 0x20b
je 0x14000106d
jmp 0x140001083
cmp dword [rax + 0x74], 0xe
jbe 0x140001083
cmp dword [rax + 0xe8], 0
jmp 0x14000107d
cmp dword [rax + 0x84], 0xe
jbe 0x140001083
cmp dword [rax + 0xf8], 0
setne dl
movzx edx, dl
mov rax, qword [0x140007740]
mov dword [0x14000a00c], edx
mov ecx, 2
cmp dword [rax], 0
jne 0x14000109f
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140007820]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140007800]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400076b0]
cmp dword [rax], 1
jne 0x1400010e1
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001744
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14000a0a8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14000a0a4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140001792
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000178a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001879
inc ebx
add rax, 0x28
jmp 0x14000176a
mov rcx, r12
call sym.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
jne 0x1400017b1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
movsxd rbx, ebx
mov rax, qword [0x14000a0a8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call sym._GetPEImageBase
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140001813
mov rax, qword [0x14000a0a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001873
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001873
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 [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001873
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
inc dword [0x14000a0a4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140001ca0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14000a100]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x140001cec
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140001ce6
test eax, eax
jne 0x140001ce6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140001cbe
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140001ea0
Capabilities:
Parse pe header

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

Function at 0x140001ec4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140001efe
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140001ef5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140001f00
inc r8d
add rax, 0x28
jmp 0x140001edc
xor eax, eax
ret

Function at 0x140001f71
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140007700]
mov r8, rcx
mov rcx, r9
call sym._ValidateImageBase
test eax, eax
je 0x140001f9d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp sym._FindPESection
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001810
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x234
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov dword [rsp + 0x20], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001986
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rax, [rsp + 0x4c]
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140001880
cmp qword [rbx + 0x18], 7
mov r9, rbx
mov r10, qword [rbx + 0x10]
jbe 0x14000189b
mov r9, qword [rbx]
cmp rcx, r10
lea rdx, [rsp + 0x4c]
mov r8, r10
cmovb r8, rcx
test r8, r8
je 0x1400018d4
lea rax, [rsp + 0x4c]
sub r9, rax
nop word [rax + rax]
movzx eax, word [r9 + rdx]
cmp ax, word [rdx]
jne 0x1400018df
add rdx, 2
sub r8, 1
jne 0x1400018c0
cmp r10, rcx
jb 0x1400018df
jbe 0x1400019a9
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14000197d
nop word [rax + rax]
lea rcx, [rsp + 0x4c]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140001910
cmp qword [rbx + 0x18], 7
mov r9, rbx
mov r10, qword [rbx + 0x10]
jbe 0x14000192b
mov r9, qword [rbx]
cmp rax, r10
lea rdx, [rsp + 0x4c]
mov r8, r10
cmovb r8, rax
test r8, r8
je 0x140001964
lea rcx, [rsp + 0x4c]
sub r9, rcx
nop word [rax + rax]
movzx ecx, word [r9 + rdx]
cmp cx, word [rdx]
jne 0x14000196b
add rdx, 2
sub r8, 1
jne 0x140001950
cmp r10, rax
jb 0x14000196b
jbe 0x1400019a9
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001900
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400176b0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x140001988
Function at 0x140001e50
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edx, r8d
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rcx, [rbx + 4]
xor edx, edx
mov r8d, 0x434
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
mov rdx, rbx
mov dword [rbx], 0x438
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x140001edb
mov qword [rsp + 0x30], rsi
lea rsi, str.Minecraft.Windows.exe
xor eax, eax
movzx ecx, word [rbx + rax*2 + 0x30]
cmp cx, word [rsi + rax*2]
jne 0x140001ec6
movzx ecx, word [rbx + rax*2 + 0x32]
cmp cx, word [rsi + rax*2 + 2]
jne 0x140001ec6
add rax, 2
cmp rax, 0x16
jne 0x140001ea3
jmp 0x140001ed6
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140001ea1
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400021d0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov edx, ecx
xor edi, edi
lea ecx, [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140002260
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x438
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x140002260
lea rdx, str.Minecraft.Windows.exe
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14000225b
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140002231
jmp 0x140002260
mov rdi, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400176b0
mov rbx, qword [rsp + 0x488]
add rsp, 0x470
pop rdi
ret

Function at 0x140002290
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, r9d
mov rbx, rdx
mov rbp, rcx
test r9d, r9d
jle 0x14000230b
nop dword [rax]
nop dword [rax + rax]
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
je 0x1400022fe
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test eax, eax
jne 0x140002322
sub rbx, 0x10000
inc edi
cmp edi, esi
jl 0x1400022c0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rax, rbx
jmp 0x14000230d
Function at 0x14000d0c0
Capabilities:
Execute command

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, qword [0x140025340]
lea rcx, [0x140025330]
cmp qword [0x140025348], 0xf
cmova rcx, qword [0x140025330]
cmp rbx, 5
jne 0x14000d0fd
mov r8, rbx
lea rdx, str.clear
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14000d135
lea rcx, [0x140025330]
cmp qword [0x140025348], 0xf
cmova rcx, qword [0x140025330]
cmp rbx, 3
jne 0x14000d283
mov r8, rbx
lea rdx, [0x14001ae04]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000d283
mov rbx, qword [0x140026308]
cmp rbx, 2
jne 0x14000d1a4
mov r8, qword [0x140023300]
lea rcx, [0x1400232f0]
cmp qword [0x140023308], 0xf
cmova rcx, qword [0x1400232f0]
cmp r8, 1
jne 0x14000d233
lea rdx, [0x14001b078]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000d233
lea rdx, [0x140025330]
lea rcx, [rsp + 0x20]
call fcn.140003520
mov rcx, rax
call fcn.140006810
mov byte [0x1400261cd], 1
add rsp, 0x60
pop rbx
ret
cmp rbx, 1
jne 0x14000d233
lea rcx, [0x14001ae04]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x70], rax
mov rdx, qword [0x140026230]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], al
jne 0x14000d1f0
lea rcx, [rsp + 0x20]
call fcn.140006130
nop
lea rdx, [0x1400252d0]
lea rcx, [rsp + 0x40]
call fcn.140003520
nop
mov r8d, ebx
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140006350
mov byte [0x1400261cd], 1
add rsp, 0x60
pop rbx
ret
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], rax
shl rbx, 5
lea rdx, [0x1400232d0]
add rdx, 0xffffffffffffffe0
add rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140003520
mov rbx, rax
lea rdx, [0x140025330]
lea rcx, [rsp + 0x20]
call fcn.140003520
nop
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call fcn.140006670
mov byte [0x1400261cd], 1
add rsp, 0x60
pop rbx
ret
Function at 0x140016c8c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140016cc6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140016ccb
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140016d14
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14001a890]
cmp byte [rcx + rax], 0
je 0x140016d14
dec r8
sub rdx, 1
jne 0x140016cfa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140018220
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001826a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001826a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001826a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001826a
cmp dword [rcx + 0x84], 0xe
jbe 0x14001826a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001826c
xor al, al
add rsp, 0x28
ret
Function at 0x140001e40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001e9c
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 0x140001e93
test rsi, rsi
je 0x140001e93
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001e78
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 0x1400020b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400020f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400020c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400020f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400020d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400020e8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400020f0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

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

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

Function at 0x140002270
Capabilities:
Parse pe header

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

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

Function at 0x140002510
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov r8d, 0x2c
mov ecx, 2
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140002540
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140002950
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rbx, rdx
lea rcx, str.KERNEL32.DLL
call sub.KERNEL32.dll_GetModuleHandleW
lea rdx, str.VirtualAlloc
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov rdx, rbx
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x1000
call rax
mov rcx, rbx
xor r8d, r8d
xor edx, edx
mov rdi, rax
mov r9, rax
rep movsb byte [rdi], byte [rsi]
mov ecx, 0x10000
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.CRYPT32.dll_CertEnumSystemStore]
Function at 0x140002f10
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1400065e0], rbx
je 0x140002f5c
cmp rax, rbx
jne 0x140002f4f
mov ebx, 1
mov esi, ebx
jmp 0x140002f61
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002f34
mov ebx, 1
mov eax, dword [0x1400065e8]
cmp eax, ebx
jne 0x140002f77
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140002fdc
mov eax, dword [0x1400065e8]
test eax, eax
jne 0x140002fd6
mov dword [0x1400065e8], ebx
lea r15, [0x1400043f8]
lea rdi, [0x1400043e0]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140002fc8
test eax, eax
jne 0x140002fcc
cmp qword [rdi], 0
je 0x140002fbd
mov rax, qword [rdi]
mov rcx, qword [0x1400043c0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140002f9e
test eax, eax
je 0x140002fdc
mov eax, 0xff
jmp 0x1400030b8
mov dword [0x140006024], ebx
mov eax, dword [0x1400065e8]
cmp eax, ebx
jne 0x140003003
lea rdx, [0x1400043d8]
lea rcx, [0x1400043c8]
call sub.msvcrt.dll__initterm
mov dword [0x1400065e8], 2
test esi, esi
jne 0x140003010
xor eax, eax
xchg qword [0x1400065e0], rax
cmp qword [0x1400065f0], 0
je 0x140003044
lea rcx, [0x1400065f0]
call fcn.1400032c0
test eax, eax
je 0x140003044
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400065f0]
mov r9, qword [0x1400043c0]
call r9
mov r8, qword [0x140006038]
mov rdx, qword [0x140006030]
mov ecx, dword [0x140006028]
call fcn.140002ac4
mov dword [0x140006020], eax
cmp dword [0x140006040], 0
jne 0x140003074
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140006024], 0
jne 0x140003089
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140006020]
jmp 0x1400030b8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140176000
add rsp, 0x28
jmp 0x140002f10

Function at 0x1400031ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400031f8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400031f0
cmp dword [rcx + 0x3c], edx
jl 0x1400031f0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400031f0
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 0x1400031f8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14027665b
Capabilities:
Execute anti-debugging instructions

Disassembly:
push word [rsp + 0xb]
mov cl, byte [rsp + 3]
mov al, 0x11
mov edx, 0x63ba27b0
lea r10, [r13 + riz + 0x1c2]
ror r13w, cl
bsf rcx, rsp
jmp 0x140276608
mov r13b, 0x97
rdtsc
inc r8d
mov qword [rsp + 9], r9
or al, 0x15
jmp 0x14027662e
Function at 0x140276dfc
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov r13w, ax
mov r13d, dword [rsp + 0x40]
mov cl, r9b
sub rsp, 0x17
xchg dword [rsp + 0xd], r11d
mov r10d, dword [rsp + 0x3c]
xchg byte [rsp + 0x46], dl
jmp 0x140276de6

Function at 0x1402774a3
Capabilities:
Execute anti-debugging instructions

Disassembly:
push qword [rsp + 0x3f]
pop qword [rsp + 0x44]
mov r10b, r8b
pop rcx
jmp 0x140277538
mov r13d, 0xee55a2c1
neg r10d
rdtsc
xchg qword [rsp + 0x2a], r11
mov rdx, 0x5e01b5d2
mov r10b, byte [rsp + 0x27]
jmp 0x1402774d3
pushfq
bt eax, ebp
xchg r13, rdi
shl r8w, cl
xchg word [rsp + 0x2e], r10w
mov rdx, qword [rsp + 0x2a]
jmp 0x1402774e9
mov ecx, 0x1ef53b64
add rsp, 8
bt ax, r10w
shr dx, cl
shr ax, 0xc
xchg byte [rsp + 0x20], dil
jmp 0x14027750c

Function at 0x140277755
Capabilities:
Execute anti-debugging instructions

Disassembly:
sub rsp, 0x10
mov r11w, 0xa1e9
cld
bswap r8
jmp 0x140277e6e
mov qword [rsp + 2], r13

Function at 0x14027893d
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
pushfq
lea rsp, [rsp + 3]
push qword [rsp + 2]
jmp 0x140278970
Function at 0x140003770
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400650c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
call fcn.14001b340
test al, al
jne 0x140003799
call fcn.14001b3e0
test al, al
jne 0x14000386f
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x20], 0
call fcn.140003880
mov r9, rax
cmp byte [rax + 0x26ed], 0
je 0x1400037e7
xor edx, edx
movabs r8, 0x2967333707df99f9
movzx ecx, dl
mov rax, r8
and cl, 7
shl cl, 3
shr rax, cl
xor byte [rdx + r9], al
inc rdx
cmp rdx, 0x26ed
jb 0x1400037c0
mov byte [r9 + 0x26ed], 0
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x28], xmm0
mov r8, 0xffffffffffffffff
movdqu xmmword [rsp + 0x38], xmm1
nop
inc r8
cmp byte [r9 + r8], 0
jne 0x140003800
mov rdx, r9
lea rcx, [rsp + 0x28]
call fcn.140002e60
call fcn.140017050
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140003855
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003850
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003869
call fcn.14001e560
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001e540
add rsp, 0x58
ret
call fcn.14002604c
int3
xor ecx, ecx
call fcn.140025368
int3