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

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
xor edx, edx
lea rcx, [0x14019d840]
movabs rdi, 0x2e78786362696c67
movabs r12, 0x6c6f6f705f68652e
call dbg.pthread_mutex_init
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x14019d858], 0
movups xmmword [0x14019d848], xmm0
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
lea rax, str.obj_count
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x14002af65
jmp 0x14002b00f
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x14002afc0
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rdi
jne 0x14002af50
cmp qword [rbx + 7], r12
jne 0x14002af50
cmp byte [rbx + 0xf], 0x2e
jne 0x14002af50
add rbx, 0x10
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x60]
mov rsi, qword [rbp]
mov rcx, qword [rbp + 8]
test rsi, rsi
je 0x14002afab
mov r8, rsi
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x14002afb5
cmp byte [rbx + rsi], 0x3d
je 0x14002b045
add rbp, 0x18
cmp rbp, r13
jne 0x14002af8f
jmp 0x14002af50
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x14019d858], rbx
jne 0x14002b01f
lea rcx, [dbg.__tcf_0]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp dbg.atexit
mov qword [0x14019d858], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x14019d850], rax
test rax, rax
je 0x14002b07c
xor edx, edx
mov qword [0x14019d848], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x14002aff7
lea rdx, [rsp + 0x28]
lea rcx, [rbx + rsi + 1]
xor r8d, r8d
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x14002b06c
test dl, dl
jne 0x14002af50
test eax, eax
js 0x14002af50
mov dword [rbp + 0x10], eax
jmp 0x14002af50
xor ecx, ecx
mov qword [0x14019d858], rcx
jmp 0x14002aff7
Function at 0x140003450
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x50
mov rsi, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rbx, rax
je 0x140003579
lea rdx, [rsi + 0x20]
mov r8d, 0xf01ff
mov rcx, rax
mov qword [rsp + 0x60], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rdi, rax
je 0x140003558
xor eax, eax
lea rcx, [rsi + 8]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rcx], 1
mov rax, qword [rsp + 0x40]
lea rcx, str.Configuring_service
mov dword [rax + 4], 0x3e8
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 0x3e8
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x10], 1
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x14], 0x3e8
mov dword [rsp + 0x38], 3
call fcn.140006890
lea r8, [rsp + 0x20]
mov edx, 2
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140003534
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
xor al, al
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
xor al, al
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rsi
ret
Function at 0x1400036a0
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
xor eax, eax
mov rdi, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor bl, bl
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rsi, rax
je 0x14000378f
lea rdx, [rdi + 0x20]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rdi, rax
je 0x14000377e
lea rax, [rsp + 0x78]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x78], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140003745
mov edx, dword [rsp + 0x78]
mov bl, 1
jmp 0x140003753
call qword [sym.imp.KERNEL32.dll_GetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
test bl, bl
jne 0x14000376a
lea rcx, str.get_status_failed.__error___d
call fcn.140006890
mov dword [rsp + 0x80], edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140003795
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140003795
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp bl, 1
jne 0x1400037d2
mov eax, dword [rsp + 0x34]
cmp eax, 4
je 0x1400037bd
cmp eax, 3
je 0x1400037bd
xor al, al
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
mov al, 1
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
mov edx, dword [rsp + 0x80]
lea rcx, str.get_status_failed.__error___d
call fcn.140006890
mov rsi, qword [rsp + 0x88]
mov al, bl
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140003800
Capabilities:
Query service status

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x90
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rbp, r8
mov r13, rdx
mov r12, rcx
xor bl, bl
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140003954
lea rdx, [r12 + 0x20]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140003941
xor r8d, r8d
lea rdx, [0x140018e4c]
mov rcx, r13
call fcn.140004c40
mov dword [rsp + 0xc8], 0
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1400038fe
mov bl, 1
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.1400039a0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
mov rcx, r13
call fcn.1400048e0
nop
cmp qword [rsp + 0x80], 8
jb 0x1400038f5
mov rcx, qword [rsp + 0x68]
call fcn.140007eb0
mov edx, dword [rsp + 0xc8]
jmp 0x14000391e
mov edx, dword [rsp + 0xc8]
jmp 0x14000391e
call qword [sym.imp.KERNEL32.dll_GetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.get_status___failed___error___u
call fcn.140006890
test bl, bl
jne 0x140003936
lea rcx, str.get_status___failed.__error___d
call fcn.140006890
test rbp, rbp
je 0x140003936
mov dword [rbp], edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140003947
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
jmp 0x14000395c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x1400040e0
Capabilities:
Create service
Persist via windows service

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x14001d0c8]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rdi, rax
je 0x1400041c7
lea rdx, [rsp + 0x70]
mov r8d, 0x104
xor ecx, ecx
mov qword [rsp + 0x2a8], rsi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
lea r8, [rbx + 0x220]
lea rdx, [rbx + 0x20]
mov r9d, 0xf01ff
mov rcx, rdi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x110
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
mov rsi, rax
je 0x1400041ae
mov rdx, rax
mov rcx, rbx
call fcn.140004310
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400041b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x2a8]
jmp 0x1400041cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call fcn.140003450
mov al, 1
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400079d0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x290
pop rdi
ret

Function at 0x140004200
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rsi, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rbp, rax
je 0x1400042f4
lea rdx, [rsi + 0x20]
mov r8d, 0xf01ff
mov rcx, rax
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rdi, rax
je 0x1400042ce
mov rcx, rsi
call fcn.1400036a0
test al, al
je 0x140004267
mov rdx, rdi
mov rcx, rsi
call fcn.140004430
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x14000429f
mov rcx, rdi
mov bl, 1
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x30]
mov al, bl
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x30]
mov al, bl
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x30]
mov al, bl
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [rsp + 0x40]
mov al, bl
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
Function at 0x140004310
Capabilities:
Query service status
Start service

Disassembly:
push rbx
sub rsp, 0x60
test rdx, rdx
mov rbx, rdx
je 0x14000441f
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
cmp eax, 1
jne 0x140004419
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x80], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
lea edi, [rax + 0x1388]
lea rax, [rsp + 0x78]
lea r8, [rsp + 0x30]
lea r9d, [rsi + 0x24]
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x78], esi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140004380
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rsp + 0x34], 4
je 0x1400043d0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x1400043f1
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x78]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x78], esi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1400043c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rsp + 0x34], 4
jne 0x140004387
lea rcx, str.Service_is_running.
call fcn.140006890
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x80]
mov al, 1
add rsp, 0x60
pop rbx
ret
cmp dword [rsp + 0x34], 4
je 0x1400043d0
lea rcx, str.Service_did_not_enter_the_running_state
call fcn.140006890
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x80]
xor al, al
add rsp, 0x60
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
add rsp, 0x60
pop rbx
ret

Function at 0x140004430
Capabilities:
Query service status
Stop service

Disassembly:
push rdi
sub rsp, 0x60
test rdx, rdx
mov rdi, rdx
je 0x140004518
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140004512
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x80], rsi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [rsp + 0x34], 1
lea ebx, [rax + 0x1388]
je 0x1400044c9
xor esi, esi
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jae 0x1400044ea
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x78]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x78], esi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1400044c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rsp + 0x34], 1
jne 0x140004480
lea rcx, str.Service_stopped_successfully
call fcn.140006890
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
mov al, 1
add rsp, 0x60
pop rdi
ret
cmp dword [rsp + 0x34], 1
je 0x1400044c9
lea rcx, str.Service_did_not_stop
call fcn.140006890
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x80]
xor al, al
add rsp, 0x60
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
add rsp, 0x60
pop rdi
ret
Function at 0x1400055b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x850
mov rax, qword [0x14001d0c8]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rbp, rcx
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x40], 0
call fcn.140009c20
lea rcx, str.GetInstalledVidPids__
mov dword [rsp + 0x38], 0x400
xor ebx, ebx
call fcn.140006890
lea r8, str.ProdInstalled
lea rdx, str.SOFTWAREWow6432NodeHewlettPackardSISetup_
lea rcx, str.GetValueFromHKLM__s__s
mov qword [rsp + 0x30], rbx
call fcn.140006890
lea rax, [rsp + 0x30]
lea rdx, str.SOFTWAREWow6432NodeHewlettPackardSISetup_
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
mov edi, eax
je 0x14000568e
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x3c]
lea rdx, str.ProdInstalled
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x140005760
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
mov qword [rsp + 0x868], rsi
lea rsi, [rsp + 0x40]
not rcx
cmp rcx, 1
je 0x14000571e
nop
nop
cmp ebx, 0x64
je 0x14000574b
test rbp, rbp
je 0x1400056e4
mov ecx, ebx
mov r8, rsi
mov edx, 0x100
shl rcx, 9
add rcx, rbp
call fcn.140007ec0
lea rcx, str.__Installed_VidPid___s
mov rdx, rsi
add ebx, 1
call fcn.140006890
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea rsi, [rsi + rcx*2]
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
jne 0x1400056c0
mov eax, ebx
mov rsi, qword [rsp + 0x868]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.1400079d0
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rcx, str.WARNING__Exceeded_max_number_of_installed_vid_pids___d_
mov edx, 0x64
call fcn.140006890
mov eax, ebx
jmp 0x14000571e
mov eax, ebx
jmp 0x140005726
Function at 0x140006b70
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x440
mov rax, qword [0x14001d0c8]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rbx, rcx
lea rcx, [rsp + 0x232]
xor edx, edx
mov r8d, 0x1fe
mov word [rsp + 0x230], 0
call fcn.140009c20
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x1fe
mov word [rsp + 0x30], 0
call fcn.140009c20
test rbx, rbx
je 0x140006cae
mov qword [rsp + 0x458], rdi
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
mov rdi, qword [rsp + 0x458]
not rcx
cmp rcx, 1
je 0x140006cae
lea rcx, [rsp + 0x30]
mov r8, rbx
mov edx, 0x100
call fcn.140007ec0
lea rcx, [rsp + 0x30]
mov edx, 0x100
call fcn.1400088a0
lea rdx, [0x140019cd8]
lea rcx, [rsp + 0x30]
call fcn.140008980
test rax, rax
je 0x140006cae
lea rdx, [0x140019ce0]
lea rcx, [rsp + 0x30]
call fcn.140008980
test rax, rax
je 0x140006cae
lea r9, str.SYSTEMCurrentControlSetenumUSB_
lea r8, str._s_s
lea rcx, [rsp + 0x230]
mov edx, 0x100
mov qword [rsp + 0x20], rbx
call fcn.140007bf0
lea rdx, [rsp + 0x230]
lea rcx, str.delete__s
call fcn.140006890
lea rdx, [rsp + 0x230]
mov rcx, 0xffffffff80000002
call fcn.1400068a0
lea rdx, [rsp + 0x230]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, 1
jmp 0x140006cb0
xor eax, eax
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400079d0
add rsp, 0x440
pop rbx
ret
Function at 0x140009677
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14001d0c8]
jne 0x1400079ea
rol rcx, 0x10
test cx, 0xffff
jne 0x1400079e6
repz ret
ror rcx, 0x10
jmp 0x1400095d0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14001e740]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14001e838]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140009655
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14001e740]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140009677
mov rax, qword [rsp + 0x88]
mov qword [0x14001e838], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14001e7d8], rax
mov rax, qword [0x14001e838]
mov qword [0x14001e6b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14001e7c0], rax
mov dword [0x14001e6a0], 0xc0000409
mov dword [0x14001e6a4], 1
mov rax, qword [0x14001d0c8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14001d0d0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14001e738], eax
mov ecx, 1
call fcn.14000f4a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140016768]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14001e738], 0
jne 0x1400096fe
mov ecx, 1
call fcn.14000f4a0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x1400099c0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x14001ec18]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.14000b290
test rax, rax
je 0x140009a14
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x140009aa9
mov ecx, 2
call fcn.14000f4a0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140009c20
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x140009a95
test ebx, ebx
jne 0x140009a95
lea ecx, [rax + 2]
call fcn.14000f4a0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000be90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x14001d940]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x14000bece
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x14000beb0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x14000c0b5
mov ecx, 3
call fcn.140013980
cmp eax, 1
je 0x14000c06c
mov ecx, 3
call fcn.140013980
test eax, eax
jne 0x14000bf05
cmp dword [0x14001d0c0], 1
je 0x14000c06c
cmp edi, 0xfc
je 0x14000c0b5
mov qword [rsp + 0x50], rbp
lea rbp, [0x14001ece0]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.14000a160
test eax, eax
je 0x14000bf49
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140009920
lea rdx, [0x14001ecf9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14001edfd], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x14000bf99
lea r8, str._program_name_unknown_
lea rcx, [0x14001ecf9]
mov edx, 0x2fb
call fcn.14000a160
test eax, eax
je 0x14000bf99
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140009920
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14001ecf9]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x14000bfe8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14001eff4]
lea r9d, [rax + 3]
lea r8, [0x140016e14]
sub rdx, rcx
call fcn.140012da0
test eax, eax
je 0x14000bfe8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140009920
lea r8, [0x140016e10]
mov edx, 0x314
mov rcx, rbp
call fcn.140012ce0
test eax, eax
je 0x14000c014
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140009920
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.140012ce0
test eax, eax
je 0x14000c044
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140009920
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.140013720
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x14000c0b5
cmp rax, 0xffffffffffffffff
je 0x14000c0b5
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret