joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401174f0
Capabilities:
Start service
Stop service

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r15
sub rsp, 0x50
mov rax, qword [0x1403eaa10]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor bl, bl
xor dil, dil
movzx ebp, cl
test cl, cl
je 0x14011752d
call fcn.140117900
test al, al
jne 0x14011752a
mov cl, 1
call fcn.140117970
jmp 0x14011752d
mov dil, 1
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r15, rax
test rax, rax
je 0x140117669
lea rdx, [0x14032d838]
mov r8d, 0x30
mov rcx, rax
mov qword [rsp + 0x80], r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r14, rax
test rax, rax
je 0x140117658
mov bl, 1
test bpl, bpl
je 0x140117583
test dil, dil
je 0x140117613
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], r12
xor r12d, r12d
mov esi, r12d
nop dword [rax]
nop word [rax + rax]
lea r8, [0x14032d860]
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rdi, rax
test rax, rax
je 0x1401175e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jl 0x1401175a0
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rsi, qword [rsp + 0x70]
test eax, eax
jne 0x14011760e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, bl
cmp eax, 0x426
cmovne ebx, r12d
mov r12, qword [rsp + 0x78]
test bpl, bpl
je 0x14011764f
xor r8d, r8d
xor edx, edx
mov rcx, r14
mov bl, 1
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14011764f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x14011764f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error__d_r_n
mov edx, eax
call fcn.140298d38
xor bl, bl
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r14, qword [rsp + 0x80]
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140297ff0
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop rdi
pop rbp
ret
Function at 0x140117690
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Get file attributes

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov rbx, rdx
mov rsi, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x140117775
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.1400d1ab0
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.1401ebac0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140117725
test al, 0x10
je 0x140117725
cmp dword [rsp + 0x30], 0
jle 0x140117746
mov rcx, qword [rsp + 0x28]
call fcn.140298600
jmp 0x140117746
cmp dword [rsp + 0x30], 0
jle 0x140117736
mov rcx, qword [rsp + 0x28]
call fcn.140298600
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov r8d, ebp
mov rdx, rbx
mov rcx, rsi
call fcn.1401f2500
movzx ebx, al
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop
cmp dword [rsp + 0x40], 0
jle 0x140117772
mov rcx, qword [rsp + 0x38]
call fcn.140298600
movzx eax, bl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140117970
Capabilities:
Create service
Delete service
Modify service
Persist via windows service
Stop service

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xb0
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x1403eaa10]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movzx edi, cl
xor bl, bl
mov r8d, 0xf003f
lea rdx, [0x14032d120]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x140117b9a
test dil, dil
je 0x140117af4
lea rcx, [rsp + 0x80]
call fcn.140117790
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140117ad4
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x1401179f0
test rax, rax
je 0x140117ad4
mov edx, 0x133
xor ecx, ecx
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140117a29
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.140117690
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
lea rax, [0x14032d900]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
lea r8, [0x14032d8d8]
lea rdx, [0x14032d838]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x140117aaa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x140117ad2
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140117ad4
lea rax, [0x14032d960]
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x70]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
cmp dword [rsp + 0x88], 0
jle 0x140117b91
mov rcx, qword [rsp + 0x80]
call fcn.140298600
jmp 0x140117b91
mov r8d, 0x10020
lea rdx, [0x14032d838]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140117b23
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x140117b63
mov bl, 1
jmp 0x140117b63
lea r8, [rsp + 0x80]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140117b43
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x140117b54
mov bl, 1
jmp 0x140117b5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea r8, [0x14032d860]
xor edx, edx
mov ecx, 0x100002
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rdi, rax
test rax, rax
je 0x140117b91
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, bl
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140297ff0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140117d70
Capabilities:
Delete file
Enumerate gui resources

Disassembly:
push rdi
sub rsp, 0x2a0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x2b0], rbx
mov rax, qword [0x1403eaa10]
xor rax, rsp
mov qword [rsp + 0x290], rax
movzx edi, cl
lea rcx, [rsp + 0x20]
call fcn.140117e90
nop
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140117e51
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140117e00
lea rdx, [0x14032da68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140117df7
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test dil, dil
je 0x140117e51
xor edx, edx
lea rcx, [0x1401108d0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140117e51
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140117e51
mov cl, 1
call fcn.1401abec0
mov ecx, 0xd05
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.140110470
nop
cmp dword [rsp + 0x28], 0
jle 0x140117e62
mov rcx, qword [rsp + 0x20]
call fcn.140298600
mov al, 1
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140297ff0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x2a0
pop rdi
ret

Function at 0x140117ec0
Capabilities:
Get file size

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
movzx ebx, cl
call fcn.140117bd0
test al, al
jne 0x140117eec
mov al, 1
jmp 0x140117f92
lea rcx, [rsp + 0x48]
call fcn.140117e90
nop
test bl, bl
jne 0x140117f6f
mov edx, 0x134
xor ecx, ecx
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140117f6f
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80
lea r8d, [rax + 3]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140117f6f
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
jne 0x140117f6f
mov bl, 1
jmp 0x140117f7e
mov cl, 1
call fcn.140117d70
call fcn.140117c80
movzx ebx, al
cmp dword [rsp + 0x50], 0
jle 0x140117f8f
mov rcx, qword [rsp + 0x48]
call fcn.140298600
movzx eax, bl
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140117fb0
Capabilities:
Check if file exists
Create directory
Extract resource via kernel32 functions
Get file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov edx, 0x134
xor ecx, ecx
lea r8d, [rcx + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1401180ff
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x1401180ff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
lea rcx, [rsp + 0x48]
call fcn.140117e90
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.1400d1ab0
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.1401ebac0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14011806a
test al, 0x10
je 0x14011806a
cmp dword [rsp + 0x30], 0
jle 0x14011808b
mov rcx, qword [rsp + 0x28]
call fcn.140298600
jmp 0x14011808b
cmp dword [rsp + 0x30], 0
jle 0x14011807b
mov rcx, qword [rsp + 0x28]
call fcn.140298600
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor r9d, r9d
lea edx, [r9 + 2]
mov r8d, 0x40000000
lea rcx, [rsp + 0x48]
call fcn.1401f2360
mov rdi, rax
test rax, rax
je 0x1401180cb
mov rax, qword [rax]
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0x48]
mov ebx, eax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x20]
cmp ebx, ebp
sete bl
jmp 0x1401180cd
xor bl, bl
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop
cmp dword [rsp + 0x40], 0
jle 0x1401180e9
mov rcx, qword [rsp + 0x38]
call fcn.140298600
nop
cmp dword [rsp + 0x50], 0
jle 0x1401180fa
mov rcx, qword [rsp + 0x48]
call fcn.140298600
movzx eax, bl
jmp 0x140118101
xor al, al
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x14011e490
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rcx
mov rcx, qword [rcx + 0xf0]
test rcx, rcx
je 0x14011e5be
lea rax, [0x140323de0]
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x38]
call fcn.140142b20
test al, al
jne 0x14011e4eb
cmp dword [rsp + 0x40], 0
jle 0x14011e4e4
mov rcx, qword [rsp + 0x38]
call fcn.140298600
xor al, al
jmp 0x14011e5c0
cmp dword [rsp + 0x44], 0
jle 0x14011e5ad
lea r8, [0x14032dbf8]
lea rcx, [rsp + 0x38]
call fcn.1401e9e50
lea rdx, [rsp + 0x38]
mov rcx, qword [rbx + 0xa8]
call fcn.140111250
mov eax, dword [0x1403fe608]
test al, 1
jne 0x14011e550
or eax, 1
mov dword [0x1403fe608], eax
lea rax, vtable.Core::Win32::RegistryKey.0
mov qword [0x1403fe5e0], rax
mov qword [0x1403fe5e8], 0xffffffff80000002
lea rcx, [0x1402de040]
call fcn.140299c6c
lea rdx, [0x140329c48]
lea rcx, [0x1403fe5e0]
call fcn.1400ec430
mov rbx, rax
test rax, rax
je 0x14011e5ad
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Registered
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
cmp dword [rsp + 0x40], 0
jle 0x14011e5be
mov rcx, qword [rsp + 0x38]
call fcn.140298600
mov al, 1
add rsp, 0x50
pop rbx
ret
Function at 0x140126df0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
sub rsp, 0x20
cmp word [rdx + 0x10], 0x14
mov rsi, rdx
je 0x140126e0a
add rsp, 0x20
pop rsi
jmp fcn.1401e6230
mov rcx, qword [rdx]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rdi
mov rdi, qword [rdx + 0x20]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, qword [rsi]
mov rbx, rax
xor eax, eax
lea r8, [rsp + 0x38]
lea r9d, [rax + 1]
mov rdx, rbx
mov qword [rsp + 0x38], rax
call qword [sym.imp.USER32.dll_MapWindowPoints]
mov r8d, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.GDI32.dll_OffsetWindowOrgEx]
xor r9d, r9d
mov r8, rdi
lea edx, [r9 + 0x14]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov r8d, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x38]
xor r9d, r9d
mov rcx, rdi
call qword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov qword [rsi + 0x18], 1
add rsp, 0x20
pop rsi
ret

Function at 0x140126ee0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1403eaa10]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rcx
lea rdx, [rsp + 0x30]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor ebx, ebx
mov qword [rsp + 0x268], r14
mov ebp, eax
lea rax, [rsp + 0x30]
or rdi, 0xffffffffffffffff
lea rax, [rax + rbx*2]
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140126f30
test rdi, rdi
je 0x140126fcc
movzx ecx, word [rax]
call fcn.14029c27c
movzx ecx, ax
call fcn.1401651e0
mov r14, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140126fc9
mov rcx, qword [rsi + 8]
lea rax, [rsp + 0x20]
cmp rax, rcx
jae 0x140126faa
mov rdx, qword [rsi]
lea rax, [rsp + 0x20]
cmp rdx, rax
ja 0x140126faa
lea r14, [rsp + 0x20]
sub r14, rdx
sar r14, 3
cmp rcx, qword [rsi + 0x10]
jne 0x140126f95
mov rcx, rsi
call fcn.1400bae00
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x140126fc4
mov rax, qword [rsi]
mov rcx, qword [rax + r14*8]
mov qword [rdx], rcx
jmp 0x140126fc4
cmp rcx, qword [rsi + 0x10]
jne 0x140126fb8
mov rcx, rsi
call fcn.1400bae00
mov rax, qword [rsi + 8]
test rax, rax
je 0x140126fc4
mov qword [rax], r14
add qword [rsi + 8], 8
add rbx, rdi
cmp rbx, rbp
jae 0x140126fec
cmp word [rsp + rbx*2 + 0x30], 0
jne 0x140126fe3
inc rbx
cmp rbx, rbp
jb 0x140126fd1
jmp 0x140126fec
cmp rbx, rbp
jb 0x140126f20
mov al, 1
mov r14, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140297ff0
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
Function at 0x140128800
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x68
movzx eax, word [rdx + 0xb]
mov r12, rcx
mov rdi, rdx
imul eax, dword [rdx + 0x24]
mov ecx, eax
mov ebx, eax
call fcn.140298640
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov r13, rax
call fcn.1402a04b0
xor ebp, ebp
xor r14b, r14b
movsd xmm0, qword [0x1403ebc30]
mov ebx, ebp
movsd qword [r13], xmm0
mov ecx, dword [0x1403ebc38]
mov dword [r13 + 8], ecx
movzx edx, word [rdi + 0xe]
mov dword [rsp + 0xb0], edx
cmp byte [rdi + 0x10], bl
jbe 0x14012896d
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x60], r15
nop word [rax + rax]
mov eax, dword [rdi + 0x24]
mov rsi, qword [r12 + 8]
mov qword [rsp + 0x40], rbp
movzx r15d, word [rsi + 0x54]
imul eax, ebx
add eax, edx
xor edx, edx
cdqe
mov dword [rsp + 0xa8], ebp
add rax, qword [r12 + 0x10]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x58], rdx
imul rax, r15
imul r15d, dword [rdi + 0x24]
mov dword [rsp + 0x50], eax
shr rax, 0x20
mov dword [rsp + 0x54], eax
cmp qword [rsi + 0x70], rdx
jne 0x140128902
xor r9d, r9d
mov qword [rsp + 0x30], rbp
lea rcx, [rsi + 0x24]
lea r8d, [r9 + 3]
mov edx, 0x100003
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140128902
mov qword [rsi + 0x70], rax
mov rcx, qword [rsi + 0x70]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0xa8]
mov r8d, r15d
mov rdx, r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
movzx ecx, word [rsi + 0x54]
xor edx, edx
mov r8d, eax
mov eax, dword [rsp + 0xa8]
div ecx
test r8d, r8d
je 0x14012895a
cmp eax, dword [rdi + 0x24]
jne 0x140128960
movzx eax, byte [rdi + 0x10]
mov edx, dword [rsp + 0xb0]
inc ebx
inc r14b
cmp ebx, eax
jl 0x140128880
jmp 0x140128960
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [rsp + 0xa0]
mov r15, qword [rsp + 0x60]
mov rcx, r13
call fcn.140298600
cmp r14b, byte [rdi + 0x10]
sete al
add rsp, 0x68
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
Function at 0x14012b6f0
Capabilities:
Enumerate process modules

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x2a8
mov rax, qword [0x1403eaa10]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbx, qword [rsp + 0x300]
mov rsi, r8
mov r14, rdx
mov ebp, ecx
lea r8, [rsp + 0x38]
mov edx, 8
mov rcx, rbx
mov r15, r9
xor dil, dil
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14012b75b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._5d_OpenProcessToken_failed_with__d_r_n
mov edx, ebp
mov r8d, eax
call fcn.140298d38
jmp 0x14012b80d
mov rdx, qword [0x1403ec168]
mov rcx, rsi
call fcn.1401e7490
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
call fcn.140118120
test al, al
je 0x14012b80d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov r8d, 8
mov rcx, rbx
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x14012b7da
mov rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x80]
mov r9d, 0x104
mov rcx, rbx
call qword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x14012b7da
lea rdx, [rsp + 0x80]
mov rcx, r15
call fcn.1401e7490
mov dil, 1
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x50]
mov r9d, 0x30
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call qword [0x1403fd7e8]
test eax, eax
jne 0x14012b80d
mov edx, dword [rsp + 0x78]
mov dword [r14], edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, dil
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140297ff0
add rsp, 0x2a8
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14012e990
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x8f8
mov rax, qword [0x1403eaa10]
xor rax, rsp
mov qword [rsp + 0x8e0], rax
mov r9, qword [rdx]
lea r8, str.notepad.exe___s_
lea rcx, [rsp + 0xe0]
mov edx, 0x400
call fcn.14029b4b4
xor edx, edx
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x60]
call fcn.1402a04b0
xor eax, eax
xor ecx, ecx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
lea rdx, [rsp + 0xe0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], ecx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14012ea62
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x8e0]
xor rcx, rsp
call fcn.140297ff0
add rsp, 0x8f8
ret
xor al, al
mov rcx, qword [rsp + 0x8e0]
xor rcx, rsp
call fcn.140297ff0
add rsp, 0x8f8
ret

Function at 0x14012f1b0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rcx]
mov rsi, rcx
call qword [rax]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov edx, 0x188
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x14012f2df
movsxd rbp, eax
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
xor r9d, r9d
mov r8, rbp
mov rcx, rax
mov edx, 0x199
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14012f2df
mov qword [rsp + 0x40], rbx
test rax, rax
jne 0x14012f22f
mov ebx, eax
mov qword [rsp + 0x28], rax
lea rax, [0x140323de0]
mov qword [rsp + 0x20], rax
jmp 0x14012f27b
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14012f233
xor eax, eax
mov qword [rsp + 0x28], rax
test ebx, ebx
jne 0x14012f256
lea rax, [0x140323de0]
mov qword [rsp + 0x20], rax
jmp 0x14012f27b
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1401e9030
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
inc eax
movsxd r9, ebx
mov r8, rdi
movsxd rdx, eax
call fcn.14029b4d8
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1401ea290
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
cmp dword [rsp + 0x28], 0
jle 0x14012f2a8
mov rcx, qword [rsp + 0x20]
call fcn.140298600
test bl, bl
mov rbx, qword [rsp + 0x40]
je 0x14012f2df
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
xor r9d, r9d
mov r8, rbp
mov rcx, rax
mov edx, 0x182
call qword [sym.imp.USER32.dll_SendMessageW]
mov al, 1
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
ret