joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180017d60
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rbx, r8
mov rcx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsi]
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180019c40
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
or r8, 0xffffffffffffffff
mov rbx, rcx
mov rdi, r8
nop dword [rax]
inc rdi
cmp word [rcx + rdi*2], 0
jne 0x180019c60
lea eax, [rdi + 1]
movsxd rcx, eax
mov eax, 2
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.18002f648
mov rsi, rax
sub rax, rbx
nop word [rax + rax]
movzx ecx, word [rbx]
mov word [rax + rbx], cx
lea rbx, [rbx + 2]
test cx, cx
jne 0x180019c90
xor r14d, r14d
movsxd rdi, edi
mov ebx, r14d
lea ebp, [r14 + 1]
test rdi, rdi
js 0x180019cff
mov qword [rsp + 0x40], r15
mov r15d, 0x5c
nop dword [rax]
cmp word [rsi + rbx*2], r15w
jne 0x180019ced
mov rcx, rsi
mov word [rsi + rbx*2], r14w
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180019ce8
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x180019cf7
mov word [rsi + rbx*2], r15w
inc rbx
cmp rbx, rdi
jle 0x180019cc0
jmp 0x180019cfa
mov ebp, r14d
mov r15, qword [rsp + 0x40]
mov rcx, rsi
call fcn.18002f650
mov rbx, qword [rsp + 0x48]
mov eax, ebp
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x180019d20
Capabilities:
Check if file exists
Get common file path

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1800a0830]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x290], rbx
mov rsi, rdx
xor bl, bl
mov rbp, rcx
call fcn.18001afd0
xor edi, edi
test al, al
je 0x180019dbc
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
call fcn.18001aee0
test al, al
je 0x180019dbc
mov r8, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x298], r14
lea edx, [rdi + 0x1a]
mov r14d, 1
mov qword [rsp + 0x20], rax
mov r9d, r14d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
movzx ebx, bl
cmove ebx, r14d
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x298]
test bl, bl
jne 0x180019dd0
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov rbx, qword [rsp + 0x290]
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x180019de1
test eax, eax
je 0x180019e9f
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x180019e00
mov eax, dword [0x18006c004]
lea rdx, [rsp + 0x40]
sub rdx, 2
mov dword [rcx], eax
nop dword [rax + rax]
cmp word [rdx + 2], di
lea rdx, [rdx + 2]
jne 0x180019e20
xor r8d, r8d
nop dword [rax]
movzx ecx, word [rsi + r8*2]
mov word [rdx + r8*2], cx
lea r8, [r8 + 1]
test cx, cx
jne 0x180019e30
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x180019e50
mov dword [rcx], eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180019e75
lea rcx, [rsp + 0x40]
call fcn.180019c40
cmp word [rsp + 0x40], di
je 0x180019e8f
lea rax, [rsp + 0x40]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x180019e85
mov r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.18000ae90
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18002f6f0
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001afd0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x248
mov rax, qword [0x1800a0830]
xor rax, rsp
mov qword [rsp + 0x230], rax
movzx eax, byte [0x1800a3a60]
test al, al
jne 0x18001b082
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.18004f390
mov r9d, 1
lea rdx, [rsp + 0x20]
xor ecx, ecx
lea r8d, [r9 + 0x19]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x18001b07b
lea rcx, [rsp + 0x20]
call fcn.1800561e0
lea rdx, [0x18006ed88]
lea rcx, [rsp + 0x20]
call fcn.18004f530
test rax, rax
jne 0x18001b05b
lea rdx, str.documents_and_settingslocalservice
lea rcx, [rsp + 0x20]
call fcn.18004f530
test rax, rax
je 0x18001b07b
mov al, 1
mov byte [0x1800a3a60], al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18002f6f0
add rsp, 0x248
ret
movzx eax, byte [0x1800a3a60]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18002f6f0
add rsp, 0x248
ret
Function at 0x18001b0a0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0xa8]
sub rsp, 0x190
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1800a0830]
xor rax, rsp
mov qword [rbp + 0x80], rax
movzx eax, byte [0x1800a3a61]
test al, al
jne 0x18001b321
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x70]
call fcn.18004f390
mov r9d, 1
lea r8d, [r9 + 0x19]
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x18001b31a
mov qword [rsp + 0x60], 0xf
mov qword [rsp + 0x58], 0
mov byte [rsp + 0x48], 0
mov r8d, 0x14
lea rdx, str.config_systemprofile
lea rcx, [rsp + 0x48]
call fcn.180010560
nop
mov qword [rsp + 0x40], 0xf
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x28], 0
cmp byte [rsp + 0x70], 0
jne 0x18001b16e
xor r8d, r8d
jmp 0x18001b18a
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x18001b180
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.180010560
mov r15, qword [rsp + 0x58]
lea r14, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae r14, qword [rsp + 0x48]
test r15, r15
je 0x18001b243
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x18001b23c
cmp r15, rbx
ja 0x18001b23c
sub rbx, r15
inc rbx
lea rsi, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rsi, qword [rsp + 0x28]
nop
test rbx, rbx
je 0x18001b23c
movsx edx, byte [r14]
mov r8, rbx
mov rcx, rsi
call fcn.180050fac
mov rdi, rax
test rax, rax
je 0x18001b23c
mov r8, r15
mov rdx, r14
mov rcx, rax
call fcn.180050fe0
test eax, eax
je 0x18001b21d
sub rsi, rdi
dec rsi
add rbx, rsi
lea rsi, [rdi + 1]
jmp 0x18001b1e0
lea rax, [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rax, rcx
sub rdi, rax
cmp rdi, 0xffffffffffffffff
jne 0x18001b248
jmp 0x18001b24f
mov rcx, qword [rsp + 0x28]
jmp 0x18001b24f
mov rcx, qword [rsp + 0x28]
mov byte [0x1800a3a61], 1
mov rax, qword [rsp + 0x40]
cmp rax, 0x10
jb 0x18001b2a4
inc rax
cmp rax, 0x1000
jb 0x18001b29f
test byte [rsp + 0x28], 0x1f
je 0x18001b272
call fcn.180052354
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18001b281
call fcn.180052354
int3
sub rcx, rax
cmp rcx, 8
jae 0x18001b290
call fcn.180052354
int3
cmp rcx, 0x27
jbe 0x18001b29c
call fcn.180052354
int3
mov rcx, rax
call fcn.18002f658
mov qword [rsp + 0x40], 0xf
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x28], 0
mov rax, qword [rsp + 0x60]
cmp rax, 0x10
jb 0x18001b31a
inc rax
mov rcx, qword [rsp + 0x48]
cmp rax, 0x1000
jb 0x18001b315
test cl, 0x1f
je 0x18001b2e1
call fcn.180052354
int3
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax - 8]
cmp rcx, rax
jb 0x18001b2f5
call fcn.180052354
int3
mov rax, qword [rsp + 0x48]
sub rax, rcx
cmp rax, 8
jae 0x18001b309
call fcn.180052354
int3
cmp rax, 0x27
jbe 0x18001b315
call fcn.180052354
int3
call fcn.18002f658
movzx eax, byte [0x1800a3a61]
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.18002f6f0
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x18001b720
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov ebp, r9d
mov edi, r8d
mov rsi, rdx
mov r14, rcx
xor bl, bl
call fcn.18001afd0
mov r15d, 1
test al, al
je 0x18001b7a6
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 0
call fcn.18001aee0
test al, al
je 0x18001b7a6
mov r8, qword [rsp + 0x30]
mov r9d, r15d
mov edx, edi
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
movzx ebx, bl
cmove ebx, r15d
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x18001b7a6
movzx eax, bl
jmp 0x18001b7c4
mov r9d, ebp
mov r8d, edi
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
movzx ecx, bl
cmovne ecx, r15d
movzx eax, cl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x18001b7e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov ebp, r9d
mov edi, r8d
mov rsi, rdx
mov r14, rcx
xor ebx, ebx
call fcn.18001b0a0
test al, al
jne 0x18001b82c
mov r9d, ebp
mov r8d, edi
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x18001b82c
lea eax, [rbx + 1]
jmp 0x18001b87f
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, eax
lea rdx, [rsp + 0x30]
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x18001b87d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x18001b87d
mov r8, qword [rsp + 0x30]
mov r9d, 1
mov edx, edi
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x18001b87d
lea ebx, [rax + 1]
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x18001c400
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1f8]
sub rsp, 0x2e0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1800a0830]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
xor ebx, ebx
mov edi, ebx
mov dword [rsp + 0x20], ebx
test rcx, rcx
jne 0x18001c44b
xor eax, eax
jmp 0x18001c652
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
cmp word [rcx], bx
jne 0x18001c468
mov r8, rbx
jmp 0x18001c47a
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rcx + r8*2], bx
jne 0x18001c470
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.18000ae90
nop
lea rcx, [rsp + 0x50]
call fcn.18001e560
xor edx, edx
mov r8d, 0x238
lea rcx, [rbp - 0x70]
call fcn.18004f390
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x18001c633
mov dword [rbp - 0x70], 0x238
lea rdx, [rbp - 0x70]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x18001c629
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
cmp word [rbp - 0x44], 0
jne 0x18001c4f4
mov r8, rbx
jmp 0x18001c50b
lea rax, [rbp - 0x44]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x18001c500
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x30]
call fcn.18000ae90
nop
lea rcx, [rsp + 0x30]
call fcn.18001e560
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r8, qword [rsp + 0x50]
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov r9, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x40]
call fcn.180015550
test eax, eax
je 0x18001c5a3
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.18001dd80
or edi, 1
lea r9, [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x18001c579
mov rax, qword [rax]
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
mov r9, qword [r9]
mov r8, rax
mov rdx, qword [rsp + 0x60]
call fcn.180015550
test eax, eax
je 0x18001c5a3
xor sil, sil
jmp 0x18001c5a6
mov sil, 1
test dil, 1
je 0x18001c5cb
and edi, 0xfffffffe
mov r8, qword [rbp - 0x78]
cmp r8, 8
jb 0x18001c5cb
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.18000afe0
test sil, sil
jne 0x18001c5fe
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x18001c5ed
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.18000afe0
lea rdx, [rbp - 0x70]
mov rcx, r14
call sub.KERNEL32.dll_Process32NextW
jmp 0x18001c4cd
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rbp - 0x68]
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x18001c633
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.18000afe0
jmp 0x18001c633
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x18001c650
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.18000afe0
mov eax, ebx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.18002f6f0
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x18001c870
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1d8]
sub rsp, 0x2c0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1800a0830]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rdi, rcx
xor ebx, ebx
xor edx, edx
mov r8d, 0x238
lea rcx, [rsp + 0x70]
call fcn.18004f390
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x28], bx
or r14, 0xffffffffffffffff
cmp word [rdi], bx
jne 0x18001c8df
mov r8d, ebx
jmp 0x18001c8ec
mov r8, r14
inc r8
cmp word [rdi + r8*2], bx
jne 0x18001c8e2
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.18000ae90
nop
lea rcx, [rsp + 0x28]
call fcn.18001e560
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18001ca4a
mov dword [rsp + 0x70], 0x238
lea rdx, [rsp + 0x70]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x18001ca40
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x48], bx
cmp word [rbp - 0x64], 0
jne 0x18001c957
mov r8, rbx
jmp 0x18001c96b
lea rax, [rbp - 0x64]
mov r8, r14
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x18001c960
lea rdx, [rbp - 0x64]
lea rcx, [rsp + 0x48]
call fcn.18000ae90
nop
lea rcx, [rsp + 0x48]
call fcn.18001e560
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
lea rdx, [rsp + 0x48]
mov rdi, qword [rsp + 0x48]
mov r9, qword [rsp + 0x60]
cmp r9, 8
cmovae rdx, rdi
mov r10, qword [rsp + 0x38]
mov r8, r10
mov r11, qword [rsp + 0x58]
cmp r11, r10
cmovb r8, r11
test r8, r8
jmp 0x18001c9ea
movzx eax, word [rcx]
cmp word [rdx], ax
jne 0x18001c9db
add rdx, 2
add rcx, 2
sub r8, 1
jmp 0x18001c9ea
mov r8d, 1
cmp word [rdx], ax
cmovb r8d, r14d
jmp 0x18001c9ef
jne 0x18001c9c5
mov r8d, ebx
test r8d, r8d
jne 0x18001c9fb
cmp r11, r10
jb 0x18001c9fb
jbe 0x18001ca24
cmp r9, 8
jb 0x18001ca12
lea r8, [r9 + 1]
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.18000afe0
lea rdx, [rsp + 0x70]
mov rcx, rsi
call sub.KERNEL32.dll_Process32NextW
jmp 0x18001c930
mov ebx, 1
cmp r9, 8
jb 0x18001ca40
lea r8, [r9 + 1]
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.18000afe0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x18001ca67
inc r8
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.18000afe0
mov eax, ebx
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.18002f6f0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x18001cab0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
call fcn.18001c400
test eax, eax
jg 0x18001cac9
xor eax, eax
add rsp, 0x20
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x30], rdi
mov r8d, eax
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x18001caef
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x30]
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x18001cc40
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rdi, rdx
mov dword [rsp + 0x20], 0x70
xor edx, edx
mov esi, r8d
mov rbx, rcx
mov ebp, r9d
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 0x6c]
call fcn.18004f390
mov eax, 0x200
mov qword [rsp + 0x38], rbx
mov ecx, 0x240
mov dword [rsp + 0x50], 1
test esi, esi
mov qword [rsp + 0x40], rdi
cmovne eax, ecx
mov dword [rsp + 0x24], eax
call fcn.18000f1f0
test eax, eax
lea rcx, str.runas
cmovne rcx, qword [rsp + 0x30]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x18001ccd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 1
cmove eax, ecx
jmp 0x18001ccf1
test esi, esi
je 0x18001ccec
mov rcx, qword [rsp + 0x88]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x18001d850
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x70
xor ebp, ebp
lea rax, [r11 - 0x28]
mov rsi, r9
mov qword [r11 - 0x28], rbp
mov rdi, r8
mov qword [r11 - 0x20], rbp
mov rbx, rcx
mov qword [r11 - 0x18], rbp
mov r9d, 0xf013f
mov qword [r11 - 0x10], rbp
xor r8d, r8d
mov qword [r11 - 0x58], rax
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18001d9b0
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov r9d, 0xf013f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftWare
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18001d9a5
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rbp
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbp
mov rdx, rbx
mov dword [rsp + 0x28], 0xf013f
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x18001d99a
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rbp
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbp
mov rdx, rdi
mov dword [rsp + 0x28], 0xf013f
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x18001d98f
mov rcx, qword [rsp + 0xa0]
or rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x18001d952
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x18001d9d0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x70
xor r14d, r14d
lea rax, [r11 - 0x18]
mov rbx, r9
mov qword [r11 - 0x18], r14
mov rbp, r8
mov qword [r11 - 0x20], r14
mov rsi, rdx
mov qword [r11 - 0x28], r14
mov rdi, rcx
mov qword [r11 - 0x58], rax
mov r9d, 0xf013f
lea rdx, str.SoftWare
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18001db14
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], r14
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], r14
mov rdx, rdi
mov dword [rsp + 0x28], 0xf013f
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x18001db09
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], r14
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], r14
mov rdx, rsi
mov dword [rsp + 0x28], 0xf013f
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x18001dab9
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
jmp 0x18001db0e
or rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rbx + rax*2 + 2], r14w
lea rax, [rax + 1]
jne 0x18001dac0
lea ecx, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], ecx
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
mov rdx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x180020ae0
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1800a0830]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
mov rax, qword [0x1800a3100]
test rax, rax
jne 0x180020b34
mov ecx, 0x1a8
call fcn.18002f60c
mov qword [rsp + 0x38], rax
test rax, rax
je 0x180020b2a
mov rcx, rax
call fcn.18001ff00
jmp 0x180020b2d
mov rax, rbx
mov qword [0x1800a3100], rax
mov rcx, rax
call fcn.180020030
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rbx
mov word [rsp + 0x40], bx
cmp word [rax], 0
jne 0x180020b5a
mov r8, rbx
jmp 0x180020b6b
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x180020b60
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.18000ae90
nop
mov r8d, 0xc
lea rdx, str.TINTmhlp.exe
lea rcx, [rsp + 0x40]
call fcn.1800102c0
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180020bd4
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.e79c2a69
call fcn.18001cd10
nop
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x180020bf1
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.18000afe0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18002f6f0
add rsp, 0x70
pop rbx
ret