joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140042180
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400421ca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400421ca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400421ca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400421ca
cmp dword [rcx + 0x84], 0xe
jbe 0x1400421ca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400421cc
xor al, al
add rsp, 0x28
ret

Function at 0x14004eb70
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14008b048]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x14006d468]
mov rbp, rcx
call fcn.14005b134
xor edi, edi
test rax, rax
je 0x14004ec56
mov ebx, edi
call fcn.14004d004
mov r14d, dword [rax]
call fcn.14004d004
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.14005b080
mov rsi, rax
test rax, rax
je 0x14004ebe7
call fcn.14004d004
mov dword [rax], r14d
jmp 0x14004ec11
call fcn.14004d004
cmp dword [rax], 0x22
jne 0x14004ec4e
call fcn.14004d004
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14005b080
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14004ec4e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14004ec15
cmp rax, 3
je 0x14004ec30
mov rcx, rsi
call fcn.14004eacc
test al, al
je 0x14004ec41
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14004ec41
mov dil, 1
mov rcx, rbx
call fcn.14004c3cc
mov al, dil
jmp 0x14004ec58
mov rcx, rbx
call fcn.14004c3cc
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140041370
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14004ef90
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14004edfb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004edfb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004edfb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004edfb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004edfb
cmp dword [rcx + 0x84], 0xe
jbe 0x14004edfb
cmp dword [rcx + 0xf8], 0
je 0x14004edfb
mov ecx, ebx
call fcn.14004eeac
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14004ec88
nop
cmp dword [rbp + 0x20], 0
je 0x14004ee49
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004ee54
int3
xor r8d, r8d
xor edx, edx
jmp 0x14004ed8c
Function at 0x14004f428
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14004f45f
call fcn.14004d004
mov dword [rax], SafeArrayUnaccessData
call fcn.140047f9c
xor eax, eax
jmp 0x14004f4ed
mov rdx, r9
mov rcx, r8
call fcn.14004f3c4
mov rbx, rax
test rax, rax
je 0x14004f4ea
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14004f2f0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14004f4d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14004cf78
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14004f4be
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14004f4cd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140057600
jmp 0x14004f4ea
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14004f4e7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14005e958
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14005e9df
mov rsi, rbx
cmp word [rax], bp
je 0x14005e99e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14005e988
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14005e984
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14005763c
mov rdi, rax
test rax, rax
je 0x14005e9cc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400438c0
mov rbp, rdi
xor ecx, ecx
call fcn.140057600
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140061570
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400572a0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140061611
cmp ebx, dword [rsp + 0x30]
je 0x14006160a
test esi, esi
je 0x14006160a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400615e5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400615f2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400615cf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400615f6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140061613
mov eax, 1
jmp 0x140061613
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140063458
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14008b048]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400634a2
call fcn.14004cfe4
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayDestroy
call fcn.14004d004
mov dword [rax], SafeArrayDestroy
call fcn.140047f9c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140041370
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400634ad
lea eax, [rbx + 1]
jmp 0x14006348f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14006348d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14006348f

Function at 0x1400658d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400658f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400658f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x8fb108
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8fb28f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x8fb139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x8fb11f
add dl, dl
jne 0x8fb146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x8fb1a6
xor eax, eax
add dl, dl
jne 0x8fb155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x8fb25d
add dl, dl
jne 0x8fb166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8fb173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8fb180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8fb18d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x8fb19a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x8fb12e
mov eax, 1
add dl, dl
jne 0x8fb1b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8fb1c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x8fb1ab
sub eax, ebx
mov ebx, 1
jne 0x8fb1fc
mov ecx, 1
add dl, dl
jne 0x8fb1de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8fb1eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x8fb1d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x8fb12e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8fb218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8fb225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x8fb20d
cmp eax, 0x7d00
jae 0x8fb24b
cmp eax, 0x500
jb 0x8fb246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x8fb12e
cmp eax, 0x7f
ja 0x8fb24e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x8fb12e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x8fb282
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x8fb12e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400061c0
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 0x1400062be
lea r9, [rbp - 0x10]
mov rcx, rax
lea r8, [rbp + 0x38]
lea rdx, [rbp + 0x30]
call fcn.1400143b4
mov ebx, eax
test eax, eax
js 0x1400062ed
mov rdi, qword [rbp + 0x30]
mov rax, qword [rbp - 0x10]
cmp word [rax], r15w
je 0x1400062be
lea r9, [rbp - 0x10]
mov rcx, rax
lea r8, [rbp + 0x38]
lea rdx, [rbp + 0x30]
call fcn.1400143b4
mov ebx, eax
test eax, eax
jne 0x1400062b8
mov rdi, qword [rbp + 0x30]
mov ecx, 0xfffd
movzx eax, word [rdi]
sub ax, 0x2d
test cx, ax
jne 0x1400062b1
lea rbx, [rdi + 2]
mov rdx, rbx
lea rcx, str.standalone
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140006285
mov dword [r14], 1
jmp 0x140006227
mov rdx, rbx
lea rcx, str.standalone:temp
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1400062a1
mov dword [rsi], 1
jmp 0x140006227
mov rdx, rbx
lea rcx, str.standalone:delete
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
mov ebx, 0x80070057
jmp 0x1400062c1
js 0x1400062ed
mov rdi, qword [rbp + 0x30]
mov ebx, r15d
test rdi, rdi
je 0x1400062da
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
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 0x1400062c1
Function at 0x140007e80
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140039008]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
cmp qword [0x14003ab20], rbx
jne 0x14000803b
xor edx, edx
lea rcx, str.CABINET
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
jne 0x140007f07
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x140007f07
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 0x140007f07
xor r8d, r8d
lea rcx, str.CABINET
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [0x14003ab20], rdi
test rdi, rdi
jne 0x140007f34
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140008021
jmp 0x14000801c
lea rdx, str.FDICreate
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14003ab40], rax
test rax, rax
je 0x140007f13
mov rcx, qword [0x14003ab20]
lea rdx, str.FDICopy
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14003ab30], rax
test rax, rax
je 0x140007f13
mov rcx, qword [0x14003ab20]
lea rdx, str.FDIIsCabinet
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14003ab28], rax
test rax, rax
je 0x140007f13
mov rcx, qword [0x14003ab20]
lea rdx, str.FDIDestroy
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14003ab48], rax
test rax, rax
je 0x140007f13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea r9, [0x140007940]
or dword [rsp + 0x38], 0xffffffff
lea rax, [0x140007a10]
mov qword [rsp + 0x30], rax
lea r8, [0x1400078d0]
lea rax, [0x1400079d0]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400078a0]
lea rax, [0x140007990]
mov qword [rsp + 0x20], rax
lea rcx, [0x140007870]
mov rax, qword [0x14003ab40]
call qword [0x14002a558]
mov qword [0x14003ab38], rax
test rax, rax
jne 0x14000803b
mov ebx, 0x80004005
mov rcx, qword [0x14003ab20]
test rcx, rcx
je 0x14000803b
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
and qword [0x14003ab20], 0
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140015cc0
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x14000c940
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 0x14000c9cf
mov rcx, qword [rcx + 0x18]
lea rdx, [rbp - 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
call qword [0x14002a558]
mov ebx, eax
test eax, eax
js 0x14000caf1
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 0x14000cafe
test ebx, ebx
js 0x14000caf1
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 0x14000cae2
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 0x14000cae2
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 0x14000cae2
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 0x14000caf1
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 0x14000caf1
Function at 0x14000f670
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 0x14000f6a1
mov eax, 0x80004001
jmp 0x14000f7e9
test byte [rdx + 4], 2
je 0x14000f7c9
lea r14, [rcx + 0x1170]
or r9, 0xffffffffffffffff
lea r8, [rdx + 0x108]
mov rcx, r14
mov edx, 0x824
call fcn.1400197c0
cmp eax, 0x50
jne 0x14000f6d9
mov edi, 0x8007007a
jmp 0x14000f7e7
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 0x14000f715
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x14000f7e7
mov eax, 0x68
lea ecx, [rax + 0xc]
lea edx, [rax + 8]
lea r8d, [rax - 0x2e]
cmp ax, word [rsi]
jne 0x14000f78a
cmp cx, word [rbx + 0x12a]
jne 0x14000f752
cmp cx, word [rbx + 0x12c]
jne 0x14000f752
cmp dx, word [rbx + 0x12e]
jne 0x14000f752
cmp r8w, word [rbx + 0x130]
je 0x14000f806
cmp ax, word [rsi]
jne 0x14000f78a
cmp cx, word [rbx + 0x12a]
jne 0x14000f78a
cmp cx, word [rbx + 0x12c]
jne 0x14000f78a
cmp dx, word [rbx + 0x12e]
jne 0x14000f78a
mov eax, 0x73
cmp ax, word [rbx + 0x130]
jne 0x14000f78a
cmp r8w, word [rbx + 0x132]
je 0x14000f806
mov eax, 0x66
cmp ax, word [rsi]
jne 0x14000f7b0
cmp cx, word [rbx + 0x12a]
jne 0x14000f7b0
cmp dx, word [rbx + 0x12c]
jne 0x14000f7b0
cmp r8w, word [rbx + 0x12e]
je 0x14000f806
mov rcx, rsi
call fcn.140012480
mov edi, eax
test eax, eax
js 0x14000f7e7
mov dword [rbx + 0x21b8], r15d
test edi, edi
js 0x14000f7db
test byte [rbp + 4], 4
je 0x14000f7db
mov eax, dword [rbp + 0x1150]
mov dword [rbx + 0x21bc], eax
xor edx, edx
mov rcx, rbx
call fcn.14000f820
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 0x14000f802
mov eax, 0x2f
cmp ax, word [rsi - 2]
je 0x14000f7be
mov dword [rsi], eax
jmp 0x14000f7be
Function at 0x14000f820
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
and qword [r11 + 0x20], 0
lea rdx, [r11 + 0x20]
and qword [r11 + 0x18], 0
mov rdi, rcx
mov rcx, qword [rcx + 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 0xc0]
call qword [0x14002a558]
mov ebx, eax
test eax, eax
js 0x14000f978
mov rcx, qword [rsp + 0x88]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rdx, [rdi + 0x28]
lea rax, [rsp + 0x80]
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 0x14000f978
lea rsi, [rdi + 0x1170]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rbx, [rdi + 0x128]
mov ebp, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov dword [rsp + 0x28], ebp
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 + 0x80]
lea rdx, str.Path
xor r8d, r8d
lea r9d, [rbx + 1]
test eax, eax
lea eax, [rbp*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
jne 0x14000f923
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 0x14000f978
mov rcx, qword [rsp + 0x80]
lea rax, [rdi + 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 + 0x80]
test rcx, rcx
je 0x14000f98b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000fb40
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.140028a50
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1208], rbx
mov rax, qword [0x140039008]
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, 0x1154
lea rcx, [rsp + 0x50]
call fcn.140017800
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.1400197c0
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 0x14000fcb0
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 0x14000fcb0
lea r9, [rsp + 0x38]
mov r8, rsi
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.14000f9e0
mov ebx, eax
test eax, eax
js 0x14000fc89
mov rax, qword [rsp + 0x38]
mov qword [rdi], rax
xor edx, edx
xor ebx, ebx
jmp 0x14000fc8e
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x14000fcb0
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 [0x14002a558]
nop
mov eax, ebx
mov rcx, qword [rbp + 0x10b0]
xor rcx, rsp
call fcn.140015cc0
mov rbx, qword [rsp + 0x1208]
add rsp, 0x11c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140010e10
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 0x140010e3b
lea ebx, [rcx + 2]
jmp 0x140010f1b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 0x258], 0xffffffffffffffff
test esi, esi
je 0x140010f1b
cmp dword [rdi + 0x18], ebx
jne 0x140010f1b
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 0x140010ea6
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010f1b
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 0x140010ed8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010f1b
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140010efd
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010f1b
mov rcx, qword [rdi + 0x28]
mov rdx, qword [rdi + 0x248]
mov r8, rdx
mov rax, qword [rcx]
mov rax, qword [rax + 0xa0]
call qword [0x14002a558]
mov rcx, qword [rdi + 0x258]
cmp rcx, 0xffffffffffffffff
je 0x140010f36
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