joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ab51c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400ab5a3
mov rsi, rbx
cmp word [rax], bp
je 0x1400ab562
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400ab54c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400ab548
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400a0d14
mov rdi, rax
test rax, rax
je 0x1400ab590
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400b0540
mov rbp, rdi
xor ecx, ecx
call fcn.1400a0ad4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400af760
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400a55f0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400a55f0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400af8b0
cmp rax, 0xffffffffffffffff
je 0x1400af8b0
xor edi, edi
test rbp, rbp
jle 0x1400af85b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400a22b4
mov rbx, rax
test rax, rax
jne 0x1400af7e8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400af851
mov edx, 0x8000
mov ecx, r14d
call fcn.14009fbe0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400a3d20
cmp eax, 0xffffffff
je 0x1400af831
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400af7f8
mov edx, r15d
mov ecx, r14d
call fcn.14009fbe0
jmp 0x1400af851
cmp byte [rsi + 0x38], dil
je 0x1400af848
cmp dword [rsi + 0x34], 5
jne 0x1400af848
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
cmp byte [rsi + 0x30], dil
je 0x1400af851
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400a0ad4
jmp 0x1400af8c4
jns 0x1400af8c4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400a55f0
cmp rax, 0xffffffffffffffff
jne 0x1400af87c
cmp byte [rsi + 0x30], dil
je 0x1400af8c4
mov edi, dword [rsi + 0x2c]
jmp 0x1400af8c4
mov ecx, r14d
call fcn.1400abb68
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400af8c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayDestroy
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
jmp 0x1400af8c4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400af8bd
mov eax, dword [rsi + 0x2c]
jmp 0x1400af8c2
mov eax, SafeArrayUnaccessData
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400a55f0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400b0070
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400b0098
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400b0098
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1404d54e0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1404d54ed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1404d54fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1404d54e5
lea eax, [rcx + 1]
jmp 0x1404d550b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1404d551e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1404d5504
sub eax, 3
jb 0x1404d553e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1404d558d
sar eax, 1
movsxd rbp, eax
jb 0x1404d5574
jmp 0x1404d554c
add ebx, ebx
jne 0x1404d554a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1404d5574
inc ecx
add ebx, ebx
jne 0x1404d555a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1404d5574
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1404d556d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1404d555c
add ecx, 2
jmp 0x1404d5579
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1404d54a2
jmp 0x1404d54ed
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1da00
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1404d55d9
cmp rsi, rcx
jae 0x1404d55e1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1404d55c0
cmp al, 0x8f
ja 0x1404d55c0
cmp byte [rsi - 2], 0xf
je 0x1404d55c6
sub al, 0xe8
cmp al, 1
ja 0x1404d55aa
cmp rsi, rcx
jae 0x1404d55e1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1404d55b0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1404d55e1
lodsb al, byte [rsi]
jmp 0x1404d55c0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x4d2000]
mov eax, dword [rdi]
or eax, eax
je 0x1404d564a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x4d5bb8]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1404d55ee
jns 0x1404d5623
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1404d562d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1404d5644
mov qword [rbx], rax
add rbx, 8
jmp 0x1404d560e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1404d5684
cmp al, 0xef
ja 0x1404d5676
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1404d5656
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1404d5665
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x23f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1404d56d8
sub rsp, 0xffffffffffffff80
jmp 0x140005bd8
Function at 0x140004c2c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140004c59
xor eax, eax
jmp 0x140004d56
cmp qword [rcx + 0x68], 0
je 0x140004c6a
call fcn.140005484
jmp 0x140004d56
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x140004c81
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004c83
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004cb8
cmp rax, rdi
mov rbx, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140089350
mov rax, qword [rsi + 0x50]
sub rbp, rbx
add r14, rbx
mov r8, rbp
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140004d50
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x140004cf3
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], 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
mov rbx, r8
cmp r8, r15
jbe 0x140004d2b
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.140095910
sub rbp, rax
add r14, rax
mov rbx, rbp
cmp rax, r15
jne 0x140004d6f
cmp rbp, r15
ja 0x140004d01
mov r8, rbx
test rbx, rbx
je 0x140004d50
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.140095910
mov r8, rbx
sub r8, rax
sub rdi, r8
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
sub rdi, rbp
jmp 0x140004d53
Function at 0x14000511c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400ee020]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x140005155
xor eax, eax
jmp 0x140005277
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x14000518f
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x14000518f
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x140005277
cmp qword [rbx + 0x80], 0
je 0x140005275
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400051ca
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 0x1400051ed
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.14008da98
cmp eax, edi
cmovne edi, esi
jmp 0x140005275
lea r8, [rbp - 0x38]
mov byte [rbp - 0x40], sil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp - 0x3f]
lea r8, [rbp - 8]
mov qword [rsp + 0x30], r8
lea r8, [rbp - 0x28]
mov qword [rsp + 0x28], r8
lea r8, [rbp - 0x30]
mov qword [rsp + 0x20], r8
lea r8, [rbp - 0x40]
call qword [rax + 0x38]
test eax, eax
js 0x140005275
cmp eax, 1
jle 0x14000523b
cmp eax, 3
jne 0x140005275
movsx ecx, byte [rbp - 0x40]
jmp 0x1400051d7
mov r14, qword [rbp - 0x38]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x140005265
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call fcn.140094ee8
cmp r14, rax
jne 0x140005275
lea rax, [rbp - 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x30], rax
mov eax, esi
jne 0x140005277
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14006a770
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400071a8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400ee020]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140007217
cmp byte [rcx + 0x71], 0
je 0x140007217
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000726b
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x140007231
sub eax, 1
je 0x140007235
cmp eax, 2
jne 0x14000726b
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14006a770
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140007262
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.140094ee8
cmp rdi, rax
jne 0x14000726b
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140007219
xor al, al
jmp 0x140007219

Function at 0x140012324
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x20
xor esi, esi
lea rbx, [rcx + 0x20]
mov qword [rcx + 8], rsi
lea rax, vtable.Window.0
mov qword [rcx], rax
mov rdi, rcx
mov dword [rcx + 0x10], esi
mov qword [rcx + 0x18], rsi
lea ecx, [rsi + 0x38]
mov qword [rsp + 0x38], rbx
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
call fcn.14006a79c
lea r9, [rsp + 0x38]
mov dword [rsp + 0x38], esi
lea edx, [rsi + 0x1f]
lea r8d, [rsi + 0x40]
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
lea rbx, [rdi + 0x30]
lea rcx, [rbx + 0x10]
mov qword [rbx + 8], rdi
lea rax, [0x1400125d0]
mov qword [rcx + 2], rsi
mov qword [rbx], rax
mov eax, 0xb848
mov word [rcx], ax
mov eax, 0xe0ff
mov word [rcx + 0x1d], ax
mov dword [rcx + 0xa], 0x4894865
mov word [rcx + 0xe], 0x2825
mov byte [rcx + 0x10], sil
mov dword [rcx + 0x11], 0xb8480000
mov qword [rcx + 0x15], rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rsi, qword [rsp + 0x40]
lea rax, [0x140015bd8]
mov qword [rbx + 0x25], rax
mov rax, rdi
mov qword [rbx + 0x12], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001245c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x440
mov rax, qword [0x1400ee020]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rdi, rdx
mov qword [rsp + 0x20], rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x400
call fcn.140089760
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x30]
mov r8d, 0x200
call qword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rax
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov word [rdi], ax
call fcn.1400068b8
mov rax, rdi
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.14006a770
mov rbx, qword [rsp + 0x460]
add rsp, 0x440
pop rdi
ret
Function at 0x140012790
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
xor esi, esi
mov qword [rbp - 0x28], rcx
lea rax, [0x1400129ac]
mov qword [rbp - 0x1e], rsi
mov qword [rbp - 0x30], rax
lea r9, [rbp + 0x10]
mov eax, 0xb848
mov dword [rbp - 0x16], 0x4894865
mov word [rbp - 0x20], ax
lea r8d, [rsi + 0x40]
mov eax, 0xe0ff
mov word [rbp - 0x12], 0x2825
mov rdi, rdx
mov word [rbp - 3], ax
mov rbx, rcx
mov byte [rbp - 0x10], sil
lea edx, [rsi + 0x1f]
mov dword [rbp - 0xf], 0xb8480000
lea rcx, [rbp - 0x20]
mov qword [rbp - 0xb], rsi
mov dword [rbp + 0x10], esi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx edx, word [rbx + 0x80]
lea rax, [rbp - 0x30]
mov qword [rbp - 0x1e], rax
lea r9, [rbp - 0x20]
lea rax, [0x140015bd8]
mov qword [rsp + 0x20], rsi
mov r8, rdi
mov qword [rbp - 0xb], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_DialogBoxParamW]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14001284c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
xorps xmm0, xmm0
mov rbx, rdx
mov rdi, rcx
movzx edx, r8w
xor ecx, ecx
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
movups xmmword [rbp + 0x37], xmm0
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
xor r14d, r14d
mov byte [rdi + 0x84], 1
mov rsi, rax
mov qword [rbp - 0x11], rdi
lea rax, [0x1400129ac]
mov qword [rbp - 7], r14
mov qword [rbp - 0x19], rax
lea r9, [rbp + 0x77]
mov eax, 0xb848
mov dword [rbp + 1], 0x4894865
mov word [rbp - 9], ax
lea edx, [r14 + 0x1f]
mov eax, 0xe0ff
mov word [rbp + 5], 0x2825
lea r8d, [r14 + 0x40]
mov word [rbp + 0x14], ax
lea rcx, [rbp - 9]
mov byte [rbp + 7], r14b
mov dword [rbp + 8], 0xb8480000
mov qword [rbp + 0xc], r14
mov dword [rbp + 0x77], r14d
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx edx, word [rdi + 0x80]
lea rax, [rbp - 0x19]
mov qword [rbp - 7], rax
lea r9, [rbp - 9]
lea rax, [0x140015bd8]
mov qword [rsp + 0x20], r14
mov r8, rbx
mov qword [rbp + 0xc], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateDialogParamW]
mov rcx, rax
mov qword [rdi + 8], rax
lea edx, [r14 + 5]
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x140012981
xor r9d, r9d
lea rcx, [rbp + 0x17]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x14001298f
mov rcx, qword [rdi + 8]
lea r8, [rbp + 0x17]
mov rdx, rsi
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x140012981
mov rcx, qword [rdi + 8]
lea rdx, [rbp + 0x17]
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x140012981
lea rcx, [rbp + 0x17]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x17]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x140012930
lea r11, [rsp + 0x90]
mov eax, 1
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140013644
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rax, qword [0x1400ee020]
xor rax, rsp
mov qword [rbp + 0x3f], rax
lea rdi, str.BlackBoneDrv7.sys
xor edx, edx
lea ecx, [rdx + 0xa]
xor r9d, r9d
call fcn.140013574
xor r15d, r15d
test al, al
je 0x14001369a
lea rdi, str.BlackBoneDrv10.sys
mov ebx, 0x96
jmp 0x1400136e2
mov edx, 3
lea esi, [rdx + 3]
mov ecx, esi
xor r9d, r9d
call fcn.140013574
test al, al
je 0x1400136be
lea rdi, str.BlackBoneDrv81.sys
mov ebx, 0x95
jmp 0x1400136e2
mov ebx, 0x8e
mov edx, 2
mov ecx, esi
xor r9d, r9d
call fcn.140013574
test al, al
je 0x1400136e2
lea rdi, str.BlackBoneDrv8.sys
mov ebx, 0x93
lea r8, str.Driver
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14001382a
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
lea rcx, [rbp + 0x1f]
call fcn.140024c00
nop
lea r8, [0x1400d6df0]
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.14000811c
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x21]
call fcn.14000811c
cmp qword [rax + 0x18], 8
jb 0x14001374e
mov rax, qword [rax]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x120116
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov rdx, qword [rbp - 9]
cmp rdx, 8
jb 0x140013792
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
call fcn.140008edc
mov qword [rbp - 0x11], r15
mov edi, 7
mov qword [rbp - 9], rdi
mov word [rbp - 0x21], r15w
mov rdx, qword [rbp + 0x17]
cmp rdx, 8
jb 0x1400137bf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 1]
call fcn.140008edc
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], rdi
mov word [rbp - 1], r15w
mov rdx, qword [rbp + 0x37]
cmp rdx, 8
jb 0x1400137e7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f]
call fcn.140008edc
mov qword [rbp + 0x2f], r15
mov qword [rbp + 0x37], rdi
mov word [rbp + 0x1f], r15w
cmp rbx, 0xffffffffffffffff
je 0x14001382a
mov dword [rbp - 0x29], r15d
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r8d, eax
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x29]
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14006a770
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140013854
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x1400ee020]
xor rax, rsp
mov qword [rbp + 0x47], rax
lea rsi, str.BlackBoneDrv7.sys
xor edx, edx
lea ecx, [rdx + 0xa]
xor r9d, r9d
call fcn.140013574
xor edi, edi
test al, al
je 0x1400138a0
lea rbx, str.BlackBoneDrv10.sys
jmp 0x1400138db
mov edx, 3
lea ebx, [rdx + 3]
mov ecx, ebx
xor r9d, r9d
call fcn.140013574
test al, al
je 0x1400138bf
lea rbx, str.BlackBoneDrv81.sys
jmp 0x1400138db
xor r9d, r9d
mov dx, 2
movzx ecx, bx
call fcn.140013574
lea rbx, str.BlackBoneDrv8.sys
test al, al
cmove rbx, rsi
lea rcx, [rbp + 0x27]
call fcn.140024c00
nop
lea r8, [0x1400d6df0]
mov rdx, rax
lea rcx, [rbp + 7]
call fcn.14000811c
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x19]
call fcn.14000811c
cmp qword [rax + 0x18], 8
jb 0x140013912
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x140013936
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
call fcn.140008edc
mov qword [rbp - 9], rdi
mov ebx, 7
mov qword [rbp - 1], rbx
mov word [rbp - 0x19], di
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x140013962
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
call fcn.140008edc
mov qword [rbp + 0x17], rdi
mov qword [rbp + 0x1f], rbx
mov word [rbp + 7], di
mov rdx, qword [rbp + 0x3f]
cmp rdx, 8
jb 0x140013989
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x27]
call fcn.140008edc
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14006a770
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140016a90
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov edx, 0x8b
call fcn.14001268c
nop
lea rax, vtable.DlgWait.0
mov qword [rsi], rax
mov qword [rsi + 0x88], rbx
mov qword [rsi + 0x90], rdi
mov ecx, 0x10
call fcn.14006a79c
mov qword [rax], rsi
lea rcx, [0x140016cc0]
mov qword [rax + 8], rcx
mov qword [rsp + 0x48], rax
lea rbx, [rsi + 0xa0]
mov qword [rsp + 0x28], rbx
xor edi, edi
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x140016d48]
xor edx, edx
xor ecx, ecx
call fcn.140097964
mov qword [rsi + 0x98], rax
test rax, rax
je 0x140016b59
mov dword [rsi + 0xa8], edi
lea rcx, [rsi + 0x70]
mov eax, 0x3fa
mov word [rsp + 0x48], ax
lea rdx, [rsp + 0x48]
call fcn.14001573c
lea rcx, [0x140016a48]
mov qword [rax], rcx
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov dword [rbx], edi
mov ecx, 6
call fcn.1400692a0
int3

Function at 0x140016dc8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
xor ebx, ebx
mov byte [0x1400f3a68], 1
xorps xmm0, xmm0
mov qword [0x1400f3a60], rbx
lea rdx, [0x1400cd334]
mov qword [0x1400f3a6c], rbx
lea rcx, [0x1400f3a90]
mov qword [0x1400f3a78], rbx
movdqa xmmword [0x1400f3a80], xmm0
lea rdi, [0x1400f3a60]
mov qword [0x1400f3aa0], rbx
mov word [0x1400f3a90], bx
mov qword [0x1400f3aa8], 7
call fcn.1400068b8
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov r9, rdi
mov qword [0x1400f3a80], rcx
lea r8, [0x140016f28]
mov qword [0x1400f3ab0], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, qword [rsp + 0x48]
mov qword [0x1400f3a78], rax
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x140016f60
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400ee020]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
call fcn.140006a00
nop
lea rcx, [rsp + 0x40]
call fcn.140006a00
nop
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400170d0
mov eax, dword [rbx + 0xc]
test al, 2
je 0x140016fc1
mov r8d, 0x47
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14001700c
mov eax, dword [rbx + 0xc]
test al, 1
je 0x140016fd5
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14001700c
mov rdi, qword [rbx + 0x50]
test rdi, rdi
je 0x140016ff8
lea rcx, [rsp + 0x20]
call fcn.140004608
mov r9b, 1
mov r8, qword [rbx + 0x20]
mov rdx, qword [rbx + 0x28]
mov rcx, rax
call rdi
and qword [rbx + 0x18], 0
mov ecx, 0x1337
call qword [sym.imp.KERNEL32.dll_ExitProcess]