joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140078650
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x40
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov qword [rsp + 0x20], rsi
test rcx, rcx
je 0x140078759
movzx eax, byte [rcx]
test al, al
je 0x140078759
cmp al, 0x5c
je 0x140078759
test rdi, rdi
je 0x140078759
xor edx, edx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
test eax, eax
je 0x140078755
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rsi, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140078759
lea r14, [rax + rdi]
mov rdi, rsi
mov qword [rsp + 0x30], rsi
nop dword [rax]
lea rdx, [0x1400f1a3c]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400786f0
mov byte [rax], 0
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
test eax, eax
je 0x140078721
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 2
jne 0x140078759
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x140078721
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140078759
test rbx, rbx
je 0x140078739
mov byte [rbx], 0x5c
inc rbx
mov qword [rsp + 0x28], rbx
mov rdi, rbx
mov qword [rsp + 0x30], rbx
cmp rdi, r14
jae 0x140078743
test rbx, rbx
jne 0x1400786d0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x20], 0
xor eax, eax
jmp 0x140078784
nop
test rsi, rsi
je 0x140078771
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x20], 0
mov eax, 1
jmp 0x140078784
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret
Function at 0x140079490
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9d, 4
xor r8d, r8d
lea rdx, [0x1400d7240]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400794c5
mov eax, 1
add rsp, 0x38
ret
xor eax, eax
jmp 0x1400794ce
add rsp, 0x38
ret

Function at 0x1400795c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1400b1008]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor eax, eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x34]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14007960d
cmp dword [rsp + 0x34], 4
je 0x140079629
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001ea0
add rsp, 0x48
ret
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001ea0
add rsp, 0x48
ret
Function at 0x14007a020
Capabilities:
Resume thread
Suspend thread
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x510
mov rax, qword [0x1400b1008]
xor rax, rsp
mov qword [rsp + 0x500], rax
movsxd r15, r9d
mov r12d, r8d
mov rdi, rdx
mov rsi, rcx
xor ebx, ebx
xor edx, edx
mov r8d, 0x4d0
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea r14d, [rbx + 1]
test rdi, rdi
je case.0x14007a0b7.0
mov rax, qword [rsp + 0x560]
test rax, rax
je case.0x14007a0b7.0
cmp byte [rax], bl
je case.0x14007a0b7.0
test rsi, rsi
je 0x14007a09b
cmp dword [rsi + 0x20888], ebx
cmove r14d, ebx
cmp r15d, 5
ja case.0x14007a0b7.0
lea rdx, [0x140000000]
mov ecx, dword [rdx + r15*4 + 0x7a1b0]
add rcx, rdx
jmp rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne case.0x14007a0b7.0
mov dword [rsp + 0x60], 0x10001f
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
setne bl
jmp case.0x14007a0b7.0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x14007a170
xor r8d, r8d
mov rdx, rdi
lea rcx, [0x140077680]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
test eax, eax
je 0x14007a170
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x14007a170
mov dword [rsp + 0x20], ebx
mov esi, 0x32
mov eax, 5
test r14d, r14d
cmovne esi, eax
mov edx, 0x32
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14007a170
mov eax, ebx
inc ebx
mov dword [rsp + 0x20], ebx
cmp eax, esi
jae 0x14007a155
jmp 0x14007a132
test r14d, r14d
jne 0x14007a170
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14007a170
mov ebx, 1
jmp case.0x14007a0b7.0
mov edx, r12d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, eax
mov eax, ebx
jmp 0x14007a187
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.140001ea0
mov rbx, qword [rsp + 0x540]
add rsp, 0x510
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14007a880
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1400b1008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r14, r8
mov rsi, rdx
xor r15d, r15d
mov qword [rsp + 0x30], r15
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14007a98a
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp rax, 0x30
jb 0x14007a98a
cmp dword [rsp + 0x68], 0x1000
jne 0x14007a98a
cmp qword [rsp + 0x48], rbx
jne 0x14007a98a
mov rcx, qword [rsp + 0x60]
cmp rcx, 0x1e000
ja 0x14007a98a
mov qword [rsp + 0x38], rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14007a98a
lfence
mov r8, qword [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x30]
mov rdx, r9
mov rcx, qword [rsp + 0x40]
call fcn.140077fa0
lfence
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x40]
mov qword [rsi], rax
mov rax, qword [rsp + 0x38]
mov qword [r14], rax
xor eax, eax
jmp 0x14007a9b1
nop
test rbx, rbx
je 0x14007a99e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0x30], r15
mov eax, 1
jmp 0x14007a9b1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140001ea0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rsi
ret

Function at 0x14007afc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1400b1008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
lea eax, [r9 + r9]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14007b020
cmp eax, 0xea
je 0x14007b020
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001ea0
add rsp, 0x48
ret
xor eax, eax
jmp 0x14007b029
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001ea0
add rsp, 0x48
ret
Function at 0x14007b8f0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rdi
sub rsp, 0x70
mov rax, qword [0x1400b1008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x30], 0xf4240
mov qword [rsp + 0x38], 0
xorps xmm0, xmm0
movsd qword [rsp + 0x28], xmm0
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14007b979
cmp qword [rsp + 0x48], 0
jne 0x14007b97e
jmp 0x14007ba67
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14007b999
jmp 0x14007ba67
mov rcx, qword [rsp + 0x30]
call fcn.140001530
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14007b9be
jmp 0x14007ba67
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
cvtsi2sd xmm0, rax
mulsd xmm0, qword [0x1400a6ec8]
cvtsi2sd xmm1, qword [rsp + 0x48]
divsd xmm0, xmm1
movsd qword [rsp + 0x28], xmm0
movsd xmm0, qword [rsp + 0x28]
comisd xmm0, xmmword [0x1400a6e18]
jbe 0x14007ba67
mov rax, qword [rsp + 0x30]
test rax, rax
jl 0x14007ba0d
cvtsi2sd xmm0, rax
jmp 0x14007ba26
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
movaps xmm0, xmm1
divsd xmm0, qword [rsp + 0x28]
xor eax, eax
comisd xmm0, xmmword [0x1400a6f10]
jb 0x14007ba57
subsd xmm0, qword [0x1400a6f10]
comisd xmm0, xmmword [0x1400a6f10]
jae 0x14007ba57
movabs rcx, 0x8000000000000000
add rax, rcx
cvttsd2si rcx, xmm0
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
jmp 0x14007ba75
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140001ea0
add rsp, 0x70
pop rdi
ret
Function at 0x14007cfb0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x470
mov rax, qword [0x1400b1008]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rdi, rcx
xor edx, edx
mov r8d, 0x3fc
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x50], eax
mov word [rsp + 0x54], ax
mov rsi, 0xffffffffffffffff
lea rsi, [rsi + 1]
cmp word [rdi + rsi*2], 0
jne 0x14007d005
lea r15, [rdi - 2]
lea r15, [r15 + rsi*2]
xor r12d, r12d
mov dword [rsp + 0x34], r12d
mov dword [rsp + 0x30], r12d
mov ebx, r12d
nop dword [rax + rax]
cmp ebx, 0x1a
jae 0x14007d16e
xor eax, eax
mov dword [rsp + 0x50], eax
mov word [rsp + 0x54], ax
lea eax, [rbx + 0x41]
mov dword [rsp + 0x20], eax
lea r9, [0x1400f4088]
mov edx, 3
lea r8, [rdx - 4]
lea rcx, [rsp + 0x50]
call fcn.140001140
mov word [rsp + 0x54], r12w
xor edx, edx
mov r8d, 0x3fc
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x1fe
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov r14d, eax
test eax, eax
jne 0x14007d0a2
inc ebx
mov dword [rsp + 0x34], ebx
jmp 0x14007d030
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
cmp rdi, rax
jne 0x14007d163
test rax, rax
je 0x14007d163
cmp r14d, 1
jbe 0x14007d16e
cmp r14d, 0x1fe
jae 0x14007d16e
lea eax, [r14 - 2]
lea rdx, [rdi + rax*2]
mov qword [rsp + 0x38], rdx
lea rcx, [rdi + 4]
mov qword [rsp + 0x40], rcx
mov rax, r15
sub rax, rdx
sar rax, 1
lea rbx, [rax*2 + 4]
mov qword [rsp + 0x48], rbx
cmp rdx, r15
jae 0x14007d16e
cmp rcx, r15
jae 0x14007d16e
cmp rcx, rdx
jae 0x14007d16e
test rbx, rbx
je 0x14007d16e
lea rax, [rsi + rsi]
cmp rbx, rax
jae 0x14007d16e
lfence
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [0x1400f3964]
mov edx, 3
lea r8, [rdx - 4]
mov rcx, rdi
call fcn.140001140
mov r8, rbx
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call sub.VCRUNTIME140.dll_memmove
mov dword [rsp + 0x30], 1
jmp 0x14007d17d
inc ebx
mov dword [rsp + 0x34], ebx
jmp 0x14007d030
nop
mov eax, 1
jmp 0x14007d186
xor eax, eax
jmp 0x14007d186
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140001ea0
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x14007d1c0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x868
mov rax, qword [0x1400b1008]
xor rax, rsp
mov qword [rsp + 0x850], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], eax
xor edx, edx
mov r8d, 0x7f8
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
nop
lea rdx, [rsp + 0x50]
mov ecx, 0x3fc
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14007d237
lea r8, [rsp + 0x20]
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x14007d237
test dword [rsp + 0x20], 0x455d47
jne 0x14007d237
xor eax, eax
jmp 0x14007d24b
nop
mov eax, 1
jmp 0x14007d24b
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140001ea0
add rsp, 0x868
ret
Function at 0x14007f400
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1400b1008]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, r9
mov r15, qword [rsp + 0xb0]
xor r12d, r12d
mov ebx, r12d
mov qword [r11 - 0x48], rbx
mov dword [r11 - 0x30], r12d
mov qword [r11 - 0x38], r12
mov qword [r11 - 0x28], r12
lea rax, [r11 - 0x30]
mov qword [r11 - 0x58], rax
mov qword [r11 - 0x60], r12
mov qword [r11 - 0x68], r12
mov r9d, 0xffff
lea r8, str.task
lea rdx, str.SYSTEMCurrentControlSetServicesUSER_ESRV_SVC_QUEENCREEK
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14007f510
mov edi, dword [rsp + 0x58]
add rdi, rdi
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x58], edi
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14007f510
mov r8, rdi
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r12
mov r9d, 0xffff
lea r8, str.task
lea rdx, str.SYSTEMCurrentControlSetServicesUSER_ESRV_SVC_QUEENCREEK
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14007f510
mov edi, dword [rsp + 0x58]
shr rdi, 1
mov qword [rsp + 0x48], rdi
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x14007f532
nop
test rbx, rbx
je 0x14007f524
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x40], r12
mov eax, 1
jmp 0x14007f579
mov r8, rdi
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x20], 0xffffffffffffffff
mov r9, rbx
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs_s]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x40], r12
mov qword [r14], rsi
mov qword [r15], rdi
xor eax, eax
jmp 0x14007f579
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140001ea0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140084cd0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov edi, r8d
mov rbx, rdx
mov dword [rsp + 0x20], 0
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [rsp + 0x20], eax
test eax, eax
je 0x140084d94
cmp word [rbx], 0
je 0x140084d94
lfence
lea rdx, [0x1400f6518]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x140084d2a
mov ecx, 0x57
mov word [rax + 4], cx
jmp 0x140084d94
lfence
lea rdx, [0x1400f64a8]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
mov rbx, rax
test rax, rax
je 0x140084d94
cmp edi, 2
jbe 0x140084d94
lea r8, [rdi*2 - 2]
cmp r8, 0x12
jb 0x140084d6f
movups xmm0, xmmword [0x1400f6438]
movups xmmword [rax], xmm0
movzx eax, word [reloc.WS2_32.dll_WSAStartup]
mov word [rbx + 0x10], ax
jmp 0x140084d8b
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov ecx, 0x57
mov word [rbx + 4], cx
mov eax, dword [rsp + 0x20]
jmp 0x140084d9e
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140084db0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov edi, r8d
mov rbx, rdx
mov dword [rsp + 0x20], 0
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [rsp + 0x20], eax
test eax, eax
je 0x140084e66
cmp byte [rbx], 0
je 0x140084e66
lfence
lea rdx, [0x1400f8128]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x140084e04
mov byte [rax + 2], 0x57
jmp 0x140084e66
lfence
lea rdx, [0x1400f8118]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rbx, rax
test rax, rax
je 0x140084e66
cmp edi, 2
jbe 0x140084e66
lea r8, [rdi - 1]
cmp r8, 9
jb 0x140084e46
movsd xmm0, qword [0x1400f8108]
movsd qword [rax], xmm0
movzx eax, byte [reloc.WS2_32.dll_WSAStartup]
mov byte [rbx + 8], al
jmp 0x140084e62
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov byte [rbx + 2], 0x57
mov eax, dword [rsp + 0x20]
jmp 0x140084e70
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140084e90
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov edi, r8d
mov rbx, rdx
mov dword [rsp + 0x20], 0
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [rsp + 0x20], eax
test eax, eax
je 0x140084f54
cmp word [rbx], 0
je 0x140084f54
lfence
lea rdx, [0x1400f6668]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x140084eea
mov ecx, 0x57
mov word [rax + 4], cx
jmp 0x140084f54
lfence
lea rdx, [0x1400f65f8]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
mov rbx, rax
test rax, rax
je 0x140084f54
cmp edi, 2
jbe 0x140084f54
lea r8, [rdi*2 - 2]
cmp r8, 0x12
jb 0x140084f2f
movups xmm0, xmmword [0x1400f6588]
movups xmmword [rax], xmm0
movzx eax, word [reloc.WS2_32.dll_WSAStartup]
mov word [rbx + 0x10], ax
jmp 0x140084f4b
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov ecx, 0x57
mov word [rbx + 4], cx
mov eax, dword [rsp + 0x20]
jmp 0x140084f5e
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x18000bcac
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 0x18000bcdc
xor eax, eax
jmp 0x18000bd9f
mov rbp, rbx
cmp word [rax], si
je 0x18000bd01
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000bce8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000bce4
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.18000bbcc
movsxd r14, eax
test eax, eax
jne 0x18000bd3f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000bcd5
mov rcx, r14
call fcn.180009414
mov rdi, rax
test rax, rax
jne 0x18000bd58
xor ecx, ecx
call fcn.18000a204
jmp 0x18000bd34
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.18000bbcc
test eax, eax
jne 0x18000bd89
mov rcx, rdi
call fcn.18000a204
jmp 0x18000bd93
xor ecx, ecx
call fcn.18000a204
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 0x180011490
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800114b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800114b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001190
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x78
mov rax, qword [0x14003d038]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
xor edx, edx
mov rax, qword [rsp + 0x28]
mov ecx, 0x400
div rcx
xor edx, edx
mov ecx, 0x400
div rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000b7c0
add rsp, 0x78
ret

Function at 0x140001210
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1048
call fcn.14000b760
sub rsp, rax
mov rax, qword [0x14003d038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
lea r8, [rsp + 0x20]
mov edx, 0x1000
lea rcx, [rsp + 0x30]
call sub.KERNEL32.dll_K32EnumProcesses
mov eax, dword [rsp + 0x20]
xor edx, edx
mov ecx, 4
div rcx
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14000b7c0
add rsp, 0x1048
ret

Function at 0x1400012b0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub rsp, 0x38
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_GetCursorPos]
xor eax, eax
cmp eax, 1
je 0x1400012f4
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x28], eax
jne 0x1400012f0
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x2c], eax
je 0x1400012f2
jmp 0x1400012f4
jmp 0x1400012bf
add rsp, 0x38
ret

Function at 0x140001300
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub rsp, 0x1c8
mov rax, qword [0x14003d038]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14002da58]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x58]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [rsp + 0x44], eax
movsxd rax, dword [rsp + 0x44]
mov rcx, rax
call fcn.14000b6cc
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x58]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rdx, [0x14002d454]
mov rcx, qword [rsp + 0x48]
call fcn.140011f90
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x1400013f8
xor eax, eax
jmp 0x14000142d
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140001400
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14000b7c0
add rsp, 0x1c8
ret