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

Disassembly:
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov rdi, rax
test rax, rax
jne 0x140006f9a
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call fcn.140006a70
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140006fd0
Capabilities:
Get thread local storage value
Identify system language via api
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov edi, ecx
mov ecx, dword [0x14002ee00]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140007027
lea ecx, [rax + 0x40]
mov edx, 0xffff
call qword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov rbx, rax
test rax, rax
jne 0x140007018
lea rax, str._out_of_memory_for_error_message_
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov ecx, dword [0x14002ee00]
mov rdx, rax
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
call qword [sym.imp.KERNEL32.DLL_GetUserDefaultLangID]
mov qword [rsp + 0x30], 0
mov r8d, edi
xor edx, edx
mov ecx, 0x1200
movzx r9d, ax
mov dword [rsp + 0x28], 0xffff
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.DLL_FormatMessageW]
test eax, eax
jne 0x1400070b5
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov r8d, edi
xor edx, edx
mov ecx, 0x1200
mov dword [rsp + 0x28], 0xffff
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.DLL_FormatMessageW]
test eax, eax
jne 0x1400070b5
lea r9, str.system_error__lu
or r8, 0xffffffffffffffff
mov edx, 0xffff
mov rcx, rbx
mov dword [rsp + 0x20], edi
call fcn.140019e88
test eax, eax
jns 0x1400070b5
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400070d0
Capabilities:
Identify system language via api

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
call qword [sym.imp.KERNEL32.DLL_GetUserDefaultLangID]
mov qword [rsp + 0x30], 0
movzx r9d, ax
lea rax, [rsp + 0x58]
mov r8d, ebx
xor edx, edx
mov ecx, 0xb00
mov dword [rsp + 0x28], 0xffff
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_FormatMessageW]
test eax, eax
jne 0x140007185
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov r8d, ebx
xor edx, edx
mov ecx, 0xb00
mov dword [rsp + 0x28], 0xffff
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_FormatMessageW]
test eax, eax
jne 0x140007185
call qword [sym.imp.KERNEL32.DLL_GetProcessHeap]
xor edx, edx
lea r8d, [rdx + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
lea r9, str.system_error__lu
or r8, 0xffffffffffffffff
mov edx, 0xffff
mov rcx, rax
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x58], rax
call fcn.140019e88
test eax, eax
jns 0x140007185
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rax, qword [rsp + 0x58]
add rsp, 0x40
pop rbx
ret
Function at 0x140007190
Capabilities:
Access the windows event log

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0xd8
movzx edi, cx
lea rdx, str.nssm
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140007237
xor r9d, r9d
lea r8, [rsp + 0x100]
add r8, 0xfffffffffffffff8
mov edx, r9d
mov rcx, qword [r8 + 8]
add r8, 8
test rcx, rcx
je 0x1400071f1
cmp edx, 0xf
jge 0x1400071f1
movsxd rax, edx
inc edx
mov qword [rsp + rax*8 + 0x50], rcx
jmp 0x1400071d3
mov qword [rsp + 0x40], r9
movsxd rax, edx
xor r8d, r8d
mov qword [rsp + rax*8 + 0x50], r9
lea rax, [rsp + 0x50]
mov rcx, rbx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r9d
mov word [rsp + 0x28], dx
mov qword [rsp + 0x20], r9
mov r9d, dword [rsp + 0xf8]
movzx edx, di
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
add rsp, 0xd8
pop rdi
pop rbx
ret

Function at 0x1400073e0
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.DLL_GetUserDefaultLangID]
mov r8, rbx
mov edx, 5
xor ecx, ecx
movzx r9d, ax
call qword [sym.imp.KERNEL32.DLL_FindResourceExW]
test rax, rax
jne 0x140007447
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x717
je 0x140007430
xor eax, eax
jmp 0x14000746d
xor r9d, r9d
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 5]
call qword [sym.imp.KERNEL32.DLL_FindResourceExW]
test rax, rax
je 0x14000742c
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_LoadResource]
test rax, rax
je 0x14000742c
mov r9, rsi
mov r8, rbp
mov rdx, rax
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140007a20
Capabilities:
Query environment variable

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x10440
call fcn.140023f70
sub rsp, rax
mov rax, qword [0x14002dda0]
xor rax, rsp
mov qword [rsp + 0x10430], rax
mov qword [rsp + 0x28], r8
mov rsi, rcx
mov rdi, r8
mov rbx, rdx
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0x30]
lea r9, str.NSSM_HOOK__s__s
or r8, 0xffffffffffffffff
mov edx, 0x200
call fcn.140019e88
test eax, eax
jns 0x140007a7b
mov eax, 1
jmp 0x140007ac6
lea rcx, [rsp + 0x430]
xor edx, edx
mov r8d, 0x10000
call fcn.14001a4c0
lea rdx, [rsp + 0x430]
lea rcx, [rsp + 0x30]
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
lea r9, [rsp + 0x430]
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
call fcn.140010810
neg eax
sbb eax, eax
and eax, 2
mov rcx, qword [rsp + 0x10430]
xor rcx, rsp
call fcn.14001a490
add rsp, 0x10440
pop rdi
pop rsi
pop rbx
ret

Function at 0x14000b370
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14002dda0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
test rdx, rdx
je 0x14000b400
test r8, r8
je 0x14000b400
mov eax, dword [rdx]
mov dword [rsp + 0x30], eax
mov eax, dword [rdx + 4]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14000b400
mov ecx, dword [r8]
mov dword [rsp + 0x30], ecx
mov ecx, dword [r8 + 4]
mov dword [rsp + 0x34], ecx
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14000b400
cmp rdx, rax
jb 0x14000b400
sub rdx, rax
or r8, 0xffffffffffffffff
movabs rax, 0x346dc5d63886594b
lea r9, str._llu
lea rcx, [rsp + 0x38]
mul rdx
shr rdx, 0xb
mov qword [rsp + 0x20], rdx
lea edx, [r8 + 0x11]
call fcn.140019e88
lea rdx, [rsp + 0x38]
jmp 0x14000b407
lea rdx, [0x140025cbc]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001a490
add rsp, 0x60
pop rbx
ret
Function at 0x14000ca80
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14002dda0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x28], r8
mov rdi, r8
or r8, 0xffffffffffffffff
mov rbx, rcx
mov qword [rsp + 0x20], rdx
lea r9, str._s_s
lea edx, [r8 + 0x1e]
lea rcx, [rsp + 0x30]
call fcn.140019e88
test eax, eax
jns 0x14000caf0
xor ecx, ecx
mov ebx, 1
lea r9, str.delete_createfile_parameter__
mov qword [rsp + 0x20], rcx
mov r8, rdi
mov edx, 0xc00003eb
movzx ecx, bx
call fcn.140007190
mov eax, ebx
jmp 0x14000cb07
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14001a490
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000d030
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x60], rbx
mov r12, r9
mov r13d, r8d
mov qword [rsp + 0x68], rdi
mov r14, rdx
mov rbp, rcx
mov esi, 0x7d0
mov r15d, 1
mov rcx, qword [rbp + 0x20]
mov r9, r12
mov r8d, r13d
mov rdx, r14
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x14000d112
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
cmp eax, 0x6d
je 0x14000d0c7
cmp eax, 0x3e3
je 0x14000d0c2
cmp eax, 0x718
je 0x14000d0a7
or ebx, 0xffffffff
jmp 0x14000d0b2
mov ecx, esi
call qword [sym.imp.KERNEL32.DLL_Sleep]
mov ebx, r15d
add esi, 0xbb8
cmp esi, 0x4268
jl 0x14000d063
jmp 0x14000d0ca
mov ebx, r15d
jmp 0x14000d0ca
or ebx, 0xffffffff
mov rcx, qword [rbp + 0x40]
cmp dword [rcx], r15d
jne 0x14000d10e
mov rsi, qword [rsp + 0x80]
test byte [rsi], r15b
jne 0x14000d10b
mov ecx, edi
call fcn.140006fd0
mov r9, qword [rbp + 8]
mov r8, qword [rbp]
mov edx, 0xc0000432
movzx ecx, r15w
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call fcn.140007190
or dword [rsi], r15d
mov eax, ebx
jmp 0x14000d114
xor eax, eax
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rsi
ret

Function at 0x14000d140
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x60], rbx
mov r12, r9
mov r13d, r8d
mov qword [rsp + 0x68], rdi
mov r14, rdx
mov rbp, rcx
mov esi, 0x7d0
mov r15d, 1
mov rcx, qword [rbp + 0x28]
mov r9, r12
mov r8d, r13d
mov rdx, r14
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x14000d219
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
cmp eax, 0x3e5
je 0x14000d219
cmp eax, 0x6d
je 0x14000d1d7
cmp eax, 0x70
je 0x14000d1bc
cmp eax, 0x718
je 0x14000d1bc
mov edi, r15d
jmp 0x14000d1c7
mov ecx, esi
call qword [sym.imp.KERNEL32.DLL_Sleep]
mov edi, r15d
add esi, 0xbb8
cmp esi, 0x4268
jl 0x14000d173
jmp 0x14000d1da
or edi, 0xffffffff
mov rsi, qword [rsp + 0x80]
test byte [rsi], 2
jne 0x14000d212
mov ecx, ebx
call fcn.140006fd0
mov r9, qword [rbp + 8]
mov r8, qword [rbp]
mov edx, 0xc0000433
movzx ecx, r15w
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call fcn.140007190
or dword [rsi], 2
mov eax, edi
jmp 0x14000d21b
xor eax, eax
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x14000d800
Capabilities:
Create pipe
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbp, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0x88]
mov r14d, r9d
mov r15d, r8d
mov r12, rdx
mov r13, rcx
mov dword [rbp], 0
mov ebx, 1
test rsi, rsi
je 0x14000d886
cmp qword [rsi], 0
jne 0x14000d886
mov rdi, qword [rsp + 0x90]
test rdi, rdi
je 0x14000d886
cmp qword [rdi], 0
jne 0x14000d886
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CreatePipe]
test eax, eax
je 0x14000d8cd
mov rcx, qword [rdi]
mov r8d, ebx
mov edx, ebx
call qword [sym.imp.KERNEL32.DLL_SetHandleInformation]
call qword [sym.imp.KERNEL32.DLL_GetProcessHeap]
mov edx, 8
lea r8d, [rdx + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x14000d8f9
lea r9, str.create_logging_thread__
lea r8, str.logger
mov edx, 0xc00003eb
movzx ecx, bx
mov qword [rsp + 0x20], rax
call fcn.140007190
xor eax, eax
jmp 0x14000d9d5
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140006fd0
mov r9, r12
mov r8, r13
mov edx, 0xc0000431
movzx ecx, bx
mov qword [rsp + 0x20], rax
call fcn.140007190
xor eax, eax
jmp 0x14000d9d5
mov eax, dword [rsp + 0xa0]
mov qword [rdi], r13
mov qword [rdi + 8], r12
mov dword [rsp + 0xb8], eax
mov eax, dword [rsp + 0xa8]
mov dword [rdi + 0x10], r15d
mov dword [rsp + 0xbc], eax
mov eax, dword [rsp + 0x80]
mov dword [rdi + 0x14], r14d
mov dword [rdi + 0x18], eax
mov rax, qword [rsi]
lea r8, [0x14000d240]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x98]
mov r9, rdi
mov rcx, qword [rax]
mov rax, qword [rsp + 0xb8]
xor edx, edx
mov qword [rdi + 0x30], rax
mov rax, qword [rsp + 0xc0]
mov qword [rdi + 0x28], rcx
mov qword [rdi + 0x40], rax
mov eax, dword [rsp + 0xb0]
xor ecx, ecx
mov dword [rdi + 0x4c], eax
movzx eax, byte [rsp + 0xc8]
mov qword [rsp + 0x28], rbp
mov qword [rdi + 0x38], rbp
mov dword [rsp + 0x20], 0
mov byte [rdi + 0x48], al
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov rsi, rax
test rax, rax
jne 0x14000d9d2
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140006fd0
xor r9d, r9d
mov edx, 0xc0000424
mov r8, rax
movzx ecx, bx
call fcn.140007190
call qword [sym.imp.KERNEL32.DLL_GetProcessHeap]
mov r8, rdi
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov rax, rsi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000e2e0
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov rax, qword [0x14002dda0]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
xor eax, eax
mov dl, 2
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], eax
lea r8d, [rax + 0x20]
mov dword [rsp + 0x20], eax
mov byte [0x14004eeb1], 0
mov byte [rsp + 0x68], 0
mov byte [rsp + 0x69], 0
mov byte [rsp + 0x6a], 0
mov byte [rsp + 0x6b], 0
mov byte [rsp + 0x6c], 0
mov byte [rsp + 0x6d], 5
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000e379
mov rdx, qword [rsp + 0x60]
lea r8, [0x14004eeb1]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14001a490
add rsp, 0x88
ret

Function at 0x14000e400
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xa0
mov edi, r8d
mov rsi, rdx
call fcn.140019be0
lea rcx, [rax + 0x60]
mov edx, edi
call fcn.140007250
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x70]
call fcn.14001a4c0
lea rax, str.runas
mov dword [rsp + 0x30], 0x70
mov qword [rsp + 0x40], rax
call fcn.14000e3f0
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.DLL_GetProcessHeap]
mov edx, 8
mov rcx, rax
mov r8d, 0xfffe
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14000e4a1
call fcn.140019be0
lea r9, str.elevate__
lea r8, str.GetCommandLine__
lea rcx, [rax + 0x60]
mov edx, 0xc00001fa
call fcn.140007250
lea eax, [rbx + 0x6f]
jmp 0x14000e53f
call qword [sym.imp.KERNEL32.DLL_GetCommandLineW]
lea r9, [0x140025890]
or r8, 0xffffffffffffffff
mov edx, 0x7fff
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140019e88
mov rdi, qword [rsi]
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
cmp word [rbx], 0x22
not rcx
mov rdi, rcx
jne 0x14000e4e0
add rdi, 2
movzx ecx, word [rbx + rdi*2]
call fcn.14001b094
test eax, eax
je 0x14000e501
nop dword [rax]
movzx ecx, word [rbx + rdi*2 + 2]
inc rdi
call fcn.14001b094
test eax, eax
jne 0x14000e4f0
lea rax, [rbx + rdi*2]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x60], 5
mov qword [rsp + 0x50], rax
xor edi, edi
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
mov ecx, 0x64
cmove edi, ecx
call qword [sym.imp.KERNEL32.DLL_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_HeapFree]
mov eax, edi
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14000ed30
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rbx, rdx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 4]
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov rdi, rax
test rax, rax
jne 0x14000ed92
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140006fd0
mov r8, qword [rbx]
mov edx, 0xc0000408
mov r9, rax
mov eax, 1
mov qword [rsp + 0x20], rsi
movzx ecx, ax
call fcn.140007190
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
xor eax, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x30], 0x1c
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
call sub.KERNEL32.DLL_Thread32First
test eax, eax
jne 0x14000ee0e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140006fd0
mov r8, qword [rbx]
mov edx, 0xc0000409
mov r9, rax
mov eax, 1
mov qword [rsp + 0x20], rsi
movzx ecx, ax
call fcn.140007190
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov eax, dword [rbx + 0x10]
cmp dword [rsp + 0x3c], eax
jne 0x14000ee2e
mov r8d, dword [rbx + 0x14]
mov ecx, dword [rsp + 0x38]
xor r9d, r9d
lea edx, [r9 + 0x12]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov esi, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.DLL_Thread32Next
test eax, eax
je 0x14000ee71
nop
mov ecx, dword [rbx + 0x10]
cmp dword [rsp + 0x3c], ecx
jne 0x14000ee60
mov r8d, dword [rbx + 0x14]
mov ecx, dword [rsp + 0x38]
xor r9d, r9d
lea edx, [r9 + 0x12]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
or esi, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.DLL_Thread32Next
test eax, eax
jne 0x14000ee40
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x12
je 0x14000eeaa
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140006fd0
mov r8, qword [rbx]
mov edx, 0xc0000409
mov r9, rax
mov eax, 1
mov qword [rsp + 0x20], 0
movzx ecx, ax
call fcn.140007190
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov rdx, rcx
xor ecx, ecx
jmp 0x14000ed30
Function at 0x14000eed0
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rbx, rdx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 4]
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov rdi, rax
test rax, rax
jne 0x14000ed92
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140006fd0
mov r8, qword [rbx]
mov edx, 0xc0000408
mov r9, rax
mov eax, 1
mov qword [rsp + 0x20], rsi
movzx ecx, ax
call fcn.140007190
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
xor eax, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x30], 0x1c
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
call sub.KERNEL32.DLL_Thread32First
test eax, eax
jne 0x14000ee0e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140006fd0
mov r8, qword [rbx]
mov edx, 0xc0000409
mov r9, rax
mov eax, 1
mov qword [rsp + 0x20], rsi
movzx ecx, ax
call fcn.140007190
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov eax, dword [rbx + 0x10]
cmp dword [rsp + 0x3c], eax
jne 0x14000ee2e
mov r8d, dword [rbx + 0x14]
mov ecx, dword [rsp + 0x38]
xor r9d, r9d
lea edx, [r9 + 0x12]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov esi, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.DLL_Thread32Next
test eax, eax
je 0x14000ee71
nop
mov ecx, dword [rbx + 0x10]
cmp dword [rsp + 0x3c], ecx
jne 0x14000ee60
mov r8d, dword [rbx + 0x14]
mov ecx, dword [rsp + 0x38]
xor r9d, r9d
lea edx, [r9 + 0x12]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
or esi, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.DLL_Thread32Next
test eax, eax
jne 0x14000ee40
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x12
je 0x14000eeaa
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.140006fd0
mov r8, qword [rbx]
mov edx, 0xc0000409
mov r9, rax
mov eax, 1
mov qword [rsp + 0x20], 0
movzx ecx, ax
call fcn.140007190
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov rdx, rcx
xor ecx, ecx
jmp 0x14000ed30
Function at 0x14000f0d0
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
test rdx, rdx
jne 0x14000f0e9
mov eax, 1
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
je 0x14000f106
cmp dword [rsp + 0x48], 0x103
jne 0x14000f0de
test byte [rbx + 0x18], 1
je 0x14000f118
mov rcx, rbx
call fcn.14000f0c0
test eax, eax
je 0x14000f0de
test byte [rbx + 0x18], 2
mov qword [rsp + 0x40], rdi
lea rdi, str.kill_process
je 0x14000f16b
lea rcx, [0x14000ecc0]
mov rdx, rbx
call qword [sym.imp.USER32.dll_EnumWindows]
cmp dword [rbx + 0x48], 0
je 0x14000f16b
mov eax, dword [rbx + 0x20]
mov r9, qword [rbx]
mov r8, qword [rbx + 8]
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call fcn.1400149e0
test eax, eax
je 0x14000f1a1
mov dword [rbx + 0x48], 0
test byte [rbx + 0x18], 4
je 0x14000f1b1
mov rcx, rbx
call fcn.14000eed0
test eax, eax
je 0x14000f1b1
mov eax, dword [rbx + 0x24]
mov r9, qword [rbx]
mov r8, qword [rbx + 8]
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call fcn.1400149e0
test eax, eax
jne 0x14000f1b1
mov eax, 1
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
test byte [rbx + 0x18], 8
je 0x14000f1cf
mov edx, dword [rbx + 0x14]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
xor eax, eax
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
mov rdx, rcx
xor ecx, ecx
jmp 0x14000f0d0
Function at 0x14000f1e0
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
test rdx, rdx
jne 0x14000f0e9
mov eax, 1
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
je 0x14000f106
cmp dword [rsp + 0x48], 0x103
jne 0x14000f0de
test byte [rbx + 0x18], 1
je 0x14000f118
mov rcx, rbx
call fcn.14000f0c0
test eax, eax
je 0x14000f0de
test byte [rbx + 0x18], 2
mov qword [rsp + 0x40], rdi
lea rdi, str.kill_process
je 0x14000f16b
lea rcx, [0x14000ecc0]
mov rdx, rbx
call qword [sym.imp.USER32.dll_EnumWindows]
cmp dword [rbx + 0x48], 0
je 0x14000f16b
mov eax, dword [rbx + 0x20]
mov r9, qword [rbx]
mov r8, qword [rbx + 8]
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call fcn.1400149e0
test eax, eax
je 0x14000f1a1
mov dword [rbx + 0x48], 0
test byte [rbx + 0x18], 4
je 0x14000f1b1
mov rcx, rbx
call fcn.14000eed0
test eax, eax
je 0x14000f1b1
mov eax, dword [rbx + 0x24]
mov r9, qword [rbx]
mov r8, qword [rbx + 8]
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call fcn.1400149e0
test eax, eax
jne 0x14000f1b1
mov eax, 1
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
test byte [rbx + 0x18], 8
je 0x14000f1cf
mov edx, dword [rbx + 0x14]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
xor eax, eax
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
mov rdx, rcx
xor ecx, ecx
jmp 0x14000f0d0