joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001070
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
sub rsp, 0x68
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r8d, 0xd
lea rcx, [0x140005138]
call fcn.1400012d0
mov r8d, 0x13
lea rcx, [0x1400050c8]
call fcn.1400012d0
lea rcx, [0x140005138]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [0x1400050c8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
mov dword [rsp + 0x28], 0
mov r9d, 0x3000
mov dword [rsp + 0x20], 4
mov r8d, 0x304
lea rcx, [rdx - 1]
call rax
test rax, rax
jne 0x1400010f7
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str.ntdll.dll
mov qword [rsp + 0x60], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlFlsAlloc
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x14000112d
lea rcx, str.Failed_to_get_RtlFlsAlloc_function_n
call fcn.140001010
lea rdx, [rsp + 0x38]
xor ecx, ecx
call rbx
cmp dword [rsp + 0x38], 0
jne 0x140001149
lea rcx, str.RtlFlsAlloc_function_failed_n
call fcn.140001010
mov ebx, 0xb
nop
mov r8d, 0x304
lea rcx, [0x140005150]
call fcn.1400012d0
sub rbx, 1
jne 0x140001150
lea r8d, [rbx + 0xa]
lea rcx, [0x140005458]
call fcn.1400012d0
lea r8d, [rbx + 0x18]
lea rcx, [0x1400050f0]
call fcn.1400012d0
lea r8d, [rbx + 0x15]
lea rcx, [0x140005120]
call fcn.1400012d0
lea r8d, [rbx + 0x17]
lea rcx, [0x1400050b0]
call fcn.1400012d0
lea r8d, [rbx + 0x11]
lea rcx, [0x140005080]
call fcn.1400012d0
lea r8d, [rbx + 0x14]
lea rcx, [0x140005098]
call fcn.1400012d0
lea r8d, [rbx + 0x16]
lea rcx, [0x140005108]
call fcn.1400012d0
lea r8d, [rbx + 0xe]
lea rcx, [0x1400050e0]
call fcn.1400012d0
lea rcx, [0x140005458]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x1400050f0]
mov qword [rsp + 0x40], 0x304
mov rcx, rax
mov qword [rsp + 0x30], 0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r8d, r8d
mov dword [rsp + 0x28], 4
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 0x3000
lea rdx, [rsp + 0x30]
lea rcx, [r8 - 1]
call rax
lea rdx, [0x140005120]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
lea r8, [0x140005150]
mov rcx, 0xffffffffffffffff
mov r9d, 0x304
call rax
lea rdx, [0x1400050b0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x38]
mov r9d, 0x20
mov qword [rsp + 0x20], rdx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffffffffffff
call rax
call qword [rsp + 0x30]
mov rbx, qword [rsp + 0x60]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001420
add rsp, 0x68
ret
Function at 0x1400012d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x110
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x100], rax
xor r11d, r11d
lea r9, [rsp]
mov edx, r11d
mov eax, r11d
mov rdi, r8
mov rbx, rcx
mov r10d, pe_nt_image_headers64
nop dword [rax]
mov byte [r9], al
lea r9, [r9 + 1]
inc eax
cmp eax, r10d
jl 0x140001310
mov r8, r11
lea rsi, [0x140005468]
nop dword [rax + rax]
movzx r9d, byte [rsp + r8]
mov rax, r8
and eax, 7
movzx eax, byte [rax + rsi]
add edx, eax
add edx, r9d
and edx, 0x800000ff
jge 0x140001356
dec edx
or edx, 0xffffff00
inc edx
movsxd rax, edx
lea rcx, [rsp]
add rcx, rax
movzx eax, byte [rcx]
mov byte [rsp + r8], al
inc r8
mov byte [rcx], r9b
sub r10, 1
jne 0x140001330
mov eax, r11d
test rdi, rdi
je 0x1400013e2
nop dword [rax + rax]
inc eax
and eax, 0x800000ff
jge 0x140001392
dec eax
or eax, 0xffffff00
inc eax
movsxd rcx, eax
lea r8, [rsp]
add r8, rcx
movzx r9d, byte [r8]
lea ecx, [r11 + r9]
and ecx, 0x800000ff
jge 0x1400013b6
dec ecx
or ecx, 0xffffff00
inc ecx
movsxd r11, ecx
lea rdx, [rsp]
movzx ecx, byte [rdx + r11]
mov byte [r8], cl
mov byte [rdx + r11], r9b
movzx ecx, byte [r8]
add rcx, r9
movzx ecx, cl
movzx edx, byte [rsp + rcx]
xor byte [rbx], dl
inc rbx
sub rdi, 1
jne 0x140001380
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140001420
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140001ce0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001d2a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001d2a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001d2a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001d2a
cmp dword [rcx + 0x84], 0xe
jbe 0x140001d2a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001d2c
xor al, al
add rsp, 0x28
ret
Function at 0x140002c00
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140002c22
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x140002c9c
mov rdi, r14
mov rcx, rbx
call fcn.140005870
test rax, rax
jle 0x140002c74
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140048740
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140002c8c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140002c94
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140002c36
sub r14, rdi
jmp 0x140002d7f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140002cb3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002cb5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002ce7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140048740
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140002d7c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002d22
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x140002d5d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140053ee4
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140002d7c
cmp rbp, rax
ja 0x140002d30
test rbp, rbp
je 0x140002d7c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140053ee4
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x140015860
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x1a0
mov rax, qword [0x140094060]
xor rax, rsp
mov qword [rsp + 0x190], rax
xorps xmm0, xmm0
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x108
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call fcn.140048df0
mov rax, qword [rdi + 8]
mov qword [rsp + 0x30], 0
test rbx, rbx
je 0x14001594e
mov rax, qword [rax + 0x70]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
lea r8, [rsp + 0x40]
mov r9d, 0x40
mov rdx, rbx
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
jne 0x14001594e
mov eax, 0x5a4d
cmp word [rsp + 0x40], ax
jne 0x14001594e
movsxd rdx, dword [rsp + 0x7c]
mov rax, qword [rdi + 8]
mov qword [rsp + 0x30], 0
add rdx, rbx
je 0x14001594e
mov rax, qword [rax + 0x70]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
mov r9d, 0x108
lea r8, [rsp + 0x80]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
jne 0x14001594e
cmp dword [rsp + 0x80], 0x4550
sete al
jmp 0x140015950
xor al, al
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400464e0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x1a0
pop rdi
ret
Function at 0x140015e00
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x90
mov rax, qword [0x140094060]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbp, rcx
movsxd r14, r8d
lea rcx, [rsp + 0x40]
call fcn.140012670
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140012e60
xor ebx, ebx
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
movups xmmword [rsp + 0x70], xmm0
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
mov rdx, qword [rsp + 0x38]
mov dword [rsp + 0x80], r14d
cmp rdx, 8
jb 0x140015ea7
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015ea2
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015fa4
call fcn.140046500
mov rax, qword [rsp + 0x70]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0xc0], rsi
movabs rcx, 0xcbf29ce484222325
mov rsi, qword [rsp + 0x78]
cmp rsi, 8
mov qword [rsp + 0xc8], rdi
mov rdi, qword [rsp + 0x60]
lea r8, [rax + rax]
cmovae rdx, rdi
test r8, r8
je 0x140015f03
movabs r9, 0x100000001b3
movzx eax, byte [rbx + rdx]
inc rbx
xor rcx, rax
imul rcx, r9
cmp rbx, r8
jb 0x140015ef0
mov r9, r14
lea r8, [rsp + 0x60]
xor r9, rcx
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x18]
call fcn.140017270
cmp qword [rax + 8], 0
je 0x140015f3b
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x18]
call fcn.1400163a0
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x60]
cmp rsi, 8
jb 0x140015f72
lea rdx, [rsi*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140015f6a
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015f9e
mov rcx, rdi
call fcn.140046500
mov rsi, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400464e0
add rsp, 0x90
pop r14
pop rbp
pop rbx
ret
call fcn.1400546f4
int3
call fcn.1400546f4
int3
Function at 0x1400163a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
cmp qword [rdx + 0x18], 8
mov r8, rdx
mov r10, qword [rdx + 0x10]
mov rdi, rcx
mov r9, rdx
jb 0x1400163c1
mov r9, qword [rdx]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
add r10, r10
je 0x1400163f4
movabs r11, 0x100000001b3
nop dword [rax]
movzx eax, byte [rcx + r9]
inc rcx
xor rdx, rax
imul rdx, r11
cmp rcx, r10
jb 0x1400163e0
movsxd r9, dword [r8 + 0x20]
mov rcx, rdi
xor r9, rdx
lea rdx, [rsp + 0x20]
call fcn.140017270
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x14001648c
mov rdx, qword [rdi + 0x30]
and rdx, r9
shl rdx, 4
add rdx, qword [rdi + 0x18]
mov rax, qword [rdx]
cmp qword [rdx + 8], rbx
jne 0x140016445
cmp rax, rbx
jne 0x14001643b
mov rax, qword [rdi + 8]
mov qword [rdx], rax
mov qword [rdx + 8], rax
jmp 0x140016450
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
jmp 0x140016450
cmp rax, rbx
jne 0x140016450
mov rax, qword [rbx]
mov qword [rdx], rax
mov rdx, qword [rbx]
lea rcx, [rbx + 0x10]
dec qword [rdi + 0x10]
mov rax, qword [rbx + 8]
mov qword [rax], rdx
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
call fcn.140017350
mov edx, 0x48
mov rcx, rbx
call fcn.140046500
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x140018d40
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
xor esi, esi
mov rcx, qword [rcx + 0x10]
movzx edi, dl
test rcx, rcx
je 0x140018d6c
jle 0x140018d68
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbx + 0x10], rsi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140018d81
jle 0x140018d7d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rsi
mov rcx, qword [rbx]
test rcx, rcx
je 0x140018d94
jle 0x140018d91
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rsi
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x140018da9
jle 0x140018da5
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], rsi
test dil, dil
jne 0x140018e15
cmp qword [rbx + 0x110], 8
lea rcx, [rbx + 0xf8]
jb 0x140018dce
mov rcx, qword [rbx + 0xf8]
mov qword [rbx + 0x108], rsi
mov word [rcx], si
cmp byte [rbx + 0x1c], sil
je 0x140018dfa
add rbx, 0x118
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140018df2
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x140018e01
add rbx, 0x118
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x140018e0e
mov rax, qword [rbx]
mov qword [rbx + 0x10], rsi
mov word [rax], si
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140019d10
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x140094060]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rdi, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp - 0x70]
call fcn.140048df0
xor ebx, ebx
mov dword [rsp + 0x78], ebx
mov qword [rsp + 0x40], 0x38
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rbx
lea r8, [rsi + 0x50]
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.140019f90
mov r12, rax
test rax, rax
je 0x140019f49
test rdi, rdi
jne 0x140019eda
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x190]
call fcn.140048df0
lea rdx, [rbp + 0x190]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rbp - 0x70]
xor r8d, r8d
lea rdx, str.ImageManifest
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x140019df4
mov eax, 0xc0150002
jmp 0x140019f4b
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x120116
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
test rax, rax
setg r14b
test rax, rax
jle 0x140019ec9
mov dword [rbp - 0x80], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x80]
mov r8d, dword [rsp + 0x78]
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test r14b, r14b
je 0x140019e58
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x78], rbx
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rsi + 0x118]
lea rax, [rbp - 0x70]
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140019e80
mov rax, qword [rcx + 0x18]
cmp rdx, rax
ja 0x140019ebd
mov r14, rcx
cmp rax, 8
jb 0x140019e9f
mov r14, qword [rcx]
mov qword [rcx + 0x10], rdx
lea rdi, [rdx + rdx]
mov r8, rdi
lea rdx, [rbp - 0x70]
mov rcx, r14
call fcn.140048740
mov word [rdi + r14], bx
jmp 0x140019ec7
lea r9, [rbp - 0x70]
call fcn.1400108e0
nop
jmp 0x140019f03
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x140019f4b
mov dword [rsp + 0x44], 8
movzx eax, word [rsi + 0x50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x48], rdi
lea rdx, [rsi + 0xf8]
lea rcx, [rsi + 0x118]
call fcn.14000fb20
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov rdi, rax
mov rcx, qword [rsi + 0x48]
cmp rax, rcx
je 0x140019f2c
test rcx, rcx
jle 0x140019f25
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rsi + 0x48], rdi
mov rcx, rdi
test rcx, rcx
jg 0x140019f49
mov rax, qword gs:[0x30]
cmp dword [rax + 0x1250], 0xc0000022
jne 0x140019f76
mov dword [rsi + 0x50], ebx
xor eax, eax
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1400464e0
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x140019f4b
Function at 0x140021c30
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140094060]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor esi, esi
lea r9, [rsp + 0x50]
mov rbx, rcx
mov qword [rsp + 0x50], rsi
add rcx, 0x78
lea edx, [rsi + 0x18]
lea r8d, [rsi + 8]
call fcn.14001f170
cmp qword [rsp + 0x50], rsi
je 0x140021d2d
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword [rbx]
lea r9, [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov r8, rax
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], esi
mov rcx, qword [rcx]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140021cbc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x78]
mov qword [rsp + 0x40], rsi
test rdx, rdx
je 0x140021cf3
mov rax, qword [rdx + 0x18]
lea r8, [rsp + 0x40]
mov rdx, qword [rdx]
mov r9d, 8
add rdx, 0x18
mov qword [rsp + 0x20], rsi
mov rcx, qword [rax + 0x70]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rdx, qword [rbx + 0x88]
mov qword [rsp + 0x48], rsi
test rdx, rdx
je 0x140021d2d
mov rax, qword [rdx + 0x18]
lea r8, [rsp + 0x48]
mov rdx, qword [rdx]
mov r9d, 8
add rdx, 0x18
mov qword [rsp + 0x20], rsi
mov rcx, qword [rax + 0x70]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x140021d40
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x40], rsi
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140021de4
call fcn.14001f380
test al, al
je 0x140021de4
mov rcx, qword [rbx + 0x20]
xor edx, edx
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x20]
mov edx, 0xffffffff
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdi, qword [rbx + 0x20]
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140021d96
jle 0x140021d92
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x10], rsi
mov dword [rdi + 8], esi
mov rdi, qword [rbx + 0x28]
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], rsi
test rdi, rdi
je 0x140021dd6
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140021dd6
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], esi
cmp esi, 1
jne 0x140021dd6
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x140021de4
call fcn.14001f040
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400464e0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14002b600
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140094060]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rdx
mov rbp, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x20], 1
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
xor esi, esi
mov qword [rdx], rsi
mov qword [rdx + 8], rsi
mov qword [rdx + 0x10], rsi
mov dword [rsp + 0x20], 1
xor edx, edx
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
jg 0x14002b670
jmp 0x14002b7a6
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x4c], xmm0
mov qword [rsp + 0x5c], rsi
mov dword [rsp + 0x48], 0x1c
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x14002b79c
lea r12, vtable.std::_Ref_count_obj2_class_blackbone::Thread_.0
mov rsi, qword [rbp]
mov eax, dword [rsi + 8]
cmp dword [rsp + 0x54], eax
jne 0x14002b786
mov ecx, 0x28
call fcn.140046508
mov r14, rax
mov qword [rsp + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
mov qword [rax], r12
lea r15, [rax + 0x10]
mov r8d, dword [rsp + 0x50]
mov qword [r15], rsi
mov dword [r15 + 8], r8d
xor edx, edx
mov ecx, 0x10005b
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [r15 + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
or dword [rsp + 0x20], 2
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x30], r14
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x14002b733
mov qword [rdx], r15
mov qword [rdx + 8], r14
movdqu xmmword [rsp + 0x28], xmm0
add qword [rdi + 8], 0x10
jmp 0x14002b741
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.14002ba20
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14002b786
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14002b781
mov rbx, qword [rsp + 0x30]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14002b781
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x14002b6a3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400464e0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14002eb00
Capabilities:
Terminate thread

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [0x140094060]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov byte [rcx + 0x60], 0
mov rcx, qword [rcx + 0x48]
xor ebp, ebp
test rcx, rcx
je 0x14002eb35
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov qword [rbx + 0x48], rbp
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14002eb4a
jle 0x14002eb46
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x38], rbp
mov edi, ebp
nop dword [rax]
mov edx, edi
mov rcx, rbx
call fcn.14002e7e0
inc edi
cmp edi, 4
jl 0x14002eb50
cmp qword [rbx + 0x10], rbp
je 0x14002ec3f
call fcn.1400085c0
mov rcx, qword [rbx]
mov dword [rsp + 0x40], ebp
mov edx, dword [rcx + 8]
mov rcx, qword [rax]
mov dword [rsp + 0x44], edx
cmp rcx, 0xffffffffffffffff
je 0x14002ebd5
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x44]
mov dword [rsp + 0x28], ebp
mov r9d, 4
mov edx, 0x8005e020
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14002ebca
mov rax, qword gs:[0x30]
cmp dword [rax + 0x1250], ebp
jl 0x14002ebd5
lea rcx, [rbx + 8]
call fcn.14002ec60
jmp 0x14002ec33
mov qword [rsp + 0x78], rsi
mov rsi, qword [rbx + 8]
mov qword [rsp + 0x80], r14
mov rdi, qword [rsi + 8]
cmp byte [rdi + 0x19], bpl
jne 0x14002ec17
mov r8, qword [rdi + 0x10]
lea rdx, [rbx + 8]
lea rcx, [rbx + 8]
call fcn.14002ecd0
mov rcx, rdi
mov edx, 0x38
mov rdi, qword [rdi]
call fcn.140046500
cmp byte [rdi + 0x19], bpl
je 0x14002ebf0
mov r14, qword [rsp + 0x80]
mov qword [rsi + 8], rsi
mov qword [rsi], rsi
mov qword [rsi + 0x10], rsi
mov rsi, qword [rsp + 0x78]
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x58], rbp
mov qword [rbx + 0x50], rbp
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400464e0
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
Function at 0x14002fc20
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140094060]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [0x1400977e8], 0
jne 0x14002fc91
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x24]
dec ecx
mov eax, ecx
shr eax, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x10
or eax, ecx
inc eax
mov qword [0x1400977d8], rax
mov eax, dword [rsp + 0x48]
mov qword [0x1400977e0], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [0x1400977e8], rax
lea rax, [0x1400977d8]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400464e0
add rsp, 0x68
ret