joyce8/EMBER2024-capa huggingface dataset:
Function at 0x29b15b4a0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rsi
xor eax, eax
push rbx
mov r8b, byte [rdx + rax]
mov byte [rcx + rax], r8b
mov r8b, byte [rdx + rax + 1]
mov byte [rcx + rax + 1], r8b
mov r8b, byte [rdx + rax + 2]
mov byte [rcx + rax + 2], r8b
mov r8b, byte [rdx + rax + 3]
mov byte [rcx + rax + 3], r8b
add rax, 4
cmp rax, 0x20
jne 0x29b15b4a4
mov r11d, 8
lea r10, str.cw
lea rbx, [0x29b1611a0]
mov esi, r11d
movzx r9d, byte [rcx + 0x1c]
movzx r8d, byte [rcx + 0x1d]
movzx edx, byte [rcx + 0x1e]
movzx eax, byte [rcx + 0x1f]
and esi, 7
jne 0x29b15b522
mov sil, byte [r10 + r8]
mov r8b, byte [r10 + rdx]
mov dl, byte [r10 + rax]
mov al, byte [r10 + r9]
mov r9d, r11d
shr r9d, 3
xor sil, byte [rbx + r9]
mov r9d, esi
jmp 0x29b15b537
cmp esi, 4
jne 0x29b15b537
mov r9b, byte [r10 + r9]
mov r8b, byte [r10 + r8]
mov dl, byte [r10 + rdx]
mov al, byte [r10 + rax]
xor r9b, byte [rcx]
xor r8b, byte [rcx + 1]
inc r11d
add rcx, 4
xor dl, byte [rcx - 2]
xor al, byte [rcx - 1]
mov byte [rcx + 0x1c], r9b
mov byte [rcx + 0x1d], r8b
mov byte [rcx + 0x1e], dl
mov byte [rcx + 0x1f], al
cmp r11d, 0x3c
jne 0x29b15b4e8
pop rbx
pop rsi
ret

Function at 0x29b15b580
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
xor r15d, r15d
push r14
push r13
push r12
mov r12, rcx
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rax, dword [rcx + 0x3c]
mov dword [rsp + 0xa8], edx
mov qword [rsp + 0x38], 0
add rax, rcx
mov qword [rsp + 0x40], 0
mov ebx, dword [rax + 0x88]
mov qword [rsp + 0x48], 0
mov eax, dword [rax + 0x8c]
add rbx, rcx
mov esi, dword [rbx + 0x20]
mov r13d, dword [rbx + 0x1c]
mov dword [rsp + 0x2c], eax
mov r14d, dword [rbx + 0x24]
cmp dword [rbx + 0x18], r15d
jbe 0x29b15b675
mov edi, r15d
lea rax, [r12 + rdi*4]
mov ebp, dword [rax + rsi]
add rbp, r12
mov rcx, rbp
call fcn.29b15a900
cmp eax, dword [rsp + 0xa8]
jne 0x29b15b679
add rdi, rdi
add rdi, r12
movzx eax, word [rdi + r14]
lea rax, [r12 + rax*4]
mov eax, dword [rax + r13]
add rax, r12
mov qword [rsp + 0x38], rax
cmp rax, rbx
jae 0x29b15b62c
mov rax, qword [rsp + 0x38]
jmp 0x29b15b681
mov esi, dword [rsp + 0x2c]
add rsi, r12
add rsi, rbx
cmp rax, rsi
jae 0x29b15b625
mov rcx, rbp
call fcn.29b15da90
xor r8d, r8d
mov qword [rsp + 0x48], rbp
mov rcx, r12
mov word [rsp + 0x40], ax
inc eax
lea rdx, [rsp + 0x40]
lea r9, [rsp + 0x38]
mov word [rsp + 0x42], ax
mov rax, qword [0x29b1612f0]
call qword [rax + 0x26e]
test eax, eax
jns 0x29b15b625
xor eax, eax
jmp 0x29b15b681
inc r15d
jmp 0x29b15b5dd
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x29b15cbd0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd r8, dword [rcx + 0x3c]
add r8, rcx
movzx eax, word [r8 + 0x14]
mov r10w, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
xor r8d, r8d
cmp r10w, r8w
je 0x29b15cc18
mov r9d, dword [rax + 0xc]
cmp r9d, edx
ja 0x29b15cc0f
mov r11d, dword [rax + 8]
add r11d, r9d
cmp r11d, edx
jbe 0x29b15cc0f
add edx, dword [rax + 0x14]
sub edx, r9d
lea rax, [rdx + rcx]
ret
inc r8d
add rax, 0x28
jmp 0x29b15cbe9
xor eax, eax
ret
Function at 0x29b15cce0
Capabilities:
Enumerate pe sections

Disassembly:
push r15
push r14
push r13
push r12
mov r12, rcx
push rbp
mov rdx, r12
push rdi
push rsi
xor esi, esi
push rbx
sub rsp, 0x28
movsxd rax, dword [rcx + 0x3c]
mov ecx, dword [rcx + rax + 0x88]
call 0x29b15cce0
mov rdx, r12
mov ebx, eax
add rbx, r12
mov ecx, dword [rbx + 0x20]
call 0x29b15cce0
mov ecx, dword [rbx + 0x24]
mov rdx, r12
mov ebp, eax
call 0x29b15cce0
mov r15d, dword [rbx + 0x18]
add rbp, r12
mov edi, eax
add rdi, r12
lea r14, [rsi + rsi]
add r14, rdi
cmp r15, rsi
je 0x29b15a891
mov ecx, dword [rbp + rsi*4]
mov rdx, r12
call 0x29b15cce0
mov r13d, eax
add r13, r12
mov rcx, r13
call fcn.29b15a900
cmp eax, 0xa6caa1c5
jne 0x29b15a87d
mov ecx, dword [rbx + 0x1c]
mov rdx, r12
call 0x29b15cce0
movzx edx, word [r14]
mov eax, eax
add rax, r12
mov ecx, dword [rax + rdx*4]
add rsp, 0x28
mov rdx, r12
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp 0x29b15cce0
mov rcx, r13
inc rsi
call fcn.29b15a900
cmp eax, 0xffe885ef
jne 0x29b15a821
jmp 0x29b15a84e
add rsp, 0x28
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, ecx
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
cmp dword [rdx + 0x14], eax
ja 0x29b15cd2a
mov r9w, word [rcx + 6]
xor ecx, ecx
cmp r9w, cx
je 0x29b15cd28
mov r8d, dword [rdx + 0xc]
cmp eax, r8d
jb 0x29b15cd20
mov r10d, dword [rdx + 0x10]
add r10d, r8d
cmp r10d, eax
jbe 0x29b15cd20
add eax, dword [rdx + 0x14]
sub eax, r8d
ret
inc ecx
add rdx, 0x28
jmp 0x29b15ccfe
xor eax, eax
ret
Function at 0x29b15dd10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
mov r14, rdx
mov edx, 0x180024b6
push r13
push r12
xor r12d, r12d
push rbp
push rdi
push rsi
push rbx
mov rbx, rcx
sub rsp, 0x178
mov rbp, qword [0x29b1612f0]
lea rdi, [rsp + 0x7c]
mov rcx, qword [rbp + 0x71e]
call fcn.29b15b580
mov ecx, 0x3d
mov byte [rsp + 0x6b], 0xbb
mov r8, rax
xor eax, eax
mov word [rsp + 0x69], 0x4900
rep stosd dword [rdi], eax
lea rax, [r8 + 0x12]
mov rcx, rbx
mov qword [rsp + 0x6c], 0
mov qword [rsp + 0x50], rax
movsxd rax, dword [rbx + 0x3c]
mov qword [rsp + 0x74], 0
mov edx, dword [rbx + rax + 0x88]
call fcn.29b15cbd0
mov rsi, rax
mov eax, dword [rax + 0x18]
mov edx, dword [rsi + 0x1c]
mov dword [rsp + 0x34], eax
call fcn.29b15cbd0
mov edx, dword [rsi + 0x20]
mov qword [rsp + 0x38], rax
call fcn.29b15cbd0
mov edx, dword [rsi + 0x24]
mov qword [rsp + 0x40], rax
call fcn.29b15cbd0
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
xor edx, edx
mov qword [rsp + 0x48], rax
mov r8d, 0x10000
or rcx, 0xffffffffffffffff
call qword [rbp + 0xfe]
test rax, rax
je 0x29b15df08
mov dword [rsp + 0x30], 0
mov rbp, rax
lea r15, [rsp + 0x6c]
mov esi, dword [rsp + 0x34]
cmp dword [rsp + 0x30], esi
jae 0x29b15df08
cmp r12d, 0x3ff
ja 0x29b15df08
mov rax, qword [rsp + 0x40]
mov edi, dword [rsp + 0x30]
mov rcx, rbx
mov edx, dword [rax + rdi*4]
call fcn.29b15cbd0
cmp word [rax], 0x775a
mov rsi, rax
jne 0x29b15deff
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + rdi*2]
mov rdi, qword [rsp + 0x38]
mov edx, dword [rdi + rax*4]
call fcn.29b15cbd0
mov r9d, 3
mov edx, 0x40
lea r8, [0x29b16116a]
mov rcx, rax
mov r13, rax
call fcn.29b159a20
add rax, 3
mov qword [rsp + 0x58], rax
je 0x29b15deff
mov rcx, rsi
mov rdi, r15
call fcn.29b15da90
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov rcx, r15
mov word [rsp + 0x6c], 0x744e
mov rsi, r13
call fcn.29b15a900
mov edx, r12d
mov rcx, qword [rsp + 0x58]
shl rdx, 4
mov eax, eax
mov qword [r14 + rdx + 8], rax
mov eax, r12d
sub rcx, r13
inc r12d
shl eax, 6
sub rcx, 0xd
lea r8, [rbp + rax]
mov rdi, r8
rep movsb byte [rdi], byte [rsi]
mov cx, word [rsp + 0x69]
mov rdi, qword [rsp + 0x50]
mov dword [rbp + rax + 0x12], 0xc3e3ff41
mov word [rbp + rax + 7], cx
mov cl, byte [rsp + 0x6b]
mov qword [rbp + rax + 0xa], rdi
mov byte [rbp + rax + 9], cl
mov rcx, r15
mov qword [r14 + rdx], r8
mov r8d, 0x104
xor edx, edx
call fcn.29b15b830
inc dword [rsp + 0x30]
jmp 0x29b15ddf9
add rsp, 0x178
mov eax, r12d
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140006138
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov rsi, r9
mov r14, r8
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r15d, r15d
mov qword [rbp - 0x10], rax
mov edi, r15d
mov qword [rbp + 0x30], r15
mov dword [rbp + 0x38], r15d
cmp word [rax], r15w
je 0x140006236
lea r9, [rbp - 0x10]
mov rcx, rax
lea r8, [rbp + 0x38]
lea rdx, [rbp + 0x30]
call fcn.140013f18
mov ebx, eax
test eax, eax
js 0x140006259
mov rdi, qword [rbp + 0x30]
mov rax, qword [rbp - 0x10]
cmp word [rax], r15w
je 0x140006236
lea r9, [rbp - 0x10]
mov rcx, rax
lea r8, [rbp + 0x38]
lea rdx, [rbp + 0x30]
call fcn.140013f18
mov ebx, eax
test eax, eax
jne 0x140006230
mov rdi, qword [rbp + 0x30]
mov ecx, 0xfffd
movzx eax, word [rdi]
sub ax, 0x2d
test cx, ax
jne 0x140006229
lea rbx, [rdi + 2]
mov rdx, rbx
lea rcx, str.standalone
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1400061fd
mov dword [r14], 1
jmp 0x14000619f
mov rdx, rbx
lea rcx, str.standalone:temp
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140006219
mov dword [rsi], 1
jmp 0x14000619f
mov rdx, rbx
lea rcx, str.standalone:delete
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
mov ebx, 0x80070057
jmp 0x140006239
js 0x140006259
mov rdi, qword [rbp + 0x30]
mov ebx, r15d
test rdi, rdi
je 0x140006246
mov rcx, rdi
call fcn.14001519c
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rdi, qword [rbp + 0x30]
jmp 0x140006239
Function at 0x140007da0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140039010]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
cmp qword [0x14003ac90], rbx
jne 0x140007f5b
xor edx, edx
lea rcx, str.CABINET
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
jne 0x140007e27
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x140007e27
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.AddDllDirectory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140007e27
xor r8d, r8d
lea rcx, str.CABINET
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [0x14003ac90], rdi
test rdi, rdi
jne 0x140007e54
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140007f41
jmp 0x140007f3c
lea rdx, str.FDICreate
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14003acb0], rax
test rax, rax
je 0x140007e33
mov rcx, qword [0x14003ac90]
lea rdx, str.FDICopy
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14003aca0], rax
test rax, rax
je 0x140007e33
mov rcx, qword [0x14003ac90]
lea rdx, str.FDIIsCabinet
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14003ac98], rax
test rax, rax
je 0x140007e33
mov rcx, qword [0x14003ac90]
lea rdx, str.FDIDestroy
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14003acb8], rax
test rax, rax
je 0x140007e33
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea r9, [0x140007870]
or dword [rsp + 0x38], 0xffffffff
lea rax, [0x140007930]
mov qword [rsp + 0x30], rax
lea r8, [0x140007800]
lea rax, [0x140007900]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400077f0]
lea rax, [0x1400078c0]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400077c0]
mov rax, qword [0x14003acb0]
call qword [0x14002a548]
mov qword [0x14003aca8], rax
test rax, rax
jne 0x140007f5b
mov ebx, 0x80004005
mov rcx, qword [0x14003ac90]
test rcx, rcx
je 0x140007f5b
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
and qword [0x14003ac90], 0
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140015800
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x14000c740
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
xor sil, sil
mov rax, rdx
mov rdi, rcx
mov r14d, 0x80070000
test rdx, rdx
jne 0x14000c7cf
mov rcx, qword [rcx + 0x18]
lea rdx, [rbp - 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
call qword [0x14002a548]
mov ebx, eax
test eax, eax
js 0x14000c8f1
mov rdx, qword [rdi + 0x28]
lea rax, [rbp + 0x38]
mov rcx, qword [rbp - 0x10]
mov esi, 1
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
lea eax, [rbx + 0x7ff8fffe]
cmp eax, esi
jbe 0x14000c8fe
test ebx, ebx
js 0x14000c8f1
mov rax, qword [rbp + 0x38]
lea rcx, [rbp + 0x40]
mov dword [rbp + 0x40], 4
mov qword [rsp + 0x28], rcx
lea rdx, str.Size
lea rcx, [rbp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000c8e2
mov eax, dword [rbp + 0x48]
lea rdx, str.Progress
mov rcx, qword [rbp + 0x38]
xor r9d, r9d
mov qword [rdi + 0x68], rax
xor r8d, r8d
lea rax, [rbp + 0x40]
mov dword [rbp + 0x40], 4
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000c8e2
mov eax, dword [rbp + 0x48]
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x28], rcx
lea rdx, str.LastAttemptHigh
mov rcx, qword [rbp + 0x38]
xor r9d, r9d
mov qword [rdi + 0x70], rax
xor r8d, r8d
lea rax, [rdi + 0x94]
mov dword [rbp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000c8e2
lea rcx, [rbp + 0x40]
mov dword [rbp + 0x40], 4
mov qword [rsp + 0x28], rcx
lea rax, [rdi + 0x90]
mov rcx, qword [rbp + 0x38]
lea rdx, str.LastAttemptLow
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test sil, sil
je 0x14000c8f1
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
and qword [rdi + 0x68], 0
mov ebx, esi
and qword [rdi + 0x70], 0
xor eax, eax
mov qword [rdi + 0x90], rax
jmp 0x14000c8f1
Function at 0x14000f2f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov rbp, rdx
mov rbx, rcx
cmp qword [rcx + 0x18], r15
jne 0x14000f321
mov eax, 0x80004001
jmp 0x14000f463
test byte [rdx + 4], 2
je 0x14000f443
lea r14, [rcx + 0x1170]
or r9, 0xffffffffffffffff
lea r8, [rdx + 0x108]
mov rcx, r14
mov edx, 0x824
call fcn.1400192f0
cmp eax, 0x50
jne 0x14000f359
mov edi, 0x8007007a
jmp 0x14000f461
lea rsi, [rbx + 0x128]
mov r8d, 0x824
mov rdx, rsi
mov rcx, r14
mov edi, r15d
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x14000f395
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x14000f461
mov eax, 0x68
lea ecx, [rax + 0xc]
lea edx, [rax + 8]
lea r8d, [rax - 0x2e]
cmp ax, word [rsi]
jne 0x14000f404
movzx eax, word [rbx + 0x12a]
cmp cx, ax
jne 0x14000f404
cmp cx, word [rbx + 0x12c]
jne 0x14000f3d5
cmp dx, word [rbx + 0x12e]
jne 0x14000f3d5
cmp r8w, word [rbx + 0x130]
je 0x14000f480
cmp cx, ax
jne 0x14000f404
cmp cx, word [rbx + 0x12c]
jne 0x14000f404
cmp dx, word [rbx + 0x12e]
jne 0x14000f404
mov eax, 0x73
cmp ax, word [rbx + 0x130]
jne 0x14000f404
cmp r8w, word [rbx + 0x132]
je 0x14000f480
mov eax, 0x66
cmp ax, word [rsi]
jne 0x14000f42a
cmp cx, word [rbx + 0x12a]
jne 0x14000f42a
cmp dx, word [rbx + 0x12c]
jne 0x14000f42a
cmp r8w, word [rbx + 0x12e]
je 0x14000f480
mov rcx, rsi
call fcn.1400120b0
mov edi, eax
test eax, eax
js 0x14000f461
mov dword [rbx + 0x21b8], r15d
test edi, edi
js 0x14000f455
test byte [rbp + 4], 4
je 0x14000f455
mov eax, dword [rbp + 0x1150]
mov dword [rbx + 0x21bc], eax
xor edx, edx
mov rcx, rbx
call fcn.14000f4a0
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
add rsi, 2
cmp word [rsi], r15w
jne 0x14000f47c
mov eax, 0x2f
cmp ax, word [rsi - 2]
je 0x14000f438
mov dword [rsi], eax
jmp 0x14000f438
Function at 0x14000f4a0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
and qword [r11 + 0x20], 0
lea rdx, [r11 + 0x20]
and qword [r11 + 0x18], 0
mov rbp, rcx
mov rcx, qword [rcx + 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 0xc0]
call qword [0x14002a548]
mov ebx, eax
test eax, eax
js 0x14000f5fc
mov rcx, qword [rsp + 0x98]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
lea rdx, [rbp + 0x28]
lea rax, [rsp + 0x90]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000f5fc
lea rsi, [rbp + 0x1170]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdi, [rbp + 0x128]
mov ebx, eax
mov rcx, rdi
lea r14d, [rax*2 + 2]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rsp + 0x28], ebx
mov r8, rdi
mov ebx, 1
mov qword [rsp + 0x20], rsi
mov r9d, eax
mov edx, ebx
lea ecx, [rbx + 0x7e]
call qword [sym.imp.KERNEL32.dll_CompareStringW]
mov rcx, qword [rsp + 0x90]
lea rdx, str.Path
xor r8d, r8d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rsi
lea r9d, [rbx + 1]
test eax, eax
jne 0x14000f5a7
mov r9d, ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000f5fc
mov rcx, qword [rsp + 0x90]
lea rax, [rbp + 0x21bc]
mov r9d, 4
lea rdx, str.Priority
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x14000f60f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000f7c8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x10c0]
mov eax, 0x11c0
call fcn.140029690
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1208], rbx
mov rax, qword [0x140039010]
xor rax, rsp
mov qword [rbp + 0x10b0], rax
mov rsi, r9
mov r14, r8
mov r15, rdx
mov rbx, rcx
mov rdi, qword [rbp + 0x1110]
and qword [rsp + 0x38], 0
and qword [rdi], 0
xor edx, edx
mov r8d, 0x114c
lea rcx, [rsp + 0x58]
call fcn.140016ec0
mov dword [rsp + 0x50], 0x1154
mov dword [rsp + 0x54], 7
or r9, 0xffffffffffffffff
mov r8, rbx
mov edx, 0x80
lea rcx, [rsp + 0x58]
call fcn.1400192f0
mov dword [rsp + 0x30], 0x1048
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Path
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000f939
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10a0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Priority
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000f939
lea r9, [rsp + 0x38]
mov r8, rsi
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.14000f660
mov ebx, eax
test eax, eax
js 0x14000f912
mov rax, qword [rsp + 0x38]
mov qword [rdi], rax
xor edx, edx
xor ebx, ebx
jmp 0x14000f917
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x14000f939
mov rax, qword [rdx + 8]
movsxd rcx, dword [rax + 4]
add rdx, 8
add rcx, rdx
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002a548]
nop
mov eax, ebx
mov rcx, qword [rbp + 0x10b0]
xor rcx, rsp
call fcn.140015800
mov rbx, qword [rsp + 0x1208]
add rsp, 0x11c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140010a84
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
xor ebx, ebx
mov rcx, qword [rcx + 0x258]
mov esi, edx
cmp rcx, 0xffffffffffffffff
jne 0x140010aaf
lea ebx, [rcx + 2]
jmp 0x140010b8f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 0x258], 0xffffffffffffffff
test esi, esi
je 0x140010b8f
cmp dword [rdi + 0x18], ebx
jne 0x140010b8f
and qword [rsp + 0x30], rbx
lea rcx, [rdi + 0x34]
and dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x258], rax
mov esi, 0x80070000
cmp rax, 0xffffffffffffffff
jne 0x140010b1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010b8f
mov rdx, qword [rdi + 0x248]
xor r9d, r9d
mov rcx, qword [rdi + 0x258]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140010b4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010b8f
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140010b71
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010b8f
mov rcx, qword [rdi + 0x28]
mov rdx, qword [rdi + 0x248]
mov r8, rdx
mov rax, qword [rcx]
mov rax, qword [rax + 0xa0]
call qword [0x14002a548]
mov rcx, qword [rdi + 0x258]
cmp rcx, 0xffffffffffffffff
je 0x140010baa
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 0x258], 0xffffffffffffffff
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140011418
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x60
and qword [r11 + 0x18], 0
mov rdi, rcx
and dword [rsp + 0x78], 0
mov rax, qword [rdx + 8]
test rax, rax
je 0x14001144c
lea r8, [r11 + 0x18]
mov rdx, rax
call fcn.140011590
mov ebx, eax
test eax, eax
jmp 0x1400114b2
mov r9d, dword [rdx + 0x1c]
lea rax, [rsp + 0x80]
mov r8d, dword [rdx + 0x18]
lea rcx, [rdx + 0x10]
mov qword [rsp + 0x50], rax
mov eax, dword [rdx + 0x34]
mov dword [rsp + 0x48], eax
mov eax, dword [rdx + 0x30]
mov dword [rsp + 0x40], eax
mov eax, dword [rdx + 0x2c]
mov dword [rsp + 0x38], eax
mov eax, dword [rdx + 0x28]
mov dword [rsp + 0x30], eax
mov eax, dword [rdx + 0x24]
mov dword [rsp + 0x28], eax
mov eax, dword [rdx + 0x20]
mov dl, byte [rdx + 0x16]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x1400114b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400114ef
mov rdx, qword [rsp + 0x80]
lea r8, [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1400114e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400114ef
xor ebx, ebx
cmp dword [rsp + 0x78], ebx
sete bl
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140011502
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret