joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002a3a4
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rdi
sub rsp, 0x50
xor ebp, ebp
mov rbx, rdx
mov rdx, rcx
mov qword [rax - 0x20], rbp
mov dword [rax - 0x28], ebp
mov rdi, r8
mov dword [rax - 0x30], 3
lea r9d, [rbp + 7]
lea rcx, [rax - 0x18]
mov r8d, 0x80000000
mov qword [rax - 0x18], rbp
mov qword [rax - 0x38], rbp
call fcn.14001c898
cmp qword [rsp + 0x40], rbp
je 0x14002a497
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x68], rbp
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov r11, qword [rsp + 0x68]
mov dword [rsp + 0x78], r11d
cmp rdi, rbp
je 0x14002a41c
mov dword [rdi], r11d
jmp 0x14002a421
lea rdi, [rsp + 0x78]
cmp rbx, rbp
jne 0x14002a44d
lea edx, [r11 + 0x10]
lea rcx, [rsp + 0x48]
call fcn.1400632b0
mov rbx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rbp
call fcn.14005b520
cmp rbx, rbp
je 0x14002a48c
mov r8d, dword [rdi]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x68]
mov rdx, rbx
mov dword [rsp + 0x68], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11d, dword [rsp + 0x68]
cmp r11d, ebp
cmovl r11d, ebp
xor edx, edx
movsxd rcx, r11d
lea r8d, [rdx + 6]
mov dword [rdi], r11d
add rcx, rbx
call fcn.14010c6c0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x14002a8c0
Capabilities:
Get common file path
Set environment variable

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
lea rbx, [0x14019cf50]
mov qword [rsp + 0x48], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov edx, 0x20a
lea rcx, [rsp + 0x40]
call fcn.140063580
nop
mov rdx, qword [rsp + 0x40]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x1401478fa]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov r8, qword [rsp + 0x40]
lea rdx, str._CD
lea rcx, [0x14019c170]
call fcn.140061290
nop
lea rcx, [rsp + 0x40]
call fcn.14005b520
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x30
pop rbx
ret

Function at 0x14002ac68
Capabilities:
Parse pe header

Disassembly:
mov r10, r8
mov r9, rcx
cmp r8, 0x40
jae 0x14002ac77
xor eax, eax
ret
mov eax, 0x5a4d
mov qword [rcx + 0x18], rdx
cmp word [rdx], ax
jne 0x14002ac74
movsxd r8, dword [rdx + 0x3c]
mov eax, r10d
lea rcx, [r8 + 0x108]
cmp rax, rcx
jb 0x14002ac74
lea rax, [r8 + rdx]
mov qword [r9 + 0x20], rax
cmp dword [rax], 0x4550
jne 0x14002ac74
mov ecx, 0x2000
test word [rax + 0x16], cx
je 0x14002ac74
test byte [rax + 0x16], 2
je 0x14002ac74
mov ecx, 0xf0
cmp word [rax + 0x14], cx
jne 0x14002ac74
lea rdx, [rax + 0x108]
xor r8d, r8d
mov qword [r9 + 0x28], rdx
cmp r8w, word [rax + 6]
jae 0x14002acfb
add rdx, 0x10
mov eax, dword [rdx + 4]
add eax, dword [rdx]
cmp rax, r10
ja 0x14002ac74
mov rax, qword [r9 + 0x20]
inc r8d
add rdx, 0x28
movzx ecx, word [rax + 6]
cmp r8d, ecx
jl 0x14002acdd
mov eax, 1
ret
Function at 0x14002aeb0
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
xor edi, edi
cmp qword [0x14019c058], rdi
je 0x14002af2e
cmp cl, dil
je 0x14002af2e
mov rcx, qword [0x14019c240]
cmp word [rcx], di
je 0x14002af2e
test byte [0x14019c373], 2
je 0x14002af03
call fcn.14010d9c8
mov rdx, qword [0x14019c240]
mov rcx, qword [0x14019c058]
lea r9, [rsp + 0x50]
mov r8d, eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x14002af2e
call fcn.14010d9c8
mov rdx, qword [0x14019c240]
mov rcx, qword [0x14019c058]
lea r8d, [rax + rax]
lea r9, [rsp + 0x48]
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [0x14019c240]
mov edx, 0x10000
call fcn.1400635c0
mov rax, qword [0x14019c240]
mov word [rax], di
mov dword [0x14019c248], edi
mov dword [0x14019c24c], 0x10000
add rsp, 0x30
pop rdi
ret

Function at 0x14002b4fc
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x30
and qword [rax - 0x10], 0
and qword [rax + 0x20], 0
and qword [rax - 0x18], 0
mov ebx, r8d
mov edi, edx
lea r9, [rax - 0x18]
lea r8, [rax + 0x20]
lea rdx, [rax - 0x10]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test ebx, ebx
je 0x14002b536
cdqe
jmp 0x14002b543
mov rax, qword [rsp + 0x58]
test edi, edi
cmovne rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14002b56c
Capabilities:
Get disk size

Disassembly:
xor edx, edx
lea r8d, [rdx + 1]
jmp fcn.14002b4fc

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov edi, edx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ebx, [rdi + rax]
cmp edi, 0x4e20
jb 0x14002bb40
xor ecx, ecx
call fcn.14005d2e0
test edi, edi
jg 0x14002bb51
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002bc09
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, ebx
sub ecx, eax
test ecx, ecx
jle 0x14002bc09
mov edi, 0x64
mov al, byte [0x1401958af]
test al, al
jle 0x14002bc09
cmp ecx, edi
mov r9d, ecx
mov eax, 0x3e8
cmova r9d, edi
cmp ecx, 0x7d0
lea rdx, [rsp + 0x30]
cmova r9d, eax
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x20], 0x4bf
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x14002bbeb
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, ebx
sub ecx, eax
test ecx, ecx
jle 0x14002bbf7
lea rcx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 3
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14002bbf7
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov r11b, byte [0x1401958af]
test r11b, r11b
jg 0x14002bba8
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, ebx
sub ecx, eax
test ecx, ecx
jg 0x14002bb68
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x14002bc1c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x20
mov r13, rcx
mov ebp, edx
xor r15d, r15d
lea rcx, [rsp + 0x68]
mov edx, 0x325
mov r12, r8
mov edi, r15d
mov esi, r15d
call fcn.140063580
mov rbx, qword [rsp + 0x68]
mov ecx, 0x324
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov rcx, r13
call qword [sym.imp.USER32.dll_CharUpperW]
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharUpperW]
cmp word [rbx], r15w
je 0x14002bcb9
add ebp, 0x10
mov rcx, rbx
call fcn.14002b550
cmp eax, ebp
jb 0x14002bcea
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 2
je 0x14002bce2
cmp eax, 1
jne 0x14002bcea
movzx eax, word [rbx]
mov edi, 1
mov word [r12 + 2], ax
movzx eax, word [r13]
cmp word [rbx], ax
jb 0x14002bcea
mov esi, edi
lea rcx, [rsp + 0x68]
call fcn.14005b520
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
cmp esi, r15d
cmovne edi, esi
mov eax, edi
add rsp, 0x20
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
movzx eax, word [rbx]
mov word [r12], ax
mov rcx, rbx
call fcn.14010d9c8
inc eax
lea rbx, [rbx + rax*2]
cmp word [rbx], r15w
je 0x14002bcb9
jmp 0x14002bc80

Function at 0x14002c560
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140197b10]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [0x140147ec0]
mov rbp, rcx
lea rcx, [rsp + 0x30]
mov qword [rcx], rax
mov eax, dword [0x140147ec8]
xor sil, sil
mov dword [rcx + 8], eax
xor dil, dil
movsx eax, dil
lea rcx, [rsp + 0x30]
add ax, 0x41
mov word [rsp + 0x30], ax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x14002c62c
movsx ebx, sil
lea r9, [rsp + 0x30]
lea rdx, str.HKLMSYSTEMCurrentControlSetControlSession_ManagerEnvironmentCDROM_u_s
lea rcx, [rsp + 0x40]
mov r8d, ebx
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x40]
lea rcx, [0x14019c170]
xor r8d, r8d
call fcn.14008eab0
lea r9, [rsp + 0x30]
lea rdx, str.CDROM_u
lea rcx, [rsp + 0x40]
mov r8d, ebx
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
lea rcx, [0x14019c170]
inc sil
call fcn.140061290
inc dil
cmp dil, 0x1a
jl 0x14002c5aa
test sil, sil
jle 0x14002c659
and qword [rsp + 0x20], 0
lea rdx, str.THREAD_Envi
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
call fcn.14004d38c
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14010bcc0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14002cb48
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
mov r8, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
test rax, rax
je 0x14002cb6f
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x14002cb90
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x140197b10]
xor rax, rsp
mov qword [rsp + 0x130], rax
and dword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.SHLWAPI.dll_StrToIntExW]
cmp dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
setne bl
call qword [sym.imp.USER32.dll_GetKeyboardState]
test bl, bl
je 0x14002cbe0
test byte [rsp + 0xc0], 1
je 0x14002cbea
jmp 0x14002cc0c
test byte [rsp + 0xc0], 1
je 0x14002cc0c
xor r9d, r9d
mov dl, 0x45
mov cl, 0x90
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_keybd_event]
xor r9d, r9d
mov dl, 0x45
lea r8d, [r9 + 3]
mov cl, 0x90
call qword [sym.imp.USER32.dll_keybd_event]
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14010bcc0
add rsp, 0x140
pop rbx
ret

Function at 0x14002cc28
Capabilities:
Persist via run registry key

Disassembly:
push rbp
push rdi
push r12
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov r12b, dl
mov rbx, rcx
lea rcx, [rsp + 0x78]
call fcn.140063500
nop
lea rcx, [rsp + 0x70]
call fcn.140063500
nop
mov edx, 0x2c
lea rcx, [rbx + 2]
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov rbp, rax
xor edi, edi
cmp rax, rdi
je 0x14002cd7d
mov word [rax], di
mov byte [rsp + 0x20], 1
xor r9d, r9d
lea r8, [rsp + 0x78]
lea rdx, [rbx + 2]
lea rcx, [0x14019c170]
call fcn.14006d870
mov rbx, qword [rsp + 0x78]
mov qword [rsp + 0x60], rbx
lea rdx, [rbp + 2]
mov byte [rsp + 0x20], 1
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rcx, [0x14019c170]
call fcn.14006d870
mov rbp, qword [rsp + 0x70]
cmp r12b, dil
je 0x14002cd08
lea rcx, [rsp + 0x60]
call fcn.140029d28
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call fcn.14010d9c8
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
lea r9d, [rdi + 1]
mov r8, rbp
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call qword [0x14019c378]
jmp 0x14002cd70
mov rcx, rbx
call fcn.14010d9c8
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
lea r8, str.RegisteredOwner
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rbx, 0xffffffff80000002
mov rcx, rbx
call qword [0x14019c378]
mov rcx, rbp
call fcn.14010d9c8
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
mov r9d, 1
lea r8, str.RegisteredOrganization
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, rbx
call qword [0x14019c378]
nop
lea rcx, [rsp + 0x70]
call fcn.14005b520
nop
jmp 0x14002cd8d
lea rcx, [rsp + 0x70]
call fcn.14005b520
nop
mov edi, 1
lea rcx, [rsp + 0x78]
call fcn.14005b520
mov eax, edi
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r12
pop rdi
pop rbp
ret
xor edx, edx
jmp 0x14002cc28
Function at 0x14002cdb0
Capabilities:
Persist via run registry key

Disassembly:
push rbp
push rdi
push r12
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov r12b, dl
mov rbx, rcx
lea rcx, [rsp + 0x78]
call fcn.140063500
nop
lea rcx, [rsp + 0x70]
call fcn.140063500
nop
mov edx, 0x2c
lea rcx, [rbx + 2]
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov rbp, rax
xor edi, edi
cmp rax, rdi
je 0x14002cd7d
mov word [rax], di
mov byte [rsp + 0x20], 1
xor r9d, r9d
lea r8, [rsp + 0x78]
lea rdx, [rbx + 2]
lea rcx, [0x14019c170]
call fcn.14006d870
mov rbx, qword [rsp + 0x78]
mov qword [rsp + 0x60], rbx
lea rdx, [rbp + 2]
mov byte [rsp + 0x20], 1
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rcx, [0x14019c170]
call fcn.14006d870
mov rbp, qword [rsp + 0x70]
cmp r12b, dil
je 0x14002cd08
lea rcx, [rsp + 0x60]
call fcn.140029d28
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call fcn.14010d9c8
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
lea r9d, [rdi + 1]
mov r8, rbp
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call qword [0x14019c378]
jmp 0x14002cd70
mov rcx, rbx
call fcn.14010d9c8
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
lea r8, str.RegisteredOwner
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rbx, 0xffffffff80000002
mov rcx, rbx
call qword [0x14019c378]
mov rcx, rbp
call fcn.14010d9c8
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
mov r9d, 1
lea r8, str.RegisteredOrganization
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, rbx
call qword [0x14019c378]
nop
lea rcx, [rsp + 0x70]
call fcn.14005b520
nop
jmp 0x14002cd8d
lea rcx, [rsp + 0x70]
call fcn.14005b520
nop
mov edi, 1
lea rcx, [rsp + 0x78]
call fcn.14005b520
mov eax, edi
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r12
pop rdi
pop rbp
ret
xor edx, edx
jmp 0x14002cc28
Function at 0x14002d0e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor r13d, r13d
mov rsi, r9
mov rbx, r8
mov r12, rdx
mov rdi, rcx
cmp qword [r9], r13
jne 0x14002d13b
mov qword [r9], rbx
movzx eax, word [rcx + 0x70]
cmp word [r8], ax
je 0x14002d13b
mov rcx, qword [r9]
movzx eax, word [rcx]
cmp ax, word [rdi + 0x78]
je 0x14002d13b
cmp ax, word [rdi + 0x72]
je 0x14002d13b
add rcx, 2
mov qword [r9], rcx
movzx eax, word [rdi + 0x70]
cmp word [rcx], ax
jne 0x14002d119
mov rbp, qword [r9]
jmp 0x14002d153
movzx eax, word [rbx]
cmp ax, word [rdi + 0x7a]
je 0x14002d14f
cmp ax, word [rdi + 0x7c]
jne 0x14002d158
add rbx, 2
cmp rbx, rbp
jbe 0x14002d140
sub rbp, rbx
mov rcx, r12
sar rbp, 1
lea edx, [rbp + 6]
call fcn.1400635c0
mov r11, qword [r12]
jmp 0x14002d182
movzx eax, word [rbx]
xor ax, word [rdi + 0xc]
mov word [r11], ax
add r11, 2
add rbx, 2
cmp rbx, qword [rsi]
jb 0x14002d16f
mov word [r11], r13w
mov word [r11 + 2], r13w
mov word [r11 + 4], r13w
cmp byte [0x1401958a8], r13b
mov rbx, qword [r12]
jle 0x14002d1b2
cmp byte [rdi + 0x10], r13b
jne 0x14002d1b2
mov edx, ebp
mov rcx, rbx
call fcn.14002d00c
cmp byte [rsp + 0x60], r13b
jne 0x14002d1c1
mov rcx, rbx
call fcn.14002b47c
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x14002d1e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub r9d, 1
mov r10, rdx
js 0x14002d227
movzx r11d, word [rcx + 0xc]
movzx ecx, word [r8]
movzx edx, word [r10]
add r10, 2
lea eax, [rcx - 0x41]
xor dx, r11w
add r8, 2
cmp ax, 0x19
ja 0x14002d20f
add cx, 0x20
lea eax, [rdx - 0x41]
cmp ax, 0x19
ja 0x14002d21c
add dx, 0x20
sub cx, dx
jne 0x14002d22a
sub r9d, 1
jns 0x14002d1ee
xor eax, eax
ret
movzx eax, cx
ret
Function at 0x14002d610
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
sub rsp, 0x320
mov rax, qword [0x140197b10]
xor rax, rsp
mov qword [rsp + 0x310], rax
and dword [rsp + 0x34], 0
or dword [rsp + 0x30], 0xffffffff
and dword [rsp + 0x3c], 0
cmp byte [0x14019c268], 0
mov rbx, rcx
mov dword [rsp + 0x38], 4
jne 0x14002d725
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x3c]
lea r8, str.SysStartuped
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
lea rdx, str.SOFTWAREPELOGON
mov ebp, 1
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov byte [0x14019c268], bpl
call qword [0x14019bf60]
cmp dword [rsp + 0x34], 0
jne 0x14002d725
lea r8d, [rbp + 0x24]
lea rdx, [rsp + 0x40]
mov r9d, ebp
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rdx, str.SysStartup.ini
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x40]
call fcn.1400cf470
mov r10d, dword [rsp + 0x30]
lea r9d, [rbp + 3]
test eax, eax
lea rax, [rsp + 0x30]
lea r8, str.SysStartuped
cmovne r10d, ebp
lea rdx, str.SOFTWAREPELOGON
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], r10d
call qword [0x14019c378]
cmp dword [rsp + 0x30], ebp
jne 0x14002d725
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140047384
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.14010bcc0
mov rbx, qword [rsp + 0x338]
add rsp, 0x320
pop rbp
ret

Function at 0x14002d88c
Capabilities:
Log keystrokes via application hook

Disassembly:
sub rsp, 0x28
cmp qword [0x14019c030], 0
jne 0x14002d8bc
mov r8, qword [0x14019c040]
xor r9d, r9d
lea rdx, [0x14002d748]
lea ecx, [r9 + 0xd]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x14019c030], rax
add rsp, 0x28
ret

Function at 0x14002de88
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140197b10]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov esi, edx
mov ebx, ecx
test ecx, ecx
jne 0x14002dec1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
lea rcx, [rsp + 0x28]
xor edi, edi
xor edx, edx
and dword [rsp + 0x24], edi
mov r8d, 0x230
mov dword [rsp + 0x20], 0x238
call fcn.14010c6c0
lea ecx, [rdi + 2]
mov edx, ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rbp, rax
call sub.KERNEL32.dll_Process32FirstW
jmp 0x14002df10
cmp dword [rsp + 0x28], ebx
je 0x14002df16
lea rdx, [rsp + 0x20]
mov rcx, rbp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14002defd
jmp 0x14002df1a
mov edi, dword [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
dec esi
mov ebx, edi
test esi, esi
jg 0x14002dec1
mov eax, edi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14010bcc0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14002e098
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r9
mov rbx, r8
mov rsi, rcx
cmp edx, 1
je 0x14002e0cf
cmp edx, 2
jne 0x14002e100
mov r8d, 0x104
mov rdx, r9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rbx, rdi
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x14002e0e1
mov rcx, rbx
call fcn.14010d9e4
lea rcx, [rsi + 2]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, [0x14019c170]
mov r8, rbx
mov rdx, rsi
call fcn.140061290
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14002e1ec
Capabilities:
Set environment variable

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov byte [0x14019c181], 1
mov edx, 0x411
lea rcx, [rsp + 0x40]
call fcn.140063580
nop
xor edx, edx
mov r8d, 0x822
mov rcx, qword [rsp + 0x40]
call fcn.14010c6c0
mov rbx, qword [rsp + 0x40]
add rbx, 0x410
mov r8d, 0x104
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r8, str.PE_IDBASE
mov edx, 0x1000
lea rdi, [0x14019c170]
mov rcx, rdi
call fcn.140065f20
lea r8, str.WM_PE_BASE
mov edx, 0x5000
mov rcx, rdi
call fcn.140065f20
lea r8, str.PE_MENU_IDBASE
mov edx, 0x100
mov rcx, rdi
call fcn.140065f20
mov rdx, rbx
lea rcx, [0x140148402]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov r8, rbx
lea rdx, str.MyName
mov rcx, rdi
call fcn.140061290
xor edx, edx
lea r8d, [rdx + 0x5c]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
test rax, rax
je 0x14002e2e5
lea rbx, [rax + 2]
mov rdx, rbx
lea rcx, [0x1401483ea]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov r8, rbx
lea rdx, str.MyName0
mov rcx, rdi
call fcn.140061290
xor r8d, r8d
xor edx, edx
lea rcx, str.Desktop
call fcn.14002e110
xor r8d, r8d
xor edx, edx
lea rcx, str.Favorites
call fcn.14002e110
xor r8d, r8d
xor edx, edx
lea rcx, str.Programs
call fcn.14002e110
xor r8d, r8d
xor edx, edx
lea rcx, str.SendTo
call fcn.14002e110
xor r8d, r8d
xor edx, edx
lea rcx, str.Personal
call fcn.14002e110
xor r8d, r8d
lea rdx, str.Start_Menu
lea rcx, [0x140147410]
call fcn.14002e110
xor r8d, r8d
lea rdx, str.Cache
lea rcx, str.IECache
call fcn.14002e110
xor r8d, r8d
xor edx, edx
lea rcx, str.Startup
call fcn.14002e110
lea r8, str.MicrosoftInternet_ExplorerQuick_Launch
lea rdx, str.AppData
lea rcx, str.QuickLaunch
call fcn.14002e110
nop
lea rcx, [rsp + 0x40]
call fcn.14005b520
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14002e3f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1500
call fcn.140127d30
sub rsp, rax
mov rax, qword [0x140197b10]
xor rax, rsp
mov qword [rsp + 0x14f0], rax
lea rbx, str.SystemRoot
xor edi, edi
mov rcx, qword [rbx]
mov eax, 0x26
mov word [rsp + 0x90], di
mov word [rsp + 0x20], ax
lea rdx, [rsp + 0x22]
movsx eax, byte [rcx]
inc rcx
mov word [rdx], ax
add rdx, 2
cmp ax, di
jne 0x14002e438
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x22]
mov r8d, 0xa28
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x20]
lea rcx, [0x14019c170]
call fcn.140061290
lea rax, [0x1401958e0]
add rbx, 8
cmp rbx, rax
jl 0x14002e41e
mov rcx, qword [rsp + 0x14f0]
xor rcx, rsp
call fcn.14010bcc0
mov rbx, qword [rsp + 0x1510]
add rsp, 0x1500
pop rdi
ret

Function at 0x14002e6d0
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14002e728
lea rdx, [rsp + 0x30]
lea rcx, str.PECMDpecmd_cmd
mov r8d, 0x11
call fcn.14005b600
test eax, eax
je 0x14002e706
mov eax, 1
jmp 0x14002e72a
lea rdx, [rsp + 0x30]
lea rcx, str.PECMDpecmd_cmd2
mov r8d, 0x12
call fcn.14005b600
test eax, eax
je 0x14002e728
mov eax, 2
jmp 0x14002e72a
xor eax, eax
add rsp, 0x28
ret