joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010900
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov ecx, dword [0x140039068]
test ecx, ecx
je 0x140010930
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140010949
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140010949
add rdi, 0x10
jmp 0x140010a3e
lea rcx, [0x140039050]
call fcn.140010ce0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x14001091d
mov ecx, dword [0x140039068]
test ecx, ecx
je 0x140010a1f
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140010a3c
mov rsi, rax
test rax, rax
jne 0x1400109ee
mov qword [rsp + 0x28], 0
lea rax, [0x140039050]
mov qword [rsp + 0x20], rax
movzx eax, byte [0x140046160]
mov rcx, qword [0x1400460d8]
test rcx, rcx
jne 0x1400109b0
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x140010a58
mov rcx, rax
mov qword [0x1400460d8], rax
mov r8d, 0x18
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x140010a58
mov rsi, rax
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
mov ecx, dword [0x140039068]
test ecx, ecx
je 0x140010a48
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x140010a3e
test rcx, rcx
je 0x140010a3e
lock dec qword [rcx]
jne 0x140010a3e
call fcn.140010aa0
jmp 0x140010a3e
lea rcx, [0x140039050]
call fcn.140010ce0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x140010968
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x140039050]
call fcn.140010ce0
mov ecx, eax
jmp 0x1400109e6
mov ecx, 8
mov edx, 0x18
call fcn.140001e20
ud2
Function at 0x140010ce0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140010d65
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x140010da6
cmp dword [rsp + 0x2c], 0
je 0x140010d8a
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140010dc0
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1400460e8]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1400460e8], rsi
jne 0x140010d40
mov byte [0x1400460e0], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x140010d9c
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140010e0c
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140010d8f
mov edi, dword [rsp + 0x28]
jmp 0x140010d9c
mov edi, dword [rsi + 0x18]
jmp 0x140010d9a
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140010e70
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.combase.dll
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.140002640
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.combase.dll
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140010ec0
ud2
Function at 0x140011a10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140039088]
test ecx, ecx
je 0x140011ad6
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140011a3d
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x140011ad0
mov ecx, dword [0x140039088]
test ecx, ecx
je 0x140011af8
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140011b15
mov rsi, rax
test rax, rax
jne 0x140011aca
movzx eax, byte [0x140046160]
mov rcx, qword [0x1400460d8]
test rcx, rcx
jne 0x140011a8f
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x140011b30
mov rcx, rax
mov qword [0x1400460d8], rax
mov r8d, 0x10
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x140011b30
mov rsi, rax
lea rax, [0x140039070]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x140039088]
test ecx, ecx
je 0x140011b20
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x140011b17
lea rcx, [0x140039070]
call fcn.140010ce0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x140011a30
jmp 0x140011a3d
lea rcx, [0x140039070]
call fcn.140010ce0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x140011a5c
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140039070]
call fcn.140010ce0
mov ecx, eax
jmp 0x140011ac2
mov ecx, 8
mov edx, 0x10
call fcn.140001e20
ud2
Function at 0x140012790
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140039048]
test ecx, ecx
je 0x1400127bd
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400127d6
cmp qword [rax + 8], 0
je 0x1400127d6
add rax, 0x10
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140039030]
call fcn.140010ce0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400127ac
mov ecx, dword [0x140039048]
test ecx, ecx
je 0x140012881
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x14001289e
mov rsi, rax
test rax, rax
jne 0x140012863
movzx eax, byte [0x140046160]
mov rcx, qword [0x1400460d8]
test rcx, rcx
jne 0x140012828
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400128b6
mov rcx, rax
mov qword [0x1400460d8], rax
mov r8d, 0x20
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x1400128b6
mov rsi, rax
lea rax, [0x140039030]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140039048]
test ecx, ecx
je 0x1400128a6
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140039030]
call fcn.140010ce0
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400127f5
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140039030]
call fcn.140010ce0
mov ecx, eax
jmp 0x14001285b
mov ecx, 8
mov edx, 0x20
call fcn.140001e20
ud2

Function at 0x1400151d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rax, rdx
movzx r9d, byte [rdx + 0x38]
movzx r8d, byte [rdx + 0x3a]
xor edx, edx
cmp r9b, 1
ja 0x14001523b
movzx r10d, byte [rax + 0x10]
movzx r11d, r10b
test r8b, r8b
jne 0x140015398
cmp r10b, 5
jb 0x140015398
mov r10, qword [rax]
mov rdx, qword [rax + 8]
xor esi, esi
test r9b, r9b
jne 0x14001522b
cmp r11b, 6
je 0x14001522b
mov esi, 2
cmp rdx, 2
jb 0x140015442
cmp rsi, rdx
jne 0x140015358
xor edx, edx
jmp 0x140015398
xor r10d, r10d
add rdx, r10
lea rdi, [r10 + rsi]
inc rdi
cmp rdi, rdx
sete dl
xchg esp, eax
ret 0xf45
mov dh, 0x14
invalid
test dl, 1
jne 0x14001538d
cmp r10b, 0x2e
jne 0x14001538d
movzx edx, byte [rdi]
cmp dl, 0x5c
cmp r10b, 0x2e
sete r10b
lea r8, [0x14003ec00]
mov ecx, 2
call fcn.140002680
ud2
Function at 0x140037880
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 fcn.140038640
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140038640
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400378f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400461f4]
mov rbx, rcx
test esi, esi
jle 0x140037a20
mov rax, qword [0x1400461f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14003793b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400379c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140037920
mov rcx, rbx
call fcn.140038360
mov rdi, rax
test rax, rax
je 0x140037a42
mov rax, qword [0x1400461f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400384a0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400461f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140037a27
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400379be
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400379d0
add dword [0x1400461f4], 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 [0x1400461f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1400379be
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140037880
nop dword [rax]
xor esi, esi
jmp 0x140037948
mov rax, qword [0x1400461f8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140037880
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140037880
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140037fd0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140046260]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140046240]
test rbx, rbx
je 0x14003802c
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 0x140038023
test eax, eax
jne 0x140038023
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140038008
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 0x140038360
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400383e0
Capabilities:
Parse pe header

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

Function at 0x1400384a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140040610]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400384bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400384c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x7ff7ec9b1080
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
lea rdx, [0x7ff7ec9bd5f0]
xor ecx, ecx
call qword [sym.imp.user32.dll_FindWindowA]
test rax, rax
je 0x7ff7ec9b10ba
xor r9d, r9d
lea r8, [0x7ff7ec9bd5f8]
lea rdx, [0x7ff7ec9bd600]
xor ecx, ecx
call qword [sym.imp.user32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.ucrtbase.dll_exit]
int3
call fcn.7ff7ec9b93b0
mov ecx, 0x3e8
call qword [sym.imp.kernel32.dll_Sleep]
lea rcx, [0x7ff7ec9bd638]
call fcn.7ff7ec9b1020
mov ecx, 0x3e8
call qword [sym.imp.kernel32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.ucrtbase.dll_exit]
int3
Function at 0x7ff7ec9b3e30
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push r13
push r14
mov eax, 0x1078
call fcn.7ff7ec9bbf60
sub rsp, rax
mov rax, qword [0x7ff7ec9ca040]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov r14, rdx
mov qword [rsp + 0x38], r9
mov rdx, qword [rsp + 0x10c0]
xor ebp, ebp
mov qword [rsp + 0x30], rdx
mov r13, r8
mov qword [rsp + 0x40], rcx
test r8, r8
jne 0x7ff7ec9b3e82
mov rdx, rbp
jmp 0x7ff7ec9b3f4b
mov r9d, 0x1000
lea rdx, [rsp + 0x50]
call fcn.7ff7ec9b26b0
test al, al
je 0x7ff7ec9b3e7a
mov qword [rsp + 0x10a8], rsi
mov qword [rsp + 0x1070], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x1068], r12
mov qword [rsp + 0x1060], r15
nop dword [rax]
inc rdi
cmp byte [r14 + rdi], bpl
jne 0x7ff7ec9b3ec0
movsxd rax, dword [rsp + 0x8c]
lea rcx, [rsp + 0x50]
add rcx, rax
mov esi, ebp
movzx eax, word [rcx + 0x14]
lea r12, [rcx + 0x18]
movzx r15d, word [rcx + 6]
add r12, rax
test r15d, r15d
je 0x7ff7ec9b3f28
mov eax, esi
mov r8, rdi
mov rdx, r14
lea rcx, [rax + rax*4]
lea rbx, [r12 + rcx*8]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x7ff7ec9b3f21
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], bpl
jne 0x7ff7ec9b3f13
cmp rdi, rax
je 0x7ff7ec9b3f85
inc esi
cmp esi, r15d
jb 0x7ff7ec9b3ef0
mov rdx, rbp
mov r12, qword [rsp + 0x1068]
mov rdi, qword [rsp + 0x1070]
mov rsi, qword [rsp + 0x10a8]
mov r15, qword [rsp + 0x1060]
mov rax, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov r8d, ebp
mov qword [rsp + 0x20], rax
call fcn.7ff7ec9b3d20
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.7ff7ec9bae90
add rsp, 0x1078
pop r14
pop r13
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x7ff7ec9b3f28
mov ecx, dword [rbx + 8]
lea rdx, [rsp + 0x50]
add rdx, rax
je 0x7ff7ec9b3f28
test ecx, ecx
je 0x7ff7ec9b3f28
lea rax, [rsp + 0x50]
mov ebp, ecx
sub rdx, rax
add rdx, r13
jmp 0x7ff7ec9b3f2b
Function at 0x7ff7ec9b5770
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x7ff7ec9ca040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x7ff7ec9b5843
cmp byte [rcx + 0x71], 0
je 0x7ff7ec9b5843
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x7ff7ec9b583f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.msvcp140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x7ff7ec9b5804
sub eax, 1
je 0x7ff7ec9b5808
cmp eax, 2
jne 0x7ff7ec9b583f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.7ff7ec9bae90
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x7ff7ec9b5836
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.ucrtbase.dll_fwrite]
cmp rdi, rax
jne 0x7ff7ec9b583f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x7ff7ec9b57ec
xor al, al
jmp 0x7ff7ec9b57ec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.7ff7ec9bae90
add rsp, 0x60
pop rbx
ret
Function at 0x7ff7ec9b8660
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x7ff7ec9b86ff
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x7ff7ec9b86ff
mov r8d, dword [rax + rcx + 0xd8]
test r8d, r8d
je 0x7ff7ec9b86f2
mov rdi, qword [r8 + rcx + 0x58]
test rdi, rdi
je 0x7ff7ec9b86f2
sub rcx, rdx
movabs rsi, 0x2b992ddfa232
add rdi, rcx
cmp qword [rdi], rsi
jne 0x7ff7ec9b86ff
mov qword [rsp + 0x30], rbx
call qword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov ecx, eax
movabs rax, 0x2b992ddfa233
xor rcx, rbx
mov rbx, qword [rsp + 0x30]
xor rcx, rsi
cmp rcx, rsi
cmove rcx, rax
mov al, 1
mov qword [rdi], rcx
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov al, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x38]
xor al, al
add rsp, 0x20
pop rdi
ret

Function at 0x7ff7ec9b93b0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea rcx, [0x7ff7ec9b9390]
call qword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
call fcn.7ff7ec9b1900
mov qword [0x7ff7ec9cc600], rax
cmp rax, 0xffffffffffffffff
je 0x7ff7ec9b9402
xor ecx, ecx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x60], ecx
call fcn.7ff7ec9b8020
mov rcx, qword [0x7ff7ec9cc600]
test rax, rax
jne 0x7ff7ec9b940c
call fcn.7ff7ec9b2310
mov eax, 0xffffffff
add rsp, 0x58
ret
add rsp, 0x58
jmp fcn.7ff7ec9b2310
Function at 0x7ff7ec9b9420
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x7ff7ec9ca040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x7ff7ec9b9532
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x7ff7ec9b9532
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], r8
mov ecx, dword [rax + rdx + 0xb0]
test ecx, ecx
jne 0x7ff7ec9b9499
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x7ff7ec9b953d
lea rbx, [rdx + rcx]
mov ebp, dword [rax + rdx + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x50]
cmp rbx, rbp
jae 0x7ff7ec9b9520
mov edx, dword [rbx + 4]
test edx, edx
je 0x7ff7ec9b9520
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [rdx - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, r8
je 0x7ff7ec9b94f9
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x50], rcx
jmp 0x7ff7ec9b9515
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.7ff7ec9b9e00
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x7ff7ec9b94b1
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x7ff7ec9b953d
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.7ff7ec9bae90
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x7ff7ec9bac80
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x7ff7ec9ca040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
lea r9, [rsp + 0x20]
mov rsi, rcx
mov dword [rsp + 0x20], edi
xor r8d, r8d
xor edx, edx
mov ebx, edi
lea ecx, [rdi + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x7ff7ec9bad11
test rbx, rbx
je 0x7ff7ec9bacd9
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.kernel32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x7ff7ec9bacc3
test eax, eax
jns 0x7ff7ec9bad32
test rbx, rbx
je 0x7ff7ec9bad37
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.kernel32.dll_VirtualFree]
xor eax, eax
jmp 0x7ff7ec9badfd
test rbx, rbx
jne 0x7ff7ec9bad3e
xor eax, eax
jmp 0x7ff7ec9badfd
mov qword [rsp + 0x68], rbp
cmp dword [rbx], edi
jbe 0x7ff7ec9bade5
nop dword [rax + rax]
mov eax, edi
imul rcx, rax, 0x128
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rcx, 0x30
add rdx, rcx
lea rcx, [rsp + 0x28]
add rdx, rbx
call fcn.7ff7ec9b5580
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x7ff7ec9bad83
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
cmova rcx, qword [rsp + 0x28]
call qword [sym.imp.ucrtbase.dll__stricmp]
test eax, eax
je 0x7ff7ec9bae1a
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x7ff7ec9baddb
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7ec9badd6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x7ff7ec9bae63
call fcn.7ff7ec9baeb0
inc edi
cmp edi, dword [rbx]
jb 0x7ff7ec9bad50
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.kernel32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.7ff7ec9bae90
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.kernel32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x7ff7ec9bae6f
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7ec9bae6a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7ec9bae6a
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff7ec9baeb0
mov rax, rdi
jmp 0x7ff7ec9badf8
Function at 0x7ff7ec9bba50
Capabilities:
Parse pe header

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