joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180202d00
Capabilities:
Delete registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
jne 0x180202d38
xor al, al
jmp 0x180202e9e
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
movdqa xmm1, xmmword [0x1803e7600]
movdqu xmmword [rsp + 0x58], xmm1
xor r14d, r14d
mov word [rsp + 0x48], r14w
mov rdx, rbx
cmp qword [r8 + 0x18], 8
jb 0x180202d65
mov rdx, qword [r8]
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x1803e7600]
movdqu xmmword [rsp + 0x38], xmm1
mov word [rsp + 0x28], r14w
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x180202d90
lea rcx, [rsp + 0x28]
call fcn.180004ea0
nop
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x28]
mov rdx, rsi
call fcn.1802032f0
movzx ebp, al
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x180202e00
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180202dfb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180202dfb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
movdqa xmm0, xmmword [0x1803e7600]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], r14w
test bpl, bpl
je 0x180202e22
cmp byte [rdi], 0
je 0x180202e64
mov byte [rdi + 1], 1
mov bl, 1
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x180202e87
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180202e82
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180202e82
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp qword [rbx + 0x18], 8
jb 0x180202e6e
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x180202e22
xor bl, bl
jmp 0x180202e24
call fcn.180386950
movdqa xmm0, xmmword [0x1803e7600]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r14w
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180202ec0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
je 0x180202f44
mov r9d, dword [rcx + 4]
lea rax, [rsp + 0x48]
or r9d, 0x20019
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x20], rax
call fcn.180202930
test al, al
je 0x180202f18
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [rdi], 0
je 0x180202f2a
mov byte [rdi + 1], 1
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp qword [rbx + 0x18], 8
jb 0x180202f34
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x180202f18
mov rbx, qword [rsp + 0x40]
xor al, al
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180202f60
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x290
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r14d, r8d
mov rsi, rdx
mov rbp, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x180202fd9
mov r9d, r14d
lea rax, [rsp + 0x48]
or r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x180202ffa
cmp eax, 2
jne 0x18020315f
mov eax, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x290
pop r14
pop rsi
pop rbp
ret
mov qword [rsp + 0x288], rdi
mov rcx, rsi
mov qword [rsp + 0x280], r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
xor r15d, r15d
cmp word [rsi + rcx*2 - 2], 0x5c
lea rdi, [rsi + rcx*2]
je 0x180203035
mov eax, 0x5c
mov word [rdi], ax
add rdi, 2
mov word [rdi], r15w
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], r15
xor edx, edx
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x18020312b
mov qword [rsp + 0x2c8], rbx
lea rbx, [rsp + 0x60]
sub rbx, rdi
nop word [rax + rax]
mov edx, 0x208
mov rax, rdi
nop dword [rax + rax]
lea rcx, [rdx + 0x7ffffdf6]
test rcx, rcx
je 0x1802030c2
movzx ecx, word [rbx + rax]
test cx, cx
je 0x1802030c2
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x1802030a0
test rdx, rdx
lea rcx, [rax - 2]
mov r8d, r14d
mov rdx, rsi
cmovne rcx, rax
mov word [rcx], r15w
mov rcx, rbp
call fcn.180202f60
test eax, eax
je 0x180203123
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], r15
xor edx, edx
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x180203090
mov rbx, qword [rsp + 0x2c8]
mov word [rdi - 2], r15w
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov r15, qword [rsp + 0x280]
mov rdi, qword [rsp + 0x288]
test eax, eax
je 0x180202fd9
xor eax, eax
jmp 0x180202fde
Function at 0x180203170
Capabilities:
Delete registry key

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
jne 0x18020319f
xor al, al
jmp 0x1802031ea
mov r9d, dword [rcx + 4]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x4a8], rbp
or r9d, 0x20019
xor ebp, ebp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rbp
call fcn.180202930
test al, al
je 0x1802031e0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [rdi], bpl
je 0x180203205
mov byte [rdi + 1], 1
mov al, 1
mov rbp, qword [rsp + 0x4a8]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x470
pop rdi
pop rsi
pop rbx
ret
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x180203212
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x1802031e0
cmp qword [rbx + 0x18], 8
jb 0x180203229
mov rbx, qword [rbx]
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x412
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x40]
mov r9d, 0x208
sub rbx, rax
lea rdx, [rsp + 0x40]
nop
lea rax, [r9 + 0x7ffffdf6]
test rax, rax
je 0x180203272
movzx eax, word [rbx + rdx]
test ax, ax
je 0x180203272
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x180203250
mov r8d, dword [rdi + 4]
lea rax, [rdx - 2]
test r9, r9
mov rcx, rsi
cmovne rax, rdx
lea rdx, [rsp + 0x40]
mov word [rax], bp
call fcn.180202f60
test eax, eax
setne al
jmp 0x1802031e2
Function at 0x1802035e9
Capabilities:
Get file system object information

Disassembly:
test rcx, rcx
je 0x1802036ae
push rsi
push rdi
push r14
sub rsp, 0x300
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov rsi, r8
mov qword [rsp + 0x338], rbx
mov r14, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x2b8
call sub.VCRUNTIME140.dll_memset
mov ebx, 0xfffffffe
test r14, r14
je 0x18020365e
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x4009
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
mov edx, ebx
cmovne edx, dword [rsp + 0x38]
mov dword [r14], edx
test rsi, rsi
je 0x18020368b
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x400b
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
cmovne ebx, dword [rsp + 0x38]
mov dword [rsi], ebx
mov rbx, qword [rsp + 0x338]
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x300
pop r14
pop rdi
pop rsi
ret

Function at 0x180203b00
Capabilities:
Get file system object information

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x320
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor esi, esi
mov dword [rsp + 0x30], esi
test rdx, rdx
jne 0x180203b55
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
jmp 0x180203bb8
xor edx, edx
mov r8d, 0x2b8
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0x208
mov r9d, 0x2b8
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x180203ba0
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.180004ea0
nop
mov dword [rsp + 0x30], 1
mov rax, rbx
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.1803868f0
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180203bf0
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
mov word [rsp + 0x60], di
mov word [r11 - 0x20], di
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x180203c94
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x38]
call qword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
js 0x180203c84
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180203c84
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x60]
mov r8d, 0x8000
mov rdx, qword [rsp + 0x40]
call fcn.180203790
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180203c94
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x180203cb0
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.180004ea0
mov dword [rsp + 0x30], 1
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180203ce0
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rbx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1803868f0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rdi
ret
Function at 0x180207b30
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x58]
call fcn.180004ab0
nop
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jle 0x180207c28
mov eax, dword [rsp + 0x20]
shl eax, 1
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
inc eax
cdqe
mov qword [rsp + 0x38], rax
mov eax, 2
mov rcx, qword [rsp + 0x38]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180386e48
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x24], eax
jg 0x180207c14
movsxd rax, dword [rsp + 0x24]
xor ecx, ecx
mov rdx, qword [rsp + 0x30]
mov word [rdx + rax*2], cx
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.18000d5a0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.180386950
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x90]
call fcn.180004a40
mov eax, dword [rsp + 0x28]
or eax, 1
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x58]
call fcn.1800049c0
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x88
ret
Function at 0x180208040
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x18020805d
jmp 0x18020817c
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_GetLastActivePopup]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x18020808c
mov edx, 9
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_ShowWindow]
mov dword [rsp + 0x40], 0
xor r9d, r9d
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0x2000
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp dword [rsp + 0x40], 0x64
jb 0x1802080c6
mov r9d, 3
xor r8d, r8d
xor edx, edx
mov ecx, 0x2001
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x48], eax
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [rsp + 0x44], eax
mov r8d, 1
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, 0xfffffffffffffffe
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
xor r8d, r8d
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.USER32.dll_AttachThreadInput]
add rsp, 0x68
ret
Function at 0x180209e30
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx + 8]
mov r8, qword [rcx + 0x10]
cmp rax, r8
je 0x180209f25
mov qword [rsp + 0x30], rbx
nop word [rax + rax]
mov rbx, qword [rax]
test rbx, rbx
je 0x180209e5d
cmp dword [rbx + 0x1c], edx
je 0x180209e70
add rax, 8
cmp rax, r8
jne 0x180209e50
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
movzx eax, byte [rbx + 0x18]
test al, al
je 0x180209f20
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 8]
xorps xmm1, xmm1
mov ecx, eax
xorps xmm0, xmm0
cvtsi2sd xmm1, rcx
mov ecx, dword [rbx + 0xc]
cvtsi2sd xmm0, rcx
divsd xmm1, xmm0
comisd xmm1, xmmword [0x1803e72b8]
movsd qword [rbx + 0x10], xmm1
jb 0x180209ed0
movsd xmm1, qword [0x1803e72b8]
movabs rax, 0x3ff0000000000000
mov qword [rbx + 0x10], rax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x180209ef7
mov eax, edi
sub eax, dword [rbx + 0x38]
cmp eax, dword [rbx + 0x20]
jb 0x180209ef7
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
mov dword [rbx + 0x38], edi
movsd xmm0, qword [rbx + 0x10]
ucomisd xmm0, qword [0x1803e72b8]
mov rdi, qword [rsp + 0x20]
jp 0x180209f20
jne 0x180209f20
mov rax, qword [rbx]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
jmp qword [rax + 8]
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x180213950
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor edi, edi
mov rbx, rcx
mov qword [rcx], rdi
cmp qword [0x1804ce800], rdi
jne 0x1802139db
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x20a
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rax, [rsp + 0x30]
mov word [rsp + 0x236], di
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], di
jne 0x1802139c0
lea rdx, [rsp + 0x30]
lea rcx, [0x1804ce7f0]
call fcn.180004ea0
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1803868f0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x180213a80
Capabilities:
Check os version
Get session user name

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x260
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rsi, rcx
mov eax, dword [0x1804dd0d8]
test eax, eax
jle 0x180213acd
inc eax
mov dword [0x1804dd0d8], eax
mov al, 1
jmp 0x180213c2d
xor bpl, bpl
xor r14d, r14d
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
lea ecx, [r14 + 1]
call fcn.180386914
mov rbx, rax
mov qword [rsp + 0x30], rax
mov byte [rax], bpl
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x44]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], 0x11c
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180213b24
cmp dword [rsp + 0x44], 6
setae al
mov byte [rbx], al
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
call fcn.180176de0
movzx ebx, al
lea rcx, [rsp + 0x30]
call fcn.180175d90
test bl, bl
je 0x180213c16
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x180213c16
lea rdx, str.ImpersonateLoggedOnUser
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call rax
test eax, eax
je 0x180213c0b
inc dword [0x1804dd0d8]
mov rcx, qword [rsi]
test rcx, rcx
je 0x180213b97
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], rbx
mov rbx, r14
mov bpl, 1
cmp qword [0x1804ce820], rbx
jne 0x180213c0b
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0x104
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov word [rsp + 0x246], r14w
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180213bf0
lea rdx, [rsp + 0x40]
lea rcx, [0x1804ce810]
call fcn.180004ea0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x180213c1b
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x180213c29
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bpl
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1803868f0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180213cc0
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0xb8], rbx
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ebp, r8d
mov r14, rdx
mov r15, rcx
xor r12d, r12d
mov ebx, r12d
mov qword [rsp + 0x20], rbx
lea r13, [r12 - 1]
cmp r8d, 0x3fe
jbe 0x180213d8e
lea ecx, [rbp + 2]
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.180386e48
mov r14, rax
mov rbx, rax
mov qword [rsp + 0x20], rax
mov rdx, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x180213d5a
cmp eax, ebp
ja 0x180213d5a
mov ecx, eax
mov word [rbx + rcx*2], r12w
lea ecx, [rax + 1]
mov word [rbx + rcx*2], r12w
mov ebp, eax
jmp 0x180213dbd
test r14, r14
je 0x180213d67
mov rcx, r14
call fcn.180386950
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1803868f0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, rbp
add rax, rax
cmp rax, 0x800
jae 0x180213ef6
mov word [rax + rdx], r12w
lea ecx, [rbp + 1]
add rcx, rcx
cmp rcx, 0x800
jae 0x180213ef0
mov word [rcx + rdx], r12w
mov eax, r12d
mov edi, r12d
test ebp, ebp
je 0x180213ed5
mov rsi, r14
nop
cmp word [rsi], 0
jne 0x180213ec7
cmp eax, edi
je 0x180213ec7
lea rdx, [r14 + rax*2]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r12w
mov r8, r13
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x180213e10
lea rcx, [rsp + 0x30]
call fcn.180004ea0
nop
mov rdx, qword [r15 + 8]
cmp qword [r15 + 0x10], rdx
je 0x180213e64
mov qword [rdx + 0x10], r12
mov qword [rdx + 0x18], r12
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rdx + 0x10], xmm1
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r12w
add qword [r15 + 8], 0x20
jmp 0x180213e72
lea r8, [rsp + 0x30]
mov rcx, r15
call fcn.18006c280
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x180213eb0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180213eab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180213ee9
call fcn.180386950
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r12w
lea eax, [rdi + 1]
inc edi
add rsi, 2
cmp edi, ebp
jb 0x180213dd0
test rbx, rbx
je 0x180213ee2
mov rcx, rbx
call fcn.180386950
mov al, 1
jmp 0x180213d69
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386f78
int3
call fcn.180386f78
int3
Function at 0x180216df0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], VarUI4FromDisp
mov r8d, VarUI4FromDisp
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180216e61
mov eax, dword [rsp + 0x24]
cmp eax, 5
jae 0x180216e47
cmp eax, 4
jne 0x180216e61
cmp dword [rsp + 0x28], 0x5a
jb 0x180216e61
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x158
ret
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x158
ret
Function at 0x18021a3f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx edx, dx
lea r8, [0x1803c3e98]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x18021a519
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
je 0x18021a519
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18021a519
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x18021a519
mov edx, esi
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x18021a519
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x18021a510
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor esi, esi
lea r8, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x40], rsi
mov rcx, rdi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x18021a510
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18021a510
call fcn.1801ed6c0
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rbx, rbx
je 0x18021a4fd
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x10], esi
test ecx, ecx
je 0x18021a4fd
mov rax, qword [rbx]
lea edx, [rsi + 1]
mov rcx, rbx
call qword [rax]
mov ebx, esi
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret