joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003c00
Capabilities:
Move file

Disassembly:
jmp 0x14004a190
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x14004a1ce
mov byte [rsp + 0x20], 1
jmp 0x14004a1d3
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x30
pop rdi
ret

Function at 0x140003e40
Capabilities:
Terminate process

Disassembly:
jmp 0x140068ce0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140003e80
Capabilities:
Get common file path

Disassembly:
jmp 0x14003c730
push rdi
sub rsp, 0x40
mov rdi, rsp
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl rax, 1
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14003c7c9
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14003c7b5
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x20], eax
jae 0x14003c7c9
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x28]
add rsp, 0x40
pop rdi
ret
Function at 0x140004110
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
jmp 0x140035200
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xf8
mov rdi, rsp
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x110]
mov rax, qword [0x1401b1f88]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov byte [rsp + 0x40], 0
mov eax, dword [rsp + 0x118]
or eax, 0x2001f
lea r8, [rsp + 0x58]
mov edx, eax
mov rcx, qword [rsp + 0x110]
call fcn.14000aa20
test eax, eax
jne 0x14003532c
lea rax, [rsp + 0x78]
lea rcx, str.Recovery
mov rdi, rax
mov rsi, rcx
mov ecx, 0x12
rep movsb byte [rdi], byte [rsi]
mov dword [rsp + 0xa4], 0
mov dword [rsp + 0xc4], 4
lea rax, [rsp + 0xc4]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xa4]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, 0x10
lea r8, [rsp + 0x78]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0xa4], 0
je 0x14003532c
lea rax, str.Safe_mode_is_ON._Optional_plugins_will_not_be_loaded
mov qword [rsp + 0x20], rax
mov r9d, 2
mov r8d, 0x145
lea rdx, [0x1401676a0]
mov rax, qword [rsp + 0x110]
mov rcx, qword [rax + 8]
call fcn.140001970
mov byte [rsp + 0x40], 1
movzx eax, byte [rsp + 0x40]
mov edi, eax
mov rcx, rsp
lea rdx, [0x140168420]
call fcn.14000eab0
mov eax, edi
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140004ef0
add rsp, 0xf8
pop rdi
pop rsi
ret

Function at 0x140004ce0
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1401134c0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
call fcn.1401124b0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401134ff
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
call qword [0x1401cd010]
jmp 0x14011350e
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret
Function at 0x1400060d0
Capabilities:
Query environment variable

Disassembly:
jmp 0x14004b010
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rdi, rsp
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x20], 0
cmp qword [rsp + 0x50], 0
je 0x14004b0b6
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jbe 0x14004b0b6
mov eax, dword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov eax, 2
mov rcx, qword [rsp + 0x38]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
lea rdx, [0x1401b6164]
mov rcx, rax
call fcn.14000eef0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14004b0b6
mov r8d, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rax, qword [rsp + 0x20]
add rsp, 0x40
pop rdi
ret

Function at 0x140006430
Capabilities:
Get system information on windows

Disassembly:
jmp 0x14005b534
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x14005b562
lea ecx, [rax + 0x19]
int 0x29
test byte [rsp + 0x44], 0x44
je 0x14005b5bb
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r9d, dword [rsp + 0x54]
xor edx, edx
mov r8d, r9d
neg r8
and r8, rbx
lea ecx, [r9 - 1]
mov eax, ecx
and ecx, ebx
and eax, edi
add eax, ecx
dec rax
add rax, r9
div r9
xor edx, edx
mov rcx, rax
mov rax, rdi
div r9
add rcx, rax
mov eax, ecx
test ecx, ecx
je 0x14005b5bb
lock or dword [r8], 0
add r8, r9
sub rax, 1
jne 0x14005b5ad
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x140006780
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401454f0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1401b1f88]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140145516
jmp 0x140145593
mov rcx, qword [rbp + 0x30]
call fcn.140001fe0
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14014552f
jmp 0x140145593
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14014554c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140001170
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.14000a950
test eax, eax
jne 0x140145593
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140004ef0
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x140006fd0
Capabilities:
Query environment variable

Disassembly:
jmp 0x140135d8c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor r14d, r14d
mov rbx, rax
test rax, rax
je 0x140135e74
mov rsi, rax
cmp word [rax], r14w
je 0x140135ddf
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x140135dc7
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x140135dc3
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call fcn.14000d510
movsxd rbp, eax
test eax, eax
je 0x140135e74
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov rcx, rbp
lea edx, [r9 - 0x64]
call fcn.140007790
mov rdi, rax
test rax, rax
je 0x140135e62
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.14000d510
test eax, eax
je 0x140135e62
mov rsi, rdi
mov rdi, r14
jmp 0x140135e65
mov rsi, r14
mov edx, 2
mov rcx, rdi
call fcn.14000dca0
jmp 0x140135e77
mov rsi, r14
test rbx, rbx
je 0x140135e85
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140007f20
Capabilities:
Delete file

Disassembly:
jmp 0x14004a140
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14004a174
mov byte [rsp + 0x20], 1
jmp 0x14004a179
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x140008370
Capabilities:
Get file version info

Disassembly:
jmp 0x140056cd0
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x198
mov rdi, rsp
mov ecx, 0x66
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1b0]
mov qword [rsp + 0x180], 0xfffffffffffffffe
mov rax, qword [0x1401b1f88]
xor rax, rsp
mov qword [rsp + 0x188], rax
lea rax, [rsp + 0x60]
lea rcx, str.Unknown
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x70
rep stosb byte [rdi], al
xor edx, edx
mov rcx, qword [rsp + 0x1b8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [rsp + 0xe4], eax
cmp dword [rsp + 0xe4], 0
je 0x140056eab
mov eax, dword [rsp + 0xe4]
lea rdx, [0x1401b6164]
mov ecx, eax
call fcn.14000eef0
mov qword [rsp + 0x178], rax
mov r8b, 1
mov rdx, qword [rsp + 0x178]
lea rcx, [rsp + 0xf8]
call fcn.140009e50
nop
lea rcx, [rsp + 0xf8]
call fcn.140003380
movzx eax, al
test eax, eax
je 0x140056e9e
lea rcx, [rsp + 0xf8]
call fcn.1400078d0
mov r9, rax
mov r8d, dword [rsp + 0xe4]
xor edx, edx
mov rcx, qword [rsp + 0x1b8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140056e9e
mov qword [rsp + 0x128], 0
mov dword [rsp + 0x144], 0
lea rcx, [rsp + 0xf8]
call fcn.1400078d0
lea r9, [rsp + 0x144]
lea r8, [rsp + 0x128]
lea rdx, [0x140170930]
mov rcx, rax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140056e9e
mov rax, qword [rsp + 0x128]
mov eax, dword [rax + 0xc]
and eax, 0xffff
mov rcx, qword [rsp + 0x128]
mov ecx, dword [rcx + 0xc]
shr ecx, 0x10
and ecx, 0xffff
mov rdx, qword [rsp + 0x128]
mov edx, dword [rdx + 8]
and edx, 0xffff
mov rdi, qword [rsp + 0x128]
mov edi, dword [rdi + 8]
shr edi, 0x10
and edi, 0xffff
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
mov r9d, edi
lea r8, str._u._u._u._u
mov edx, 0x40
lea rcx, [rsp + 0x60]
call fcn.1400098f0
nop
lea rcx, [rsp + 0xf8]
call fcn.140003e70
call fcn.140005f90
mov qword [rsp + 0x158], rax
mov r8d, 1
mov edx, 0x800
mov rcx, qword [rsp + 0x1b8]
call fcn.140005c60
mov qword [rsp + 0x160], rax
call fcn.140005f90
sub rax, qword [rsp + 0x158]
mov dword [rsp + 0x168], eax
mov eax, dword [rsp + 0x168]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x1b8]
mov qword [rsp + 0x28], rax
lea rax, str.Secure_loading__ls____ls_at__p_took__lu_microseconds
mov qword [rsp + 0x20], rax
mov r9d, 3
mov r8d, 0x50
lea rdx, [0x1401709b0]
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rax]
call fcn.140001970
cmp qword [rsp + 0x160], 0
je 0x140056f86
movzx eax, byte [rsp + 0x1c0]
test eax, eax
je 0x140056f86
mov rax, qword [rsp + 0x1b0]
cmp qword [rax + 8], 0
je 0x140056f86
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax + 8]
mov ecx, dword [rsp + 0x168]
mov dword [rax + 0x40], ecx
mov rax, qword [rsp + 0x160]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140171258]
call fcn.14000eab0
mov rax, rdi
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.140004ef0
add rsp, 0x198
pop rdi
pop rsi
ret
Function at 0x140008bb0
Capabilities:
Clear file content

Disassembly:
jmp 0x140150360
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x98
mov r8, qword [rsp + 0xa8]
mov edx, dword [rsp + 0xa0]
lea rcx, [rsp + 0x68]
call fcn.14000d5c0
cmp qword [rsp + 0x68], 0xffffffffffffffff
je 0x140150399
cmp qword [rsp + 0x70], 0xffffffffffffffff
jne 0x1401503b7
call fcn.140005400
mov eax, dword [rax]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x68]
call fcn.1400084f0
mov eax, dword [rsp + 0x40]
jmp 0x1401505d3
cmp qword [rsp + 0x78], 0
jle 0x140150518
mov dword [rsp + 0x20], 0x4a
lea r9, str.minkernelcrtsucrt_src_appcrtlowiochsize.cpp
mov r8d, 2
mov edx, 1
mov ecx, 0x1000
call fcn.1400051e0
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400016b0
lea rcx, [rsp + 0x38]
call fcn.14000f050
movzx eax, al
test eax, eax
jne 0x140150438
call fcn.140005400
mov dword [rax], 0xc
call fcn.140005400
mov eax, dword [rax]
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x38]
call fcn.140003ca0
lea rcx, [rsp + 0x68]
call fcn.1400084f0
mov eax, dword [rsp + 0x44]
jmp 0x1401505d3
mov edx, 0x8000
mov ecx, dword [rsp + 0xa0]
call fcn.140004c60
mov dword [rsp + 0x50], eax
cmp qword [rsp + 0x78], 0x1000
jl 0x140150462
mov dword [rsp + 0x30], 0x1000
jmp 0x14015046a
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x38]
call fcn.14000b710
mov r8d, dword [rsp + 0x48]
mov rdx, rax
mov ecx, dword [rsp + 0xa0]
call fcn.1400041f0
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xffffffff
jne 0x1401504d8
call fcn.1400010a0
cmp dword [rax], 5
jne 0x1401504b0
call fcn.140005400
mov dword [rax], 0xd
call fcn.140005400
mov eax, dword [rax]
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x38]
call fcn.140003ca0
lea rcx, [rsp + 0x68]
call fcn.1400084f0
mov eax, dword [rsp + 0x4c]
jmp 0x1401505d3
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jg 0x14015044d
mov edx, dword [rsp + 0x50]
mov ecx, dword [rsp + 0xa0]
call fcn.140004c60
lea rcx, [rsp + 0x38]
call fcn.140003ca0
jmp 0x1401505bd
cmp qword [rsp + 0x78], 0
jge 0x1401505bd
xor r8d, r8d
mov rdx, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0xa0]
call fcn.140006f50
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0xffffffffffffffff
jne 0x140150569
call fcn.140005400
mov eax, dword [rax]
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x68]
call fcn.1400084f0
mov eax, dword [rsp + 0x54]
jmp 0x1401505d3
mov ecx, dword [rsp + 0xa0]
call fcn.1400051b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401505bd
call fcn.140005400
mov dword [rax], 0xd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
call fcn.1400010a0
mov ecx, dword [rsp + 0x58]
mov dword [rax], ecx
call fcn.140005400
mov eax, dword [rax]
mov dword [rsp + 0x5c], eax
lea rcx, [rsp + 0x68]
call fcn.1400084f0
mov eax, dword [rsp + 0x5c]
jmp 0x1401505d3
mov dword [rsp + 0x60], 0
lea rcx, [rsp + 0x68]
call fcn.1400084f0
mov eax, dword [rsp + 0x60]
add rsp, 0x98
ret
Function at 0x140008df0
Capabilities:
Enumerate processes

Disassembly:
jmp 0x14004a5c0
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x2a0
mov rdi, rsp
mov ecx, 0xa8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x2b0]
mov rax, qword [0x1401b1f88]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov dword [rsp + 0x20], 0
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x14004a676
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
mov dword [rsp + 0x40], 0x238
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14004a66b
mov eax, dword [rsp + 0x2b0]
cmp dword [rsp + 0x48], eax
jne 0x14004a658
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
jmp 0x14004a66b
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14004a641
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x20]
mov edi, eax
mov rcx, rsp
lea rdx, [0x14016d410]
call fcn.14000eab0
mov eax, edi
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140004ef0
add rsp, 0x2a0
pop rdi
ret

Function at 0x140009340
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400798b0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140079220
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400798f1
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401cd010]
jmp 0x1400798f7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x140009960
Capabilities:
Check if file exists

Disassembly:
jmp 0x14004a4a0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xffffffff
je 0x14004a4f8
mov eax, dword [rsp + 0x28]
and eax, 0x10
test eax, eax
je 0x14004a4f6
mov byte [rsp + 0x20], 1
jmp 0x14004a501
call fcn.14000b5b0
mov dword [rsp + 0x24], eax
cmp qword [rsp + 0x48], 0
je 0x14004a514
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x24]
mov dword [rax], ecx
movzx eax, byte [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x14000b050
Capabilities:
Print debug messages

Disassembly:
jmp 0x14011f430
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret

Function at 0x14000b1e0
Capabilities:
Get session user name

Disassembly:
jmp 0x14004a820
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rdi, rsp
mov ecx, 0x10
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
cmp qword [rsp + 0x50], 0
je 0x14004a889
cmp qword [rsp + 0x58], 0
jbe 0x14004a889
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x24], eax
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp eax, 1
jne 0x14004a87a
mov dword [rsp + 0x34], 1
jmp 0x14004a882
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x14004a88b
xor al, al
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14016d470]
call fcn.14000eab0
mov rax, rdi
add rsp, 0x40
pop rdi
ret

Function at 0x14000bd30
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400799f0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400792e0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140079a39
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401cd010]
jmp 0x140079a48
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x14000cf00
Capabilities:
Parse pe header

Disassembly:
jmp 0x14006baa0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14006bac0
xor al, al
jmp 0x14006bb41
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14006bad3
xor al, al
jmp 0x14006bb41
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 0x14006bafd
xor al, al
jmp 0x14006bb41
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14006bb11
xor al, al
jmp 0x14006bb41
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14006bb23
xor al, al
jmp 0x14006bb41
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14006bb3f
xor al, al
jmp 0x14006bb41
mov al, 1
add rsp, 0x38
ret
Function at 0x14000d4d0
Capabilities:
Set registry value

Disassembly:
jmp 0x140035370
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rsp
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x1401b1f88]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0x48]
lea rcx, str.ServiceAutoStart
mov rdi, rax
mov rsi, rcx
mov ecx, 0x22
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0xf8]
or eax, 0x20006
lea r8, [rsp + 0x88]
mov edx, eax
mov rcx, qword [rsp + 0xf0]
call fcn.14000aa20
mov dword [rsp + 0x94], eax
cmp dword [rsp + 0x94], 0
jne 0x140035449
mov dword [rsp + 0xa4], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0xa4]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x94], eax
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x94], 0
je 0x1400354e1
mov rax, qword [rsp + 0xf0]
add rax, 0x780
mov ecx, dword [rsp + 0x94]
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [0x140167740]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov r8d, 0x169
lea rdx, [0x140167790]
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rax + 8]
call fcn.140001970
mov rax, qword [rsp + 0xf0]
add rax, 0x780
mov ecx, dword [rsp + 0x94]
mov dword [rsp + 0x20], ecx
mov r9, rax
lea r8, [rsp + 0x48]
lea rdx, str.Failed_to_save_auto_start_flag__ls_to_registry_for_service__ls._Error__ld
mov ecx, 0x13
call fcn.140007d00
mov rcx, rsp
lea rdx, [0x140168520]
call fcn.14000eab0
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140004ef0
add rsp, 0xd8
pop rdi
pop rsi
ret

Function at 0x14000d780
Capabilities:
Check if file exists

Disassembly:
jmp 0x14004a530
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xffffffff
je 0x14004a58a
mov eax, dword [rsp + 0x28]
and eax, 0x400
test eax, eax
je 0x14004a588
mov byte [rsp + 0x20], 1
jmp 0x14004a593
call fcn.14000b5b0
mov dword [rsp + 0x24], eax
cmp qword [rsp + 0x48], 0
je 0x14004a5a6
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x24]
mov dword [rax], ecx
movzx eax, byte [rsp + 0x20]
add rsp, 0x30
pop rdi
ret