joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1f318
Capabilities:
Get file attributes
Set file attributes
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0xf0
and qword [r11 + 8], 0
mov rax, rcx
mov rcx, qword [0x0002c398]
mov rbx, qword [rcx + 0x40]
and qword [r11 - 0x38], 0
and qword [r11 - 0x20], 0
and qword [r11 - 0x18], 0
mov dword [r11 - 0x40], 0x30
mov dword [r11 - 0x28], 0x240
mov qword [r11 - 0x30], rax
mov rdi, r9
mov esi, r8d
mov rbp, rdx
call qword [sym.imp.ntoskrnl.exe_IoGetDeviceAttachmentBaseRef]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1f385
mov rax, qword [rbx + 8]
mov qword [rbx + 0x10], rax
mov rax, qword [rbx + 0x10]
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xb8]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], 0x800
and qword [rsp + 0x60], 0
and dword [rsp + 0x58], 0
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x62
mov dword [rsp + 0x38], 5
mov dword [rsp + 0x30], 3
lea rcx, [rsp + 0x100]
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_IoCreateFileSpecifyDeviceObjectHint]
mov ebx, eax
test eax, eax
js 0x1f50d
and qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x80]
mov dword [rsp + 0x30], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov rcx, qword [rsp + 0x100]
xor r8d, r8d
mov dl, 1
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
mov rcx, qword [rsp + 0x100]
lea rdx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwFlushBuffersFile]
mov rcx, qword [rsp + 0x100]
mov edi, 4
lea esi, [rdi + 0x24]
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x80]
mov r9d, esi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
cmp dword [rsp + 0x80], 0
jl 0x1f4ff
mov ecx, 0x1c95a06
mov eax, 0xfa2b0929
lea r8, [rsp + 0x90]
mov dword [rsp + 0xa4], ecx
mov dword [rsp + 0x94], ecx
mov dword [rsp + 0xac], ecx
mov dword [rsp + 0x9c], ecx
mov rcx, qword [rsp + 0x100]
lea rdx, [rsp + 0x80]
mov r9d, esi
mov dword [rsp + 0xa0], eax
mov dword [rsp + 0x90], eax
mov dword [rsp + 0xa8], eax
mov dword [rsp + 0x98], eax
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0xf0]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x21a64
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x70
and qword [rax + 0x20], 0
mov edi, r8d
mov ebx, edx
call fcn.00021b78
and qword [0x0002c7c0], 0
lea rcx, [0x0002e820]
mov edx, 1
mov dword [0x00028994], ebx
mov dword [0x00028a34], edi
mov byte [0x0002c394], 0
call qword [sym.imp.ntoskrnl.exe_KeInitializeTimerEx]
lea rcx, [0x0002e820]
xor r9d, r9d
mov rdx, 0xffffffffca5b1700
mov r8d, 0x15f90
call qword [sym.imp.ntoskrnl.exe_KeSetTimerEx]
and qword [rsp + 0x30], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x60], 0
and qword [rsp + 0x68], 0
lea rax, [0x00021930]
mov ebx, 0x1fffff
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x98]
xor r9d, r9d
mov edx, ebx
mov dword [rsp + 0x40], 0x30
mov dword [rsp + 0x58], 0x200
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
js 0x21b64
mov rcx, qword [rsp + 0x98]
and qword [rsp + 0x28], 0
lea rax, [0x0002c7c0]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov rcx, qword [rsp + 0x98]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x21bf0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x80
xor edi, edi
mov qword [r11 + 0x10], rdi
cmp byte [0x0002c1fe], dil
jne 0x21dac
mov dword [rsp + 0x50], 0x30
lea rax, [0x0002ef30]
mov qword [r11 - 0x30], rdi
mov dword [rsp + 0x68], 0x200
mov qword [r11 - 0x28], rax
lea rax, [r11 + 8]
mov qword [r11 - 0x58], rax
lea r8, [r11 - 0x38]
lea rcx, [r11 + 0x10]
xor r9d, r9d
mov edx, 0xf003f
mov dword [rsp + 0x28], edi
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x10], rdi
mov qword [r11 - 0x68], rdi
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
cmp qword [rsp + 0x98], rdi
je 0x21dac
lea rdx, [0x00024c50]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x90], 1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x98]
mov edi, 4
lea rax, [rsp + 0x90]
lea rdx, [rsp + 0x40]
mov r9d, edi
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea rdx, [0x000243c0]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x90], 1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x98]
lea rax, [rsp + 0x90]
lea rdx, [rsp + 0x40]
mov r9d, edi
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea rdx, [0x00024c70]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x90], 1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x98]
lea rax, [rsp + 0x90]
lea rdx, [rsp + 0x40]
mov r9d, edi
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea rdx, [0x00024c80]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x90], 1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
or rcx, 0xffffffffffffffff
lea rdx, [0x00024c90]
xor eax, eax
mov r9d, 1
mov rdi, rdx
xor r8d, r8d
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
add rsp, 0x80
pop rdi
ret
Function at 0x22334
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x70
and qword [rax + 8], 0
and qword [0x0002e7e8], 0
and dword [0x0002e7f0], 0
mov ebx, 1
lea rcx, [0x0002e7f8]
xor r8d, r8d
mov edx, ebx
mov dword [0x0002e7e0], ebx
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
lea rcx, [0x0002e860]
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
and qword [rsp + 0x30], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x60], 0
and qword [rsp + 0x68], 0
lea rax, [0x00021fdc]
mov ebx, 0x1fffff
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x80]
xor r9d, r9d
mov edx, ebx
mov dword [rsp + 0x40], 0x30
mov dword [rsp + 0x58], 0x200
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
js 0x2241a
mov rcx, qword [rsp + 0x80]
and qword [rsp + 0x28], 0
lea rax, [0x0002e878]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov rcx, qword [rsp + 0x80]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
add rsp, 0x70
pop rbx
ret

Function at 0x31064
Capabilities:
Check os version
Create device object

Disassembly:
sub rsp, 0x28
mov r8, rdx
mov r9, rcx
call fcn.00031008
mov rdx, r8
mov rcx, r9
add rsp, 0x28
jmp fcn.00012e74
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140049f20]
mov dword [rax], 1
mov rax, qword [0x140049f30]
mov dword [rax], 1
mov rax, qword [0x140049f40]
mov dword [rax], 1
mov rax, qword [0x140049ea0]
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 0x14002c9f0
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 fcn.14003e180
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14003e180
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14002d6c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400521a8]
test eax, eax
je 0x14002d75a
lea rax, [0x140052180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400521b0]
mov qword [rbp - 8], rax
jmp 0x14002d73e
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 0x14002d732
cmp qword [rbp - 0x10], 0
je 0x14002d732
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 0x14002d6f8
lea rax, [0x140052180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002d75b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14002d860
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 0x14002d888
mov eax, 0
jmp 0x14002d8d6
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 0x14002d8b1
mov eax, 0
jmp 0x14002d8d6
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 0x14002d8d1
mov eax, 0
jmp 0x14002d8d6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14002d8dc
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 0x14002d95a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14002d951
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 0x14002d951
mov rax, qword [rbp - 8]
jmp 0x14002d96f
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 0x14002d924
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400f5790
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400f579d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400f57ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400f5795
lea eax, [rcx + 1]
jmp 0x1400f57bb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400f57ce
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400f57b4
sub eax, 3
jb 0x1400f57ee
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400f583d
sar eax, 1
movsxd rbp, eax
jb 0x1400f5824
jmp 0x1400f57fc
add ebx, ebx
jne 0x1400f57fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400f5824
inc ecx
add ebx, ebx
jne 0x1400f580a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400f5824
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400f581d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400f580c
add ecx, 2
jmp 0x1400f5829
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400f5752
jmp 0x1400f579d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xb5800
mov dl, 0x17
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400f5889
cmp rsi, rcx
jae 0x1400f5891
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400f5870
cmp al, 0x8f
ja 0x1400f5870
cmp byte [rsi - 2], 0xf
je 0x1400f5876
sub al, 0xe8
cmp al, 1
ja 0x1400f585a
cmp rsi, rcx
jae 0x1400f5891
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400f5860
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400f5891
lodsb al, byte [rsi]
jmp 0x1400f5870
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xf2000]
mov eax, dword [rdi]
or eax, eax
je 0x1400f58fa
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xf5000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400f589e
jns 0x1400f58d3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1400f58dd
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400f58f4
mov qword [rbx], rax
add rbx, 8
jmp 0x1400f58be
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400f5934
cmp al, 0xef
ja 0x1400f5926
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400f5906
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400f5915
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x23f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400f5988
sub rsp, 0xffffffffffffff80
jmp 0x140086c04
Function at 0x140001530
Capabilities:
Accept command line arguments

Disassembly:
push rbx
mov eax, 0x20
call fcn.140003910
sub rsp, rax
mov rbx, rcx
test rcx, rcx
jne 0x140001583
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
xor r8d, r8d
lea rdx, [0x14001e4b0]
mov r9, rax
mov cl, 0x45
call fcn.140002940
mov ecx, 0x1e7
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r8d, [rbx + 1]
lea rdx, str.called_with_NULL_pointer
lea rcx, str.ss_free
call fcn.140001d20
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x1400015b9
xor r8d, r8d
lea rdx, [0x14001e500]
lea rcx, str.ss_free
call fcn.140001d20
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140001620
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push rbx
mov eax, 0x250
call fcn.140003910
sub rsp, rax
mov rax, qword [0x14002a768]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r8d, 0x20
lea rdx, [rsp + 0x20]
lea rcx, str._AsJob
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1400018a6
lea rcx, str.C:MgrRun_
call fcn.140002e30
test eax, eax
je 0x1400018a6
call fcn.140002bb0
mov rdx, rax
lea rcx, str.Han0
mov r8d, 4
call fcn.140001950
test eax, eax
jne 0x1400018a6
mov byte [rsp + 0x20], al
mov word [rsp + 0x140], ax
call fcn.140002e80
mov r9, rax
lea rdx, [rsp + 0x140]
xor r8d, r8d
xor ecx, ecx
call fcn.140002c90
movups xmm0, xmmword [str.C:MgrRun_]
movaps xmmword [rsp + 0x40], xmm0
movsd xmm0, qword [0x14001e530]
movsd qword [rsp + 0x50], xmm0
call fcn.140002c20
lea rcx, [rsp + 0x40]
mov r8, rax
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1400016f0
xor edx, edx
nop dword [rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140001700
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140001720
movsd xmm0, qword [str._Run_]
mov eax, dword [0x14001e548]
movsd qword [rcx], xmm0
mov dword [rcx + 8], eax
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140001750
lea r8, [rsp + 0x140]
xor edx, edx
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140001770
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140001790
movsd xmm0, qword [str..log]
lea rdx, [rsp + 0x20]
movzx eax, word [0x14001e558]
mov r8d, 0x20
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
lea rcx, str._Job
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x1400017ee
call fcn.140002f10
lea rdx, [rsp + 0x20]
sub rdx, rax
nop dword [rax + rax]
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x1400017e0
lea rcx, [rsp + 0x40]
call fcn.1400021e0
mov rbx, rax
test rax, rax
je 0x1400018a6
call fcn.140002fa0
mov rdx, rax
mov rcx, rbx
call fcn.140002770
lea rdx, [0x14001e564]
mov rcx, rbx
call fcn.140002770
call fcn.140002bb0
mov rdx, rax
mov rcx, rbx
call fcn.140002770
lea rdx, [0x14001e564]
mov rcx, rbx
call fcn.140002770
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140002770
lea rcx, [rsp + 0x20]
call fcn.140003170
cmp eax, 0x10
jge 0x140001876
mov r8d, 0x10
lea rdx, [0x14001e568]
sub r8d, eax
mov rcx, rbx
call fcn.140002650
lea rdx, [0x14001e564]
mov rcx, rbx
call fcn.140002770
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rdx, rax
mov rcx, rbx
call fcn.140002770
mov rcx, rbx
call fcn.1400027d0
mov rcx, rbx
call fcn.140002090
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140003970
add rsp, 0x250
pop rbx
ret
Function at 0x140001b60
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x20
call fcn.140003910
sub rsp, rax
cmp qword [0x14002b238], 0
mov rbp, rcx
jne 0x140001bdf
xor r8d, r8d
lea edx, [rax - 0x1f]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x14002b230], rax
test rax, rax
jne 0x140001bbb
lea r8d, [rax + 1]
lea rdx, str.CreateMutex
lea rcx, str.ss_ch
call fcn.140001d20
mov ecx, 0x1000
call fcn.1400015d0
mov ecx, 0x2000
mov qword [0x14002b238], rax
call fcn.1400015d0
mov qword [0x14002b240], rax
jmp 0x140001c0f
mov rcx, qword [0x14002b230]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x140001c0f
mov r8d, 1
lea rdx, [0x14001e598]
lea rcx, str.ss_ch
call fcn.140001d20
movsxd rbx, dword [0x14002b214]
lea eax, [rbx + 1]
mov dword [0x14002b214], eax
cmp eax, 0x400
jl 0x140001c30
mov dword [0x14002b214], 0
mov rcx, rbp
call fcn.140003190
mov rcx, qword [0x14002b240]
lea rdi, [rbx*4]
lea rbx, [rbx*8]
lea esi, [rax + 8]
cmp qword [rbx + rcx], 0
jne 0x140001c90
mov eax, 0x20
mov ecx, esi
cmp esi, eax
cmovl ecx, eax
mov rax, qword [0x14002b238]
mov dword [rdi + rax], ecx
mov rcx, qword [0x14002b238]
mov ecx, dword [rdi + rcx]
call fcn.1400015d0
mov rcx, qword [0x14002b240]
mov qword [rbx + rcx], rax
mov rcx, qword [0x14002b240]
mov rax, qword [0x14002b238]
cmp dword [rdi + rax], esi
jge 0x140001cc1
mov rcx, qword [rbx + rcx]
call fcn.140001530
mov ecx, esi
call fcn.1400015d0
mov rdx, qword [0x14002b240]
mov qword [rbx + rdx], rax
mov rax, qword [0x14002b238]
mov dword [rdi + rax], esi
mov rcx, qword [0x14002b230]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x140001ce9
lea r8d, [rax + 1]
lea rdx, [0x14001e5c0]
lea rcx, str.ss_ch
call fcn.140001d20
mov rcx, qword [0x14002b240]
mov rdx, rbp
mov rcx, qword [rbx + rcx]
call fcn.1400032b0
mov rax, qword [0x14002b240]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, qword [rbx + rax]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001d20
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push rsi
push rdi
mov eax, 0xc0
call fcn.140003910
sub rsp, rax
mov rax, qword [0x14002a768]
xor rax, rsp
mov qword [rsp + 0xb0], rax
cmp dword [section..data], 0
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
je 0x140001f31
mov qword [rsp + 0xf0], rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0xf8], r14
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x6c]
movzx edx, word [rsp + 0x6a]
movzx r8d, word [rsp + 0x68]
movzx eax, word [rsp + 0x6e]
movzx r10d, word [rsp + 0x66]
movzx r11d, word [rsp + 0x62]
movzx r9d, word [rsp + 0x60]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x38], edx
mov edx, 0x40
mov dword [rsp + 0x30], r8d
lea r8, str._4.4d._2.2d._2.2d__2.2d:_2.2d:_2.2d._3.3d
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
call fcn.140001fd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x140001de2
test ebp, ebp
mov eax, 1
cmovne ebx, eax
call fcn.140003310
lea rcx, [0x14001e644]
call fcn.140002030
mov r8d, ebx
lea rcx, [0x14001e648]
mov edx, ebx
call fcn.140002030
lea rdx, [rsp + 0x70]
lea rcx, str._Date:_______s_n
call fcn.140002030
call fcn.140002e80
mov rdx, rax
lea rcx, str._Imagename:___s__n
call fcn.140002030
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea rcx, str._Command:_____s__n
call fcn.140002030
lea rax, [rsp + 0x50]
mov dword [rsp + 0x58], 0xff
xor r14d, r14d
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x30], r14
mov r9d, 0x400
mov dword [rsp + 0x28], pe_nt_image_headers64
mov r8d, ebx
mov ecx, 0x1100
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jle 0x140001eee
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x140001eee
movzx ecx, word [rdx]
mov rax, rdx
test cx, cx
je 0x140001eb5
cmp cx, 0xa
je 0x140001e9e
cmp cx, 0xd
jne 0x140001ea3
mov word [rax], 0x20
movzx ecx, word [rax + 2]
add rax, 2
test cx, cx
jne 0x140001e92
mov rdx, qword [rsp + 0x50]
cmp word [rax - 2], 0x20
jne 0x140001ec6
mov word [rax - 2], r14w
mov rdx, qword [rsp + 0x50]
cmp word [rax - 4], 0x20
jne 0x140001ed7
mov word [rax - 4], r14w
mov rdx, qword [rsp + 0x50]
lea rcx, str._Message:_____s__n
call fcn.140002030
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp word [rsi], 0
mov r14, qword [rsp + 0xf8]
je 0x140001f0b
mov rdx, rsi
lea rcx, str._Function:____s__n
call fcn.140002030
cmp word [rdi], 0
je 0x140001f20
mov rdx, rdi
lea rcx, str._Parameter:___s__n
call fcn.140002030
test ebp, ebp
jne 0x140001f4e
call fcn.1400033d0
mov rbx, qword [rsp + 0xf0]
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140003970
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
lea rcx, str._Status:_____Program_aborted___n
call fcn.140002030
mov ecx, ebx
call fcn.14000da14
int3