joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c6f0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
jmp 0x46c718
call r12
cmp dword [rax], 4
jne 0x46c736
mov rcx, rbp
call fcn.0046c5f0
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x46c710
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x4a1fe0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp fcn.00401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.0041bd90
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.0041bd90
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140001450
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 0x140001579
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 0x140001558
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.140004890
lea r8, [rsp + 0x20]
mov edx, 2
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140001534
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 0x1400016a0
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 0x14000178f
lea rdx, [rdi + 0x20]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rdi, rax
je 0x14000177e
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 0x140001745
mov edx, dword [rsp + 0x78]
mov bl, 1
jmp 0x140001753
call qword [sym.imp.KERNEL32.dll_GetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
test bl, bl
jne 0x14000176a
lea rcx, str.get_status_failed.__error___d
call fcn.140004890
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 0x140001795
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140001795
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp bl, 1
jne 0x1400017d2
mov eax, dword [rsp + 0x34]
cmp eax, 4
je 0x1400017bd
cmp eax, 3
je 0x1400017bd
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.140004890
mov rsi, qword [rsp + 0x88]
mov al, bl
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140001800
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 0x140001954
lea rdx, [r12 + 0x20]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140001941
xor r8d, r8d
lea rdx, [0x140016e4c]
mov rcx, r13
call fcn.140002c40
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 0x1400018fe
mov bl, 1
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
mov rcx, r12
call fcn.1400019a0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
mov rcx, r13
call fcn.1400028e0
nop
cmp qword [rsp + 0x80], 8
jb 0x1400018f5
mov rcx, qword [rsp + 0x68]
call fcn.140005eb0
mov edx, dword [rsp + 0xc8]
jmp 0x14000191e
mov edx, dword [rsp + 0xc8]
jmp 0x14000191e
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.140004890
test bl, bl
jne 0x140001936
lea rcx, str.get_status___failed.__error___d
call fcn.140004890
test rbp, rbp
je 0x140001936
mov dword [rbp], edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140001947
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
jmp 0x14000195c
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 0x1400020e0
Capabilities:
Create service
Persist via windows service

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x14001b0c8]
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 0x1400021c7
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 0x1400021ae
mov rdx, rax
mov rcx, rbx
call fcn.140002310
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400021b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x2a8]
jmp 0x1400021cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call fcn.140001450
mov al, 1
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400059d0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x290
pop rdi
ret

Function at 0x140002200
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 0x1400022f4
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 0x1400022ce
mov rcx, rsi
call fcn.1400016a0
test al, al
je 0x140002267
mov rdx, rdi
mov rcx, rsi
call fcn.140002430
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x14000229f
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 0x140002310
Capabilities:
Query service status
Start service

Disassembly:
push rbx
sub rsp, 0x60
test rdx, rdx
mov rbx, rdx
je 0x14000241f
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
cmp eax, 1
jne 0x140002419
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 0x140002380
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rsp + 0x34], 4
je 0x1400023d0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jae 0x1400023f1
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 0x1400023c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rsp + 0x34], 4
jne 0x140002387
lea rcx, str.Service_is_running.
call fcn.140004890
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 0x1400023d0
lea rcx, str.Service_did_not_enter_the_running_state
call fcn.140004890
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 0x140002430
Capabilities:
Query service status
Stop service

Disassembly:
push rdi
sub rsp, 0x60
test rdx, rdx
mov rdi, rdx
je 0x140002518
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140002512
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 0x1400024c9
xor esi, esi
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jae 0x1400024ea
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 0x1400024c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rsp + 0x34], 1
jne 0x140002480
lea rcx, str.Service_stopped_successfully
call fcn.140004890
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 0x1400024c9
lea rcx, str.Service_did_not_stop
call fcn.140004890
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 0x1400035b0
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 [0x14001b0c8]
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.140007c20
lea rcx, str.GetInstalledVidPids__
mov dword [rsp + 0x38], 0x400
xor ebx, ebx
call fcn.140004890
lea r8, str.ProdInstalled
lea rdx, str.SOFTWAREWow6432NodeHewlettPackardSISetup_
lea rcx, str.GetValueFromHKLM__s__s
mov qword [rsp + 0x30], rbx
call fcn.140004890
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 0x14000368e
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 0x140003760
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 0x14000371e
nop
nop
cmp ebx, 0x64
je 0x14000374b
test rbp, rbp
je 0x1400036e4
mov ecx, ebx
mov r8, rsi
mov edx, 0x100
shl rcx, 9
add rcx, rbp
call fcn.140005ec0
lea rcx, str.__Installed_VidPid___s
mov rdx, rsi
add ebx, 1
call fcn.140004890
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 0x1400036c0
mov eax, ebx
mov rsi, qword [rsp + 0x868]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.1400059d0
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.140004890
mov eax, ebx
jmp 0x14000371e
mov eax, ebx
jmp 0x140003726
Function at 0x140004b70
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x440
mov rax, qword [0x14001b0c8]
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.140007c20
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x1fe
mov word [rsp + 0x30], 0
call fcn.140007c20
test rbx, rbx
je 0x140004cae
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 0x140004cae
lea rcx, [rsp + 0x30]
mov r8, rbx
mov edx, 0x100
call fcn.140005ec0
lea rcx, [rsp + 0x30]
mov edx, 0x100
call fcn.1400068a0
lea rdx, [0x140017cd8]
lea rcx, [rsp + 0x30]
call fcn.140006980
test rax, rax
je 0x140004cae
lea rdx, [0x140017ce0]
lea rcx, [rsp + 0x30]
call fcn.140006980
test rax, rax
je 0x140004cae
lea r9, str.SYSTEMCurrentControlSetenumUSB_
lea r8, str._s_s
lea rcx, [rsp + 0x230]
mov edx, 0x100
mov qword [rsp + 0x20], rbx
call fcn.140005bf0
lea rdx, [rsp + 0x230]
lea rcx, str.delete__s
call fcn.140004890
lea rdx, [rsp + 0x230]
mov rcx, 0xffffffff80000002
call fcn.1400048a0
lea rdx, [rsp + 0x230]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, 1
jmp 0x140004cb0
xor eax, eax
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400059d0
add rsp, 0x440
pop rbx
ret
Function at 0x140007677
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14001b0c8]
jne 0x1400059ea
rol rcx, 0x10
test cx, 0xffff
jne 0x1400059e6
repz ret
ror rcx, 0x10
jmp 0x1400075d0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14001c740]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14001c838]
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 0x140007655
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, [0x14001c740]
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 0x140007677
mov rax, qword [rsp + 0x88]
mov qword [0x14001c838], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14001c7d8], rax
mov rax, qword [0x14001c838]
mov qword [0x14001c6b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14001c7c0], rax
mov dword [0x14001c6a0], 0xc0000409
mov dword [0x14001c6a4], 1
mov rax, qword [0x14001b0c8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14001b0d0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14001c738], eax
mov ecx, 1
call fcn.14000d4a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140014768]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14001c738], 0
jne 0x1400076fe
mov ecx, 1
call fcn.14000d4a0
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 0x1400079c0
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 [0x14001cc18]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140009290
test rax, rax
je 0x140007a14
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 0x140007aa9
mov ecx, 2
call fcn.14000d4a0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140007c20
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 0x140007a95
test ebx, ebx
jne 0x140007a95
lea ecx, [rax + 2]
call fcn.14000d4a0
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 0x140009e90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x14001b940]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x140009ece
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x140009eb0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x14000a0b5
mov ecx, 3
call fcn.140011980
cmp eax, 1
je 0x14000a06c
mov ecx, 3
call fcn.140011980
test eax, eax
jne 0x140009f05
cmp dword [0x14001b0c0], 1
je 0x14000a06c
cmp edi, 0xfc
je 0x14000a0b5
mov qword [rsp + 0x50], rbp
lea rbp, [0x14001cce0]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.140008160
test eax, eax
je 0x140009f49
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140007920
lea rdx, [0x14001ccf9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14001cdfd], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140009f99
lea r8, str._program_name_unknown_
lea rcx, [0x14001ccf9]
mov edx, 0x2fb
call fcn.140008160
test eax, eax
je 0x140009f99
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140007920
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14001ccf9]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x140009fe8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14001cff4]
lea r9d, [rax + 3]
lea r8, [0x140014e14]
sub rdx, rcx
call fcn.140010da0
test eax, eax
je 0x140009fe8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140007920
lea r8, [0x140014e10]
mov edx, 0x314
mov rcx, rbp
call fcn.140010ce0
test eax, eax
je 0x14000a014
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140007920
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.140010ce0
test eax, eax
je 0x14000a044
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140007920
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.140011720
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 0x14000a0b5
cmp rax, 0xffffffffffffffff
je 0x14000a0b5
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
Function at 0x14000a0d0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.140011980
cmp eax, 1
je 0x14000a102
mov ecx, 3
call fcn.140011980
test eax, eax
jne 0x14000a1b6
cmp dword [0x14001b0c0], 1
jne 0x14000a1b6
mov qword [rsp + 0x48], rbx
lea rbx, [0x14001b940]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x14000a12e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x14000a118
jmp 0x14000a1a2
cmp edi, 0x17
jae 0x14000a1a2
mov ecx, 3
call fcn.140011980
cmp eax, 1
je 0x14000a159
mov ecx, 3
call fcn.140011980
test eax, eax
jne 0x14000a1a2
cmp dword [0x14001b0c0], 1
jne 0x14000a1a2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x14000a1a2
cmp rax, 0xffffffffffffffff
je 0x14000a1a2
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + 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 ecx, 0xff
call fcn.140009e90
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret