joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140064e40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140064e65
xor eax, eax
jmp 0x140064f75
cmp qword [rcx + 0x68], 0
je 0x140064e79
lfence
call fcn.14000deb0
jmp 0x140064f75
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov qword [rsp + 0x60], rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x140064e95
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140064e97
xor ecx, ecx
movsxd rax, ecx
mov rbx, rdi
test ecx, ecx
je 0x140064ed1
cmp rax, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140089700
mov rax, qword [rsi + 0x50]
sub rbp, rbx
add r14, rbx
mov qword [rsp + 0x60], rbp
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
mov rbx, rbp
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140064f6a
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140064f0c
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov r15d, 0xfff
cmp rbx, r15
jbe 0x140064f46
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.140093f54
sub rbp, rax
add r14, rax
mov qword [rsp + 0x60], rbp
mov rbx, rbp
cmp rax, r15
jne 0x140064f6a
cmp rbp, r15
ja 0x140064f17
test rbx, rbx
je 0x140064f6a
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.140093f54
sub rbx, rax
mov qword [rsp + 0x60], rbx
lfence
sub rdi, qword [rsp + 0x60]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140065370
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x30]
call fcn.140089b10
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx ecx, word [rsp + 0x20]
cmp ecx, 5
ja 0x1400653e9
je 0x1400653e0
test ecx, ecx
je 0x1400653d7
sub ecx, 1
je 0x1400653ce
sub ecx, 1
je 0x1400653c5
sub ecx, 1
je 0x1400653bc
cmp ecx, 1
jne 0x140065402
lea rax, [0x1400d1348]
jmp 0x140065436
lea rax, [0x1400d1340]
jmp 0x140065436
lea rax, str.ALPHA
jmp 0x140065436
lea rax, str.MIPS
jmp 0x140065436
lea rax, [0x1400d1318]
jmp 0x140065436
lea rax, [0x1400d1350]
jmp 0x140065436
sub ecx, 6
je 0x14006542f
sub ecx, 1
je 0x140065426
sub ecx, 1
je 0x14006541d
sub ecx, 1
je 0x140065414
cmp ecx, 1
je 0x14006540b
lea rax, str.UNKNOWN
jmp 0x140065436
lea rax, str.IA32_ON_WIN64
jmp 0x140065436
lea rax, str.AMD64
jmp 0x140065436
lea rax, str.MSIL
jmp 0x140065436
lea rax, str.ALPHA64
jmp 0x140065436
lea rax, str.IA64
add rsp, 0x58
ret
Function at 0x140065c8c
Capabilities:
Create thread
Resume thread

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x180
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140126108]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov esi, edx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
mov rbx, qword [rcx + 8]
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x38], 0
mov rcx, rbx
call fcn.140069db8
test eax, eax
jne 0x140065efd
mov byte [rsp + 0x38], 1
mov rax, qword [rdi + 8]
cmp qword [rax + 0x50], 0
je 0x140065d07
mov rcx, rbx
call fcn.140069ddc
test eax, eax
jne 0x140065f05
jmp 0x140065ed6
add rax, 0x64
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, rdi
lea r8, [0x140065f30]
xor edx, edx
xor ecx, ecx
call fcn.140094cdc
mov rcx, qword [rdi + 8]
mov qword [rcx + 0x50], rax
mov rax, qword [rdi + 8]
mov rcx, qword [rax + 0x50]
test rcx, rcx
je 0x140065eca
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x140065def
call fcn.140062444
mov r9d, 1
mov r8, qword [rax]
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.14000c39c
nop
lea rsi, [rax + 0x10]
lea rdx, str.SetThreadPriority_failed:
mov rcx, rsi
call fcn.140015a04
lea rcx, [rsp + 0x158]
call fcn.14006534c
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140065d9e
mov rax, qword [rax]
mov rdx, rax
mov rcx, rsi
call fcn.140017544
nop
lea rcx, [rsp + 0x158]
call fcn.140001a14
nop
lea rcx, [rsp + 0xf8]
call fcn.14000c32c
nop
lea rsi, vtable.std::ios_base.0
mov qword [rsp + 0xf8], rsi
lea rcx, [rsp + 0xf8]
call fcn.140069698
nop
jmp 0x140065df6
lea rsi, vtable.std::ios_base.0
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx + 0x50]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x140065eaa
call fcn.140062444
mov r9d, 1
mov r8, qword [rax]
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.14000c39c
nop
lea rdi, [rax + 0x10]
lea rdx, str.ResumeThread_failed:
mov rcx, rdi
call fcn.140015a04
lea rcx, [rsp + 0x158]
call fcn.14006534c
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140065e57
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140017544
nop
lea rcx, [rsp + 0x158]
call fcn.140001a14
nop
lea rcx, [rsp + 0xf8]
call fcn.14000c32c
nop
mov qword [rsp + 0xf8], rsi
lea rcx, [rsp + 0xf8]
call fcn.140069698
nop
jmp 0x140065e9c
mov rcx, rbx
call fcn.140069ddc
test eax, eax
jne 0x140065f0d
jmp 0x140065ed6
mov rax, qword [rdi + 8]
mov byte [rax + 0x60], 1
mov rax, qword [rdi + 8]
mov byte [rax + 0x61], 0
mov rcx, rbx
call fcn.140069ddc
test eax, eax
jne 0x140065f15
mov al, 1
jmp 0x140065ed8
mov rcx, rbx
call fcn.140069ddc
test eax, eax
jne 0x140065f1d
xor al, al
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.14006b320
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov ecx, eax
call fcn.140069eec
nop
mov ecx, eax
call fcn.140069eec
nop
mov ecx, eax
call fcn.140069eec
nop
mov ecx, eax
call fcn.140069eec
nop
mov ecx, eax
call fcn.140069eec
int3
Function at 0x140066484
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x140066492
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x28
ret
Function at 0x14006ee3c
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14006ee4f
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.14006f468
lea rdx, [0x140122f40]
lea rcx, [rsp + 0x20]
call fcn.140089d68
int3

Function at 0x14007988c
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x14012b670]
xor edx, edx
jmp fcn.14006ee3c

Function at 0x14007a25c
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x14012b670]
jmp fcn.14006ee3c

Function at 0x1400861b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140086270]
mov r9, qword [r9 + 8]
jmp fcn.1400771f4

Function at 0x140086244
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140086280]
mov r9, qword [r9 + 8]
jmp fcn.1400771f4
Function at 0x1400bd1f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x1400bd2b3
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x1400bd224
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x1400bd2b6
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x1400bd26f
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x1400bd273
test rax, rax
je 0x1400bd2b3
mov rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400bd2a4
cmp rdx, rax
jb 0x1400bd290
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400bdb50
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rax, qword [0x140130b60]
xor esi, esi
mov rbx, r8
mov r14, rdx
mov ebp, ecx
test rax, rax
jne 0x1400bdb99
xor edx, edx
lea rcx, str.Setupapi.dll
call fcn.1400be860
mov qword [0x140130b60], rax
test rax, rax
je 0x1400bdc76
cmp qword [0x140130b68], rsi
jne 0x1400bdbc9
lea rdx, [0x1400e6a10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140130b68], rax
test rax, rax
je 0x1400bdc76
mov rax, qword [0x140130b60]
cmp qword [0x140130b70], rsi
jne 0x1400bdbf9
lea rdx, [0x1400e6a28]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140130b70], rax
test rax, rax
je 0x1400bdc76
mov rax, qword [0x140130b60]
cmp qword [0x140130b80], rsi
jne 0x1400bdc25
lea rdx, [0x1400e68e0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140130b80], rax
test rax, rax
je 0x1400bdc76
mov rax, qword [0x140130b60]
cmp qword [0x140130b78], rsi
jne 0x1400bdc51
lea rdx, [0x1400e6a40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140130b78], rax
test rax, rax
je 0x1400bdc76
mov rax, qword [0x140130b60]
cmp qword [0x1401308d8], rsi
jne 0x1400bdc7d
lea rdx, [0x1400e6908]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401308d8], rax
test rax, rax
jne 0x1400bdc7d
xor eax, eax
jmp 0x1400bdd1d
mov r9d, 6
mov qword [rsp + 0x30], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [0x140130b68]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400bdd16
xor eax, eax
mov r8, rbx
mov qword [rbx], rax
xor edx, edx
mov qword [rbx + 8], rax
mov rcx, rdi
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov dword [rbx], 0x20
call qword [0x140130b70]
test eax, eax
je 0x1400bdd0d
nop word [rax + rax]
mov r8, rbx
mov rdx, rdi
mov ecx, ebp
call fcn.1400be1a0
cmp eax, 1
je 0x1400bdd33
xor eax, eax
inc esi
mov qword [rbx], rax
mov r8, rbx
mov qword [rbx + 8], rax
mov edx, esi
mov qword [rbx + 0x10], rax
mov rcx, rdi
mov qword [rbx + 0x18], rax
mov dword [rbx], 0x20
call qword [0x140130b70]
test eax, eax
jne 0x1400bdcd0
mov rcx, rdi
call qword [0x1401308d8]
xor eax, eax
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [r14], rdi
mov eax, 1
jmp 0x1400bdd18
Function at 0x1400bf410
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x30
mov rbx, rcx
xor ebp, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x1400bf635
xor edx, edx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], dx
jne 0x1400bf436
test rax, rax
je 0x1400bf474
xor ecx, ecx
nop word [rax + rax]
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x1400bf635
cmp r8w, 0x2f
je 0x1400bf635
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x1400bf450
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.1400bf650
mov rsi, rax
test rax, rax
je 0x1400bf565
mov qword [rsp + 0x50], r14
call fcn.1400bfeb0
mov r14, rax
test rax, rax
je 0x1400bf552
mov rcx, rsi
call fcn.1400bd050
test eax, eax
je 0x1400bf53b
lea rax, str.system32_
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x20]
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rdi]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x1400bf4e7
mov r8, rbx
mov rcx, rsi
call fcn.140094dc0
test eax, eax
je 0x1400bf50f
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
jb 0x1400bf4e0
jmp 0x1400bf51e
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.1400beab0
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x1400bf549
mov rcx, rsi
call fcn.1400bcff0
test eax, eax
je 0x1400bf549
mov rbp, rsi
xor esi, esi
jmp 0x1400bf549
mov rdx, rsi
mov rcx, r14
call fcn.1400beab0
mov rbp, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x50]
jmp 0x1400bf601
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x1400bf60a
mov rcx, rbx
call fcn.1400bced0
mov rdi, rax
test rax, rax
je 0x1400bf60a
mov ecx, 0x37e4
call fcn.1400be640
test eax, eax
je 0x1400bf59f
xor ecx, ecx
call fcn.1400bfb50
jmp 0x1400bf5a4
call fcn.1400bfeb0
mov rbx, rax
test rax, rax
je 0x1400bf5f8
mov rdx, rdi
mov rcx, rax
call fcn.1400beab0
mov rbp, rax
test rax, rax
je 0x1400bf5ef
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400bf5d1
test al, 0x50
je 0x1400bf5ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400bf5e4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x1400bf60a
xor ecx, ecx
jmp 0x1400bf617
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400bf61d
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x48]
mov rax, rbp
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rbp
ret
Function at 0x1400bfeb0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400bff12
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400bff07
cmp edi, eax
jb 0x1400bff07
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c1e94
Capabilities:
Hash data via wincrypt

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
xor ebx, ebx
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400c1ec0
mov eax, 0xffffffff
cmp r8, rax
ja 0x1400c1ec0
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
setne bl
mov al, bl
add rsp, 0x20
pop rbx
ret

Function at 0x1400c2110
Capabilities:
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rdi, [rcx + 8]
mov rbx, rcx
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400c2133
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
and qword [rdi], 0
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400c2147
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and qword [rbx], 0
mov rcx, rbx
call fcn.1400c1fec
mov r9d, eax
mov dword [rsp + 0x20], 0xf0000060
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400c218e
mov rcx, rbx
call fcn.1400c1ec8
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov edx, eax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1400c21b8
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400c21a0
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
and qword [rdi], 0
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400c21b4
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and qword [rbx], 0
xor al, al
jmp 0x1400c21ba
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14000ed10
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x58
mov rax, qword [rcx + 8]
mov ecx, 1
mov dword [rsp + 0x24], 0x100
mov word [rsp + 0x20], cx
mov ecx, 6
mov qword [rsp + 0x28], rax
mov word [rsp + 0x22], cx
mov ecx, 0xffbc
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rax
mov eax, 0xff01
mov word [rsp + 0x30], cx
mov ecx, 0x88
mov word [rsp + 0x40], ax
mov eax, 4
lea r8d, [rcx - 0x78]
mov word [rsp + 0x32], cx
lea rcx, [rsp + 0x20]
lea edx, [rax - 1]
mov dword [rsp + 0x34], 0x100
mov word [rsp + 0x42], ax
mov dword [rsp + 0x44], 0x100
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x14000eda8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x14000edaa
movzx eax, ax
or eax, 0x80070000
add rsp, 0x58
ret
xor eax, eax
add rsp, 0x58
ret
Function at 0x1400109b0
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push rbx
sub rsp, 0x860
mov rax, qword [0x140016020]
xor rax, rsp
mov qword [rsp + 0x850], rax
xor eax, eax
lea rbx, [rcx + 0xe0]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x30], eax
mov dword [rbx], eax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rdx, str.GETBASFM
lea rcx, str..pipe_stacsv
mov r8d, 9
mov dword [rsp + 0x20], 0x400
mov dword [rsp + 0x40], 0x80004005
call qword [sym.imp.KERNEL32.dll_CallNamedPipeW]
test eax, eax
je 0x140010a56
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x450]
lea rdx, str._s__d__x
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.MSVCR90.dll_sscanf]
mov al, 1
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.1400115c0
add rsp, 0x860
pop rbx
ret
cmp dword [rsp + 0x40], 0
je 0x140010a3b
xor al, al
jmp 0x140010a3d

Function at 0x140010a70
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push rdi
sub rsp, 0xce0
mov rax, qword [0x140016020]
xor rax, rsp
mov qword [rsp + 0xcd0], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x480
call fcn.140011b46
mov r9d, dword [rdi + 0xe0]
lea r8, str.SETBASFM
lea rdx, str._s__x
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCR90.dll_sprintf]
or rcx, 0xffffffffffffffff
xor eax, eax
xor r11d, r11d
lea rdi, [rsp + 0x50]
mov dword [rsp + 0x40], 0x80004005
repne scasb al, byte [rdi]
mov dword [rsp + 0x44], r11d
not rcx
dec rcx
add ecx, 1
je 0x140010b5b
mov dword [rsp + 0x30], r11d
lea rax, [rsp + 0x48]
mov r8d, ecx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x4d0]
lea rdx, [rsp + 0x50]
lea rcx, str..pipe_stacsv
mov dword [rsp + 0x20], 0x400
call qword [sym.imp.KERNEL32.dll_CallNamedPipeW]
test eax, eax
je 0x140010b50
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x8d0]
lea rdx, str._s__d__x
lea rcx, [rsp + 0x4d0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCR90.dll_sscanf]
mov al, 1
jmp 0x140010b5d
cmp dword [rsp + 0x40], 0
jne 0x140010b5b
mov al, 1
jmp 0x140010b5d
xor al, al
mov rcx, qword [rsp + 0xcd0]
xor rcx, rsp
call fcn.1400115c0
add rsp, 0xce0
pop rdi
ret
Function at 0x1400111f0
Capabilities:
Enumerate processes

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x140016020]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14001122e
or rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400112ac
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x140011260
test rbx, rbx
je 0x140011255
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400112ac
lea rdx, [rsp + 0x4c]
lea rcx, [0x140013990]
call qword [sym.imp.MSVCR90.dll__wcsicmp]
test eax, eax
je 0x140011299
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140011260
test rbx, rbx
je 0x140011255
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400112ac
test rbx, rbx
je 0x1400112a7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400115c0
add rsp, 0x270
pop rbx
ret

Function at 0x1400115a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x140016308]
test rcx, rcx
jne 0x1400114f7
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 0x60]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x1400114f0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140011522
and qword [rax], 0
and qword [rax + 8], 0
xor eax, eax
lock cmpxchg qword [rbx + 0x40], rdi
je 0x1400114ec
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx + 0x40]
mov qword [0x140016308], rcx
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x140011595
mov edx, 0x1000
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x140011545
xor edx, edx
lea r9, [rsp + 0x30]
mov ecx, 0xc0000017
lea r8d, [rdx + 1]
mov qword [rsp + 0x30], 0x20
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [rax]
mov rcx, qword [0x140016308]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x140011572
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x140011595
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x140016308]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x140011579
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
jmp 0x14001147c
Function at 0x140011b34
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rcx, 0x3d3f45fe
jmp 0x14000422c
dec rcx
jmp 0x140005236
jmp 0x140005897
jne 0x14000422c
jmp 0x140004851
xor rcx, rcx
mov rdx, 0x727f
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call 0x1400058b7
pop rsi
add rsi, 0x14ca
mov rdi, rax
mov rcx, 0x727f
rep movsb byte [rdi], byte [rsi]
jmp rax
sub rsp, 0x28
call fcn.140011e74
add rsp, 0x28
xor rcx, rcx
invalid
invalid

Function at 0x140011bfb
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140016020]
jne 0x1400115da
rol rcx, 0x10
test cx, 0xffff
jne 0x1400115d6
repz ret
ror rcx, 0x10
jmp 0x140011b54
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400163e0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1400164d8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140011bd9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400163e0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140011bfb
mov rax, qword [rsp + 0x88]
mov qword [0x1400164d8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140016478], rax
mov rax, qword [0x1400164d8]
mov qword [0x140016350], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140016460], rax
mov dword [0x140016340], 0xc0000409
mov dword [0x140016344], 1
mov rax, qword [0x140016020]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140016028]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400163d8], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400137c0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400163d8], 0
jne 0x140011c82
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret