joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004ba0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1405376e0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1405376c0]
test rbx, rbx
je 0x140004bec
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004be6
test eax, eax
jne 0x140004be6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004bbe
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004da0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004dc3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140004dc3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140004dc4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004dfe
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004df5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004e00
inc r8d
add rax, 0x28
jmp 0x140004ddc
xor eax, eax
ret

Function at 0x140004e71
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140533770]
mov r8, rcx
mov rcx, r9
call fcn.140004da0
test eax, eax
je 0x140004e9d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004dc4
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400c88b0
Capabilities:
Query or enumerate registry value

Disassembly:
cmp rdx, 0x1000
jb 0x1400c89f1
push rbx
sub rsp, 0x40
movabs rax, 0xffff800000000000
mov rbx, rdx
test rax, rdx
jne 0x1400c89ec
mov qword [rsp + 0x50], rdi
xor edi, edi
mov qword [rdx], rdi
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ole32.dll_StringFromIID]
test eax, eax
jne 0x1400c89e7
lea rax, [rsp + 0x38]
xor r8d, r8d
lea r9d, [rdi + 1]
mov qword [rsp + 0x20], rax
lea rdx, str.Interface
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400c89dc
mov rdx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
lea r9d, [rdi + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400c89d1
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400c89c6
cmp dword [rsp + 0x60], 1
jne 0x1400c89c6
mov edx, dword [rsp + 0x58]
xor ecx, ecx
inc edx
shr edx, 1
inc edx
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
lea rcx, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rbx], rax
mov qword [rsp + 0x28], rcx
xor edx, edx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400c89c6
mov rcx, qword [rbx]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rdi, qword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
Function at 0x140018588
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ebx, 1
mov dword [rax + 0x10], ebx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
and qword [rcx + 0x10], 0
and qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 0xf
mov byte [rcx], 0
mov dword [rax + 0x10], ebx
call qword [sym.imp.USER32.dll_GetClipboardOwner]
mov rcx, rax
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14001865a
mov ecx, ebx
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x140018653
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
test rax, rax
jne 0x140018636
call qword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
jne 0x14001865a
lea rdx, [0x14007a698]
lea rcx, str.error_log.txt
call fcn.140026530
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.read_clipboard____Error:_0x_X_n
mov rcx, rbx
call fcn.14001e308
mov rcx, rbx
call fcn.1400263dc
jmp 0x14001865a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdx, rax
mov rcx, rdi
call fcn.14001cedc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
mov rax, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140019fac
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor al, al
mov ecx, dword [rcx + 0x7c]
cmp ecx, 0xffffffff
je 0x14001a139
cmp ecx, 0x7c
je 0x14001a139
cmp ecx, 0x29
jne 0x140019ff7
cmp dword [rbx + 0x1c], 0
jne 0x14001a139
lea rdi, [rbx + 0x80]
test dword [rdi], 0x10000000
je 0x14001a152
jmp 0x14001a0ef
lea rdi, [rbx + 0x80]
cmp ecx, 0x2e
jne 0x14001a01e
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.14001c53c
mov rcx, rbx
call fcn.14001c594
jmp 0x14001a127
cmp ecx, 0x5c
jne 0x14001a07b
mov rcx, rbx
call fcn.14001c594
test byte [rdi], 0x80
je 0x14001a06e
mov al, byte [rbx + 0x78]
cmp al, 0x62
jne 0x14001a052
mov edx, 4
lea rcx, [rbx + 0x40]
call fcn.14001c53c
mov rcx, rbx
call fcn.14001c594
jmp 0x14001a12f
cmp al, 0x42
jne 0x14001a06e
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.14001c53c
mov rax, qword [rbx + 0x48]
xor dword [rax + 0xc], 1
jmp 0x14001a045
mov rcx, rbx
call fcn.14001a17c
jmp 0x14001a127
cmp ecx, 0x5b
jne 0x14001a09f
mov rcx, rbx
call fcn.14001c594
mov rcx, rbx
call fcn.14001a858
cmp dword [rbx + 0x7c], 0x5d
jne 0x14001a160
jmp 0x14001a011
cmp ecx, 0x28
jne 0x14001a0c3
mov rcx, rbx
call fcn.14001c594
mov rcx, rbx
call fcn.14001ccf8
cmp dword [rbx + 0x7c], 0x29
mov dil, al
jne 0x14001a152
jmp 0x14001a11a
cmp ecx, 0x5e
jne 0x14001a0d0
lea edx, [rcx - 0x5c]
jmp 0x14001a03c
cmp ecx, 0x24
jne 0x14001a0dd
lea edx, [rcx - 0x21]
jmp 0x14001a03c
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x14001a144
cmp ecx, 0x3f
je 0x14001a144
cmp ecx, 0x7b
je 0x14001a144
cmp ecx, 0x7d
jne 0x14001a0fe
test dword [rdi], 0x10000000
je 0x14001a16e
jmp 0x14001a10b
cmp ecx, 0x5d
jne 0x14001a10b
test dword [rdi], 0x10000000
je 0x14001a160
mov dl, byte [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.140019628
mov dil, 1
mov rcx, rbx
call fcn.14001c594
test dil, dil
je 0x14001a12f
mov rcx, rbx
call fcn.14001c608
mov ecx, dword [rbx + 0x7c]
mov al, 1
jmp 0x140019fbe
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 0xa
mov rcx, rbx
call fcn.14001ba04
int3
mov edx, 5
mov rcx, rbx
call fcn.14001ba04
int3
mov edx, 4
mov rcx, rbx
call fcn.14001ba04
int3
mov edx, 6
mov rcx, rbx
call fcn.14001ba04
int3

Function at 0x140020388
Capabilities:
Parse pe header

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

Function at 0x14002a4dc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002a2d8
Function at 0x140033eb4
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 0x140033ee4
xor eax, eax
jmp 0x140033fa7
mov rbp, rbx
cmp word [rax], si
je 0x140033f09
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140033ef0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140033eec
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.14003259c
movsxd r14, eax
test eax, eax
jne 0x140033f47
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140033edd
mov rcx, r14
call fcn.14002ea3c
mov rdi, rax
test rax, rax
jne 0x140033f60
xor ecx, ecx
call fcn.14002dcc4
jmp 0x140033f3c
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.14003259c
test eax, eax
jne 0x140033f91
mov rcx, rdi
call fcn.14002dcc4
jmp 0x140033f9b
xor ecx, ecx
call fcn.14002dcc4
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 0x140036cd4
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.14002d964
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 0x140036d75
cmp ebx, dword [rsp + 0x30]
je 0x140036d6e
test esi, esi
je 0x140036d6e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140036d49
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140036d56
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140036d33
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140036d5a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140036d77
mov eax, 1
jmp 0x140036d77
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003a59c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003a5b2
mov al, 1
jmp 0x14003a612
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003a5c3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003a610
mov ecx, dword [rcx + 0x18]
nop
call fcn.140034780
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003a610
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003a610
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003a610
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003a612
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14003bdc8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140097080]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14003be1f
cmp word [rdx], r13w
jne 0x14003be1f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14003be24
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14003bf49
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14003bf6a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14003be5d
mov rdx, r9
mov word [rbx], cx
jmp 0x14003be84
cmp r9, r8
jae 0x14003be94
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14003be3e
jmp 0x14003bf49
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003bf3e
cmp dword [rsp + 0x80], esi
je 0x14003bf3e
lea r8, [0x140097080]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14003bf16
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14003bee6
mov word [rbx], r13w
jmp 0x14003bf46
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14003bef3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14003bf46
cmp word [rsp + 0x70], r13w
jne 0x14003bf23
cmp rbx, r14
je 0x14003bee0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14003bce8
cmp word [rsp + 0x70], r13w
je 0x14003bf49
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140097080]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14003bf43
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14003bf49
Function at 0x14003c738
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.14003bce8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14003bce8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14003c888
cmp rax, 0xffffffffffffffff
je 0x14003c888
xor edi, edi
test rbp, rbp
jle 0x14003c833
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140030090
mov rbx, rax
test rax, rax
jne 0x14003c7c0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14003c829
mov edx, 0x8000
mov ecx, r14d
call fcn.14002b270
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.140037c1c
cmp eax, 0xffffffff
je 0x14003c809
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14003c7d0
mov edx, r15d
mov ecx, r14d
call fcn.14002b270
jmp 0x14003c829
cmp byte [rsi + 0x38], dil
je 0x14003c820
cmp dword [rsi + 0x34], 5
jne 0x14003c820
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14003c829
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002dcc4
jmp 0x14003c89c
jns 0x14003c89c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14003bce8
cmp rax, 0xffffffffffffffff
jne 0x14003c854
cmp byte [rsi + 0x30], dil
je 0x14003c89c
mov edi, dword [rsi + 0x2c]
jmp 0x14003c89c
mov ecx, r14d
call fcn.140034780
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14003c89c
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 0x14003c89c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14003c895
mov eax, dword [rsi + 0x2c]
jmp 0x14003c89a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14003bce8
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 0x1400010a0
Capabilities:
Enumerate processes
Execute command
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2b0
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
lea rcx, str.Waiting_for_meow...
call fcn.140001020
xor edx, edx
lea rcx, [rsp + 0x64]
mov r8d, 0x234
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x238
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
xor ebx, ebx
test eax, eax
je 0x14000113f
nop dword [rax]
lea rdx, str.ctfmon.exe
lea rcx, [rsp + 0x8c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov rcx, rdi
test eax, eax
je 0x140001229
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001110
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
lea rcx, [0x1400078f8]
mov dword [0x1400096f0], eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x1400012c9
lea rcx, str.win32u.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x1400012c9
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [0x1400096d8], rax
test rax, rax
je 0x1400012c9
lea rcx, str.win32u.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [0x1400096e0], rax
test rax, rax
je 0x1400012c9
mov rcx, qword [0x1400096d8]
lea rdx, str.NtUserRegisterErrorReportingDialog
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400096e8], rax
mov r8, rax
test rax, rax
jne 0x140001238
mov rcx, qword [0x1400096e0]
lea rdx, str.NtUserRegisterErrorReportingDialog
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400096e8], rax
mov r8, rax
test rax, rax
jne 0x140001238
lea rcx, str.The_driver_was_not_initialized
call fcn.140001020
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x68]
jmp 0x14000114a
movsxd rax, dword [0x1400096f0]
lea rdi, [rsp + 0x20]
mov qword [rsp + 0x28], rax
xor ecx, ecx
xorps xmm0, xmm0
mov qword [rsp + 0x20], 1
xor eax, eax
mov qword [rsp + 0x40], rbx
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
rep stosb byte [rdi], al
lea rcx, [rsp + 0x20]
call r8
mov rax, qword [rsp + 0x48]
mov qword [0x1400096f8], rax
test rax, rax
jne 0x1400012a9
lea rcx, str.The_driver_does_not_appear_to_be_loaded
call fcn.140001020
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str.The_driver_is_loaded
call fcn.140001020
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, str.The_librarys_was_not_initialized
call fcn.140001020
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140001d90
Capabilities:
Parse pe header

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

Function at 0x140001918
Capabilities:
Parse pe header

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

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

Function at 0x140a05058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140a051df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140a05089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a0506f
add dl, dl
jne 0x140a05096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a050f6
xor eax, eax
add dl, dl
jne 0x140a050a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a051ad
add dl, dl
jne 0x140a050b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a050c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a050d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a050dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a050ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a0507e
mov eax, 1
add dl, dl
jne 0x140a05106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a05113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a050fb
sub eax, ebx
mov ebx, 1
jne 0x140a0514c
mov ecx, 1
add dl, dl
jne 0x140a0512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a0513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a05123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a0507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a05168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a05175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a0515d
cmp eax, 0x7d00
jae 0x140a0519b
cmp eax, 0x500
jb 0x140a05196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a0507e
cmp eax, 0x7f
ja 0x140a0519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a0507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a051d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140a0507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20