joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001de54
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000e758
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001dede
cmp byte [rbp - 0x21], r15b
je 0x14001ded9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001df14
call fcn.140012dc0
test eax, eax
jne 0x14001df00
cmp byte [rbp - 0x21], r15b
je 0x14001def8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001df14
cmp byte [rbp - 0x21], r15b
je 0x14001df11
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000e890
test eax, eax
jne 0x14001dfb4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000e758
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001df53
cmp byte [rbp - 0x21], r15b
je 0x14001df88
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001df88
call fcn.140012dc0
test eax, eax
jne 0x14001df74
cmp byte [rbp - 0x21], r15b
je 0x14001df6d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001df88
cmp byte [rbp - 0x21], r15b
je 0x14001df85
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000e890
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001dfb4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001dfb7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001dfc5
mov rcx, rdi
call fcn.140012abc
cmp byte [rbp + 0x3f], r15b
je 0x14001dfd4
mov rcx, qword [rbp + 0x27]
call fcn.140012abc
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14001f740
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 1
mov eax, dword [rsp + 0x20]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x180010d6d
xor r9d, r9d
lea r8, [0x18007183c]
lea rdx, [0x180071844]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov qword [rsp + 0x28], 0x11eece0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180010d8f
mov rax, qword [rsp + 0x58]
dec rax
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x180010de4
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x28]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
imul rax, rax, 0x1000193
mov qword [rsp + 0x28], rax
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
and rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
jmp 0x180010d82
mov eax, dword [rsp + 0x28]
jmp 0x180010e19
add rsp, 0x48
ret
Function at 0x180013f80
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
jne 0x180013f8e
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x10], 0
je 0x180013fc0
mov r8, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x10]
call fcn.1800168f0
jmp 0x180014043
movzx eax, byte [0x1800d4b00]
test eax, eax
jne 0x180014005
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x180013ffe
lea rdx, str.RegDeleteKeyExW
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d4af8], rax
mov byte [0x1800d4b00], 1
cmp qword [0x1800d4af8], 0
je 0x180014030
xor r9d, r9d
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 8]
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [0x1800d4af8]
jmp 0x180014043
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add rsp, 0x38
ret

Function at 0x180014050
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor eax, eax
test eax, eax
jne 0x18001405e
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
add rsp, 0x28
ret

Function at 0x180016610
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [0x1800891a0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.180019360
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.180011690
mov rax, qword [rsp + 0x2a0]
mov eax, dword [rax + 8]
or eax, 0x2001f
mov r9d, eax
mov r8, qword [rsp + 0x2a8]
mov rax, qword [rsp + 0x2a0]
mov rdx, qword [rax]
lea rcx, [rsp + 0x50]
call fcn.180015cc0
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1800166a4
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x4c], eax
lea rcx, [rsp + 0x50]
call fcn.180011b70
mov eax, dword [rsp + 0x4c]
jmp 0x180016762
mov dword [rsp + 0x68], 0x100
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x180016731
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x50]
call fcn.180016610
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x180016724
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x50]
call fcn.180011b70
mov eax, dword [rsp + 0x44]
jmp 0x180016762
mov dword [rsp + 0x68], 0x100
jmp 0x1800166ac
lea rcx, [rsp + 0x50]
call fcn.180013af0
mov rdx, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x2a0]
call fcn.180013f80
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x50]
call fcn.180011b70
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.18004e350
add rsp, 0x298
ret
Function at 0x1800168f0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
je 0x18001697c
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x18001692f
mov eax, 1
jmp 0x18001699e
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x18001697a
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x38]
jmp 0x18001699e
jmp 0x180016999
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0
je 0x180016999
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x18001699e
mov eax, 1
add rsp, 0x48
ret
Function at 0x180017f60
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
jne 0x180017f73
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x180017fb0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
xor eax, eax
test eax, eax
jne 0x180017fc3
cmp qword [rsp + 0x70], 0
je 0x180017fdb
mov dword [rsp + 0x38], 1
jmp 0x180017fe3
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x180017ff9
mov eax, SafeArrayGetDim
jmp 0x180018078
xor eax, eax
test eax, eax
jne 0x180017fc9
mov dword [rsp + 0x34], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.18004e9b8
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
lea rax, [rcx + rax*2]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x30], 1
jne 0x180018011
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x58
ret

Function at 0x180018080
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x180018098
cmp qword [rsp + 0x60], 0
je 0x1800180b0
mov dword [rsp + 0x30], 1
jmp 0x1800180b8
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x1800180ce
mov eax, SafeArrayGetDim
jmp 0x18001810e
xor eax, eax
test eax, eax
jne 0x18001809e
mov rcx, qword [rsp + 0x60]
call fcn.18004e9b8
inc eax
mov eax, eax
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x48
ret
Function at 0x18001d600
Capabilities:
Delete registry key

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
call fcn.180023860
call fcn.1800238f0
cmp qword [rax + 0xf18], 0
je 0x18001d65d
cmp qword [0x1800d3af8], 0
je 0x18001d64f
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [0x1800d3af8]
mov dword [rsp + 0x20], eax
jmp 0x18001d657
mov dword [rsp + 0x20], 1
mov eax, dword [rsp + 0x20]
jmp 0x18001d66d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add rsp, 0x38
ret

Function at 0x18001d680
Capabilities:
Delete registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1800891a0]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x78], 0
jne 0x18001d6f6
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x18001d853
mov qword [rsp + 0x48], 0
mov eax, dword [rsp + 0x88]
or eax, 0x20006
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x3c], 1
mov eax, dword [rsp + 0x3c]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x18001d75e
xor r9d, r9d
lea r8, [0x18008b394]
lea rdx, [0x18008b39c]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088980]
mov eax, dword [rcx + rax]
xor edx, edx
mov ecx, SafeArrayGetElement
div rcx
mov rax, rdx
mov dword [rsp + 0x34], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088980]
movsxd rdx, dword [rsp + 0x34]
lea r8, [0x180088980]
mov eax, dword [rcx + rax]
mov dword [r8 + rdx*4], eax
mov eax, 4
imul rax, rax, 0
lea rcx, [0x180088980]
mov eax, dword [rcx + rax]
inc eax
mov ecx, 4
imul rcx, rcx, 0
lea rdx, [0x180088980]
mov dword [rdx + rcx], eax
cmp dword [rsp + 0x30], 0
jne 0x18001d84f
cmp qword [rsp + 0x48], 0
je 0x18001d84f
mov dword [rsp + 0x38], 1
mov eax, dword [rsp + 0x38]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x18001d80b
xor r9d, r9d
lea r8, [0x18008b394]
lea rdx, [0x18008b39c]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x18001d853
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18004e350
add rsp, 0x68
ret
Function at 0x180027990
Capabilities:
Get file attributes

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov eax, 8
mov word [rsp + 0x20], ax
movsx rax, word [rsp + 0x20]
lea rcx, [0x180088a10]
cmp dword [rcx + rax*4], 1
jne 0x1800279dc
movsx rax, word [rsp + 0x20]
lea rcx, [0x180088a10]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x20]
lea rdx, [0x180088a10]
mov dword [rdx + rcx*4], eax
cmp qword [rsp + 0x50], 0
je 0x1800279fa
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x180027a6f
mov dword [rsp + 0x30], 1
mov eax, dword [rsp + 0x30]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x180027a29
xor r9d, r9d
lea r8, [0x18008b394]
lea rdx, [0x18008b39c]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov eax, SafeArrayGetElement
mov word [rsp + 0x24], ax
movsx rax, word [rsp + 0x24]
lea rcx, [0x180088a10]
cmp dword [rcx + rax*4], 1
jne 0x180027a68
movsx rax, word [rsp + 0x24]
lea rcx, [0x180088a10]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x24]
lea rdx, [0x180088a10]
mov dword [rdx + rcx*4], eax
xor al, al
jmp 0x180027b18
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
and eax, 0x10
test eax, eax
je 0x180027a9a
cmp dword [rsp + 0x28], 0xffffffff
je 0x180027a9a
mov dword [rsp + 0x2c], 1
jmp 0x180027aa2
mov dword [rsp + 0x2c], 0
movzx eax, byte [rsp + 0x2c]
jmp 0x180027b18
add rsp, 0x48
ret
Function at 0x180028320
Capabilities:
Get file size
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x1800891a0]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x30], 0
xor edx, edx
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xffffffff
je 0x18002837b
cmp dword [rsp + 0x34], 0
ja 0x1800283a1
mov rcx, qword [rsp + 0xa0]
call fcn.18001c230
nop
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xa0]
jmp 0x18002858b
mov dword [rsp + 0x38], 0
mov edx, 1
lea rcx, [rsp + 0x70]
call fcn.18003cfc0
lea rcx, [rsp + 0x70]
call fcn.1800268e0
nop
mov dword [rsp + 0x40], 1
mov eax, dword [rsp + 0x40]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x1800283f2
xor r9d, r9d
lea r8, [0x18006fca8]
lea rdx, [0x18006fcb0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [rsp + 0x34]
inc eax
mov eax, eax
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.180024470
lea rcx, [rsp + 0x70]
call fcn.180011c00
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x18002847c
mov rcx, qword [rsp + 0xa0]
call fcn.18001c230
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x70]
call fcn.18001c640
mov rax, qword [rsp + 0xa0]
jmp 0x18002858b
mov eax, dword [rsp + 0x34]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x18002851a
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800284ca
cmp dword [rsp + 0x68], 0
jne 0x180028501
cmp qword [0x1800d33d0], 0
je 0x1800284e0
call qword [0x1800d33d0]
mov dword [rsp + 0x3c], eax
jmp 0x1800284e8
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x1800284ff
mov dword [rsp + 0x38], 0x1f
jmp 0x18002851a
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
jmp 0x180028485
cmp dword [rsp + 0x38], 0
je 0x18002854d
mov rcx, qword [rsp + 0xa0]
call fcn.18001c230
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x70]
call fcn.18001c640
mov rax, qword [rsp + 0xa0]
jmp 0x18002858b
mov eax, dword [rsp + 0x34]
mov r9d, dword [rsp + 0xb0]
mov r8d, eax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xa0]
call fcn.180026900
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x70]
call fcn.18001c640
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.18004e350
add rsp, 0x98
ret
Function at 0x18002cbf0
Capabilities:
Query or enumerate registry key

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2c8
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1800891a0]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov eax, dword [rsp + 0x2e8]
or eax, 0x2001f
mov dword [rsp + 0x4c], eax
mov rcx, qword [rsp + 0x2d8]
call fcn.18000b6b0
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x20], rcx
mov ecx, dword [rsp + 0x4c]
mov r9d, ecx
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x2d0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x18002cce3
cmp dword [rsp + 0x40], 2
je 0x18002ccd9
cmp dword [rsp + 0x40], 3
je 0x18002ccd9
mov dword [rsp + 0x50], 1
mov eax, dword [rsp + 0x50]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x18002ccb3
xor r9d, r9d
lea r8, [0x18008b394]
lea rdx, [0x18008b39c]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, qword [rsp + 0x2d8]
call fcn.180011c00
mov r9, rax
mov r8d, dword [rsp + 0x40]
lea rdx, [0x18008cb68]
mov ecx, 3
call fcn.180041480
mov eax, 0xffffffff
jmp 0x18002cde8
mov dword [rsp + 0x90], 0x104
mov dword [rsp + 0x44], 0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
lea r8, [rsp + 0xa0]
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x18002cdd6
mov r8, 0xffffffffffffffff
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x70]
call fcn.18001c170
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x2e0]
call fcn.180023cf0
nop
lea rcx, [rsp + 0x70]
call fcn.1800119b0
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x90], 0x104
mov dword [rsp + 0x48], 1
mov eax, dword [rsp + 0x48]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x18002cdd1
xor r9d, r9d
lea r8, [0x18008b394]
lea rdx, [0x18008b39c]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x18002ccf6
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.18004e350
add rsp, 0x2c8
ret
Function at 0x1800350e0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp qword [rsp + 0x58], 0
je 0x180035100
xor eax, eax
mov rcx, qword [rsp + 0x58]
mov word [rcx], ax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x28], 0
je 0x18003526b
mov rax, qword [rsp + 0x50]
add rax, 0x28
mov rcx, rax
call fcn.180011c00
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18003526b
mov rax, qword [rsp + 0x50]
add rax, 0x28
mov rcx, rax
call fcn.180011c00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
mov dword [rsp + 0x2c], eax
mov rcx, qword [rsp + 0x50]
add rcx, 0x28
call fcn.180011c00
mov ecx, dword [rsp + 0x2c]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, reloc.OLEAUT32.dll_SafeArrayDestroy
mov word [rsp + 0x20], ax
movsx rax, word [rsp + 0x20]
lea rcx, [0x180088dc0]
cmp dword [rcx + rax*4], 1
jne 0x1800351af
movsx rax, word [rsp + 0x20]
lea rcx, [0x180088dc0]
mov eax, dword [rcx + rax*4]
inc eax
movsx rcx, word [rsp + 0x20]
lea rdx, [0x180088dc0]
mov dword [rdx + rcx*4], eax
mov rax, qword [rsp + 0x50]
add rax, 0x28
mov rcx, rax
call fcn.180011c00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800351fd
mov rax, qword [rsp + 0x50]
add rax, 0x28
mov rcx, rax
call fcn.180011c00
mov r8d, 4
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1800351fd
mov dword [rsp + 0x28], 0
jmp 0x180035205
mov dword [rsp + 0x28], 1
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x30], 1
mov eax, dword [rsp + 0x30]
cdq
sub eax, edx
sar eax, 1
cmp eax, 0x32
jle 0x18003523c
xor r9d, r9d
lea r8, [0x180076424]
lea rdx, [0x18007642c]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
cmp qword [rsp + 0x58], 0
je 0x18003526b
cmp dword [rsp + 0x34], 0
je 0x180035257
mov eax, 0xffffffff
mov word [rsp + 0x24], ax
jmp 0x18003525e
xor eax, eax
mov word [rsp + 0x24], ax
mov rax, qword [rsp + 0x58]
movzx ecx, word [rsp + 0x24]
mov word [rax], cx
xor eax, eax
add rsp, 0x48
ret