joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400025f0
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 0x140002697
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 0x140002651
cmp edx, 0xf
jge 0x140002651
movsxd rax, edx
inc edx
mov qword [rsp + rax*8 + 0x50], rcx
jmp 0x140002633
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 0x140002840
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 0x1400028a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x717
je 0x140002890
xor eax, eax
jmp 0x1400028cd
xor r9d, r9d
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 5]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x14000288c
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000288c
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 0x140002e80
Capabilities:
Query environment variable

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x10440
call fcn.140024ca0
sub rsp, rax
mov rax, qword [0x140030f90]
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.140018170
test eax, eax
jns 0x140002edb
mov eax, 1
jmp 0x140002f26
lea rcx, [rsp + 0x430]
xor edx, edx
mov r8d, 0x10000
call fcn.140018830
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.14000d020
neg eax
sbb eax, eax
and eax, 2
mov rcx, qword [rsp + 0x10430]
xor rcx, rsp
call fcn.140018800
add rsp, 0x10440
pop rdi
pop rsi
pop rbx
ret

Function at 0x140006960
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140030f90]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
test rdx, rdx
je 0x1400069f0
test r8, r8
je 0x1400069f0
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 0x1400069f0
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 0x1400069f0
cmp rdx, rax
jb 0x1400069f0
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.140018170
lea rdx, [rsp + 0x38]
jmp 0x1400069f7
lea rdx, [0x140026dbc]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140018800
add rsp, 0x60
pop rbx
ret
Function at 0x140008200
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140030f90]
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.140018170
test eax, eax
jns 0x140008270
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.1400025f0
mov eax, ebx
jmp 0x140008287
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.140018800
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

Function at 0x1400082b0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov eax, dword [rsp + 0x70]
mov qword [rsp + 0x30], 0
mov rdi, rcx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r9d
mov r9, r8
mov r8d, edx
mov edx, 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140008321
mov rdx, qword [0x140032140]
mov r9d, 2
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140008313
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140002430
mov r8, rdi
mov edx, 0xc0000419
mov r9, rax
mov eax, 1
mov qword [rsp + 0x20], 0
movzx ecx, ax
call fcn.1400025f0
mov rbx, qword [rsp + 0x50]
or rax, 0xffffffffffffffff
add rsp, 0x40
pop rdi
ret
Function at 0x140008910
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 0x1400089f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x6d
je 0x1400089a7
cmp eax, 0x3e3
je 0x1400089a2
cmp eax, 0x718
je 0x140008987
or ebx, 0xffffffff
jmp 0x140008992
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, r15d
add esi, 0xbb8
cmp esi, 0x4268
jl 0x140008943
jmp 0x1400089aa
mov ebx, r15d
jmp 0x1400089aa
or ebx, 0xffffffff
mov rcx, qword [rbp + 0x40]
cmp dword [rcx], r15d
jne 0x1400089ee
mov rsi, qword [rsp + 0x80]
test byte [rsi], r15b
jne 0x1400089eb
mov ecx, edi
call fcn.140002430
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.1400025f0
or dword [rsi], r15d
mov eax, ebx
jmp 0x1400089f4
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 0x140008a20
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 0x140008af9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x3e5
je 0x140008af9
cmp eax, 0x6d
je 0x140008ab7
cmp eax, 0x70
je 0x140008a9c
cmp eax, 0x718
je 0x140008a9c
mov edi, r15d
jmp 0x140008aa7
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edi, r15d
add esi, 0xbb8
cmp esi, 0x4268
jl 0x140008a53
jmp 0x140008aba
or edi, 0xffffffff
mov rsi, qword [rsp + 0x80]
test byte [rsi], 2
jne 0x140008af2
mov ecx, ebx
call fcn.140002430
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.1400025f0
or dword [rsi], 2
mov eax, edi
jmp 0x140008afb
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 0x140009400
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 0x140009486
cmp qword [rsi], 0
jne 0x140009486
mov rdi, qword [rsp + 0x90]
test rdi, rdi
je 0x140009486
cmp qword [rdi], 0
jne 0x140009486
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400094cf
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 + 0x58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x1400094fb
xor ecx, ecx
lea r9, str.create_logging_thread__
lea r8, str.logger
mov qword [rsp + 0x20], rcx
movzx ecx, bx
mov edx, 0xc00003eb
call fcn.1400025f0
xor eax, eax
jmp 0x1400095e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140002430
mov r9, r12
mov r8, r13
mov edx, 0xc0000431
movzx ecx, bx
mov qword [rsp + 0x20], rax
call fcn.1400025f0
xor eax, eax
jmp 0x1400095e2
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, [0x140008e20]
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
movzx eax, byte [rsp + 0xc8]
mov qword [rdi + 0x28], rcx
mov byte [rdi + 0x48], al
mov rax, qword [rsp + 0xc0]
xor ecx, ecx
mov qword [rdi + 0x40], rax
mov eax, dword [rsp + 0xb0]
mov qword [rsp + 0x28], rbp
mov dword [rdi + 0x5c], eax
movzx eax, byte [rsp + 0xd0]
mov qword [rdi + 0x38], rbp
mov qword [rdi + 0x50], rcx
mov dword [rsp + 0x20], ecx
mov byte [rdi + 0x58], al
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x1400095df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140002430
xor r9d, r9d
mov edx, 0xc0000424
mov r8, rax
movzx ecx, bx
call fcn.1400025f0
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 0x14000a050
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov rax, qword [0x140030f90]
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 [0x140062151], 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 0x14000a0e9
mov rdx, qword [rsp + 0x60]
lea r8, [0x140062151]
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.140018800
add rsp, 0x88
ret

Function at 0x14000a180
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.140017f4c
lea rcx, [rax + 0x60]
mov edx, edi
call fcn.1400026b0
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x70]
call fcn.140018830
lea rax, str.runas
mov dword [rsp + 0x30], 0x70
mov qword [rsp + 0x40], rax
call fcn.14000a160
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 0x14000a221
call fcn.140017f4c
lea r9, str.elevate__
lea r8, str.GetCommandLine__
lea rcx, [rax + 0x60]
mov edx, 0xc00001fa
call fcn.1400026b0
lea eax, [rbx + 0x6f]
jmp 0x14000a2bf
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r9, [0x140026d3c]
or r8, 0xffffffffffffffff
mov edx, 0x7fff
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140018170
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 0x14000a260
add rdi, 2
movzx ecx, word [rbx + rdi*2]
call fcn.140019440
test eax, eax
je 0x14000a281
nop dword [rax]
movzx ecx, word [rbx + rdi*2 + 2]
inc rdi
call fcn.140019440
test eax, eax
jne 0x14000a270
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 0x14000a810
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x58
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor r8d, r8d
lea r9, [rsp + 0x68]
lea edx, [r8 + 0x28]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x14000a866
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x14000a866
mov ecx, 2
call qword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor r8d, r8d
lea edx, [r8 + 0x28]
lea r9, [rsp + 0x68]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
cmp qword [rsp + 0x68], 0
je 0x14000a92e
lea r8, [rsp + 0x70]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
mov dword [rsp + 0x60], 0x10
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x68]
test eax, eax
je 0x14000a928
mov rax, qword [rsp + 0x70]
mov r9d, dword [rsp + 0x60]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x44], rax
lea rax, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x4c], 0
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x68]
test eax, eax
je 0x14000a928
mov rax, qword [rsp + 0x70]
mov r9d, dword [rsp + 0x60]
or dword [rsp + 0x3c], 2
lea r8, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x34], rax
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x14000a937
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or rax, 0xffffffffffffffff
add rsp, 0x58
ret
mov rax, qword [rsp + 0x68]
add rsp, 0x58
ret
Function at 0x14000acb0
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
cmp rax, 0xffffffffffffffff
jne 0x14000ad13
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140002430
mov r8, qword [rbx]
mov edx, 0xc0000408
mov r9, rax
mov eax, 1
mov qword [rsp + 0x20], rsi
movzx ecx, ax
call fcn.1400025f0
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 0x14000ad8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140002430
mov r8, qword [rbx]
mov edx, 0xc0000409
mov r9, rax
mov eax, 1
mov qword [rsp + 0x20], rsi
movzx ecx, ax
call fcn.1400025f0
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 + 0x14]
cmp dword [rsp + 0x3c], eax
jne 0x14000adaf
mov r8d, dword [rbx + 0x18]
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 0x14000adf1
mov ecx, dword [rbx + 0x14]
cmp dword [rsp + 0x3c], ecx
jne 0x14000ade0
mov r8d, dword [rbx + 0x18]
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 0x14000adc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x14000ae2a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140002430
mov r8, qword [rbx]
mov edx, 0xc0000409
mov r9, rax
mov eax, 1
mov qword [rsp + 0x20], 0
movzx ecx, ax
call fcn.1400025f0
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 0x14000acb0
Function at 0x14000ae50
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
cmp rax, 0xffffffffffffffff
jne 0x14000ad13
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140002430
mov r8, qword [rbx]
mov edx, 0xc0000408
mov r9, rax
mov eax, 1
mov qword [rsp + 0x20], rsi
movzx ecx, ax
call fcn.1400025f0
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 0x14000ad8f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140002430
mov r8, qword [rbx]
mov edx, 0xc0000409
mov r9, rax
mov eax, 1
mov qword [rsp + 0x20], rsi
movzx ecx, ax
call fcn.1400025f0
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 + 0x14]
cmp dword [rsp + 0x3c], eax
jne 0x14000adaf
mov r8d, dword [rbx + 0x18]
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 0x14000adf1
mov ecx, dword [rbx + 0x14]
cmp dword [rsp + 0x3c], ecx
jne 0x14000ade0
mov r8d, dword [rbx + 0x18]
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 0x14000adc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x14000ae2a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140002430
mov r8, qword [rbx]
mov edx, 0xc0000409
mov r9, rax
mov eax, 1
mov qword [rsp + 0x20], 0
movzx ecx, ax
call fcn.1400025f0
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 0x14000acb0
Function at 0x14000b1b0
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
test rdx, rdx
jne 0x14000b1c9
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 0x14000b1e6
cmp dword [rsp + 0x48], 0x103
jne 0x14000b1be
test byte [rbx + 0x1c], 1
je 0x14000b1f8
mov rcx, rbx
call fcn.14000b040
test eax, eax
je 0x14000b1be
test byte [rbx + 0x1c], 2
mov qword [rsp + 0x40], rdi
lea rdi, str.kill_process
je 0x14000b24b
lea rcx, [0x14000ac40]
mov rdx, rbx
call qword [sym.imp.USER32.dll_EnumWindows]
cmp dword [rbx + 0x50], 0
je 0x14000b24b
mov eax, dword [rbx + 0x24]
mov r9, qword [rbx]
mov r8, qword [rbx + 8]
mov rdx, qword [rbx + 0x38]
mov rcx, qword [rbx + 0x30]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call fcn.140011840
test eax, eax
je 0x14000b281
mov dword [rbx + 0x50], 0
test byte [rbx + 0x1c], 4
je 0x14000b291
mov rcx, rbx
call fcn.14000ae50
test eax, eax
je 0x14000b291
mov eax, dword [rbx + 0x28]
mov r9, qword [rbx]
mov r8, qword [rbx + 8]
mov rdx, qword [rbx + 0x38]
mov rcx, qword [rbx + 0x30]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call fcn.140011840
test eax, eax
jne 0x14000b291
mov eax, 1
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
test byte [rbx + 0x1c], 8
je 0x14000b2af
mov edx, dword [rbx + 0x18]
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 0x14000b1b0
Function at 0x14000b2c0
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
test rdx, rdx
jne 0x14000b1c9
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 0x14000b1e6
cmp dword [rsp + 0x48], 0x103
jne 0x14000b1be
test byte [rbx + 0x1c], 1
je 0x14000b1f8
mov rcx, rbx
call fcn.14000b040
test eax, eax
je 0x14000b1be
test byte [rbx + 0x1c], 2
mov qword [rsp + 0x40], rdi
lea rdi, str.kill_process
je 0x14000b24b
lea rcx, [0x14000ac40]
mov rdx, rbx
call qword [sym.imp.USER32.dll_EnumWindows]
cmp dword [rbx + 0x50], 0
je 0x14000b24b
mov eax, dword [rbx + 0x24]
mov r9, qword [rbx]
mov r8, qword [rbx + 8]
mov rdx, qword [rbx + 0x38]
mov rcx, qword [rbx + 0x30]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call fcn.140011840
test eax, eax
je 0x14000b281
mov dword [rbx + 0x50], 0
test byte [rbx + 0x1c], 4
je 0x14000b291
mov rcx, rbx
call fcn.14000ae50
test eax, eax
je 0x14000b291
mov eax, dword [rbx + 0x28]
mov r9, qword [rbx]
mov r8, qword [rbx + 8]
mov rdx, qword [rbx + 0x38]
mov rcx, qword [rbx + 0x30]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call fcn.140011840
test eax, eax
jne 0x14000b291
mov eax, 1
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
test byte [rbx + 0x1c], 8
je 0x14000b2af
mov edx, dword [rbx + 0x18]
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 0x14000b1b0