joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d1534
Capabilities:
Print debug messages

Disassembly:
jmp 0x14025b520
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1402d4080]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14025b546
jmp 0x14025b5c3
mov rcx, qword [rbp + 0x30]
call fcn.1400d07b0
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14025b55f
jmp 0x14025b5c3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14025b57c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400cf04a
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400cf6a3
test eax, eax
jne 0x14025b5c3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400d0ad0
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x1400d18f9
Capabilities:
Create process on windows

Disassembly:
jmp 0x14025f530
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
lea rcx, [rsp + 0xe8]
call fcn.1400d0094
lea rcx, [rsp + 0xb8]
call fcn.1400d0094
lea rcx, [rsp + 0x88]
call fcn.1400d0094
call fcn.1400d0f76
mov r8d, eax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x130]
call fcn.1400cfd3d
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x14025f5d2
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x88]
call fcn.1400d0648
lea rcx, [rsp + 0xb8]
call fcn.1400d0648
lea rcx, [rsp + 0xe8]
call fcn.1400d0648
mov eax, dword [rsp + 0x54]
jmp 0x14025f778
call fcn.1400d0f76
mov r8d, eax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x138]
call fcn.1400cfd3d
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x14025f632
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x88]
call fcn.1400d0648
lea rcx, [rsp + 0xb8]
call fcn.1400d0648
lea rcx, [rsp + 0xe8]
call fcn.1400d0648
mov eax, dword [rsp + 0x5c]
jmp 0x14025f778
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x168], 0
je 0x14025f6b8
call fcn.1400d0f76
mov r8d, eax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x168]
call fcn.1400cfd3d
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x14025f6a6
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x88]
call fcn.1400d0648
lea rcx, [rsp + 0xb8]
call fcn.1400d0648
lea rcx, [rsp + 0xe8]
call fcn.1400d0648
mov eax, dword [rsp + 0x64]
jmp 0x14025f778
lea rcx, [rsp + 0x88]
call fcn.1400cffa4
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb8]
call fcn.1400cffa4
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe8]
call fcn.1400cffa4
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x148]
mov r8, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x88]
call fcn.1400d0648
lea rcx, [rsp + 0xb8]
call fcn.1400d0648
lea rcx, [rsp + 0xe8]
call fcn.1400d0648
mov eax, dword [rsp + 0x68]
add rsp, 0x128
ret

Function at 0x1400d19bc
Capabilities:
Set environment variable

Disassembly:
jmp 0x140250450
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x1400d1b97
Capabilities:
Set console window title

Disassembly:
jmp 0x1400fe3b0
push rbp
push rdi
sub rsp, 0x438
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x9a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1402d4080]
xor rax, rbp
mov qword [rbp + 0x3d8], rax
lea rcx, [0x1402f1100]
call fcn.1400d39a6
nop
lea rax, str.Machiavclli
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 8]
call fcn.1400d1e7b
movzx eax, al
test eax, eax
jne 0x1400fe414
mov ecx, 1
call fcn.1400ce6d6
nop
call fcn.1400d0fe4
nop
lea rcx, str.KillerMacros
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
nop
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov qword [rbp + 0x28], rax
mov edx, 0xfffffff0
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.USER32.dll_GetWindowLongW]
btr eax, 0x10
btr eax, 0x11
btr eax, 0x12
mov r8d, eax
mov edx, 0xfffffff0
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.USER32.dll_SetWindowLongW]
nop
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp + 0x68], rax
lea rdx, [rbp + 0x44]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
nop
mov eax, dword [rbp + 0x44]
and eax, 0xffffffbf
bts eax, 7
mov edx, eax
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
nop
mov dword [rsp + 0x30], 0x43
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, 0xffffffffffffffff
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.USER32.dll_SetWindowPos]
nop
mov dword [rbp + 0x84], 0
mov dword [rbp + 0xa4], 0
mov dword [rbp + 0xc4], 2
mov dword [rbp + 0xe4], 1
mov dword [rbp + 0x104], 1
mov dword [rbp + 0x124], 1
mov dword [rbp + 0x144], 0
mov dword [rbp + 0x164], 0
mov dword [rbp + 0x184], 0
mov dword [rbp + 0x1a4], 1
mov edx, 0x22
mov ecx, 0x52
call fcn.1400ce0b4
nop
call fcn.1400d19b7
nop
mov eax, dword [rbp + 0x184]
mov dword [rsp + 0x48], eax
mov eax, dword [rbp + 0xe4]
mov dword [rsp + 0x40], eax
mov eax, dword [rbp + 0x1a4]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp + 0x164]
mov dword [rsp + 0x30], eax
mov eax, dword [rbp + 0x144]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x124]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp + 0x104]
mov r8d, dword [rbp + 0xc4]
mov edx, dword [rbp + 0xa4]
mov ecx, dword [rbp + 0x84]
call fcn.1400d20a6
nop
mov edx, 0x78
lea rcx, [rbp + 0x1d0]
call fcn.1400d1d68
lea rcx, [rbp + 0x1d0]
call fcn.1400d2ba0
nop
lea rcx, [rbp + 0x1d0]
call fcn.1400ce032
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x140282b10]
call fcn.1400d2a10
mov rax, rdi
mov rcx, qword [rbp + 0x3d8]
xor rcx, rbp
call fcn.1400d0ad0
lea rsp, [rbp + 0x3e8]
pop rdi
pop rbp
ret
Function at 0x1400d1d3b
Capabilities:
Parse pe header

Disassembly:
jmp 0x140172bd0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140172bf0
xor al, al
jmp 0x140172c71
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140172c03
xor al, al
jmp 0x140172c71
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140172c2d
xor al, al
jmp 0x140172c71
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140172c41
xor al, al
jmp 0x140172c71
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140172c53
xor al, al
jmp 0x140172c71
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140172c6f
xor al, al
jmp 0x140172c71
mov al, 1
add rsp, 0x38
ret
Function at 0x1400d2682
Capabilities:
Terminate process

Disassembly:
jmp 0x1401948a0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1401948ce
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400d3334
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400d33bb
Capabilities:
Print debug messages

Disassembly:
jmp 0x140223520
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400d353c
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140193920
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140193270
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140193969
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402f2020]
jmp 0x140193978
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400d3663
Capabilities:
Set environment variable

Disassembly:
jmp 0x1402683c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400d0094
lea rcx, [rsp + 0x48]
call fcn.1400d0094
call fcn.1400d0f76
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400cfd3d
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14026842f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400d0648
lea rcx, [rsp + 0x78]
call fcn.1400d0648
mov eax, dword [rsp + 0x24]
jmp 0x1402684c0
call fcn.1400d0f76
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400cfd3d
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140268476
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400d0648
lea rcx, [rsp + 0x78]
call fcn.1400d0648
mov eax, dword [rsp + 0x2c]
jmp 0x1402684c0
lea rcx, [rsp + 0x48]
call fcn.1400cffa4
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400cffa4
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400d0648
lea rcx, [rsp + 0x78]
call fcn.1400d0648
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x14023ccc0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400cf04a
sub rsp, rax
mov rax, qword [0x1402d4080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1402d8cc0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14023ceb2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x14023ce06
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14023ce06
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14023cdeb
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x14023cd88
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14023ce72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14023ced1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14023cead
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14023ced1
jmp 0x14023cd5e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400d0ad0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14023cf80
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400cf04a
sub rsp, rax
mov rax, qword [0x1402d4080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1402d8cc0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14023d18d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x14023d0d9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14023d0d9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x14023d0b9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x14023d048
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14023d14d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14023d1ac
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x14023d188
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14023d1ac
jmp 0x14023d01e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400d0ad0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400f4ab4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, qword [rdx + 0x10]
mov rdi, rdx
mov rbp, rcx
jne 0x1400f4b2b
mov rcx, qword [rdi + 8]
mov r8d, 5
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400f4afb
call fcn.140028a5c
mov rcx, qword [rdi + 8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
jne 0x1400f4b15
call fcn.140028a5c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
jne 0x1400f4b2b
call fcn.140028a5c
call fcn.14002c9b4
cmp qword [rax + 0x68], 0
je 0x1400f4b45
mov rdx, rbx
mov rcx, rbp
call fcn.1400f3f74
mov rbx, rax
mov edx, esi
mov rcx, rbx
call fcn.1400f4db4
mov rcx, qword [rbp + 0xf8]
mov rsi, rax
test rcx, rcx
je 0x1400f4b6c
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xf8], 0
test rsi, rsi
je 0x1400f4b7b
mov rbx, rsi
mov qword [rbp + 0xf8], rsi
or dword [rdi + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rdi + 0x10], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400f4ba8
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
call fcn.140033108
xor ebp, ebp
test eax, eax
jne 0x1400f4c56
mov rdx, qword [str.h6__]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_GetPropW]
mov rsi, rax
test rax, rax
je 0x1400f4c79
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400f4c79
cmp dword [rax], 1
jne 0x1400f4c70
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x476
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
jne 0x1400f4c70
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, qword [str.h6__]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_RemovePropW]
test rax, rax
je 0x1400f4c43
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbx]
mov rax, qword [rcx + 0xc0]
mov rcx, rbx
call qword [case.0x14014b8e1.0]
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [rdi + 8], 0x100
jne 0x1400f4cc0
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1400f4cc0
mov rax, qword [rdi + 0x10]
cmp rax, 9
je 0x1400f4ca6
add rax, 0xffffffffffffffdf
cmp rax, 1
ja 0x1400f4cc0
mov rcx, qword [rbx + 0x40]
mov r9, rdi
xor r8d, r8d
mov edx, 0x475
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
jne 0x1400f4c56
mov rdx, rdi
mov rcx, rbx
call fcn.1400330e4
jmp 0x1400f4c5b
Function at 0x140001005
Capabilities:
Create service
Delete service
Start service
Stop service

Disassembly:
jmp 0x140002090
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x90], rax
lea rcx, str._nOpenSCManager_n
mov rdi, rdx
call fcn.1400030a4
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
call fcn.140001028
test rbx, rbx
je 0x1400021f8
lea rcx, str.CreateService_n
call fcn.1400030a4
xor r11d, r11d
lea r8, str.rtsysrdg_Driver
mov qword [rsp + 0x60], r11
mov qword [rsp + 0x58], r11
mov qword [rsp + 0x50], r11
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], r11d
lea rdx, str.rtsysrdg
mov r9d, 0x10030
mov rcx, rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rdi, rax
call fcn.140001028
test rdi, rdi
jne 0x14000216c
lea rdx, str.rtsysrdg
mov r8d, 0x10030
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
call fcn.140001028
test rdi, rdi
je 0x1400021e3
lea rcx, str.StartService_n
call fcn.1400030a4
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
call fcn.140001028
lea rcx, str.ControlService_n
call fcn.1400030a4
lea r8, [rsp + 0x70]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
call fcn.140001028
lea rcx, str.DeleteService_n
call fcn.1400030a4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
call fcn.140001028
lea rcx, str.CloseServiceHandle_1_n
call fcn.1400030a4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.140001028
lea rcx, str.CloseServiceHandle_2_n
call fcn.1400030a4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140002f60
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret

Function at 0x14000100f
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140001580
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x30]
mov rsi, rdx
mov rbx, r8
mov dword [rsp + 0x68], r9d
mov rdx, rcx
xor edi, edi
xor r8d, r8d
mov r9d, 0x20019
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400015da
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x30]
test eax, eax
mov ebx, edi
sete bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x58]
test ebx, ebx
mov rbx, qword [rsp + 0x50]
cmovne edi, dword [rsp + 0x68]
mov eax, edi
add rsp, 0x40
pop rdi
ret
Function at 0x140002090
Capabilities:
Create service
Delete service
Start service
Stop service

Disassembly:
jmp 0x140002090
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x90], rax
lea rcx, str._nOpenSCManager_n
mov rdi, rdx
call fcn.1400030a4
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
call fcn.140001028
test rbx, rbx
je 0x1400021f8
lea rcx, str.CreateService_n
call fcn.1400030a4
xor r11d, r11d
lea r8, str.rtsysrdg_Driver
mov qword [rsp + 0x60], r11
mov qword [rsp + 0x58], r11
mov qword [rsp + 0x50], r11
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], r11d
lea rdx, str.rtsysrdg
mov r9d, 0x10030
mov rcx, rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rdi, rax
call fcn.140001028
test rdi, rdi
jne 0x14000216c
lea rdx, str.rtsysrdg
mov r8d, 0x10030
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
call fcn.140001028
test rdi, rdi
je 0x1400021e3
lea rcx, str.StartService_n
call fcn.1400030a4
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
call fcn.140001028
lea rcx, str.ControlService_n
call fcn.1400030a4
lea r8, [rsp + 0x70]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
call fcn.140001028
lea rcx, str.DeleteService_n
call fcn.1400030a4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
call fcn.140001028
lea rcx, str.CloseServiceHandle_1_n
call fcn.1400030a4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.140001028
lea rcx, str.CloseServiceHandle_2_n
call fcn.1400030a4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140002f60
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret