joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402fe370
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rbx
push rsi
sub rsp, 0x508
mov rax, qword [0x14065ef68]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rbx, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, ebx
jne 0x1402fe3cc
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x50], 0x100003
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0x118]
jmp 0x1402fe465
mov edx, 1
mov qword [rsp + 0x530], rbp
mov r8d, ebx
mov qword [rsp + 0x500], rdi
lea ecx, [rdx + 9]
call qword [sym.imp.KERNEL32.dll_OpenThread]
xor ebx, ebx
mov rdi, rax
mov ebp, ebx
test rax, rax
je 0x1402fe44f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1402fe428
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x50], 0x100003
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rcx, rdi
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x1402fe44f
mov rbx, qword [rsp + 0x118]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xb8]
jmp 0x1402fe455
mov rcx, rbx
mov rax, rbx
mov rbp, qword [rsp + 0x530]
mov rdi, qword [rsp + 0x500]
test rbx, rbx
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x18], rbx
setne al
mov qword [rsi + 0x20], rcx
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.1402f2210
add rsp, 0x508
pop rsi
pop rbx
ret
Function at 0x140303290
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x14065ef68]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor edi, edi
mov byte [rsp + 0x40], 0
lea rax, [rsp + 0x34]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x38], edi
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x768]
lea rdx, [rsp + 0x40]
mov r8d, 0x3ff
mov dword [rsp + 0x34], edi
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x140303458
nop
cmp dword [rsp + 0x30], edi
je 0x140303458
mov rcx, qword [rbx + 0x768]
lea r9, [rsp + 0x30]
mov r8d, 0x3ff
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14030341f
mov edx, dword [rsp + 0x30]
test edx, edx
je 0x14030341f
movzx eax, byte [rbx + 0x73f]
shr al, 7
test al, 1
je 0x140303357
mov rcx, qword [rbx + 0x730]
jmp 0x140303367
movsx rax, byte [rbx + 0x73f]
mov ecx, reloc.WS2_32.dll_socket
sub rcx, rax
cmp rcx, 0x7a1200
jbe 0x1403033b1
lea rcx, [rbx + 0x728]
movzx eax, byte [rcx + 0x17]
shr al, 7
test al, 1
je 0x140303385
mov rcx, qword [rcx]
lea rdx, [rbx + 0x728]
movzx eax, byte [rdx + 0x17]
lea r8, [rcx + 0xf4240]
shr al, 7
test al, 1
je 0x1403033a1
mov rdx, qword [rdx]
lea rcx, [rbx + 0x728]
call fcn.1400aab60
mov edx, dword [rsp + 0x30]
mov eax, edx
lea r9, [rsp + 0x40]
add r9, rax
movzx eax, byte [rbx + 0x73f]
shr al, 7
test al, 1
je 0x1403033d9
mov rdx, qword [rbx + 0x730]
add rdx, qword [rbx + 0x728]
jmp 0x1403033ef
movsx rax, byte [rbx + 0x73f]
lea rdx, [rbx + 0x728]
sub rdx, rax
add rdx, 0x17
lea r8, [rsp + 0x40]
lea rcx, [rbx + 0x728]
call fcn.140313310
mov eax, dword [rsp + 0x30]
cmp rax, 0x400
jae 0x140303479
mov byte [rsp + rax + 0x40], dil
lea rdx, [rsp + 0x40]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x28]
mov rcx, qword [rbx + 0x768]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x38]
mov r8d, 0x3ff
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x140303300
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1402f2210
mov rbx, qword [rsp + 0x468]
add rsp, 0x450
pop rdi
ret
call fcn.1402f25c4
int3
Function at 0x140303db0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
cmp byte [rbx + 9], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
je 0x140303e2f
movabs rax, 0x346dc5d63886594b
lea rcx, str.Target_process_still_running_after_the__s_timeout_period_elapsed._n
imul qword [rsp + 0x38]
mov r8, rdx
lea rdx, str.response
sar r8, 0xb
mov rax, r8
shr rax, 0x3f
add r8, rax
lea rax, str.unilateral
cmp r8, qword [rbx + 0x30]
cmovg rdx, rax
call fcn.140138770
mov r8d, dword [rbx + 0x28]
lea rcx, str.Response_timeout___d_seconds__unilateral_timeout___d_seconds._n
mov edx, dword [rbx + 0x18]
call fcn.140138770
mov rcx, qword [rbx + 0x6f8]
mov edx, 0xffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [rbx + 0x48], 0
add rsp, 0x20
pop rbx
ret

Function at 0x140303ec0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
mov rcx, rdi
lea rdx, str.keepalive
call sub.VCRUNTIME140.dll_strstr
movabs rbp, 0x346dc5d63886594b
movabs rsi, 0x7fffffffffffffff
test rax, rax
je 0x140303f40
cmp qword [rbx + 0x30], rsi
je 0x140303f40
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [rsp + 0x44]
imul rcx, qword [rbx + 0x28], 0x3e8
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x50], eax
mov rax, rbp
imul qword [rsp + 0x50]
sar rdx, 0xb
mov rax, rdx
add rdx, rcx
shr rax, 0x3f
add rax, rdx
mov qword [rbx + 0x30], rax
cmp qword [rbx + 0x20], rsi
je 0x140303f86
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [rsp + 0x44]
mov rax, rbp
mov dword [rsp + 0x54], ecx
mov ecx, dword [rsp + 0x40]
mov dword [rsp + 0x50], ecx
imul qword [rsp + 0x50]
imul rcx, qword [rbx + 0x18], 0x3e8
sar rdx, 0xb
mov rax, rdx
shr rax, 0x3f
add rdx, rcx
add rax, rdx
mov qword [rbx + 0x20], rax
cmp byte [rbx + 9], 0
je 0x140303fc2
mov rdx, rdi
lea rcx, [0x140487640]
call fcn.140138770
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140303fae
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x140316f20
Capabilities:
Get disk information
Get file size
Read file via mapping

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x880
mov rax, qword [0x14065ef68]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov r14, r9
mov r15, r8
mov rsi, rdx
mov rdi, rcx
xor bl, bl
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x140316f61
xor al, al
jmp 0x140317145
mov qword [rsp + 0x878], rbp
lea rdx, [rsp + 0x30]
xor ebp, ebp
mov rcx, rdi
mov dword [rsp + 0x30], ebp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [rsp + 0x30]
mov word [rsi], bp
test eax, eax
jne 0x140316f90
test edx, edx
je 0x14031713a
shl rdx, 0x20
xor r9d, r9d
mov eax, eax
mov rcx, rdi
or rdx, rax
mov qword [rsp + 0x28], rbp
mov qword [r14], rdx
xor edx, edx
lea r8d, [r9 + 2]
mov qword [rsp + 0x870], r12
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r12, rax
test rax, rax
je 0x140317132
xor r9d, r9d
mov qword [rsp + 0x20], 1
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
test rax, rax
je 0x140317129
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, r15d
mov r8, rsi
mov rcx, rax
mov rdx, r14
call sub.KERNEL32.dll_K32GetMappedFileNameW
test eax, eax
je 0x14031711e
xor edx, edx
lea rcx, [rsp + 0x460]
mov r8d, 0x400
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x460]
mov ecx, 0x1ff
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x14031711e
mov eax, dword [0x140552b68]
lea rbx, [rsp + 0x460]
mov dword [rsp + 0x34], eax
movzx eax, word [0x140552b6c]
mov word [rsp + 0x38], ax
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx]
lea rdx, [rsp + 0x40]
mov r8d, 0x104
mov word [rsp + 0x34], ax
lea rcx, [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x140317104
lea rcx, [rsp + 0x40]
call fcn.1400b4980
mov rdi, rax
cmp rax, 0x104
jae 0x140317104
mov r8, rax
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400b4b20
test eax, eax
jne 0x140317101
cmp word [rsi + rdi*2], 0x5c
jne 0x140317101
lea rax, [rsi + rdi*2]
mov edx, 0x104
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r8, [0x140552b70]
mov bpl, 1
lea rcx, [rsp + 0x250]
call fcn.1400b2740
mov r8, r15
lea rdx, [rsp + 0x250]
mov rcx, rsi
call fcn.1400b4890
jmp 0x140317104
xor bpl, bpl
movzx eax, word [rbx]
add rbx, 2
test ax, ax
jne 0x140317104
test bpl, bpl
jne 0x14031711e
cmp word [rbx], ax
jne 0x140317070
mov rcx, r14
mov bl, 1
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rsp + 0x870]
mov rbp, qword [rsp + 0x878]
movzx eax, bl
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.1402f2210
add rsp, 0x880
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140317170
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov byte [rdx], 0
mov rdi, r8
lea rdx, [rsp + 0x38]
mov rcx, rbx
mov dword [rsp + 0x38], edi
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x1403171ab
mov r8, rdi
lea rdx, str._unknown_machine_name_
mov rcx, rbx
call fcn.1400b4830
mov rcx, rbx
call fcn.1400b4900
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1403173c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x120], 0
mov rax, rdx
mov rbx, rcx
je 0x140317406
mov r9, qword [rcx + 0x120]
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rbx + 0x120]
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
mov rax, rdi
je 0x14031740d
mov rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1403174a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x120], 0
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
je 0x140317511
cmp r8, 0xffffffffffffffff
jne 0x1403174d3
mov rcx, rdx
call fcn.1400b4900
mov rdi, rax
mov r9, qword [rsi + 0x120]
mov r8, rdi
mov edx, 1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsi + 0x120]
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
cmp rbx, rdi
sete al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140317530
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x60
xor eax, eax
mov esi, r8d
mov qword [r11 - 0x38], rax
mov rdi, rdx
mov qword [r11 - 0x30], rax
mov rbx, rcx
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x10], rax
test r9b, r9b
je 0x140317608
xor edx, edx
lea rcx, [r11 - 0x38]
call fcn.1402fe330
mov rax, qword [rbx]
lea rdx, str.Callstack:_r_n
mov r8, 0xffffffffffffffff
mov rcx, rbx
call qword [rax + 0xa0]
cmp qword [rbx + 0x8c0], 0
mov rcx, rbx
mov r10, qword [rbx]
mov rax, qword [rsp + 0x90]
je 0x1403175de
mov r8, qword [rbx + 0x8c0]
lea rdx, [rbx + 0x740]
mov qword [rsp + 0x28], rax
mov r9d, reloc.WS2_32.dll_inet_addr
mov byte [rsp + 0x20], 1
call qword [r10 + 0x170]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov r9b, 1
mov qword [rsp + 0x20], rax
mov r8d, reloc.WS2_32.dll_inet_addr
lea rdx, [rsp + 0x30]
call qword [r10 + 0x168]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
test rdi, rdi
je 0x14031761b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x14031767c
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.1402fe370
test al, al
je 0x14031766e
mov rax, qword [rbx]
lea rdx, str.Callstack:_r_n
mov r8, 0xffffffffffffffff
mov rcx, rbx
call qword [rax + 0xa0]
mov rax, qword [rsp + 0x90]
lea rdx, [rsp + 0x30]
mov r10, qword [rbx]
mov r9b, 1
mov r8d, reloc.WS2_32.dll_inet_addr
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [r10 + 0x168]
test rdi, rdi
je 0x14031767c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140317690
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x14065ef68]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdi, rcx
xor r8d, r8d
lea rcx, [rsp + 0x50]
mov edx, 0x104
call fcn.1400b13a0
mov rax, qword [rdi]
lea r8, [rsp + 0x50]
lea rdx, str.App_path
mov rcx, rdi
call qword [rax + 0x80]
mov rax, qword [rdi]
lea r8, [0x140553224]
lea rdx, str.Language
mov rcx, rdi
call qword [rax + 0x80]
mov rax, qword [rdi]
lea r8, str.Microsoft_Visual_C_compiler__version_1938
lea rdx, str.Compiler
mov rcx, rdi
call qword [rax + 0x80]
mov rax, qword [rdi]
lea r8, str.64_bit
lea rdx, str.Addressing
mov rcx, rdi
call qword [rax + 0x80]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test eax, eax
je 0x140317808
mov edx, esi
mov qword [rsp + 0x188], rbx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1403177dd
mov r9, rax
lea rcx, [rsp + 0x50]
mov r8d, esi
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1403177d4
lea r9, [rsp + 0x44]
mov rcx, rbx
lea r8, [rsp + 0x48]
lea rdx, [0x1404ae4f8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1403177d4
mov rax, qword [rsp + 0x48]
mov rcx, rdi
mov r11, qword [rdi]
movzx edx, word [rax + 0xc]
movzx r8d, word [rax + 0xe]
movzx r10d, word [rax + 8]
movzx r9d, word [rax + 0xa]
mov dword [rsp + 0x30], edx
lea rdx, str.App_version
mov dword [rsp + 0x28], r8d
lea r8, [0x140553290]
mov dword [rsp + 0x20], r10d
call qword [r11 + 0x88]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x188]
mov al, 1
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1402f2210
mov rsi, qword [rsp + 0x190]
add rsp, 0x170
pop rdi
ret
mov al, 1
jmp 0x1403177e7
Function at 0x140318990
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x14065ef68]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor dil, dil
mov rbx, rcx
cmp dword [rcx + 0x14], 0
je 0x140318a89
xor edx, edx
mov qword [rsp + 0x288], rsi
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140318a49
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x238
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rsi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140318a3b
mov dil, 1
nop dword [rax + rax]
mov rax, qword [rbx]
lea r9, [rsp + 0x4c]
mov r8d, dword [rsp + 0x28]
lea rdx, str.0x_08x__ls_r_n
mov rcx, rbx
call qword [rax + 0x78]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140318a10
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, dil
jne 0x140318a5c
mov rax, qword [rbx]
lea rdx, str._info_currently_unavailable_for_this_platform_or_process__r_n
xor r8d, r8d
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x288]
movzx eax, dil
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1402f2210
mov rbx, qword [rsp + 0x290]
add rsp, 0x270
pop rdi
ret
mov rax, qword [rcx]
lea rdx, str.kOptionReportProcessList_is_currently_disabled._Use_ReportWriter::SetOption_to_enable_it._r_n
xor r8d, r8d
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
movzx eax, dil
jmp 0x140318a68
Function at 0x14031a0f0
Capabilities:
Enumerate threads

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x14065ef68]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
xor bl, bl
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, 4
mov ebp, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14031a25b
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x14031a24e
mov qword [rsp + 0x98], r12
mov qword [rsp + 0xa0], r13
mov qword [rsp + 0x60], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r13, str.__exception_thread_
mov qword [rsp + 0xa8], r14
mov r15d, eax
xor r12d, r12d
nop dword [rax + rax]
cmp dword [rsp + 0x3c], ebp
jne 0x14031a21a
mov r9d, dword [rsp + 0x38]
lea rcx, [0x140471c70]
cmp r9d, dword [rdi + 0x738]
lea r8, str.SysThreadId__DWORD_:__u_s__Windows_thread_base_priority:__ld
mov eax, dword [rsp + 0x40]
lea rdx, str.Thread
mov r10, qword [rdi]
sete bl
cmp r9d, r15d
mov dword [rsp + 0x28], eax
sete r14b
test bl, bl
cmovne rcx, r13
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call qword [r10 + 0x88]
test bl, bl
jne 0x14031a21a
mov r8d, dword [rsp + 0x38]
mov edx, 1
lea ecx, [rdx + 9]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x14031a21a
mov rax, qword [rdi]
movzx r9d, r14b
mov r8d, dword [rsp + 0x38]
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], r12
call qword [rax + 0x158]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x14031a180
mov r15, qword [rsp + 0x60]
mov bl, 1
mov r14, qword [rsp + 0xa8]
mov r13, qword [rsp + 0xa0]
mov r12, qword [rsp + 0x98]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x14031a26e
mov rax, qword [rdi]
lea rdx, str._info_currently_unavailable_for_this_platform_or_process__r_n
xor r8d, r8d
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_WSASetLastError]
movzx eax, bl
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1402f2210
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14031b040
Capabilities:
Get system information on windows
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [rdx]
mov rbx, rdx
mov rdi, rcx
cmp dword [rax], 0x80000000
jae 0x14031b068
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
add rcx, 0x10
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rdi + 0x1c], 1
jne 0x14031b0df
mov rax, qword [rbx]
cmp dword [rax], 0xc00000fd
jne 0x14031b0d2
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x34]
lea r9, [rsp + 0x20]
mov rax, qword [rdi + 0x9a0]
lea r8, [fcn.14031b140]
dec rcx
add rax, 0x40000
not rcx
mov rdx, rbx
and rcx, rax
mov rax, qword [rdi + 0x9a0]
mov qword [rsp + 0x20], rcx
mov rcx, rdi
mov qword [rsp + 0x28], rax
call fcn.14031fbe0
jmp 0x14031b0ef
mov rdx, rbx
mov rcx, rdi
call fcn.14031b140
jmp 0x14031b0ef
cmp dword [rdi + 0x3c], 2
je 0x14031b0ef
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [rdi + 0x3c], 1
jne 0x14031b117
mov ebx, dword [rdi + 0x48]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [rdi + 0x48]
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x70]
xor eax, eax
cmp dword [rdi + 0x3c], 2
setne al
add rsp, 0x60
pop rdi
ret
Function at 0x14031c830
Capabilities:
Get system information on windows
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rbx, rcx
mov rdi, rdx
add rcx, 0x10
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rbx + 0x1c], 1
jne 0x14031c87d
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r9, qword [rbx + 0x9a0]
lea r8, [0x14031c8e0]
add r9, 0x40000
mov rdx, rdi
mov rcx, rbx
call fcn.14031fbe0
jmp 0x14031c88d
cmp dword [rbx + 0x3c], 2
je 0x14031c88d
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [rbx + 0x3c], 1
jne 0x14031c89d
mov ecx, dword [rbx + 0x48]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [rbx + 0x3c], 2
je 0x14031c8b8
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.14004ede0
lea rdx, [0x14063e1a8]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x14031cc90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x21c8], 0
mov rsi, r8
mov rax, rdx
mov rbx, rcx
je 0x14031cce3
mov r9, qword [rcx + 0x21c8]
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rdi, rax
cmp rax, rsi
jne 0x14031cce3
mov rcx, qword [rbx + 0x21c8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
mov rax, rdi
je 0x14031ccea
mov rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14031d8e0
Capabilities:
Terminate process

Disassembly:
cmp qword [rcx + 0x1048], 0
je 0x14031d8d6
mov rcx, qword [rcx + 0x1048]
jmp 0x14031d8e0
ret
push rbx
sub rsp, 0x80
mov rbx, rcx
mov qword [rsp + 0xa0], rdi
add rcx, 0x10
mov edi, edx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rbx + 0x1c], 1
jne 0x14031dabb
lea rcx, [rbx + 0x290]
mov qword [rsp + 0x98], rsi
xor edx, edx
mov byte [rbx + 9], 1
mov r8d, 0x4d0
call sub.VCRUNTIME140.dll_memset
xor esi, esi
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
call fcn.1400b72a0
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1402fe330
mov rax, qword [rsp + 0x38]
mov qword [rbx + 0x388], rax
mov rax, qword [rsp + 0x40]
mov qword [rbx + 0x328], rax
mov rax, qword [rsp + 0x48]
mov qword [rbx + 0x330], rax
call fcn.1400b72a0
mov rcx, rax
mov qword [rbx + 0x250], rax
call sub.KERNEL32.dll_GetThreadId
lea r8, [rbx + 0x25c]
mov dword [rbx + 0x258], eax
lea rdx, [rbx + 0x258]
lea rcx, [rbx + 0x250]
lea r9d, [rsi + 0x18]
call fcn.14031c710
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x90], rax
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
lea rdx, [rbx + 0x290]
lea rcx, [rsp + 0x50]
movups xmm0, xmmword [rax]
movups xmmword [rbx + 0x160], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbx + 0x170], xmm1
mov eax, dword [rax + 0x20]
mov dword [rbx + 0x180], eax
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
call fcn.1402fe300
lea rcx, [rbx + 0x188]
lea r8, [rsp + 0x50]
lea edx, [rsi + 0x18]
call fcn.1402fe100
mov qword [rbx + 0x248], rax
lea rcx, [rbx + 0x760]
mov rax, qword [rbx + 0x388]
lea rdx, str.Simulated_exception__d.
mov r8d, edi
mov qword [rbx + 0x278], rax
call fcn.14031f9a0
cmp qword [rbx], 0
mov rsi, qword [rsp + 0x98]
je 0x14031dacb
mov rax, qword [rbx]
xor edx, edx
mov rcx, rax
mov r8, qword [rax]
call qword [r8 + 0x178]
mov rax, qword [rbx]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x110]
test al, 1
je 0x14031daa4
mov rax, qword [rbx]
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 0x168]
mov rax, qword [rbx]
mov edx, 1
mov rcx, rax
mov r8, qword [rax]
call qword [r8 + 0x178]
jmp 0x14031dacb
cmp dword [rbx + 0x3c], 2
je 0x14031dacb
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [rbx + 0x3c], 1
mov rdi, qword [rsp + 0xa0]
jne 0x14031dae3
mov ecx, dword [rbx + 0x48]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, [rbx + 0x10]
add rsp, 0x80
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]