joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006fa4
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rbx, rcx
mov edi, 1
test rcx, rcx
jne 0x140006fe3
xor eax, eax
jmp 0x140007182
xor eax, eax
xorps xmm0, xmm0
mov qword [rsp + 0x68], rax
xor r9d, r9d
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov qword [rsp + 0x40], rdx
mov rdx, rbx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
and dword [rsp + 0x20], 0
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
nop dword [rax + rax]
test eax, eax
je 0x140007115
mov rcx, qword [rsp + 0x58]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
nop dword [rax + rax]
cmp dword [0x14000cd08], 0
mov ebx, dword [rsp + 0x50]
jne 0x140007095
mov ecx, dword [0x14000de5c]
test dil, cl
je 0x140007095
test cl, 2
jne 0x140007095
mov eax, ebx
and eax, 0xff000000
cmp eax, 0xaa000000
cmove ecx, ebx
mov dword [0x14000de5c], ecx
test dword [0x14000de64], 0x800
je 0x1400070a9
mov dword [0x14000d544], ebx
jmp 0x1400070de
call fcn.140002540
cmp eax, 2
je 0x1400070d4
mov eax, ebx
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x1400070c6
test dil, bl
jne 0x1400070d4
test dword [0x14000de64], 0x200
je 0x1400070de
jmp 0x1400070a1
mov dword [0x14000d544], 0xbc2
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test dword [0x14000de64], 0x400
je 0x140007180
cmp dword [rsp + 0x50], 0
jge 0x140007180
jmp 0x14000717e
call fcn.140006564
mov dword [0x14000d544], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
and qword [rsp + 0x30], 0
xor r9d, r9d
mov r8d, eax
mov dword [rsp + 0x28], 0x200
lea rax, [rsp + 0x70]
xor edx, edx
mov ecx, 0x1000
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
nop dword [rax + rax]
and dword [rsp + 0x28], 0
lea r9, [rsp + 0x70]
mov r8, rbx
mov dword [rsp + 0x20], FDIDestroy
mov edx, 0x4c4
xor ecx, ecx
call fcn.1400061b8
xor edi, edi
mov eax, edi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400013e0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140007b48
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor esi, esi
mov rbp, rcx
xor r9d, r9d
mov edi, 1
jmp 0x140007bef
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140007c39
lea r8, [rax + 8]
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x140007bae
lea r9, [rax + 1]
add r9, r8
movabs r10, 0x9cd83f3038deab70
mov edx, dword [rbx + 4]
mov rax, rbp
mov ecx, dword [rbx]
call qword [0x140009680]
mov rcx, rbx
test eax, eax
je 0x140007c29
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
add esi, edi
mov r9d, esi
lea r8, str.UPDFILE_lu
mov edx, reloc.Cabinet.dll_FDICreate
lea rcx, [rsp + 0x30]
call fcn.140003658
mov r8d, 0xa
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
nop dword [rax + rax]
test rax, rax
jne 0x140007b7a
jmp 0x140007c45
xor edi, edi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
jmp 0x140007c45
mov dword [0x14000d544], 0x80070714
xor edi, edi
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400013e0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x140007f9c
Capabilities:
Check os version
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetVersion]
nop dword [rax + rax]
xor esi, esi
test eax, eax
js 0x140008015
cmp al, 6
jb 0x140008015
lea rcx, [0x140009880]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
test rax, rax
je 0x140008015
lea rdx, str.HeapSetInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x140008015
movabs r10, 0x93b5969b18548370
xor r9d, r9d
lea edx, [rsi + 1]
xor r8d, r8d
xor ecx, ecx
call qword [0x140009680]
mov rdx, rbx
mov dword [0x14000d544], esi
mov rcx, rdi
call fcn.1400057e0
test eax, eax
je 0x1400080b2
call fcn.1400046b0
mov ebx, eax
call fcn.140004394
test ebx, ebx
je 0x1400080b2
cmp byte [0x14000cd1a], sil
jne 0x1400080b2
mov ebx, dword [0x14000de5c]
test bl, 1
je 0x1400080b2
test bl, 2
jne 0x140008061
call fcn.140002540
cmp eax, 2
jne 0x1400080b2
test bl, 4
jne 0x140008091
mov dword [rsp + 0x28], 4
lea r8, [0x140009760]
xor r9d, r9d
mov dword [rsp + 0x20], 0x40
mov edx, 0x522
xor ecx, ecx
call fcn.1400061b8
cmp eax, 6
jne 0x1400080b2
cmp word [0x14000de78], si
jne 0x1400080ad
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
nop dword [rax + rax]
jmp 0x1400080b2
call fcn.1400033b8
mov rcx, qword [0x14000c830]
test rcx, rcx
je 0x1400080ca
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, dword [0x14000d544]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400083b0
Capabilities:
Create directory

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 r13
push r14
push r15
sub rsp, 0x40
xor r14d, r14d
lea r13, [0x14000d040]
mov ebx, edx
mov rsi, rcx
mov rax, r13
lea edi, [r14 + 1]
cmp dword [rax], edi
je 0x1400083fa
add r14d, edi
lea rcx, [0x14000d540]
add rax, 0x20
cmp rax, rcx
jl 0x1400083e3
cmp r14d, 0x28
jne 0x14000842d
and dword [rsp + 0x28], 0
xor r9d, r9d
mov rcx, qword [0x14000c828]
xor r8d, r8d
mov edx, 0x4bb
mov dword [rsp + 0x20], FDIDestroy
call fcn.1400061b8
or rax, 0xffffffffffffffff
jmp 0x1400085e6
lea rdx, str.MEMCAB
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
nop dword [rax + rax]
test eax, eax
jne 0x140008484
test ebx, 0x10b
jne 0x140008424
movsxd rdx, r14d
mov rcx, rdx
shl rcx, 5
and dword [rcx + r13], eax
mov rax, qword [0x14000d560]
and dword [rcx + r13 + 0x10], 0
mov qword [rcx + r13 + 8], rax
mov eax, dword [0x14000d568]
mov dword [rcx + r13 + 0x14], eax
mov dword [rcx + r13 + 4], edi
jmp 0x1400085e3
test bl, 8
je 0x140008492
or rcx, 0xffffffffffffffff
jmp 0x1400085bd
mov eax, ebx
and al, 3
neg al
sbb ebp, ebp
and ebp, 0xc0000000
add ebp, 0x80000000
bt ebx, 8
jae 0x1400084c8
bt ebx, 0xa
jae 0x1400084b6
mov ebx, edi
jmp 0x1400084d8
and ebx, 0x200
neg ebx
sbb ebx, ebx
and ebx, 0xfffffffe
add ebx, 4
jmp 0x1400084d8
and ebx, 0x200
neg ebx
sbb ebx, ebx
and ebx, 2
add ebx, 3
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, ebp
mov dword [rsp + 0x20], ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400085bd
cmp ebx, 3
je 0x1400085bd
cmp byte [rsi], 0
je 0x140008591
mov al, byte [rsi + 1]
lea rdi, [rsi + 2]
xor r15d, r15d
cmp al, 0x3a
jne 0x140008535
cmp byte [rdi], 0x5c
jne 0x140008535
lea rdi, [rsi + 3]
jmp 0x140008544
cmp byte [rsi], 0x5c
jne 0x140008548
cmp al, 0x5c
jne 0x140008548
mov r15d, 2
mov al, byte [rdi]
jmp 0x14000858d
lea rdi, [rsi + 1]
jmp 0x14000858d
cmp al, 0x5c
jne 0x140008579
cmp byte [rdi - 1], 0x3a
je 0x140008579
test r15d, r15d
je 0x140008562
dec r15d
jmp 0x140008579
xor edx, edx
mov byte [rdi], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop dword [rax + rax]
mov byte [rdi], 0x5c
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov rdi, rax
mov al, byte [rax]
test al, al
jne 0x14000854e
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, ebp
mov dword [rsp + 0x20], ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov rcx, rax
movsxd rdx, r14d
mov rax, rdx
shl rax, 5
mov qword [rax + r13 + 0x18], rcx
cmp rcx, 0xffffffffffffffff
je 0x1400085df
and dword [rax + r13], 0
and dword [rax + r13 + 4], 0
jmp 0x1400085e3
or rdx, 0xffffffffffffffff
mov rax, rdx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret
Function at 0x140008b64
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x18]
sub rsp, 0x110
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp], rax
mov esi, dword [0x14000c20c]
mov dword [rsp + 0x30], InitCommonControls
cmp esi, 0xfffffffe
jne 0x140008cfc
xor edi, edi
mov dword [rsp + 0x50], 0x94
lea rcx, [rsp + 0x50]
mov dword [0x14000c20c], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
nop dword [rax + rax]
test eax, eax
je 0x140008cf6
lea esi, [rdi + 1]
cmp dword [rsp + 0x60], esi
jne 0x140008cf6
cmp dword [rsp + 0x54], 4
jne 0x140008cf6
cmp dword [rsp + 0x58], 0xa
jae 0x140008cf6
lea ecx, [rdi + 0x4a]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
nop dword [rax + rax]
test eax, eax
je 0x140008cf6
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Control_PanelDesktopResourceLocale
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x140008cf6
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp - 0x10]
xor r8d, r8d
lea rdx, [0x140009760]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x140008cf6
lea rcx, [rbp - 0x10]
mov al, byte [rcx]
sub al, 0x30
cmp al, 9
ja 0x140008c9f
movsx eax, byte [rcx]
add edi, 0xfffffffd
shl edi, 4
add edi, eax
jmp 0x140008cc5
mov al, byte [rcx]
sub al, 0x20
cmp byte [rcx], 0x61
movzx edx, al
movzx eax, byte [rcx]
cmovl edx, eax
movsx r8d, dl
lea eax, [r8 - 0x41]
cmp eax, 5
ja 0x140008cd6
shl edi, 4
add edi, 0xffffffc9
add edi, r8d
call qword [sym.imp.USER32.dll_CharNextA]
nop dword [rax + rax]
mov rcx, rax
jmp 0x140008c8a
lea rax, [rbp - 0x10]
cmp rcx, rax
je 0x140008cf6
and edi, 0x3ff
cmp edi, esi
je 0x140008cee
cmp edi, 0xd
jne 0x140008cf6
mov dword [0x14000c20c], esi
jmp 0x140008cfc
mov esi, dword [0x14000c20c]
mov eax, esi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400013e0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140001fd0
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1400129f0
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1b8]
lea rcx, [0x14002809d]
call fcn.14001142e
nop
mov dword [rbp + 4], 0x32
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
mov edx, 0xc
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_PurgeComm]
nop
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 0x190]
mov rdx, qword [rbp + 0x180]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
cmp dword [rbp + 0x44], 8
je 0x140012ab4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [section..data]
mov edx, eax
lea rcx, [0x14001ebc8]
call fcn.1400111d1
nop
xor eax, eax
jmp 0x140012c20
mov edx, dword [rbp + 0x44]
lea rcx, str._r_nSending__d_bytes..._r_n
call fcn.1400111d1
nop
mov dword [rbp + 0x64], 0
jmp 0x140012ad5
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x44]
cmp dword [rbp + 0x64], eax
jae 0x140012b14
movsxd rax, dword [rbp + 0x64]
mov rcx, qword [rbp + 0x180]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, str._0.2XH
call fcn.1400111d1
nop
mov eax, dword [rbp + 0x44]
dec eax
cmp dword [rbp + 0x64], eax
jne 0x140012b12
lea rcx, [0x14001ec2c]
call fcn.1400111d1
nop
jmp 0x140012acd
cmp dword [rbp + 0x24], 7
je 0x140012b5e
movsxd rax, dword [rbp + 0x24]
mov rcx, qword [rbp + 0x188]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x44]
mov r8d, 0x64
mov rdx, rax
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop
mov eax, dword [rbp + 0x44]
mov ecx, dword [rbp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rbp + 0x24], eax
jmp 0x140012b14
mov r8d, dword [rbp + 0x24]
mov edx, dword [rbp + 0x44]
lea rcx, str.Bytes:__d__rdn:__d_n
call fcn.1400111d1
nop
cmp dword [rbp + 0x24], 0
jle 0x140012c0c
mov edx, dword [rbp + 0x24]
lea rcx, str.Received__d_bytes..._r_n
call fcn.1400111d1
nop
mov dword [rbp + 0x84], 0
jmp 0x140012ba6
mov eax, dword [rbp + 0x84]
inc eax
mov dword [rbp + 0x84], eax
mov eax, dword [rbp + 0x24]
cmp dword [rbp + 0x84], eax
jge 0x140012bd4
movsxd rax, dword [rbp + 0x84]
mov rcx, qword [rbp + 0x188]
movzx eax, byte [rcx + rax]
mov edx, eax
lea rcx, str._0.2XH
call fcn.1400111d1
nop
jmp 0x140012b98
mov edx, dword [rbp + 0x24]
mov rcx, qword [rbp + 0x188]
call fcn.140011488
movzx eax, ax
test eax, eax
jne 0x140012bf9
lea rcx, [0x14001ec68]
call fcn.1400111d1
nop
jmp 0x140012c0a
lea rcx, [0x14001ec80]
call fcn.1400111d1
nop
xor eax, eax
jmp 0x140012c20
jmp 0x140012c1d
lea rcx, [0x14001eca0]
call fcn.1400111d1
nop
xor eax, eax
jmp 0x140012c20
mov eax, dword [rbp + 0x24]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001df50]
call fcn.1400113b1
mov rax, rdi
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x140011253
Capabilities:
Terminate process

Disassembly:
jmp 0x140016740
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]
nop
add rsp, 0x28
ret
Function at 0x1400112f3
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017a90
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017ab0
xor al, al
jmp 0x140017b31
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140017ac3
xor al, al
jmp 0x140017b31
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 0x140017aed
xor al, al
jmp 0x140017b31
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017b01
xor al, al
jmp 0x140017b31
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140017b13
xor al, al
jmp 0x140017b31
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140017b2f
xor al, al
jmp 0x140017b31
mov al, 1
add rsp, 0x38
ret
Function at 0x140015980
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011456
movzx eax, al
test eax, eax
jne 0x1400159a0
mov ecx, 7
call fcn.1400113bb
nop
mov byte [rsp + 0x20], 0
call fcn.1400113cf
mov byte [rsp + 0x21], al
cmp dword [0x1400228c8], 1
jne 0x1400159c4
mov ecx, 7
call fcn.1400113bb
nop
jmp 0x140015a1c
cmp dword [0x1400228c8], 0
jne 0x140015a17
mov dword [0x1400228c8], 1
lea rdx, [0x14001d660]
lea rcx, [0x14001d330]
call fcn.1400111d6
test eax, eax
je 0x1400159f8
mov eax, 0xff
jmp 0x140015b21
lea rdx, [0x14001d220]
lea rcx, [section..rdata]
call fcn.1400113c5
mov dword [0x1400228c8], 2
jmp 0x140015a1c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400113a7
call fcn.140011320
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140015a79
mov rcx, qword [rsp + 0x30]
call fcn.140011181
movzx eax, al
test eax, eax
je 0x140015a79
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140029020]
nop
call fcn.140011361
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140015aad
mov rcx, qword [rsp + 0x38]
call fcn.140011181
movzx eax, al
test eax, eax
je 0x140015aad
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011410
nop
call fcn.140015bd0
mov dword [rsp + 0x28], eax
call fcn.1400112f3
movzx eax, al
test eax, eax
jne 0x140015acc
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140015adb
call fcn.14001141a
nop
xor edx, edx
mov cl, 1
call fcn.140011172
mov eax, dword [rsp + 0x28]
jmp 0x140015b21
add rsp, 0x68
ret
Function at 0x140002100
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov ecx, 8
call fcn.140002210
lea rcx, [0x1400011a0]
mov qword [rax], rcx
mov qword [rsp + 0x30], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400021b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x14000217a
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400021f0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x140002b70
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rax, str.bsdriver
mov rdi, rcx
mov qword [rcx], 0
mov qword [rcx + 8], rax
lea rax, str.bsdriver.sys
mov dword [rcx + 0x130], 1
mov qword [rcx + 0x10], rax
add rcx, 0x20
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea r8, str._system32_
lea rcx, [rdi + 0x20]
mov edx, 0x104
call fcn.140001884
mov rax, qword [rdi + 0x10]
lea r9, [rdi + 0x20]
lea r8, str._sdrivers_s
lea rcx, [rdi + 0x20]
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.140001860
mov rbx, qword [rsp + 0x40]
lea rax, str.Base
mov dword [rdi + 0x124], 1
mov dword [rdi + 0x128], 1
mov qword [rdi + 0x18], rax
mov rax, rdi
mov dword [rdi + 0x12c], 1
add rsp, 0x30
pop rdi
ret

Function at 0x140001160
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
sub rsp, 0x148
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r8, str.drivers_
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.140001884
lea r8, str.bsdriver.sys
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.140001884
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1400011ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140001840
add rsp, 0x148
ret
mov eax, 1
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140001840
add rsp, 0x148
ret
Function at 0x1400014d0
Capabilities:
Delete service
Stop service

Disassembly:
push rdi
sub rsp, 0x190
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x180], rax
call fcn.140001160
test eax, eax
jne 0x1400014fe
mov eax, 0xfffffc11
jmp 0x14000162d
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x1a0], rbx
mov qword [rsp + 0x1a8], rsi
call fcn.1400010a0
mov r9, qword [rsp + 0x40]
xor edi, edi
test r9, r9
jne 0x14000154c
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ecx, edi
test rax, rax
mov r9, rax
mov qword [rsp + 0x40], rax
setne cl
test ecx, ecx
je 0x140001608
mov rdx, qword [rsp + 0x48]
mov r8d, 0xf01ff
mov rcx, r9
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
je 0x140001603
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x140001603
mov r9, qword [rsp + 0x40]
test r9, r9
jne 0x1400015bc
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r9, rax
mov qword [rsp + 0x40], rax
mov eax, edi
test r9, r9
setne al
test eax, eax
je 0x1400015fc
mov rdx, qword [rsp + 0x48]
mov r8d, 0x10000
mov rcx, r9
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
je 0x1400015f7
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x1400015f7
mov r9, qword [rsp + 0x40]
jmp 0x14000160d
mov r9, qword [rsp + 0x40]
mov edi, 0xfffffc11
jmp 0x14000160d
mov r9, qword [rsp + 0x40]
mov edi, 0xfffffc0d
mov rsi, qword [rsp + 0x1a8]
mov rbx, qword [rsp + 0x1a0]
test r9, r9
je 0x14000162b
mov rcx, r9
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140001840
add rsp, 0x190
pop rdi
ret
Function at 0x140001650
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
xor ecx, ecx
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, [0x140016524]
lea rdx, str.bsdriver.sys
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rdi
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbx
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test rsi, rsi
je 0x140001753
test eax, eax
je 0x140001753
lea rcx, [rsp + 0x20]
mov r8, rbp
mov edx, 0x104
call fcn.140001c38
lea r8, str.bsdriver.sys
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.140001884
lea rcx, [rsp + 0x20]
mov edx, 0x80
call fcn.140001b00
lea rdx, [0x140016528]
lea rcx, [rsp + 0x20]
call fcn.140001c2c
mov rbx, rax
test rax, rax
je 0x140001753
mov r8d, edi
mov r9, rax
mov edx, 1
mov rcx, rsi
call fcn.140001e2c
mov rcx, rbx
call fcn.1400019d4
mov rcx, rbx
call fcn.140001f38
call fcn.1400019c8
mov eax, 1
jmp 0x140001755
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140001840
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140004c0c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140004a74