joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180060dec
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180060e1c
xor eax, eax
jmp 0x180060edf
mov rbp, rbx
cmp word [rax], si
je 0x180060e41
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180060e28
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180060e24
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18005f690
movsxd r14, eax
test eax, eax
jne 0x180060e7f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180060e15
mov rcx, r14
call fcn.18005ceec
mov rdi, rax
test rax, rax
jne 0x180060e98
xor ecx, ecx
call fcn.18005a03c
jmp 0x180060e74
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18005f690
test eax, eax
jne 0x180060ec9
mov rcx, rdi
call fcn.18005a03c
jmp 0x180060ed3
xor ecx, ecx
call fcn.18005a03c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180063c80
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.180057400
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 0x180063d21
cmp ebx, dword [rsp + 0x30]
je 0x180063d1a
test esi, esi
je 0x180063d1a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180063cf5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180063d02
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180063cdf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180063d06
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180063d23
mov eax, 1
jmp 0x180063d23
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180067dc8
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18005c974
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18005c974
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180067f18
cmp rax, 0xffffffffffffffff
je 0x180067f18
xor edi, edi
test rbp, rbp
jle 0x180067ec3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18005aacc
mov rbx, rax
test rax, rax
jne 0x180067e50
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180067eb9
mov edx, 0x8000
mov ecx, r14d
call fcn.180067c4c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180059d34
cmp eax, 0xffffffff
je 0x180067e99
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180067e60
mov edx, r15d
mov ecx, r14d
call fcn.180067c4c
jmp 0x180067eb9
cmp byte [rsi + 0x38], dil
je 0x180067eb0
cmp dword [rsi + 0x34], 5
jne 0x180067eb0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180067eb9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18005a03c
jmp 0x180067f2c
jns 0x180067f2c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18005c974
cmp rax, 0xffffffffffffffff
jne 0x180067ee4
cmp byte [rsi + 0x30], dil
je 0x180067f2c
mov edi, dword [rsi + 0x2c]
jmp 0x180067f2c
mov ecx, r14d
call fcn.1800615d4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180067f2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180067f2c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180067f25
mov eax, dword [rsi + 0x2c]
jmp 0x180067f2a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18005c974
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x100db48
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x01023178]
jne 0x100db3a
rol rcx, 0x10
test cx, 0xffff
jne 0x100db36
repz ret
ror rcx, 0x10
jmp 0x100db48
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
lea rsi, [0x010232c0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rdi, qword [0x010233b8]
lea rdx, [rsp + 0x60]
mov rcx, rdi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x100dbbb
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x70]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x010233b8]
jmp 0x100dbd7
mov r11, qword [rsp + 0x58]
lea rax, [rsp + 0x58]
add rax, 8
mov qword [0x010233b8], r11
mov qword [0x01023358], rax
mov rax, qword [0x01023178]
mov qword [0x01023230], r11
mov qword [0x01023340], rbx
mov dword [0x01023220], 0xc0000409
mov dword [0x01023224], 1
mov qword [rsp + 0x78], rax
mov rax, qword [0x01023180]
xor ecx, ecx
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x01002e78]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x100dbd7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x01023178]
jne 0x100db3a
rol rcx, 0x10
test cx, 0xffff
jne 0x100db36
repz ret
ror rcx, 0x10
jmp 0x100db48
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
lea rsi, [0x010232c0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rdi, qword [0x010233b8]
lea rdx, [rsp + 0x60]
mov rcx, rdi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x100dbbb
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x70]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x010233b8]
jmp 0x100dbd7
mov r11, qword [rsp + 0x58]
lea rax, [rsp + 0x58]
add rax, 8
mov qword [0x010233b8], r11
mov qword [0x01023358], rax
mov rax, qword [0x01023178]
mov qword [0x01023230], r11
mov qword [0x01023340], rbx
mov dword [0x01023220], 0xc0000409
mov dword [0x01023224], 1
mov qword [rsp + 0x78], rax
mov rax, qword [0x01023180]
xor ecx, ecx
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x01002e78]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x100dcc0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
mov edi, esi
xor eax, eax
lock cmpxchg qword [0x010263f0], rbx
je 0x100dd06
cmp rax, rbx
jne 0x100dcf9
mov edi, 1
jmp 0x100dd06
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100dce0
mov eax, dword [0x010263ec]
cmp eax, 1
jne 0x100dd1b
lea ecx, [rax + 0x1e]
call fcn.010b7000
jmp 0x100dd5a
mov eax, dword [0x010263ec]
test eax, eax
jne 0x100dd50
mov dword [0x010263ec], 1
lea rdx, [0x010014c0]
lea rcx, [0x010014a8]
call sub.MSVCR80.dll__initterm_e
test eax, eax
je 0x100dd5a
mov eax, 0xff
jmp 0x100de3b
mov dword [0x010237b4], 1
mov eax, dword [0x010263ec]
cmp eax, 1
jne 0x100dd82
lea rdx, [0x010014a0]
lea rcx, [0x01001480]
call sub.MSVCR80.dll__initterm
mov dword [0x010263ec], 2
test edi, edi
jne 0x100dd8d
xchg qword [0x010263f0], rsi
cmp qword [0x01026408], 0
je 0x100ddb6
lea rcx, [0x01026408]
call fcn.0100e370
test eax, eax
je 0x100ddb6
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x01026408]
mov rcx, qword [sym.imp.MSVCR80.dll___initenv]
mov rax, qword [0x01023798]
mov qword [rcx], rax
mov r8, qword [0x01023798]
mov rdx, qword [0x010237a0]
mov ecx, dword [0x01023790]
call fcn.0100d9e0
mov dword [0x010237b0], eax
cmp dword [0x01023794], 0
jne 0x100ddf7
mov ecx, eax
call qword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x010237b4], 0
jne 0x100de0c
call qword [sym.imp.MSVCR80.dll__cexit]
mov eax, dword [0x010237b0]
jmp 0x100de3b
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
sub rsp, 0x28
call fcn.0100da5c
add rsp, 0x28
jmp 0x100dcc0

Function at 0x100eaf0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
xor eax, eax
cmp qword [0x010237d0], rax
mov qword [rsp + 0x30], rax
jne 0x100eb65
xor ecx, ecx
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x100eb34
lea rdx, [0x01002f88]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x100eb34
lea rcx, [rsp + 0x30]
call rax
jmp 0x100eb46
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x100eb48
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x100eb82
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
js 0x100eb77
mov rax, qword [rsp + 0x30]
mov qword [0x010237d0], rax
lea rcx, [fcn.0100e850]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
add rsp, 0x28
ret
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
lea r8, [0x01003178]
lea rdx, [0x01003030]
mov r9d, 0x210010
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, 1
call qword [sym.imp.MSVCR80.dll_exit]
int3
Function at 0x100ebe0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
sub rsp, 0x268
mov rax, qword [0x01023178]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rcx, qword [rcx]
mov rsi, rdx
mov rax, r8
lea rdx, [rsp + 0x34]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x34], 0x104
mov qword [rsp + 0x20], rdx
mov rdx, rax
mov dword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x100eca1
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x100ec7e
cmp ecx, 2
jbe 0x100ec88
cmp ecx, 7
jne 0x100ec7e
test al, 1
jne 0x100ec7e
mov ecx, eax
shr ecx, 1
cmp ecx, 1
jb 0x100ec7e
mov rdx, rax
shr rdx, 1
cmp word [rsp + rdx*2 + 0x3e], 0
jne 0x100ec7e
cmp ecx, 1
jbe 0x100eca8
cmp word [rsp + rdx*2 + 0x3c], 0
je 0x100eca8
mov eax, 0xd
jmp 0x100ed3a
test al, 1
jne 0x100ec97
shr rax, 1
cmp word [rsp + rax*2 + 0x3e], 0
je 0x100eca8
mov eax, 0xd
jmp 0x100ed3a
mov word [rsp + 0x40], 0
test ebx, ebx
jne 0x100ed54
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x260], rdi
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
mov rdi, rcx
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
test rax, rax
mov rdx, rax
mov qword [rsi], rax
je 0x100ed30
test rdi, rdi
je 0x100ed30
cmp rdi, 0x7fffffff
ja 0x100ed30
lea r8, [rsp + 0x40]
mov ecx, 0x7ffffffe
sub rcx, rdi
sub r8, rax
nop
lea rax, [rcx + rdi]
test rax, rax
je 0x100ed22
movzx eax, word [r8 + rdx]
test ax, ax
je 0x100ed22
mov word [rdx], ax
add rdx, 2
sub rdi, 1
jne 0x100ed00
jmp 0x100ed27
test rdi, rdi
jne 0x100ed2b
sub rdx, 2
mov word [rdx], 0
mov rdi, qword [rsp + 0x260]
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.0100db20
add rsp, 0x268
pop rsi
pop rbx
ret
mov eax, ebx
jmp 0x100ed3a
Function at 0x100f6a0
Capabilities:
Get file size
Persist via application shimming
Write file on windows

Disassembly:
push rbp
push rsi
push r12
sub rsp, 0x70
mov rbp, rcx
mov rcx, qword [rcx + 0x70]
mov r12d, r8d
mov rsi, rdx
call fcn.0100e720
cmp dword [rbp], 0
je 0x100f8e0
mov eax, dword [rbp + 0x30]
test dword [rsp + 0xb0], eax
je 0x100f8e0
mov qword [rsp + 0x98], rbx
xor ebx, ebx
test rsi, rsi
jne 0x100f6f1
lea rax, [0x010035a8]
mov qword [rbp + 0x60], rax
jmp 0x100f74b
or rcx, 0xffffffffffffffff
mov qword [rsp + 0xa0], rdi
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
mov rdi, qword [rsp + 0xa0]
not rcx
lea rax, [rsi + rcx*2 - 4]
mov ecx, ebx
cmp rax, rsi
jbe 0x100f747
nop
cmp ecx, 3
jge 0x100f7c3
nop
nop
sub rax, 2
cmp word [rax], 0x5c
je 0x100f73f
cmp rax, rsi
ja 0x100f730
add ecx, 1
cmp rax, rsi
ja 0x100f720
mov qword [rbp + 0x60], rsi
cmp dword [rbp + 0x18], ebx
mov rax, qword [rsp + 0xb8]
mov dword [rbp + 0x58], r12d
mov qword [rbp + 0x68], rax
mov eax, dword [rsp + 0xc0]
mov dword [rbp + 0x54], eax
je 0x100f8d1
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x30], rbx
lea rcx, [0x01001570]
test rax, rax
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x100080
cmovne rcx, rax
xor r9d, r9d
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov qword [rbp + 8], rax
jne 0x100f7d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x01003510]
jmp 0x100f8c6
cmp rax, rsi
jbe 0x100f747
add rax, 2
mov qword [rbp + 0x60], rax
jmp 0x100f74b
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea edx, [r9 + 1]
mov rcx, rax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x64], ebx
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_LockFileEx]
test eax, eax
jne 0x100f83c
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 8], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x01003440]
jmp 0x100f8c6
mov rcx, qword [rbp + 8]
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x100f888
cmp qword [rsp + 0x48], rbx
jne 0x100f888
mov rcx, qword [rbp + 8]
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x90]
mov r8d, 2
mov byte [rsp + 0x90], 0xff
mov byte [rsp + 0x91], 0xfe
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + 8]
mov r9d, 2
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x48], rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x100f8d1
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 8], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x01003370]
mov r8d, eax
mov rcx, rbp
call fcn.0100f1b0
mov rbx, qword [rsp + 0x98]
mov dword [rbp + 0x50], 1
xor eax, eax
add rsp, 0x70
pop r12
pop rsi
pop rbp
ret
Function at 0x1019220
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp], 0xffffffff
mov rax, qword [rsp + 0x20]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
sub rcx, 1
mov qword [rsp + 0x28], rcx
test rax, rax
jbe 0x1019298
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
mov ecx, dword [rsp]
xor ecx, eax
mov eax, ecx
and eax, 0xff
cdqe
lea rcx, [0x01005040]
mov edx, dword [rsp]
shr edx, 8
and edx, 0xffffff
mov eax, dword [rcx + rax*4]
xor eax, edx
mov dword [rsp], eax
mov rax, qword [rsp + 8]
add rax, 1
mov qword [rsp + 8], rax
jmp 0x101923f
mov eax, dword [rsp]
add rsp, 0x18
ret

Function at 0x1019560
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x78]
shl rax, 1
mov dword [rsp + 0x30], eax
lea r8, [0x01001570]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.01007950
mov eax, dword [rsp + 0x30]
cmp rax, qword [rsp + 0x78]
jae 0x10195cb
mov ecx, 0x57
call fcn.01007060
jmp 0x10196b9
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x10196a8
cmp dword [rsp + 0x34], 1
jne 0x1019698
mov eax, dword [rsp + 0x30]
xor edx, edx
mov ecx, 2
div rcx
mov rax, rdx
test rax, rax
jne 0x1019698
mov eax, dword [rsp + 0x30]
cmp rax, 2
jb 0x1019698
mov eax, dword [rsp + 0x30]
xor edx, edx
mov ecx, 2
div rcx
sub rax, 1
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
movzx eax, word [rax + rcx*2]
test eax, eax
jne 0x101965c
jmp 0x1019696
mov rax, qword [rsp + 0x40]
add rax, 1
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x48], rax
jae 0x1019688
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
mov word [rax + rcx*2], 0
jmp 0x1019696
mov ecx, 0x7a
call fcn.01007060
mov dword [rsp + 0x38], eax
jmp 0x10196a6
mov ecx, 0xb
call fcn.01007060
mov dword [rsp + 0x38], eax
jmp 0x10196b5
mov ecx, dword [rsp + 0x3c]
call fcn.01007060
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
add rsp, 0x58
ret
Function at 0x14000543c
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
sub rsp, 0x58
rdtsc
and qword [0x14000d918], 0
and qword [0x14000d908], 0
shl rdx, 0x20
or rax, rdx
btr eax, 0x1f
mov qword [0x14000d928], rax
call fcn.14009d000
mov qword [0x14000d900], rax
mov rdx, rax
test rax, rax
je 0x14000548d
mov eax, 1
mov qword [0x14000d910], rax
mov qword [0x14000d920], rax
jmp 0x14000549d
and qword [0x14000d910], 0
and qword [0x14000d920], 0
mov rax, rdx
neg rax
sbb ecx, ecx
xor eax, eax
not ecx
and ecx, 0x8007000e
test rdx, rdx
cmove eax, ecx
test eax, eax
js 0x1400054fd
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x20]
and dword [rsp + 0x40], 0
xor r9d, r9d
mov ecx, 0xb9
mov dword [rsp + 0x34], 0x64
mov qword [rsp + 0x20], 8
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 0x10]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
xor eax, eax
add rsp, 0x58
ret

Function at 0x140005504
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, qword [0x14000d900]
jmp 0x14000555b
mov rdi, rsi
mov rsi, qword [rsi + 0xfbd0]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea rcx, [rdi + 0xfbe0]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_rtlsupport_l1_1_0.dll_RtlDeleteFunctionTable]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualFree]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
dec qword [0x14000d910]
test rsi, rsi
jne 0x14000551c
and qword [0x14000d900], rsi
lea rax, [0x140000000]
and dword [rsp + 0x20], esi
lea r8d, [rsi + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], 9
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov ecx, 0xb9
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400072c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000730c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140007304
cmp dword [rcx + 0x3c], edx
jl 0x140007304
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140007304
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000730c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400011c0
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rdx, [0x140005860]
lea rcx, str.Name:__s_n
call fcn.140001070
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r8d, 0xf01ff
lea rdx, [0x140005860]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
je 0x140001239
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0xf01ff
lea rdx, [0x140005860]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
je 0x14000126f
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rdx, str.HardwareAcceleration
lea rcx, str._OK__Unloaded__s_driver..._n
call fcn.140001070
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140001bf0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1400024f8
Capabilities:
Parse pe header

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

Function at 0x140018118
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x408b50
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x0042f090], 0
je 0x408bee
cmp word [0x0042f3a0], 0xd7b2
jne 0x408b83
cmp dword [0x0042f3a8], 0
jbe 0x408b83
lea rcx, [0x0042f398]
call qword [0x0042f3c0]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x0042b628]
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x00408c24]
call fcn.00409ab0
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x408c10
cmp byte [0x0042a03a], 0
jne 0x408c10
xor rcx, rcx
lea rdx, [0x0042b628]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40b290
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00433c78]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00433ca0], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00433c70], al
cmp byte [0x00433c70], 0
je 0x40b32f
lea rcx, [0x0040b334]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040b34e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00433c58], rax
lea rcx, [0x0040b334]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040b36c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00433c60], rax
lea rcx, [0x0040b334]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040b38a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00433c68], rax
add rsp, 0x28
ret