joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420610
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init___terminate_handler_sh]
mov edx, 8
lea rcx, str.__terminate_handler_sh
jmp dbg.__shmem_grab

Function at 0x420630
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init___unexpected_handler_sh]
mov edx, 8
lea rcx, str.__unexpected_handler_sh
jmp dbg.__shmem_grab

Function at 0x421e40
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x421e6c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x422ad0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
cmp byte [0x004b7e30], 0
jne 0x422bda
mov byte [0x004b7e30], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x422bb0
mov r12, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [r12], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add r12, rax
mov rcx, r12
call sym.__cxa_demangle
mov ecx, 2
mov rbx, qword [dbg.__acrt_iob_func]
mov r13, rax
call rbx
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x422ba1
call rbx
mov rcx, r12
mov rdx, rax
call sym.fputs
mov ecx, 2
call rbx
mov r8d, 2
mov edx, 1
lea rcx, [0x004b9ee1]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x422b9c
mov rcx, r13
call sym.free
call sym.__cxa_rethrow
call rbx
mov rcx, r13
mov rdx, rax
call sym.fputs
jmp 0x422b6b
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x422c6f
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov r12, rax
call rbx
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rbx
mov rdx, rax
mov rcx, r12
call sym.fputs
mov ecx, 2
call rbx
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x422bd5
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x422bd5

Function at 0x47c240
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x47c267
call rbp
cmp dword [rax], 4
jne 0x47c284
mov rcx, rdi
call method.std::__basic_file_char_.fd__
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sym.read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x47c260
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400afb5c
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 [0x14011cc60], rbx
je 0x1400afba8
cmp rax, rbx
jne 0x1400afb9b
mov ebx, 1
mov esi, ebx
jmp 0x1400afbad
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400afb80
mov ebx, 1
mov eax, dword [0x14011cc68]
cmp eax, ebx
jne 0x1400afbc3
mov ecx, 0x1f
call fcn.140241000
jmp 0x1400afc28
mov eax, dword [0x14011cc68]
test eax, eax
jne 0x1400afc22
mov dword [0x14011cc68], ebx
lea r15, [0x1400c5778]
lea rdi, [0x1400c5760]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400afc14
test eax, eax
jne 0x1400afc18
cmp qword [rdi], 0
je 0x1400afc09
mov rax, qword [rdi]
mov rcx, qword [0x1400c51a0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400afbea
test eax, eax
je 0x1400afc28
mov eax, 0xff
jmp 0x1400afd04
mov dword [0x14011b398], ebx
mov eax, dword [0x14011cc68]
cmp eax, ebx
jne 0x1400afc4f
lea rdx, [0x1400c5758]
lea rcx, [0x1400c51a8]
call sub.msvcrt.dll__initterm
mov dword [0x14011cc68], 2
test esi, esi
jne 0x1400afc5c
xor eax, eax
xchg qword [0x14011cc60], rax
cmp qword [0x14011cc80], 0
je 0x1400afc90
lea rcx, [0x14011cc80]
call fcn.1400b0220
test eax, eax
je 0x1400afc90
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14011cc80]
mov r9, qword [0x1400c51a0]
call r9
mov r8, qword [0x14011b3b0]
mov rdx, qword [0x14011b3a8]
mov ecx, dword [0x14011b3a0]
call fcn.14000348c
mov dword [0x14011b394], eax
cmp dword [0x14011b3b8], 0
jne 0x1400afcc0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14011b398], 0
jne 0x1400afcd5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14011b394]
jmp 0x1400afd04
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.1400b02a0
add rsp, 0x28
jmp 0x1400afb5c

Function at 0x1400b0130
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x140001d62
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001d62
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001d62
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001d62
cmp dword [rcx + 0x84], 0xe
jbe 0x140001d62
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001d64
xor al, al
add rsp, 0x28
ret
Function at 0x140007d80
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x140022048]
test rcx, rcx
je 0x140007dbb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007de0
mov rcx, qword [0x140022048]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002b0a8], 0
jne 0x140007df8
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x140022048]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007dae
lea r12, [rsp + 0x20]
mov edx, 0x414
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov qword [rsp + 0x20], 0
lea rsi, [0x14001c344]
mov dword [rsp + 0x28], 3
mov rcx, r12
mov ebx, 0x14
lea rdi, [0x14002b0c0]
movq xmm0, rsi
mov word [rsp + 0x40], dx
movq xmm6, rdi
mov dword [rsp + 0x44], 0
punpcklqdq xmm6, xmm0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x48], 0
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007ec4
test al, 0x10
je 0x140007dc4
mov ecx, 0x64
call r14
mov eax, 0x414
movaps xmmword [rsp + 0x30], xmm6
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
call rbp
sub ebx, 1
je 0x140007dc4
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140007e70
jmp 0x140007dc4
Function at 0x14000f630
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140014ec0
sub rsp, rax
mov eax, dword [0x14002f0c0]
test eax, eax
mov rsi, rcx
je 0x14000f6d0
lea rdi, [0x14002d0c0]
xor ebx, ebx
test eax, eax
jg 0x14000f66c
jmp 0x14000f680
add rbx, 1
cmp dword [0x14002f0c0], ebx
jle 0x14000f680
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000f660
jmp 0x14000f6b7
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000f695
cmp word [rsi + 2], 0x3a
je 0x14000f6b7
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000f720
movsxd rbx, dword [0x14002f0c0]
cmp ebx, 0x3ff
jle 0x14000f738
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
mov r8d, 0x1000
lea rbx, str._HOME_
mov rcx, rdi
mov rdx, rbx
call fcn.140007690
test al, al
je 0x14000f75a
movsxd rbx, dword [0x14002f0c0]
mov rcx, rdi
call sub.msvcrt.dll__wcsdup
lea rdi, [0x14002d0c0]
mov qword [rdi + rbx*8], rax
mov eax, dword [0x14002f0c0]
add eax, 1
mov dword [0x14002f0c0], eax
jmp 0x14000f651
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000f6a4
xor eax, eax
jmp 0x14000f6bc
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x14002f0c0], 1
mov rdx, rax
lea rax, [0x14002d0c0]
mov qword [rax + rbx*8], rdx
jmp 0x14000f6b7
mov rcx, rbx
call fcn.140007d50
nop
nop word cs:[rax + rax]
nop
Function at 0x140014100
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.140019ee0
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.140019ee0
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 0x140014170
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14002f144]
test esi, esi
mov rbx, rcx
jle 0x1400142a0
mov rax, qword [0x14002f148]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400141bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140014245
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400141a0
mov rcx, rbx
call fcn.140014be0
test rax, rax
mov rdi, rax
je 0x1400142c2
mov rax, qword [0x14002f148]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140014d20
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14002f148]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400142a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001423e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140014250
add dword [0x14002f144], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14002f148]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001423e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140014100
nop dword [rax]
xor esi, esi
jmp 0x1400141c8
mov rax, qword [0x14002f148]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.140014100
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140014100
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140014830
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14002f1a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14002f180]
test rbx, rbx
je 0x14001488c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140014883
test rsi, rsi
je 0x140014883
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140014868
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 0x140014aa0
Capabilities:
Parse pe header

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

Function at 0x140014ab0
Capabilities:
Parse pe header

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

Function at 0x140014ac0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x14001d9b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140014c00
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140014c08
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140014c00
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140014c5d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140014c54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140014c00
add rax, 0x28
cmp rax, r9
jne 0x140014c40
xor eax, eax
ret

Function at 0x140014c60
Capabilities:
Parse pe header

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

Function at 0x140014d20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001d9b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140014d3f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140014d48
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140009038
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r9, rcx
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
mov rsi, rdx
movzx eax, byte [rbx + rcx + 0x10]
movabs rdx, 0x100000001b3
xor r8, rax
inc rcx
imul r8, rdx
cmp rcx, 4
jb 0x14000905c
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r8
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x1400090b3
cmp qword [rcx + rdx*8], rbx
jne 0x1400090a8
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x1400090ac
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400090c0
cmp qword [rcx + rdx*8], rbx
jne 0x1400090c0
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov rdx, qword [rbx + 0x30]
cmp rdx, 8
jb 0x1400090f5
mov rcx, qword [rbx + 0x18]
inc rdx
mov r8d, 2
call fcn.1400020a4
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x37]
call fcn.1400020a4
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b51c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400148a0], eax
call fcn.14000b2a4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
cmp dword [0x1400148a0], 0
jne case.default.0x14000b572
mov ecx, 1
call fcn.14000b2a4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
test al, 0x17
mov eax, 0xce54e1fc
xchg edi, eax
sahf
invalid
Function at 0x140001ab5
Capabilities:
Enumerate process modules

Disassembly:
push r15
mov eax, 0x1158
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140016f40
sub rsp, rax
lea r13, [rsp + 0x150]
mov rbx, rcx
lea r8, [rsp + 0x38]
mov rsi, rdx
mov rcx, r13
mov edx, 0x1000
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x140001c19
mov eax, dword [rsp + 0x38]
mov r8, rsi
mov rcx, rbx
xor r12d, r12d
lea rdx, str.___RunningProcesses_:__
lea r14, [0x1400d409f]
shr eax, 2
lea r15, [0x1400d4082]
mov dword [rsp + 0x2c], eax
call fcn.140020d70
cmp dword [rsp + 0x2c], r12d
jle 0x140001be7
mov r8d, dword [r13 + r12*4]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
test rax, rax
je 0x140001bdf
xor eax, eax
lea rdi, [rsp + 0x5c]
mov ecx, 0x3d
mov r8d, 8
mov qword [rsp + 0x4c], rax
lea rdx, [rsp + 0x40]
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x54], rax
xor eax, eax
rep stosd dword [rdi], eax
mov rcx, rbp
lea rdi, [rsp + 0x4c]
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x140001b9e
mov rdx, qword [rsp + 0x40]
mov r9d, 0x104
mov r8, rdi
mov rcx, rbp
call sub.KERNEL32.dll_K32GetModuleBaseNameA
mov r8, rsi
mov rdx, r14
mov rcx, rbx
call fcn.140020d70
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.140020d70
mov r8, rsi
mov rdx, r14
mov rcx, rbx
call fcn.140020d70
mov rcx, rbx
mov r8, rsi
mov rdx, r15
call fcn.140020d70
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc r12
jmp 0x140001b24
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov r8, rsi
lea rdx, [0x1400d40a1]
mov rcx, rbx
mov byte [rbx + rax - 2], 0
add rsp, 0x1158
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140020d70
add rsp, 0x1158
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140001c2d
Capabilities:
Enumerate process modules

Disassembly:
push r15
mov eax, 0x21b8
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140016f40
sub rsp, rax
mov r12, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x28], rcx
mov rbx, rdx
lea r13, [rsp + 0x1b0]
call r12
lea r9, [rsp + 0x44]
mov r8d, 0x2000
mov rdx, r13
mov rcx, rax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x140001e1f
mov rcx, qword [rsp + 0x28]
mov r8, rbx
mov ebp, dword [rsp + 0x44]
xor esi, esi
lea rdx, str.___LoadedModules_:__
lea r14, [0x1400d409f]
call fcn.140020d70
lea rax, [rsp + 0x88]
shr ebp, 3
mov qword [rsp + 0x38], rax
mov r15d, esi
cmp ebp, esi
jle 0x140001dc6
mov rdx, qword [r13 + rsi*8]
xor eax, eax
mov ecx, 0x3d
lea rdi, [rsp + 0xbc]
mov qword [rsp + 0xac], rax
mov qword [rsp + 0xb4], rax
xor eax, eax
rep stosd dword [rdi], eax
mov qword [rsp + 0x30], rdx
lea rdi, [rsp + 0xac]
call r12
mov rdx, qword [rsp + 0x30]
mov r9d, 0x104
mov r8, rdi
mov rcx, rax
call sub.KERNEL32.dll_K32GetModuleFileNameExA
mov rcx, qword [rsp + 0x28]
mov r8, rbx
mov rdx, r14
call fcn.140020d70
lea rax, [rsp + 0x48]
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x30], rax
call fcn.14000154a
mov rcx, qword [rsp + 0x38]
lea rdx, [0x1400d40ba]
call fcn.14000154a
lea rdi, [rsp + 0x68]
lea rdx, [0x1400d40bd]
mov rcx, rdi
call fcn.14000154a
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
call fcn.140001795
mov rcx, rdi
call fcn.1400a8d40
mov rcx, qword [rsp + 0x38]
call fcn.1400a8d40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
mov r8, rbx
call fcn.140020d70
mov rcx, qword [rsp + 0x28]
mov r8, rbx
mov rdx, r14
call fcn.140020d70
lea eax, [rbp - 1]
cmp eax, r15d
jle 0x140001db4
mov rcx, qword [rsp + 0x28]
mov r8, rbx
lea rdx, [0x1400d4082]
call fcn.140020d70
mov rcx, qword [rsp + 0x30]
inc rsi
call fcn.1400a8d40
jmp 0x140001caf
mov rcx, qword [rsp + 0x28]
mov r8, rbx
lea rdx, [0x1400d40a1]
add rsp, 0x21b8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140020d70
add rsp, 0x21b8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140001e33
Capabilities:
Encode data using base64

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
call sub.msvcrt.dll_strlen
mov ecx, 3
xor edx, edx
mov rbx, rax
lea rax, [rax + 2]
div rcx
lea rbp, [rax*4]
mov rdi, rax
lea rcx, [rbp + 1]
call fcn.1400cabe0
xor ecx, ecx
lea r11, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov byte [rax + rdi*4], 0
mov r10, rax
mov r9, rax
cmp rcx, rbx
jae 0x140001ef5
lea rax, [rcx + 1]
movzx edx, byte [rsi + rcx]
cmp rax, rbx
jae 0x140001ea6
lea rax, [rcx + 2]
movzx edi, byte [rsi + rcx + 1]
cmp rax, rbx
jae 0x140001ea8
lea rax, [rcx + 3]
movzx ecx, byte [rsi + rcx + 2]
jmp 0x140001eaa
xor edi, edi
xor ecx, ecx
shl edx, 0x10
shl edi, 8
add r9, 4
add edx, ecx
add edx, edi
mov ecx, edx
shr ecx, 0x12
mov cl, byte [r11 + rcx]
mov byte [r9 - 4], cl
mov ecx, edx
shr ecx, 0xc
and ecx, 0x3f
mov cl, byte [r11 + rcx]
mov byte [r9 - 3], cl
mov ecx, edx
and edx, 0x3f
shr ecx, 6
mov dl, byte [r11 + rdx]
and ecx, 0x3f
mov cl, byte [r11 + rcx]
mov byte [r9 - 1], dl
mov byte [r9 - 2], cl
mov rcx, rax
jmp 0x140001e7b
mov r9d, 3
mov rax, rbx
xor edx, edx
mov r8, rbp
div r9
mov rax, r9
sub rax, rdx
xor edx, edx
div r9
mov al, 0x3d
sub r8, rdx
mov rcx, rdx
add r8, r10
mov rdi, r8
rep stosb byte [rdi], al
mov rax, r10
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140001f2d
Capabilities:
Check if file exists
Get file attributes
Get file size
Query environment variable
Read file on windows

Disassembly:
push rbp
mov eax, 0x49538
push rdi
push rsi
push rbx
call fcn.140016f40
sub rsp, rax
mov r8d, 0x104
lea rsi, [rsp + 0x4c]
mov rdi, rcx
mov ebx, edx
lea rcx, str._userprofile_AppDataRoamingMicrosoftWindowsPowerShellPSReadlineConsoleHost_history.txt
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc eax
je 0x140002010
xor eax, eax
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov edx, 0x80000000
mov qword [rsp + 0x30], rax
lea rbp, [rsp + 0x150]
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
xor edx, edx
mov rsi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r8d, 0x493e0
xor edx, edx
mov rcx, rsi
cmp eax, r8d
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rdx
mov rdx, rbp
cmovle r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbp
call fcn.140001e33
mov rcx, rax
mov rsi, rax
call sub.msvcrt.dll_strlen
movsxd rcx, ebx
mov r9, rsi
lea r8, str.___PSHistory_:___s___n
add rcx, rdi
lea rdx, [rax + 0x22]
call fcn.140021040
mov rcx, rsi
mov edi, eax
call fcn.140020ca0
lea eax, [rbx + rdi]
jmp 0x140002021
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140001f6f
xor eax, eax
add rsp, 0x49538
pop rbx
pop rsi
pop rdi
pop rbp
ret