joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008650
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x5d0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x548], 0xfffffffffffffffe
mov qword [rbp - 0x38], rdx
mov qword [rbp - 0x30], rcx
mov qword [rbp + 0x160], rcx
mov qword [rbp + 0x168], rdx
mov ecx, 2
xor edx, edx
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov qword [rbp - 0x28], rax
mov qword [rbp + 0x170], rax
mov rcx, 0xffffffffffffffff
cmp rax, rcx
je 0x14000875f
mov byte [rbp + 0x17f], 0
mov qword [rbp + 0x180], 1
mov byte [rbp + 0x18f], 0
mov qword [rbp + 0x190], 1
lea rax, [rbp + 0x2c8]
mov qword [rbp + 0x528], rax
lea rax, [rbp + 0x2c8]
mov qword [rbp + 0x530], rax
lea rcx, [rbp + 0x2c8]
xor edx, edx
mov r8d, 0x130
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x198]
lea rdx, [rbp + 0x2c8]
mov r8d, 0x130
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbp + 0x3f8]
lea rdx, [rbp + 0x198]
mov r8d, 0x130
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbp - 0x18]
lea rdx, [rbp + 0x3f8]
mov r8d, 0x130
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbp - 0x28]
mov dword [rbp - 0x18], 0x130
lea rdx, [rbp - 0x18]
call sub.kernel32.dll_Process32First
cmp eax, 1
je 0x14000876b
jmp 0x1400087b4
mov dword [rbp - 0x20], 0
jmp 0x1400088a0
lea rcx, [rbp + 0x14]
mov qword [rbp + 0x538], rcx
mov qword [rbp + 0x540], 0x104
call fcn.140009190
mov qword [rbp - 0x58], rax
mov r8, rdx
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp + 0x130]
mov qword [rbp - 0x50], rcx
call fcn.14008fdb0
mov rcx, qword [rbp - 0x50]
call fcn.140001520
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], rax
jmp 0x1400087c9
mov rcx, qword [rbp - 0x28]
call sub.kernel32.dll_CloseHandle
mov dword [rbp - 0x20], 0
jmp 0x1400088a0
mov r8, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp + 0x118]
call fcn.14008ff80
jmp 0x1400087df
lea rcx, [rbp + 0x130]
call fcn.140009800
jmp 0x1400087ed
mov r8, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp + 0x148]
call fcn.14008ff80
jmp 0x140008803
lea rcx, [rbp + 0x118]
lea rdx, [rbp + 0x148]
call fcn.140005a90
mov byte [rbp - 0x59], al
jmp 0x14000881b
mov al, byte [rbp - 0x59]
test al, 1
jne 0x140008832
jmp 0x140008824
lea rcx, [rbp + 0x148]
call fcn.14000fc10
jmp 0x140008840
lea rcx, [rbp + 0x148]
call fcn.14000fc10
jmp 0x14000887c
mov rcx, qword [rbp - 0x28]
lea rdx, [rbp - 0x18]
call sub.kernel32.dll_Process32Next
mov dword [rbp - 0x60], eax
jmp 0x140008852
mov eax, dword [rbp - 0x60]
cmp eax, 1
jne 0x14000886b
lea rcx, [rbp + 0x118]
call fcn.14000fc10
jmp 0x14000876b
lea rcx, [rbp + 0x118]
call fcn.14000fc10
jmp 0x1400087b4
mov rcx, qword [rbp - 0x28]
call sub.kernel32.dll_CloseHandle
jmp 0x140008887
mov eax, dword [rbp - 0x10]
mov dword [rbp - 0x1c], eax
mov dword [rbp - 0x20], 1
lea rcx, [rbp + 0x118]
call fcn.14000fc10
mov eax, dword [rbp - 0x20]
mov edx, dword [rbp - 0x1c]
add rsp, 0x5d0
pop rbp
ret
Function at 0x14007cf30
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x14007cfc0
jmp 0x14007cfaf
jae 0x14007d080
cmp r8, 0x201
jae 0x14007cfc0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14007d018
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14007cfef
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140096a40
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x14007d041
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14007d0e8
mov r8d, r14d
cmp r15, r8
jne 0x14007cfa0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14007d10b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14007cfaf
jmp 0x14007cfc0
cmp rsi, r8
jb 0x14007d125
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140080440
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x14007d0d1
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.14000cb10
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x14007d0b9
jmp 0x14007d0d1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_21cce21d8c012f14cf74d5afddd795d324600daclibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140097480
jmp 0x14007d13a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400979d0
ud2
Function at 0x14007d190
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.140086f60
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x408], rax
test rax, rax
je 0x14007d316
mov qword [rbp + 0x400], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x418], rax
mov qword [rbp + 0x3e8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x14007d250
jmp 0x14007d23f
jae 0x14007d328
cmp r8, 0x201
jae 0x14007d250
mov r15d, 0x200
lea r14, [rbp - 0x60]
mov r12, r8
jmp 0x14007d2a8
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x14007d27f
lea rcx, [rbp + 0x3e8]
mov rdx, r13
call fcn.140096a40
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x410], rax
mov rdi, qword [rbp + 0x3f0]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x3f8], r13
mov rbx, rdi
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x14007d2d7
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14007d3fb
mov r8d, esi
cmp r12, r8
jne 0x14007d230
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14007d425
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14007d23f
jmp 0x14007d250
lea rcx, [rbp - 0x58]
call fcn.14007ac10
mov byte [rsi + 0x18], 2
jmp 0x14007d3ba
cmp r15, r8
jb 0x14007d43f
lea rcx, [rbp + 0x3a0]
mov rdx, r14
call fcn.140080440
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x14007d379
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rdi
call fcn.14000cb10
cmp byte [rbp + 0x3d8], 2
jne 0x14007d3d1
mov rsi, qword [rbp + 0x400]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3c0]
call fcn.14007ac10
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x14007d3ba
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.14000cb10
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3c0]
movaps xmm1, xmmword [rbp + 0x3d0]
mov rsi, qword [rbp + 0x400]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x14007d3a5
jmp 0x14007d3ba
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3c0], rax
mov byte [rbp + 0x3d8], 2
test rdi, rdi
jne 0x14007d361
jmp 0x14007d379
lea rcx, str.internal_error:_entered_unreachable_code_rustc_21cce21d8c012f14cf74d5afddd795d324600daclibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140097480
jmp 0x14007d454
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.1400979d0
ud2
Function at 0x140085250
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14009f038]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140085294
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400852fa
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140085331
test eax, eax
js 0x14008530b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140085324
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140080070
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14007adf0
mov ecx, 7
int 0x29
ud2

Function at 0x140086050
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140086088
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.1400860a0
nop
add rsp, 0x38
ret

Function at 0x1400860a0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x1400860e3
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14007e5e0]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.1400973b0
ud2
Function at 0x140086750
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x1400bc181]
mov ecx, 0x10
mov edx, 8
call fcn.14000cb00
test rax, rax
je 0x14008682f
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400868e0]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140086821
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400867f8
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.14000cb10
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call fcn.14000cb10
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
add dword [rax], eax
add byte [rax], al
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], rdi
jge 0x140086827
mov ecx, 8
mov edx, 0x10
call fcn.1400972c0
ud2
Function at 0x140094990
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x140094a0a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140094a00
cmp r11, r10
ja 0x140094aa3
cmp r10, rdx
ja 0x140094ab7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140094a02
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400949e0
jmp 0x140094a77
ja 0x140094a0a
mov r11, r10
cmp rax, r8
jne 0x1400949b2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140094a7b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140094a50
mov r8, r10
sub ecx, r9d
jns 0x140094a6e
jmp 0x140094a7d
cmp r10, rdx
je 0x140094a89
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140094a7d
xor al, 1
cmp r8, rdx
jne 0x140094a30
jmp 0x140094a7d
xor eax, eax
jmp 0x140094a7d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1400a1c4b]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140097480
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140097a50
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400979d0
ud2

Function at 0x1400964a8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1400964f2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400964f2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400964f2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400964f2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400964f2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400964f4
xor al, al
add rsp, 0x28
ret
Function at 0x140006560
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x140006595
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140005a20
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x1400066d6
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x140006650
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x1400066c5
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14000668d
mov r10, qword [rdx]
cmp r10, rax
je 0x140006687
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x1400066c5
cmp r9, rdx
je 0x1400066a1
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x1400066e7
cmp r9, rdx
jne 0x140006692
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x140006600
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x1400066c5
Function at 0x140008f60
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rdi, rcx
mov rax, qword [rcx + 0x150]
mov ecx, dword [rax + 0x114]
cmp ecx, 3
jne 0x140008f89
lea ebx, [rcx + 9]
jmp 0x140008f99
mov ebx, 0x15
mov eax, 0x11
cmp ecx, 4
cmove ebx, eax
mov qword [rdi + 0x1a0], rbx
mov qword [rsp + 0x70], rbx
mov eax, 0x18
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14007b5dc
mov qword [rsp + 0x70], rax
lea rcx, [rax + 9]
nop dword [rax]
mov byte [rcx], 0
lea rcx, [rcx + 0x18]
sub rbx, 1
jne 0x140008fd0
mov qword [rdi + 0x198], rax
xor esi, esi
mov edx, esi
cmp qword [rdi + 0x1a0], rsi
jbe 0x14000903e
mov r8d, esi
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rdi + 0x198]
mov r9, qword [rdi + 0x150]
cmp byte [r8 + rax + 9], sil
jne 0x140009134
lea rcx, [rdx + 5]
mov qword [r8 + rax + 0x10], rcx
mov qword [r8 + rax], r9
mov word [r8 + rax + 8], 0x100
inc rdx
add r8, 0x18
cmp rdx, qword [rdi + 0x1a0]
jb 0x140009000
mov byte [rdi + 0x1a8], sil
mov rbx, qword [rdi + 0x150]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
mov r8d, 0x15
lea rdx, str.Chipset_InterruptMask
lea rcx, [rsp + 0x40]
call fcn.140004e00
lea rcx, [rdi + 0x98]
mov qword [rsp + 0x38], rbx
lea rax, [0x1400091b0]
mov qword [rsp + 0x30], rax
lea rax, [0x140009190]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
mov edx, 0xf010
mov r8d, 4
call fcn.140011b30
mov rbx, qword [rdi + 0x150]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
mov r8d, 0x18
lea rdx, str.Chipset_InterruptPending
lea rcx, [rsp + 0x40]
call fcn.140004e00
lea rcx, [rdi + 0xf0]
mov qword [rsp + 0x38], rbx
lea rax, [0x1400092b0]
mov qword [rsp + 0x30], rax
lea rax, [0x140009290]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
mov edx, 0xf014
mov r8d, 4
call fcn.140011b30
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rax, str.Setup
mov qword [rsp + 0x20], rax
mov r9d, 0x10
lea r8, str.C:Users15874_source_reposCasioEmuXCasioEmuMsvcChipsetInterruptSource.cpp
lea rdx, str._s:_i:_in__s:
call fcn.140006bd0
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Setup_invoked_twice_n
call fcn.140006bd0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x14000b800
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140097040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000b82d
xor eax, eax
jmp 0x14000b999
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000b867
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000b867
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14000b999
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000b98c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000b8aa
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000b8d5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000b991
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000b944
sub eax, 1
je 0x14000b944
cmp eax, 2
jne 0x14000b98c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14000b991
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14000b972
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000b98c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14000b991
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14007af90
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret