joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001220c
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rsp + 0x270], rax
call fcn.1400016d0
mov rcx, rax
test rax, rax
je 0x140012349
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140013a6e.0]
add rax, 0x18
mov qword [rsp + 0x20], rax
mov r8d, 0x57b
lea rdx, str.CrashSender_d.exe
lea rcx, [rsp + 0x20]
call fcn.140004714
mov dword [rsp + 0x30], 0x238
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov rbx, qword [rsp + 0x20]
cmp eax, 1
jne 0x1400122f7
jmp 0x1400122e4
mov rdx, rbx
lea rcx, [rsp + 0x5c]
call fcn.14002125c
test eax, eax
jne 0x1400122e4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, dword [rsp + 0x38]
cmp r8d, eax
je 0x1400122e4
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x14001229e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140012322
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140013a6e.0]
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400163d0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov ecx, 0x80004005
call fcn.140001548
int3

Function at 0x140014a48
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
call fcn.14001494c
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.14002423c
mov rcx, rsi
call fcn.140022f68
cmp eax, 0xffffffff
jne 0x140014a9d
mov rcx, rsi
call fcn.140022d38
test eax, eax
je 0x140014a9d
mov edx, 5
mov rcx, rbx
xor r9d, r9d
xor r8d, r8d
call fcn.140014be0
jmp 0x140014b15
xor edx, edx
mov rcx, rsi
lea r8d, [rdx + 2]
call fcn.14002423c
mov rcx, rsi
call fcn.140023814
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov rdi, rax
call fcn.14002423c
cmp rdi, 0xffffffffffffffff
jae 0x140014a88
test rdi, rdi
jne 0x140014ad3
lea edx, [rdi + 0xd]
jmp 0x140014a8d
lea rcx, [rdi + 1]
call fcn.140016bc8
mov r9, rsi
mov qword [rbx + 0x98], rax
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.140023ab4
mov rcx, rbx
cmp rax, rdi
je 0x140014b05
mov edx, 5
jmp 0x140014a90
mov rax, qword [rbx + 0x98]
mov byte [rdi + rax], 0
call fcn.140014ce0
mov eax, dword [rbx + 0x6c]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140014f00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r9, qword [rcx + 0x78]
mov rdi, r8
mov rsi, rdx
test r9, r9
je 0x140014f2d
mov edx, 1
mov rcx, rsi
call fcn.1400232c0
jmp 0x140014f52
add rcx, 0x110
mov edx, edi
call fcn.140015840
mov r8, rdi
mov rdx, rsi
mov rbx, rax
lea rcx, [rax - 1]
call fcn.140018940
mov byte [rbx + rdi - 1], 0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001537c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [rcx + 8], 0
mov rdi, rdx
mov rbx, rcx
je 0x14001539d
mov dl, 0x3e
mov byte [rcx + 8], 0
call fcn.140014f64
cmp dword [rbx + 0x84], 0
jge 0x1400153d5
cmp byte [rbx + 0x70], 0
jne 0x1400153d5
cmp byte [rbx + 0x89], 0
jne 0x1400153d5
mov dl, 0xa
mov rcx, rbx
call fcn.140014f64
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rbx + 0x80]
mov rax, qword [rax + 0x58]
call qword [case.0x140013a6e.0]
mov r8d, 2
mov byte [rbx + 0x70], 0
lea rdx, [0x14003f4f0]
mov rcx, rbx
call fcn.140014f00
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], 0
jne 0x1400153f2
mov rdx, rdi
mov rcx, rbx
call fcn.140014f00
mov r8d, 2
lea rdx, [0x14003f54c]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140014f00
Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
push rdx
push rdi
push rcx
push rax
call 0x140004009
pop rax
add eax, 0xfffffffb
nop
nop
xchg r8, rax
sub edx, edx
sub rdx, 0xffffffffffffff8d
mov edi, 0xe49077b0
xor dword [rax + 0x30], edi
add eax, 4
add ecx, 1
dec edx
jne 0x140004023
pop rax
pop rcx
pop rdi
pop rdx
invalid
Function at 0x140001458
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [rdx]
mov rbx, rcx
movdqu xmmword [rsp + 0x20], xmm0
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rdi, rax
test rax, rax
je 0x1400014d9
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rdi, qword [rdi + 0x18]
test rdi, rdi
je 0x1400014c9
add rdi, 0x10
mov rbx, qword [rdi]
jmp 0x1400014c4
lea rcx, [rbx + 0x58]
mov r8b, 1
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x1400014f4
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x1400014ab
xor ebx, ebx
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140001920
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
mov rbx, qword [rbx + 0x30]
jmp 0x1400014cb

Function at 0x1400014fc
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
and dword [rax + 0x10], 0
lea r9, [rax + 0x10]
xor edx, edx
mov rsi, rcx
xor r8d, r8d
lea ebx, [rdx + 0xb]
mov ecx, ebx
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x1400015c4
mov edx, eax
xor ecx, ecx
mov r8d, 0x4e554c4c
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rax
mov ecx, ebx
mov rdi, rax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
js 0x1400015c4
lfence
mov r8d, dword [rdi]
xor ebx, ebx
xor ecx, ecx
test r8d, r8d
je 0x1400015a9
mov eax, ecx
mov r10, rsi
imul r11, rax, 0x128
lea rax, [rdi + 0x30]
add rax, r11
sub r10, rax
movzx edx, byte [rax]
movzx r9d, byte [rax + r10]
sub edx, r9d
jne 0x140001597
inc rax
test r9d, r9d
jne 0x140001582
test edx, edx
je 0x1400015a4
inc ecx
cmp ecx, r8d
jb 0x14000156c
jmp 0x1400015a9
mov rbx, qword [r11 + rdi + 0x18]
lfence
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rbx, rbx
je 0x1400015c4
lfence
mov rax, rbx
jmp 0x1400015c6
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400016c8
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbx, r9
mov rdi, r8
mov rsi, rdx
test rdx, rdx
je 0x140001734
test r8, r8
je 0x140001734
test rbx, rbx
je 0x140001734
and qword [rax + 0x10], 0
lea rdx, [rax - 0x18]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov rcx, qword [rsp + 0x40]
mov r9, rdi
mov r8, rax
mov rdx, rsi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
call sub.ntoskrnl.exe_MmCopyVirtualMemory
test eax, eax
js 0x140001734
mov al, 1
jmp 0x140001736
xor al, al
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140001748
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xa0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rbx, r9
mov rsi, r8
mov rdi, rdx
test rdx, rdx
je 0x14000182c
test r8, r8
je 0x14000182c
test rbx, rbx
je 0x14000182c
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
and qword [rsp + 0x28], 0
lea r9, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], 0x30
mov rdx, rdi
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwQueryVirtualMemory]
test eax, eax
js 0x140001821
mov rcx, qword [rsp + 0x50]
lea rdx, [rbx + rdi]
add rcx, qword [rsp + 0x38]
cmp rcx, rdx
jb 0x140001821
test dword [rsp + 0x58], 0x1000
je 0x140001821
mov eax, dword [rsp + 0x5c]
test eax, 0x101
jne 0x140001821
test al, 0x40
jne 0x140001804
test al, al
js 0x140001804
test al, 4
jne 0x140001804
test al, 8
je 0x140001812
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140001a40
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov al, 1
jmp 0x14000182e
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140001920
add rsp, 0xa0
pop rdi
pop rsi
pop rbx
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140005560]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x140005570]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140002f70
jmp 0x14000123c
mov rax, qword [0x140005570]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x140005570]
mov dword [rax], 1
mov rax, qword [0x1400055c0]
mov rdx, rax
mov rax, qword [0x1400055b0]
mov rcx, rax
call sub.ucrtbase.dll__initterm
jmp 0x14000123c
mov dword [0x140009024], 1
mov rax, qword [0x140005570]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400055a0]
mov rdx, rax
mov rax, qword [0x140005590]
mov rcx, rax
call sub.ucrtbase.dll__initterm
mov rax, qword [0x140005570]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140005560]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1400054b0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400054b0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.1400021f8
mov rax, qword [0x140005600]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140005550]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.ucrtbase.dll__set_invalid_parameter_handler
call fcn.1400019f0
mov eax, dword [0x140009004]
lea rdx, [0x140009008]
mov ecx, eax
call fcn.14000147c
call fcn.140001787
mov rax, qword [0x1400054e0]
mov rax, qword [rax]
mov rdx, qword [0x140009010]
mov qword [rax], rdx
mov rcx, qword [0x140009010]
mov rdx, qword [0x140009008]
mov eax, dword [0x140009004]
mov r8, rcx
mov ecx, eax
call fcn.140003390
mov dword [0x14000901c], eax
mov eax, dword [0x140009020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000901c]
mov ecx, eax
call sub.ucrtbase.dll_exit
mov eax, dword [0x140009024]
test eax, eax
jne 0x14000136c
call sub.ucrtbase.dll__cexit
mov eax, dword [0x14000901c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005510]
mov dword [rax], 1
mov rax, qword [0x140005520]
mov dword [rax], 1
mov rax, qword [0x140005530]
mov dword [rax], 1
mov rax, qword [0x1400054d0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001a00
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.ucrtbase.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.ucrtbase.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.ucrtbase.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140002d60
call sub.ucrtbase.dll_abort
nop

Function at 0x1400026d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x14000276a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x14000274e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002742
cmp qword [rbp - 0x10], 0
je 0x140002742
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002708
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000276b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140002870
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140002898
mov eax, 0
jmp 0x1400028e6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400028c1
mov eax, 0
jmp 0x1400028e6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400028e1
mov eax, 0
jmp 0x1400028e6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400028ec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000296a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002961
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002961
mov rax, qword [rbp - 8]
jmp 0x14000297f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002934
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140003390
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push rbx
sub rsp, 0xa0
call fcn.140001787
mov rbx, qword [0x140005580]
lea rcx, [rsp + 0x28]
mov rax, qword [rbx]
mov qword [rsp + 0x98], rax
xor eax, eax
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [rsp + 0x58], 0x40
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp dword [rsp + 0x48], 1
mov rax, qword [rsp + 0x60]
je 0x1400033e4
lea rcx, str.Probably_not_in_a_sandbox_environment.
jmp 0x1400033f3
cmp rax, 0x7fffffff
ja 0x1400033db
lea rcx, str.Might_be_running_in_a_sandbox_environment.
call sub.ucrtbase.dll_puts
mov rax, qword [rsp + 0x98]
sub rax, qword [rbx]
je 0x14000340a
call fcn.140003320
xor eax, eax
add rsp, 0xa0
pop rbx
ret
Function at 0x140736058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407361df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140736089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14073606f
add dl, dl
jne 0x140736096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407360f6
xor eax, eax
add dl, dl
jne 0x1407360a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407361ad
add dl, dl
jne 0x1407360b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407360c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407360d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407360dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407360ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14073607e
mov eax, 1
add dl, dl
jne 0x140736106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140736113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407360fb
sub eax, ebx
mov ebx, 1
jne 0x14073614c
mov ecx, 1
add dl, dl
jne 0x14073612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14073613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140736123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14073607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140736168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140736175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14073615d
cmp eax, 0x7d00
jae 0x14073619b
cmp eax, 0x500
jb 0x140736196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14073607e
cmp eax, 0x7f
ja 0x14073619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14073607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407361d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14073607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002be4
Capabilities:
Parse pe header

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

Function at 0x1400095d0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400093cc
Function at 0x14000d130
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 0x14000d160
xor eax, eax
jmp 0x14000d223
mov rbp, rbx
cmp word [rax], si
je 0x14000d185
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000d16c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000d168
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.14000d050
movsxd r14, eax
test eax, eax
jne 0x14000d1c3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d159
mov rcx, r14
call fcn.14000b82c
mov rdi, rax
test rax, rax
jne 0x14000d1dc
xor ecx, ecx
call fcn.14000a060
jmp 0x14000d1b8
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.14000d050
test eax, eax
jne 0x14000d20d
mov rcx, rdi
call fcn.14000a060
jmp 0x14000d217
xor ecx, ecx
call fcn.14000a060
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 0x140010dc8
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.14000af10
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140010e52
cmp byte [rbp - 0x21], r15b
je 0x140010e4d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140010e88
call fcn.14000e704
test eax, eax
jne 0x140010e74
cmp byte [rbp - 0x21], r15b
je 0x140010e6c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140010e88
cmp byte [rbp - 0x21], r15b
je 0x140010e85
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.14000ad94
test eax, eax
jne 0x140010f28
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000af10
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140010ec7
cmp byte [rbp - 0x21], r15b
je 0x140010efc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140010efc
call fcn.14000e704
test eax, eax
jne 0x140010ee8
cmp byte [rbp - 0x21], r15b
je 0x140010ee1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140010efc
cmp byte [rbp - 0x21], r15b
je 0x140010ef9
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.14000ad94
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140010f28
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140010f2b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140010f39
mov rcx, rdi
call fcn.14000a060
cmp byte [rbp + 0x3f], r15b
je 0x140010f48
mov rcx, qword [rbp + 0x27]
call fcn.14000a060
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