joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002d40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140004a30
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004a30
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002db0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002ee0
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002dfb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002e85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002de0
mov rcx, rbx
call fcn.140003800
mov rdi, rax
test rax, rax
je 0x140002f02
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003940
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002ee7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002e7e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002e90
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002e7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002d40
nop dword [rax]
xor esi, esi
jmp 0x140002e08
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002d40
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002d40
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003470
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x1400034cc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400034c3
test rsi, rsi
je 0x1400034c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400034a8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003800
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006b30]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003820
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003828
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003820
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000387d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003874
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003820
add rax, 0x28
cmp rax, r9
jne 0x140003860
xor eax, eax
ret

Function at 0x140003880
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006b30]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000389f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400038a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000389f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003940
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006b30]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000395f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003968
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14000dd53
Capabilities:
Access peb ldr_data
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword gs:[0x60]
xor r11d, r11d
mov rsi, r8
mov ebp, edx
mov rdi, qword [rax + 0x10]
movsxd rbx, dword [rdi + 0x3c]
add rbx, rdi
movzx eax, word [rbx + 0x14]
lea r9, [rbx + 0x18]
movzx r10d, word [rbx + 6]
add r9, rax
test r10, r10
je 0x14000de12
mov dword [rsp + 0x78], 0x6544302e
mov byte [rsp + 0x7c], 0x76
movups xmm2, xmmword [r9]
lea rcx, [rsp + 0x78]
movups xmm0, xmmword [r9 + 0x10]
movsd xmm1, qword [r9 + 0x20]
movd edx, xmm2
movups xmmword [rsp + 0x20], xmm2
movsd qword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x30], xmm0
test dl, dl
je 0x14000ddfa
lea rax, [rsp + 0x78]
lea r8, [rsp + 0x20]
sub r8, rax
movzx eax, dl
nop
movzx edx, al
cmp al, byte [rcx]
jne 0x14000ddfa
movzx eax, byte [r8 + rcx + 1]
inc rcx
movzx edx, al
test al, al
jne 0x14000dde3
cmp dl, byte [rcx]
lea rdx, [rsp + 0x20]
cmovne rdx, r11
add r9, 0x28
mov r11, rdx
sub r10, 1
jne 0x14000dda5
mov eax, dword [r11 + 0xc]
mov rdx, rsi
mov ecx, dword [rbx + 8]
mov eax, dword [rax + rdi]
xor eax, dword [rbx + 0x68]
ror eax, cl
mov ecx, ebp
add rax, rdi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
jmp rax
Function at 0x180041cd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
add rax, 0x18
mov rcx, rax
call fcn.180041b20
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x30]
add rax, 0x44
mov rcx, rax
call fcn.180041b20
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0x40], eax
jne 0x180041d25
xor eax, eax
jmp 0x180041e7b
mov eax, dword [rsp + 0x88]
shr eax, 0x14
imul eax, eax, 0x17
add eax, dword [rsp + 0x88]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x30]
add rax, 0x58
mov rcx, rax
call fcn.180041b20
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
dec eax
mov ecx, dword [rsp + 0x24]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x30]
add rax, 0x50
mov rcx, rax
call fcn.180042180
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x180041d90
mov rax, qword [rsp + 0x30]
add rax, 0x48
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x24]
shl eax, 2
mov eax, eax
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180041b20
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0xffffffff
jne 0x180041dbe
xor eax, eax
jmp 0x180041e7b
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
imul eax, dword [rsp + 0x20], 3
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x30]
add rax, 0x10
mov rcx, rax
call fcn.180042180
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x28]
shl eax, 3
mov eax, eax
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180042180
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x88]
cmp qword [rsp + 0x58], rax
jne 0x180041e3d
mov eax, dword [rsp + 0x28]
shl eax, 3
mov eax, eax
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 8]
mov rcx, rax
call fcn.180042180
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
jmp 0x180041e7b
mov eax, dword [rsp + 0x28]
shl eax, 3
mov eax, eax
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0x10]
mov rcx, rax
call fcn.180041b20
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x180041e67
xor eax, eax
jmp 0x180041e7b
xor eax, eax
cmp eax, 1
jne 0x180041dc6
cmp dword [rsp + 0x20], 0xffffffff
jne 0x180041e7b
xor eax, eax
add rsp, 0x78
ret
Function at 0x140a87058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140a871df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140a87089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a8706f
add dl, dl
jne 0x140a87096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a870f6
xor eax, eax
add dl, dl
jne 0x140a870a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a871ad
add dl, dl
jne 0x140a870b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a870c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a870d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a870dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a870ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a8707e
mov eax, 1
add dl, dl
jne 0x140a87106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a87113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a870fb
sub eax, ebx
mov ebx, 1
jne 0x140a8714c
mov ecx, 1
add dl, dl
jne 0x140a8712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a8713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a87123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a8707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a87168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a87175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a8715d
cmp eax, 0x7d00
jae 0x140a8719b
cmp eax, 0x500
jb 0x140a87196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a8707e
cmp eax, 0x7f
ja 0x140a8719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a8707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a871d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140a8707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140011217
Capabilities:
Terminate process

Disassembly:
jmp 0x140013410
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400112a3
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014760
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014780
xor al, al
jmp 0x140014801
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014793
xor al, al
jmp 0x140014801
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400147bd
xor al, al
jmp 0x140014801
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400147d1
xor al, al
jmp 0x140014801
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400147e3
xor al, al
jmp 0x140014801
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400147ff
xor al, al
jmp 0x140014801
mov al, 1
add rsp, 0x38
ret
Function at 0x140007fb4
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400fb088]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
xor ebx, ebx
cmp qword [rcx + 0x68], rbx
je 0x14000811d
cmp byte [rcx + 0x71], bl
je 0x14000811d
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x140008012
xor al, al
jmp 0x140008122
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.140004da8
nop
mov esi, 1
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
lea r8, [rbp - 0x30]
cmovae r8, qword [rbp - 0x30]
mov rcx, qword [rdi + 0x68]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
call qword [r10 + 0x40]
mov ecx, eax
test eax, eax
je 0x14000806f
sub ecx, esi
je 0x140008072
cmp ecx, 2
jne 0x1400080de
jmp 0x1400080db
mov byte [rdi + 0x71], bl
lea rax, [rbp - 0x30]
mov r9, qword [rbp - 0x30]
mov r10, qword [rbp - 0x18]
cmp r10, 0x10
cmovae rax, r9
mov r14, qword [rbp - 0x40]
sub r14, rax
je 0x1400080b2
lea rcx, [rbp - 0x30]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x80]
mov r8, r14
mov rdx, rsi
call fcn.140098434
cmp r14, rax
jne 0x1400080d8
cmp byte [rdi + 0x71], bl
je 0x1400080d5
test r14, r14
jne 0x140008028
xor r8d, r8d
lea edx, [r14 + 8]
lea rcx, [rbp - 0x30]
call fcn.140005820
jmp 0x140008028
mov bl, sil
mov sil, bl
mov bl, sil
mov r10, qword [rbp - 0x18]
cmp r10, 0x10
jb 0x140008119
lea rdx, [r10 + 1]
mov r9, qword [rbp - 0x30]
mov rax, r9
cmp rdx, 0x1000
jb 0x140008111
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008148
mov rcx, r9
call fcn.14006fa74
mov al, bl
jmp 0x140008122
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14006fa50
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140097f2c
int3
Function at 0x140013098
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
mov qword [rsp + 0x38], rbx
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
call fcn.140017070
mov qword [rbx], rax
lea r9, [rsp + 0x38]
lea rbx, [rdi + 0x30]
mov dword [rsp + 0x38], esi
lea rcx, [rbx + 0x10]
mov qword [rbx + 8], rdi
lea rax, [0x140013378]
mov qword [rbx], rax
lea edx, [rsi + 0x1f]
mov eax, 0xb848
mov qword [rcx + 2], rsi
mov word [rcx], ax
lea r8d, [rsi + 0x40]
mov eax, 0xe0ff
mov dword [rcx + 0xa], 0x4894865
mov word [rcx + 0x1d], ax
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, [0x1400168d8]
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 0x1400131bc
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x430
mov rax, qword [0x1400fb088]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x400
call fcn.14008e5d0
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x20]
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 + 0x20]
mov rcx, rdi
mov word [rdi], ax
call fcn.1400056b0
mov rax, rdi
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.14006fa50
mov rbx, qword [rsp + 0x450]
add rsp, 0x430
pop rdi
ret

Function at 0x1400135b0
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, [0x1400137d0]
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, [0x1400168d8]
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 0x14001366c
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
mov rdi, rdx
mov ebx, r8d
xor edx, edx
mov rsi, rcx
lea rcx, [rbp + 0x17]
lea r8d, [rdx + 0x30]
call fcn.14008e5d0
movzx edx, bx
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
xor r14d, r14d
mov byte [rsi + 0x84], 1
mov rbx, rax
mov qword [rbp - 0x11], rsi
lea rax, [0x1400137d0]
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 [rsi + 0x80]
lea rax, [rbp - 0x19]
mov qword [rbp - 7], rax
lea r9, [rbp - 9]
lea rax, [0x1400168d8]
mov qword [rsp + 0x20], r14
mov r8, rdi
mov qword [rbp + 0xc], rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateDialogParamW]
mov rcx, rax
mov qword [rsi + 8], rax
lea edx, [r14 + 5]
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x1400137a3
xor r9d, r9d
lea rcx, [rbp + 0x17]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x1400137b1
mov rcx, qword [rsi + 8]
lea r8, [rbp + 0x17]
mov rdx, rbx
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x1400137a3
mov rcx, qword [rsi + 8]
lea rdx, [rbp + 0x17]
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x1400137a3
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 [rsi + 8]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x140013752
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 0x14001433c
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x1400fb088]
xor rax, rsp
mov qword [rbp + 0x47], rax
lea rdi, str.BlackBoneDrv7.sys
xor edx, edx
lea ecx, [rdx + 0xa]
xor r9d, r9d
call fcn.140014278
xor r14d, r14d
test al, al
je 0x14001439a
lea rdi, str.BlackBoneDrv10.sys
mov ebx, 0x96
jmp 0x1400143e2
mov edx, 3
lea esi, [rdx + 3]
mov ecx, esi
xor r9d, r9d
call fcn.140014278
test al, al
je 0x1400143be
lea rdi, str.BlackBoneDrv81.sys
mov ebx, 0x95
jmp 0x1400143e2
mov ebx, 0x8e
mov edx, 2
mov ecx, esi
xor r9d, r9d
call fcn.140014278
test al, al
je 0x1400143e2
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 rbx, rax
test rax, rax
je 0x140014525
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
lea rcx, [rbp + 0x27]
call fcn.140028870
nop
mov r8d, 1
lea rdx, [0x1400d94e8]
mov rcx, rax
call fcn.14000a14c
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x17], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 7], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x17], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
or r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], r14w
jne 0x140014461
mov rdx, rdi
lea rcx, [rbp + 7]
call fcn.14000a14c
xorps xmm0, xmm0
movdqu xmmword [rbp - 9], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x19], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 9], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rcx, qword [rbp - 0x19]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x120116
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
lea rcx, [rbp - 0x19]
call fcn.14000564c
nop
lea rcx, [rbp + 7]
call fcn.14000564c
nop
lea rcx, [rbp + 0x27]
call fcn.14000564c
cmp rdi, 0xffffffffffffffff
je 0x140014525
mov dword [rbp - 0x29], r14d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r8d, eax
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x29]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14006fa50
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140014550
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400fb088]
xor rax, rsp
mov qword [rbp + 0x4f], rax
lea rsi, str.BlackBoneDrv7.sys
xor edx, edx
lea ecx, [rdx + 0xa]
xor r9d, r9d
call fcn.140014278
xor edi, edi
test al, al
je 0x1400145a4
lea rbx, str.BlackBoneDrv10.sys
jmp 0x1400145df
mov edx, 3
lea ebx, [rdx + 3]
mov ecx, ebx
xor r9d, r9d
call fcn.140014278
test al, al
je 0x1400145c3
lea rbx, str.BlackBoneDrv81.sys
jmp 0x1400145df
xor r9d, r9d
mov dx, 2
movzx ecx, bx
call fcn.140014278
lea rbx, str.BlackBoneDrv8.sys
test al, al
cmove rbx, rsi
lea rcx, [rbp + 0x2f]
call fcn.140028870
nop
mov r8d, 1
lea rdx, [0x1400d94e8]
mov rcx, rax
call fcn.14000a14c
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x1f], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xf], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x1f], xmm1
mov qword [rax + 0x10], rdi
mov esi, 7
mov qword [rax + 0x18], rsi
mov word [rax], di
or r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], di
jne 0x140014629
mov rdx, rbx
lea rcx, [rbp + 0xf]
call fcn.14000a14c
xorps xmm0, xmm0
movdqu xmmword [rbp - 1], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x11], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 1], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], rsi
mov word [rax], di
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp - 0x11]
call fcn.14000564c
nop
lea rcx, [rbp + 0xf]
call fcn.14000564c
nop
lea rcx, [rbp + 0x2f]
call fcn.14000564c
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14006fa50
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