joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801046c4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1801046f4
xor eax, eax
jmp 0x1801047b7
mov rbp, rbx
cmp word [rax], si
je 0x180104719
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180104700
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1801046fc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1801012a8
movsxd r14, eax
test eax, eax
jne 0x180104757
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1801046ed
mov rcx, r14
call fcn.1800fda34
mov rdi, rax
test rax, rax
jne 0x180104770
xor ecx, ecx
call fcn.1800fb020
jmp 0x18010474c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1801012a8
test eax, eax
jne 0x1801047a1
mov rcx, rdi
call fcn.1800fb020
jmp 0x1801047ab
xor ecx, ecx
call fcn.1800fb020
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1801047d4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x18010485b
mov rsi, rbx
cmp word [rax], bp
je 0x18010481a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x180104804
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x180104800
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1800fda34
mov rdi, rax
test rax, rax
je 0x180104848
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.18010d150
mov rbp, rdi
xor ecx, ecx
call fcn.1800fb020
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180105598
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1801055b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800dbcfc
or eax, 0xffffffff
jmp 0x1801055ba
xor eax, eax
add rsp, 0x28
ret

Function at 0x180107ef4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1800f9440
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180107f95
cmp ebx, dword [rsp + 0x30]
je 0x180107f8e
test esi, esi
je 0x180107f8e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180107f69
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180107f76
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180107f53
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180107f7a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180107f97
mov eax, 1
jmp 0x180107f97
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18010ab50
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x180157b00]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x18010ab9a
call fcn.1800dbd68
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1800dbd88
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1800dbad4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800d17b0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x18010aba5
lea eax, [rbx + 1]
jmp 0x18010ab87
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x18010ab85
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x18010ab87
Function at 0x18010af38
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1800dcabc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18010afc2
cmp byte [rbp - 0x21], r15b
je 0x18010afbd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18010aff8
call fcn.1800fc55c
test eax, eax
jne 0x18010afe4
cmp byte [rbp - 0x21], r15b
je 0x18010afdc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18010aff8
cmp byte [rbp - 0x21], r15b
je 0x18010aff5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1800ef96c
test eax, eax
jne 0x18010b098
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1800dcabc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18010b037
cmp byte [rbp - 0x21], r15b
je 0x18010b06c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18010b06c
call fcn.1800fc55c
test eax, eax
jne 0x18010b058
cmp byte [rbp - 0x21], r15b
je 0x18010b051
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18010b06c
cmp byte [rbp - 0x21], r15b
je 0x18010b069
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1800ef96c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18010b098
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18010b09b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18010b0a9
mov rcx, rdi
call fcn.1800fb020
cmp byte [rbp + 0x3f], r15b
je 0x18010b0b8
mov rcx, qword [rbp + 0x27]
call fcn.1800fb020
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x18010c6a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18010c6c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18010c6c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001320
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 [0x140003638], rbx
je 0x14000136c
cmp rax, rbx
jne 0x14000135f
mov ebx, 1
mov esi, ebx
jmp 0x140001371
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140001344
mov ebx, 1
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x140001387
mov ecx, 0x1f
call fcn.140093000
jmp 0x1400013ec
mov eax, dword [0x140003640]
test eax, eax
jne 0x1400013e6
mov dword [0x140003640], ebx
lea r15, [0x140002288]
lea rdi, [0x140002270]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400013d8
test eax, eax
jne 0x1400013dc
cmp qword [rdi], 0
je 0x1400013cd
mov rax, qword [rdi]
mov rcx, qword [0x140002250]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400013ae
test eax, eax
je 0x1400013ec
mov eax, 0xff
jmp 0x1400014c8
mov dword [0x140003044], ebx
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x140001413
lea rdx, [0x140002268]
lea rcx, [0x140002258]
call sub.msvcrt.dll__initterm
mov dword [0x140003640], 2
test esi, esi
jne 0x140001420
xor eax, eax
xchg qword [0x140003638], rax
cmp qword [0x140003648], 0
je 0x140001454
lea rcx, [0x140003648]
call fcn.1400016d0
test eax, eax
je 0x140001454
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140003648]
mov r9, qword [0x140002250]
call r9
mov r8, qword [0x140003058]
mov rdx, qword [0x140003050]
mov ecx, dword [0x140003048]
call fcn.1400011c4
mov dword [0x140003040], eax
cmp dword [0x140003060], 0
jne 0x140001484
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140003044], 0
jne 0x140001499
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140003040]
jmp 0x1400014c8
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.140001764
add rsp, 0x28
jmp 0x140001320

Function at 0x1400015bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001608
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001600
cmp dword [rcx + 0x3c], edx
jl 0x140001600
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001600
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 0x140001608
mov rax, rdx
add rsp, 0x18
ret
Function at 0x2fbac25e0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov ecx, 0x800
call sub.msvcrt.dll_malloc
mov r8d, 0x800
mov rcx, rbx
mov rsi, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [0x2fbac5010]
mov rcx, rsi
call sub.msvcrt.dll_fopen
mov rdi, qword [0x2fbac52c0]
mov rbp, rax
movsxd r8, dword [rdi + 4]
mov rcx, r8
mov qword [rsp + 0x28], r8
call sub.msvcrt.dll_malloc
mov r8, qword [rsp + 0x28]
mov edx, 1
mov r9, rbp
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_fread
mov rcx, rbp
call sub.msvcrt.dll_fclose
mov edx, dword [rdi + 4]
xor eax, eax
cmp edx, eax
jle 0x2fbac2669
mov cl, byte [rdi + rax + 0x18]
mov byte [rbx + rax], cl
inc rax
jmp 0x2fbac2659
lea r8, [rdi + 8]
mov rcx, rbx
call fcn.2fbac13b5
mov rcx, rsi
call sub.msvcrt.dll_free
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp sub.msvcrt.dll_free

Function at 0x2fbac28e0
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.2fbac3520
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.2fbac3520
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 0x2fbac2950
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2fbac9ff4]
mov rbx, rcx
test esi, esi
jle 0x2fbac2a80
mov rax, qword [0x2fbac9ff8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2fbac299b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2fbac2a25
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2fbac2980
mov rcx, rbx
call fcn.2fbac31b0
mov rdi, rax
test rax, rax
je 0x2fbac2aa2
mov rax, qword [0x2fbac9ff8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.2fbac32f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x2fbac9ff8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2fbac2a87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x2fbac2a1e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x2fbac2a30
add dword [0x2fbac9ff4], 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 [0x2fbac9ff8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2fbac2a1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2fbac28e0
nop dword [rax]
xor esi, esi
jmp 0x2fbac29a8
mov rax, qword [0x2fbac9ff8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.2fbac28e0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.2fbac28e0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2fbac2e20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2fbaca020]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2fbaca000]
test rbx, rbx
je 0x2fbac2e7c
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 0x2fbac2e73
test eax, eax
jne 0x2fbac2e73
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2fbac2e58
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 0x2fbac31b0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x2fbac3230
Capabilities:
Parse pe header

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

Function at 0x2fbac32f0
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x51042d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x51043d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x510425
lea eax, [rcx + 1]
jmp 0x51044b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x51045e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x510444
sub eax, 3
jb 0x51047e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x5104cd
sar eax, 1
movsxd rbp, eax
jb 0x5104b4
jmp 0x51048c
add ebx, ebx
jne 0x51048a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x5104b4
inc ecx
add ebx, ebx
jne 0x51049a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x5104b4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x5104ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x51049c
add ecx, 2
jmp 0x5104b9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.005103e2
jmp 0x51042d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xaf000
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x51051d
cmp rsi, rcx
jae 0x510525
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x510504
cmp al, 0x8f
ja 0x510504
cmp byte [rsi - 2], 0xf
je 0x51050a
sub al, 0xe8
cmp al, 1
ja 0x5104ee
cmp rsi, rcx
jae 0x510525
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x5104f4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x510525
lodsb al, byte [rsi]
jmp 0x510504
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x10e000]
mov eax, dword [rdi]
or eax, eax
je 0x510582
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x110000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x510532
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x51057c
mov qword [rbx], rax
add rbx, 8
jmp 0x510552
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.00510605], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.00510605
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x5105f5
sub rsp, 0xffffffffffffff80
jmp 0x4014e0
Function at 0x1400016b0
Capabilities:
Allocate or change rwx memory
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov r14, rcx
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
xor r15d, r15d
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x38], r15d
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x38]
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov ecx, 0x40
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov eax, dword [rsp + 0x38]
add eax, 0xe10
mov dword [rsp + 0x38], eax
mov edx, eax
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov ecx, dword [rsp + 0x38]
mov rdi, rax
xor eax, eax
rep stosb byte [rdi], al
mov dword [rsp + 0x58], r15d
lea r9, [rsp + 0x58]
mov r8d, dword [rsp + 0x38]
mov rdx, rbx
mov ecx, 0x40
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov edi, r15d
cmp dword [rbx], r15d
jbe 0x1400017e5
mov rdx, qword [rsp + 0x48]
nop word [rax + rax]
mov eax, edi
shl rax, 5
cmp dword [rax + rbx + 0x10], 4
jne 0x1400017df
cmp dword [rax + rbx + 0x20], 0x102a
jne 0x1400017df
mov rcx, qword [rax + rbx + 8]
mov qword [rsp + 0x30], rcx
cmp rdx, qword [rsp + 0x50]
je 0x1400017cb
mov qword [rdx], rcx
mov rdx, qword [rsp + 0x48]
add rdx, 8
mov qword [rsp + 0x48], rdx
jmp 0x1400017df
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.1400029c0
mov rdx, qword [rsp + 0x48]
inc edi
cmp edi, dword [rbx]
jb 0x140001790
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
cmp rdi, rsi
je 0x140001843
nop word [rax + rax]
mov rbx, qword [rdi]
mov dword [rsp + 0x38], r15d
mov r9d, 4
lea r8, [rsp + 0x38]
mov rdx, rbx
mov rcx, r14
call fcn.140002230
cmp dword [rsp + 0x38], 3
je 0x14000187f
add rdi, 8
cmp rdi, rsi
jne 0x140001810
mov rdi, qword [rsp + 0x40]
mov rbx, r15
test rdi, rdi
je 0x14000188e
mov rdx, qword [rsp + 0x50]
sub rdx, rdi
and rdx, 0xfffffffffffffff8
mov rax, rdi
cmp rdx, 0x1000
jb 0x140001886
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001886
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdi, qword [rsp + 0x40]
jmp 0x140001846
mov rcx, rdi
call fcn.1400030d4
mov rax, rbx
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.140002e30
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140002b80
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.C:indices.json
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
lea rcx, str._n__JHQWEHBJFEQJFEWQ_____welcome._n
call fcn.140001090
mov rcx, qword [0x140007890]
call fcn.140001a60
mov rbx, rax
test rax, rax
jne 0x140002bce
xor edx, edx
lea rcx, str._JHQWEHBJFEQJFEWQ_____failed_to_get_target.__I64d_n
call fcn.140001090
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002c20
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, [0x140002de0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, str._n__NG_____pte_pfn_manipulation_invoked._n
call fcn.140001090
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov eax, ecx
add rsp, 0x20
pop rbx
ret

Function at 0x1400039f0
Capabilities:
Parse pe header

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