joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b800
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.14000720c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000b88a
cmp byte [rbp - 0x21], r15b
je 0x14000b885
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000b8c0
call fcn.140009908
test eax, eax
jne 0x14000b8ac
cmp byte [rbp - 0x21], r15b
je 0x14000b8a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000b8c0
cmp byte [rbp - 0x21], r15b
je 0x14000b8bd
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.1400067ec
test eax, eax
jne 0x14000b960
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000720c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000b8ff
cmp byte [rbp - 0x21], r15b
je 0x14000b934
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000b934
call fcn.140009908
test eax, eax
jne 0x14000b920
cmp byte [rbp - 0x21], r15b
je 0x14000b919
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000b934
cmp byte [rbp - 0x21], r15b
je 0x14000b931
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.1400067ec
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000b960
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000b963
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000b971
mov rcx, rdi
call fcn.14000679c
cmp byte [rbp + 0x3f], r15b
je 0x14000b980
mov rcx, qword [rbp + 0x27]
call fcn.14000679c
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 0x14000e7b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000e7d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000e7d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140005e84
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14004e988]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor eax, eax
mov rdi, rcx
mov rcx, qword [rcx]
mov r9d, 0x2001f
mov qword [rsp + 0x48], rax
xor r8d, r8d
mov qword [rsp + 0x50], rax
mov rsi, rdx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140005f87
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140005f00
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
test ebx, ebx
jne 0x140005f87
jmp 0x140005f2a
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140005e84
mov ebx, eax
test eax, eax
jne 0x140005f87
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x70]
and qword [rsp + 0x28], 0
xor edx, edx
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140005f10
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140005f7a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.140005fe0
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140005f97
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14002b7b0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006bc4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x14004e988]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r14, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x70], rbx
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140006c38
call fcn.140005434
mov ebx, eax
jmp 0x140006d68
xor r9d, r9d
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rdi, rax
test rax, rax
jne 0x140006c5c
call fcn.140005434
jmp 0x140006d5c
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140006c52
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x140006cae
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140006ca4
lea rcx, [rsp + 0x70]
call fcn.1400053e4
nop
mov eax, 0x8007000e
jmp 0x140006d81
mov ecx, eax
test eax, eax
je 0x140006ceb
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140006ce1
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140006ceb
lea rcx, [rsp + 0x70]
call fcn.140005408
mov rax, qword [rsp + 0x70]
jmp 0x140006cf5
mov ecx, 0x80070057
call fcn.140005db8
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140006d0c
test rax, rax
jne 0x140006d18
mov ebx, 0x8007000e
jmp 0x140006d5e
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140006c52
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140006a08
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140006d7f
lea rcx, [rsp + 0x70]
call fcn.1400053e4
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14002b7b0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r14
pop rdi
pop rsi
ret
Function at 0x14001b0a0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x280
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14004e988]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r14b, r8b
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
test rdx, rdx
jne 0x14001b0e7
mov eax, 0x80070057
jmp 0x14001b289
cmp qword [rcx + 0xd0], rbx
jne 0x14001b1b7
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll_memset
mov r8, qword [rdi + 0x7e]
cmp r8, 0xa
jae 0x14001b12a
mov r8d, 0x104
lea rdx, [rsp + 0x60]
lea rcx, str._SystemRoot_System32_ntoskrnl.exe
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x14001b164
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], 0x206
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov edx, 0x12c0db
mov r9d, 8
mov rcx, qword [rdi + 0xb0]
call fcn.1400145f4
test eax, eax
jns 0x14001b164
mov ecx, eax
call fcn.1400272cc
mov rcx, qword [rdi + 0xd0]
lea rax, [rsp + 0x60]
cmp rax, rcx
je 0x14001b19c
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea rcx, [rsp + 0x60]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rdi + 0xd0], rax
test rax, rax
jne 0x14001b19c
mov ecx, 0x8007000e
call fcn.140005db8
mov rcx, qword [rdi + 0xd0]
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x14001b1b7
mov eax, 0x80070490
jmp 0x14001b289
mov rcx, qword [rdi + 0xd0]
test r14b, r14b
je 0x14001b228
mov qword [rsp + 0x40], rbx
lea rdx, [rsp + 0x40]
call 0x140029b4c
mov edi, eax
mov eax, 0x80070490
cmp edi, 1
cmove edi, eax
test edi, edi
jns 0x14001b218
lea rax, [0x14004a050]
mov rcx, qword [0x14004a050]
cmp rcx, rax
je 0x14001b214
test byte [rcx + 0x1c], 1
je 0x14001b214
mov edx, 0x29
mov r9d, edi
lea r8, [0x1400366d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400020a4
mov eax, edi
jmp 0x14001b289
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsi], rax
jmp 0x14001b248
test rcx, rcx
je 0x14001b245
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov edx, eax
mov rcx, qword [rdi + 0xd0]
call qword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov rbx, rax
mov qword [rsi], rbx
jmp 0x14001b287
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14002b7b0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop r14
pop rdi
pop rsi
ret
Function at 0x14001c0ec
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xe8
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x14004e988]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov esi, r9d
mov r12, r8
mov r15d, edx
mov rbx, rcx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x38], edx
mov qword [rsp + 0x48], r8
mov dword [rsp + 0x40], r9d
mov dword [rcx + 0x88], edx
test byte [rcx + 0x8c], 0xc
je 0x14001c181
lea rax, [0x14004a050]
mov rcx, qword [0x14004a050]
cmp rcx, rax
je 0x14001c2f5
test byte [rcx + 0x1c], 4
je 0x14001c2f5
mov edx, 0x15
lea r8, [0x140036720]
mov rcx, qword [rcx + 0x10]
call fcn.140002048
jmp 0x14001c2f5
xor edi, edi
mov qword [rsp + 0x50], rdi
xor r14b, r14b
cmp qword [rcx + 0x90], rdi
je 0x14001c22a
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x14001c201
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test byte [0x14004d6dc], 1
je 0x14001c1d2
lea edx, [rdi + 0xa]
mov dword [rsp + 0x20], eax
lea r8, [0x140036d40]
mov rcx, qword [0x14004d6d0]
int3
movzx edx, bx
or edx, 0x80070000
test ebx, ebx
cmovle edx, ebx
lea rcx, [rsp + 0x80]
call fcn.14000217c
lea rdx, [0x140047918]
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll__CxxThrowException
mov rdi, qword [rsp + 0x58]
mov qword [rsp + 0x50], rdi
jmp 0x14001c22a
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001c252
cmp byte [rbx + 0xd8], 0
jne 0x14001c252
mov rax, qword [rcx]
mov r9d, esi
mov r8, r12
mov edx, r15d
mov rax, qword [rax + 0x18]
call qword [0x140032088]
cmp qword [rbx + 0x90], 0
je 0x14001c2f5
test r14b, r14b
jne 0x14001c2f5
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x14001c2d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test byte [0x14004d6dc], 1
je 0x14001c2a5
mov edx, ntohl
mov dword [rsp + 0x20], eax
lea r8, [0x140036d40]
mov rcx, qword [0x14004d6d0]
int3
movzx edx, bx
or edx, 0x80070000
test ebx, ebx
cmovle edx, ebx
lea rcx, [rsp + 0xa8]
call fcn.14000217c
lea rdx, [0x140047918]
lea rcx, [rsp + 0xa8]
call sub.msvcrt.dll__CxxThrowException
mov edx, dword [rsp + 0x48]
sub edx, edi
mov rcx, qword [rbx + 0x90]
int3
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14002b7b0
add rsp, 0xe8
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001f8b0
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x50
and qword [rax - 0x30], 0
xor r9d, r9d
mov rsi, rcx
mov dword [rax - 0x38], 0x48
or rdi, 0xffffffffffffffff
xor edx, edx
mov rcx, rdi
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
test rax, rax
jne 0x14001f91d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test byte [0x14004d6dc], 1
je 0x14001f9ae
mov dword [rsp + 0x68], eax
lea rax, [0x140036d0c]
inc rdi
cmp byte [rax + rdi], 0
jne 0x14001f90d
mov edx, ntohl
jmp 0x14001f96b
xor r9d, r9d
mov qword [rsp + 0x20], 0x48
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi], rax
test rax, rax
jne 0x14001f9be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test byte [0x14004d6dc], 1
je 0x14001f9ae
mov dword [rsp + 0x68], eax
lea rax, [0x140036d0c]
inc rdi
cmp byte [rax + rdi], 0
jne 0x14001f95d
mov edx, ntohl
and qword [rsp + 0x40], 0
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x38], 4
lea r8, [0x140036d10]
mov qword [rsp + 0x30], rcx
inc rdi
mov rcx, qword [0x14004d6d0]
movzx r9d, dx
mov edx, 0x2b
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_TraceMessage]
movzx edi, si
or edi, 0x80070000
test esi, esi
cmovle edi, esi
jmp 0x14001f9eb
mov rcx, qword [rsi + 8]
mov rax, rbx
xor ebx, ebx
mov qword [rsp + 0x68], rax
cmp rcx, rax
je 0x14001f9e9
test rcx, rcx
je 0x14001f9e5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsi + 8], rbx
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor edi, edi
test rbx, rbx
je 0x14001f9f9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14001fe94
Capabilities:
Check os version
Print debug messages

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [0x14004e988]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rcx, str.KERNEL32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14004f1a0], rax
test rax, rax
jne 0x14001fecf
xor eax, eax
jmp 0x140020029
test byte [0x14004d6dc], 4
je 0x14001ff26
lea rdx, [0x140036d0c]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], 0
jne 0x14001fee3
and qword [rsp + 0x30], 0
lea r8, str.DHQHZ
mov ecx, 0xa
inc rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
movzx r9d, cx
lea edx, [rcx + 0x21]
mov rcx, qword [0x14004d6d0]
call qword [sym.imp.ADVAPI32.dll_TraceMessage]
mov rax, qword [0x14004f1a0]
lea rdx, [0x140036d78]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
mov dword [rsp + 0x50], VarUI4FromDisp
mov r8d, VarUI4FromDisp
lea rcx, [rsp + 0x54]
mov rbx, rax
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14001ff74
lea rcx, str.ERROR_____GetVersionEx_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14001fec8
cmp dword [rsp + 0x54], 6
jb 0x14001ffab
test rbx, rbx
jne 0x14001ff89
lea rcx, str.ERROR_____GetProcAddress_HeapSetInformation__failed_n
jmp 0x14001ff69
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov rax, rbx
lea edx, [r9 + 1]
call qword [0x140032088]
test eax, eax
jne 0x14001ffab
lea rcx, str.ERROR_____HeapSetInformation_TerminationOnCorruption__n
jmp 0x14001ff69
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [rsp + 0x40], 2
test rbx, rbx
je 0x14001ffe8
mov rcx, rax
lea r8, [rsp + 0x40]
mov rax, rbx
mov r9d, 4
xor edx, edx
call qword [0x140032088]
test eax, eax
jne 0x14001ffe8
lea rcx, str.ERROR_____HeapSetInformation_failed_to_set_process_heap_to_LFH_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rax, [0x14004e9b8]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftRATNISDebug
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14002001f
and qword [0x14004e9b8], 0
jmp 0x140020024
call fcn.1400203b8
mov eax, 1
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14002b7b0
add rsp, 0x180
pop rbx
ret

Function at 0x140020240
Capabilities:
Check for time delay via gettickcount

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, 0x20
mov edi, r8d
mov esi, edx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
mov edx, esi
jmp 0x140020284
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r14d
cmp eax, edi
jae 0x140020296
mov edx, edi
sub edx, eax
cmp edx, esi
cmova edx, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
cmp eax, 0x102
je 0x14002026e
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400203b8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea rbp, str.ACTIVE_REGISTRATION_HASH_SIZE
xor edi, edi
mov rsi, rbp
mov rcx, qword [0x14004e9b8]
test rcx, rcx
je 0x14002045d
mov rdx, qword [rsi + 8]
lea rax, [rsp + 0x58]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140020414
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14002045d
mov rdx, qword [rsi]
lea rcx, [rdi + 1]
lea rcx, [rdi + rcx*2]
mov dword [rsp + 0x50], 4
lea rax, [rcx*8]
xor r9d, r9d
lea rcx, [rsp + 0x50]
add rax, rbp
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
add rsi, 0x18
cmp edi, 0x236
jb 0x1400203d7
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x140020a6c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov edi, dword [0x14004d648]
lea eax, [rdx + rdx]
and edi, 0x3fffffff
mov dword [0x14004d66c], 1
and dword [0x14004d660], 0
lea r14, [0x140036d0c]
mov esi, edx
mov dword [0x14004d670], eax
mov rcx, qword [0x14004d650]
lea rdx, [0x14004d658]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
jne 0x140020b31
test byte [0x14004d6dc], 1
je 0x140020b31
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
or rax, 0xffffffffffffffff
inc rax
cmp byte [r14 + rax], 0
jne 0x140020adf
and qword [rsp + 0x40], 0
lea rcx, [rsp + 0x68]
mov edx, 0x12
mov qword [rsp + 0x38], 4
mov qword [rsp + 0x30], rcx
lea r8, str.Ki_6
mov rcx, qword [0x14004d6d0]
inc rax
movzx r9d, dx
mov edx, 0x2b
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_TraceMessage]
mov rcx, qword [0x14004d680]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140020bc2
mov ebx, dword [0x14004d648]
and ebx, 0x3fffffff
cmp ebx, edi
jb 0x140020bb5
test byte [0x14004d6dc], 1
je 0x140020ba1
or rax, 0xffffffffffffffff
inc rax
cmp byte [r14 + rax], 0
jne 0x140020b64
and qword [rsp + 0x30], 0
lea r8, str.Ki_6
mov ecx, 0x13
inc rax
movzx r9d, cx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea edx, [rcx + 0x18]
mov rcx, qword [0x14004d6d0]
call qword [sym.imp.ADVAPI32.dll_TraceMessage]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
inc dword [0x14004d66c]
mov edi, ebx
jmp 0x140020ab0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x14002636c
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x40], 0xfffffffffffffffe
mov rbx, rdx
mov r15, rcx
mov esi, 0x2000000
mov qword [rsp + 0x20], rsi
xor edi, edi
mov r14d, 0x104
mov rdx, qword [rbx]
mov rax, qword [rbx + 8]
sub rax, rdx
sar rax, 1
mov ecx, 0xffffffff
cmp rax, rcx
jbe 0x1400263c7
mov eax, 0x8007000e
jmp 0x14002645b
cmp rdx, qword [rbx + 8]
cmove rdx, rbx
mov r8d, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1400263e3
xor eax, eax
jmp 0x14002645b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp eax, 0x7a
jne 0x14002644e
mov rax, qword [rbx + 8]
sub rax, qword [rbx]
sar rax, 1
cmp rax, rsi
jae 0x1400263bd
mov ecx, 0x2000000
sub rcx, rax
cmp rcx, r14
cmova rcx, r14
mov rdx, qword [rbx + 8]
sub rdx, qword [rbx]
sar rdx, 1
add rdx, rcx
mov rcx, rbx
call fcn.14000bb68
nop
jmp 0x140026442
test edi, edi
jns 0x1400263a6
mov eax, edi
jmp 0x14002645b
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x14002b675
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rax, rax
sub rcx, 0xd55f
add rax, rcx
add rax, 0xd55f
add rcx, 0xd55f
sub rsp, 0x3f0
sub rsp, 0x20
and spl, 0xf0
mov byte [rbp - 0xd], 0x56
mov byte [rbp - 0xc], 0x69
mov byte [rbp - 0xb], 0x72
mov byte [rbp - 0xa], 0x74
mov byte [rbp - 9], 0x75
mov byte [rbp - 8], 0x61
mov byte [rbp - 7], 0x6c
mov byte [rbp - 6], 0x41
mov byte [rbp - 5], 0x6c
mov byte [rbp - 4], 0x6c
mov byte [rbp - 3], 0x6f
mov byte [rbp - 2], 0x63
mov byte [rbp - 1], 0
and rcx, 0
add rcx, rsi
lea rdx, [rbp - 0xd]
call rax
sub rsp, 8
mov qword [rsp], 0
add rsp, 8
mov rcx, qword [rsp - 8]
mov rdx, 0x5aa1
mov r8, 0x3000
mov r9, 0x40
call rax
mov rcx, 0x441e
lea r9, [0x140027454]
add byte [rax - 0x7d], cl
invalid
dec rcx
mov dl, byte [r9 + rcx]
mov byte [rax + rcx], dl
test rcx, rcx
jne 0x14002b732
je 0x14002b749
insb byte [rdi], dx
cld
add byte [rax], al
je 0x14002b753
jne 0x14002b71d
lea rax, [0x14002ac46]
add rax, 0xb32
call rax
je 0x14002b6ee
push rsp
ror byte [rax - 0x39], cl
shl dword [rsi], 0x3e
add byte [rax], al
mov rcx, 0x3e26
mov r9d, 0x8d68
mov r10d, 0x92819200
lea eax, [rax]
add byte [rcx - 0x46], al
add byte [rdx - 0xb76d7f], dl
leave
dec rcx
xor byte [rax + rcx], r9b
add r9d, r10d
rol r9d, 1
test rcx, rcx
jne 0x14002b75c
add rax, 0x1ebd
mov rsp, rbp
mov rbp, qword [rsp]
add rsp, 8
ret

Function at 0x14002c100
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14002c14c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002c144
cmp dword [rcx + 0x3c], edx
jl 0x14002c144
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14002c144
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 0x14002c14c
mov rax, rdx
add rsp, 0x18
ret