joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004b80
Capabilities:
Create service

Disassembly:
push rdi
sub rsp, 0xa90
mov rax, qword [0x14012dcd0]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rdi, rcx
call fcn.140004e90
test eax, eax
je 0x140004bb1
mov eax, 1
jmp 0x140004cb8
mov r8d, 0x104
lea rdx, [rsp + 0x72]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140004dae
cmp eax, 0x104
je 0x140004dae
lea ecx, [rax + 1]
mov r8d, 0x22
mov word [rsp + 0x70], r8w
mov word [rsp + rcx*2 + 0x70], r8w
lea ecx, [rax + 2]
add rcx, rcx
cmp rcx, 0x20c
jae 0x140004df7
mov qword [rsp + 0xaa8], rbx
xor edx, edx
mov qword [rsp + 0xab0], rsi
mov r8d, 0xf003f
xor esi, esi
mov word [rsp + rcx + 0x70], si
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140004cd1
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80a
call fcn.140002ef0
test eax, eax
jne 0x140004c8f
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.1400b7b10
test eax, eax
je 0x140004c8f
cmp eax, 0xc
je 0x140004dcb
cmp eax, 0x16
je 0x140004dc0
cmp eax, 0x22
je 0x140004dc0
cmp eax, 0x50
jne 0x140004db5
lea r8, [rdi + 0x68]
xor r9d, r9d
lea rdx, [rsp + 0x280]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov rbx, qword [rsp + 0xaa8]
mov rsi, qword [rsp + 0xab0]
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.1400af8c0
add rsp, 0xa90
pop rdi
ret
mov qword [rsp + 0x60], rsi
lea rax, str.RPCSS
mov qword [rsp + 0x58], rsi
add rdi, 0x68
mov qword [rsp + 0x50], rax
mov r9d, 0xf01ff
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov r8, rdi
mov qword [rsp + 0x38], rax
mov rdx, rdi
mov dword [rsp + 0x30], 1
mov rcx, rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], shutdown
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
jne 0x140004d92
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80b
call fcn.140002ef0
test eax, eax
jne 0x140004d87
lea r8, str.Could_not_start_service
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.1400b7b10
test eax, eax
je 0x140004d87
cmp eax, 0xc
je 0x140004dec
cmp eax, 0x16
je 0x140004de1
cmp eax, 0x22
je 0x140004de1
cmp eax, 0x50
jne 0x140004dd6
xor r9d, r9d
mov r8, rdi
jmp 0x140004c96
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x140004ca8
xor eax, eax
jmp 0x140004cb8
mov ecx, 0x80004005
call fcn.140003970
int3
mov ecx, 0x80070057
call fcn.140003970
int3
mov ecx, 0x8007000e
call fcn.140003970
int3
mov ecx, 0x80004005
call fcn.140003970
int3
mov ecx, 0x80070057
call fcn.140003970
int3
mov ecx, 0x8007000e
call fcn.140003970
int3
call fcn.1400af23c
int3
Function at 0x140005210
Capabilities:
Access the windows event log

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14012dcd0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
lea rsi, [r11 + 0x18]
mov rdi, rcx
call fcn.1400092a0
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x60]
mov r9d, 0xff
xor esi, esi
mov qword [rsp + 0x28], rsi
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
lea r8d, [r9 + 1]
call fcn.1400ba9e8
lea rax, [rsp + 0x60]
mov word [rsp + 0x25e], si
mov qword [rsp + 0x50], rax
cmp dword [rdi + 0x28c], esi
jne 0x140005296
lea rcx, [rsp + 0x60]
call fcn.1400b8028
lea rdx, [rdi + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x1400052e7
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov ecx, 1
mov dword [rsp + 0x30], esi
xor r8d, r8d
mov word [rsp + 0x28], cx
xor r9d, r9d
mov qword [rsp + 0x20], rsi
lea edx, [rcx + 3]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400af8c0
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret

Function at 0x140006480
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14012dcd0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov qword [rsp + 0x48], rbp
mov r8, rdx
mov dword [rsp + 0x50], ebp
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x58], rbp
lea rcx, [rsp + 0x48]
call fcn.1400055d0
mov ebx, eax
test eax, eax
jne 0x140006597
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140006571
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140006480
mov ebx, eax
test eax, eax
jne 0x140006597
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140006520
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140006586
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rdx, rsi
mov dword [rsp + 0x50], ebp
mov rcx, rdi
call fcn.140004240
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400065a7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400af8c0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400065d0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14000426e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1400065d0
cmp byte [0x140132710], 0
jne 0x1400042b9
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400042a9
lea rdx, [0x1400dc1e0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140132708], rax
mov byte [0x140132710], 1
jmp 0x1400042c0
mov rax, qword [0x140132708]
mov byte [0x140132710], 1
jmp 0x1400042c0
mov rax, qword [0x140132708]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x1400042df
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140006644
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006666
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140006666
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x140006666
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140006680
Capabilities:
Delete registry value
Set registry value

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x70
movzx r14d, dl
mov rsi, rcx
call fcn.140007e30
test eax, eax
jne 0x1400066a7
mov eax, 0x80004005
add rsp, 0x70
pop r14
pop rsi
pop rbx
ret
mov rcx, qword [0x140132670]
lea rax, str.APPID
mov edx, 0x65
mov qword [rsp + 0x98], r15
xorps xmm0, xmm0
mov qword [rsp + 0x50], rax
lea r15, str.1CA3841D_15B5_4C70_9751_7A87730A1BE9
lea r9, [rsp + 0x50]
mov qword [rsp + 0x58], r15
lea r8d, [rdx - 0x64]
movdqu xmmword [rsp + 0x60], xmm0
call fcn.1400083a0
test eax, eax
js 0x14000682d
xor ebx, ebx
lea r8, str.AppID
mov r9d, 0x20006
mov qword [rsp + 0x50], rbx
mov rdx, 0xffffffff80000000
mov dword [rsp + 0x58], ebx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x60], rbx
call fcn.1400055d0
test eax, eax
je 0x140006732
mov ecx, eax
call fcn.140002da0
mov ebx, eax
jmp 0x140006818
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbx
mov rdx, r15
mov dword [rsp + 0x28], 0x2001f
mov rdi, rbx
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0xa8], rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400067f9
mov rdi, qword [rsp + 0xa8]
lea rdx, str.LocalService
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test r14b, r14b
je 0x140006802
lea rcx, [rsi + 0x68]
test rcx, rcx
je 0x1400067e6
or rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x1400067b2
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str.LocalService
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rsi
call fcn.140004b80
test eax, eax
jne 0x140006802
mov ebx, 0x80004005
jmp 0x140006802
mov ecx, eax
call fcn.140002da0
mov ebx, eax
test rdi, rdi
je 0x140006810
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x90]
cmp qword [rsp + 0x50], 0
je 0x14000682b
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov r15, qword [rsp + 0x98]
add rsp, 0x70
pop r14
pop rsi
pop rbx
ret
Function at 0x140006ac0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x14012dcd0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140006b4e
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140006b4e
call fcn.140002d80
mov ebx, eax
jmp 0x140006c76
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140006b6f
call fcn.140002d80
jmp 0x140006c65
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140006b92
call fcn.140002d80
jmp 0x140006c65
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140006bb4
mov ebx, 0x8007000e
jmp 0x140006c67
mov ecx, eax
test eax, eax
je 0x140006bec
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140006be2
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140006bec
lea rcx, [rsp + 0x70]
call fcn.140002b50
jmp 0x140006bf6
mov ecx, 0x80070216
call fcn.140003970
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140006c09
cmp qword [rsp + 0x70], 0
jne 0x140006c18
mov ebx, 0x8007000e
jmp 0x140006c67
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140006c42
call fcn.140002d80
jmp 0x140006c65
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140006840
mov ebx, eax
test rdi, rdi
je 0x140006c76
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140006c8d
lea rcx, [rsp + 0x70]
call fcn.140004490
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400af8c0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140007790
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x1400077d0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
test r8, r8
jne 0x1400077e8
lea eax, [r8 + 0xd]
add rsp, 0x38
ret
xor r8d, r8d
mov rdx, r9
nop
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400077f4
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x1400077f0
mov rcx, qword [rcx]
mov rdx, r10
mov dword [rsp + 0x28], r8d
xor r8d, r8d
mov qword [rsp + 0x20], r9
lea r9d, [rax + 6]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret
Function at 0x1400079e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x2b0
mov rax, qword [0x14012dcd0]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
xor r15d, r15d
lea r8, str.AppID
mov r14d, edx
mov qword [rsp + 0x50], r15
mov rdi, rcx
mov dword [rsp + 0x58], r15d
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x60], r15
lea rcx, [rsp + 0x50]
mov r9d, 0x20019
call fcn.1400055d0
mov ebx, eax
test eax, eax
je 0x140007a51
mov dword [rdi + 0x27c], eax
jmp 0x140007bb2
mov rdx, qword [rsp + 0x50]
lea r8, str.1CA3841D_15B5_4C70_9751_7A87730A1BE9
mov r9d, 0x20019
mov qword [rsp + 0x38], r15
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x48], r15
call fcn.1400055d0
mov ebx, eax
test eax, eax
jne 0x140007b9a
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x90]
mov dword [rsp + 0x30], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x140007b02
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
jbe 0x140007ad5
lea ecx, [rbx + 0xd]
jmp 0x140007b02
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140007af6
test al, 1
jne 0x140007aef
shr rax, 1
cmp word [rsp + rax*2 + 0x8e], r15w
je 0x140007aff
mov ecx, ntohl
jmp 0x140007b02
mov word [rsp + 0x90], r15w
mov ecx, r15d
test ecx, ecx
mov eax, r15d
mov edx, 1
cmove eax, edx
mov dword [rdi + 0x28c], eax
test eax, eax
je 0x140007b5e
lea rax, [rdi + 0x68]
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
lea rax, [0x140008d30]
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x70], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x140007b56
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x27c], eax
mov ebx, dword [rdi + 0x27c]
jmp 0x140007ba0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
test eax, eax
jns 0x140007b89
cmp eax, 0x80010106
jne 0x140007ba0
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140007b8d
jmp 0x140007ba0
mov byte [rdi + 0x62], 1
mov edx, r14d
mov rcx, rdi
call fcn.1400075f0
mov ebx, eax
mov dword [rdi + 0x27c], eax
cmp qword [rsp + 0x38], r15
je 0x140007bb2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x50], r15
je 0x140007bc4
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1400af8c0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
Function at 0x140007bf0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x140007c18
add rsp, 0x30
pop rbx
ret
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x28], rax
lea r8, [0x140005310]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x140007c59
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x50], rdi
mov rax, rdi
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
Function at 0x140008290
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x78
call fcn.140007e30
test eax, eax
jne 0x1400082a7
mov eax, 0x80004005
add rsp, 0x78
ret
mov qword [rsp + 0x70], rbx
lea r8, str.AppID
xor ebx, ebx
lea rcx, [rsp + 0x38]
mov r9d, 0x20006
mov qword [rsp + 0x38], rbx
mov rdx, 0xffffffff80000000
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x48], rbx
call fcn.1400055d0
test eax, eax
je 0x1400082ec
mov ecx, eax
call fcn.140002da0
mov ebx, eax
jmp 0x14000837f
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rbx
mov r9d, 0x20006
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x30], rbx
lea rbx, str.1CA3841D_15B5_4C70_9751_7A87730A1BE9
mov r8, rbx
call fcn.1400055d0
test eax, eax
je 0x140008326
mov ecx, eax
call fcn.140002da0
jmp 0x14000836a
mov rcx, qword [rsp + 0x20]
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [0x140132670]
lea rax, str.APPID
xor r8d, r8d
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
mov qword [rsp + 0x58], rbx
lea r9, [rsp + 0x50]
movdqu xmmword [rsp + 0x60], xmm0
lea edx, [r8 + 0x65]
call fcn.1400083a0
cmp qword [rsp + 0x20], 0
mov ebx, eax
je 0x14000837f
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x38], 0
je 0x140008392
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x78
ret

Function at 0x140008960
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [0x1401326a8], 0
mov edi, edx
mov rbx, rcx
je 0x140008986
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x40]
mov rcx, rbx
mov rdx, rax
call fcn.140005a90
cmp al, 1
jne 0x1400089b6
mov edx, edi
mov rcx, rbx
call fcn.1400079e0
mov edi, eax
jmp 0x1400089ba
mov edi, dword [rsp + 0x40]
cmp dword [rbx + 0x28c], 0
jne 0x1400089cf
cmp byte [rbx + 0x62], 0
je 0x1400089cf
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140008ac0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140008af3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140008b3a
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140008b35
nop
cmp rbx, rcx
jae 0x140008b3a
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140008b20
cmp rbx, rcx
jb 0x140008b3e
xor eax, eax
jmp 0x140008b4a
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140009910
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x14012dcd0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rdx
lea r8, str.._
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.1400b7b10
mov r8, rbx
lea rcx, [rsp + 0x40]
mov edx, 0x104
call fcn.1400b7a90
xor eax, eax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], eax
xor edx, edx
mov dword [rsp + 0x20], 3
lea r8d, [rax + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x140009987
xor eax, eax
jmp 0x14000999b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400af8c0
add rsp, 0x260
pop rbx
ret

Function at 0x1400099c0
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push rbx
push rbp
sub rsp, 0x278
mov rax, qword [0x14012dcd0]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ecx, ecx
movzx edx, dx
mov rbp, r8
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x140009b2b
mov qword [rsp + 0x290], rsi
mov rdx, rax
xor ecx, ecx
mov qword [rsp + 0x270], rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbx
xor ecx, ecx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x140009b19
lea r8, str.._
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400b7b10
mov r8, rbp
lea rcx, [rsp + 0x50]
mov edx, 0x104
call fcn.1400b7a90
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140009a83
test al, 1
je 0x140009a83
xor eax, 1
lea rcx, [rsp + 0x50]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ebp, ebp
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], ebp
xor r8d, r8d
mov dword [rsp + 0x20], 2
lea edx, [rbp + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140009ade
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], ebp
mov r8d, esi
mov qword [rsp + 0x20], rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [rbp + 1]
jmp 0x140009b1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [section..data]
lea r8, section..data
cmp rcx, r8
je 0x140009b19
mov rcx, qword [rcx + 0x10]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], r8
mov edx, 0xa
lea r8, [0x1400dd068]
mov r9d, eax
call fcn.140009ed0
xor eax, eax
mov rsi, qword [rsp + 0x290]
mov rdi, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400af8c0
add rsp, 0x278
pop rbp
pop rbx
ret