joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180136980
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x40]
call fcn.180136810
mov rax, qword [rsp + 0x40]
cmp qword [rax + 8], 0
je 0x1801369e8
lea r9, [rsp + 0x24]
mov r8d, 0x40
mov edx, 8
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1801369e8
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov qword [rax], rcx
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x180136a00
Capabilities:
Allocate or change rwx memory

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
lea r9, [rsp + 0x24]
mov r8d, 0x40
mov edx, 8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180136ad6
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
cmp qword [rax], rcx
je 0x180136ab5
movzx eax, byte [rsp + 0x58]
test eax, eax
je 0x180136a98
mov rcx, qword [rsp + 0x48]
call fcn.180138720
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jbe 0x180136a86
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
jmp 0x180136a96
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx]
mov qword [rax], rcx
jmp 0x180136aa8
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx]
mov qword [rax], rcx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x10], rcx
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x180136ca0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov byte [rsp + 0x20], 0
mov rcx, qword [rsp + 0x40]
call fcn.180138720
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jbe 0x180136d28
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
cmp qword [rax], rcx
je 0x180136d0d
mov dword [rsp + 0x24], 0
lea r9, [rsp + 0x24]
mov r8d, 0x40
mov edx, 8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180136d0d
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov byte [rsp + 0x20], 1
mov edx, 0x14
mov rcx, qword [rsp + 0x28]
call fcn.180137580
movzx eax, al
test eax, eax
je 0x180136d28
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x180137330
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x48
mov byte [rsp + 0x20], 0
mov rax, qword [rsp + 0x60]
mov edx, 1
mov rcx, rax
call fcn.180033240
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18013750a
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x30]
test eax, eax
jne 0x18013745a
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
call qword [rax]
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x28], rcx
movzx eax, byte [rsp + 0x78]
test eax, eax
je 0x1801373da
mov edx, 0x14
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x18]
call fcn.180137580
mov rax, qword [rsp + 0x60]
add rax, 8
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rcx
mov rdx, rax
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
call qword [rax + 8]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov dl, 1
mov rcx, qword [rsp + 0x28]
call qword [rax + 0x18]
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x180137455
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x60]
lea rdi, [rcx + 0x38]
mov rsi, rax
mov ecx, 5
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x60]
mov byte [rax + 0x30], 1
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x20]
mov qword [rax], rcx
jmp 0x1801374f1
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx]
cmp qword [rax + 0x18], rcx
jne 0x1801374f1
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
cmp qword [rax + 0x28], rcx
jne 0x1801374f1
mov dword [rsp + 0x24], 0
lea r9, [rsp + 0x24]
mov r8d, 0x40
mov edx, 5
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1801374f1
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x18]
movzx eax, byte [rax]
cmp eax, 0xe9
jne 0x1801374f1
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x20]
mov qword [rax], rcx
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x60]
mov rdi, rax
lea rsi, [rcx + 0x38]
mov ecx, 5
rep movsb byte [rdi], byte [rsi]
mov byte [rsp + 0x20], 1
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 8
mov rcx, qword [rsp + 0x38]
call fcn.1800ef5a0
movzx eax, byte [rsp + 0x20]
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x180137580
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xc8
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov byte [rsp + 0x20], 0
mov qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x78]
call fcn.180136ec0
nop
lea rcx, [rsp + 0x78]
call fcn.18000cbe0
test rax, rax
jbe 0x180137748
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x180137607
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x21], al
lea rcx, [rsp + 0x78]
call fcn.180004900
movzx eax, byte [rsp + 0x21]
jmp 0x180137760
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
call fcn.18000cd00
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.180136d40
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180137748
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call fcn.1801370f0
movzx eax, al
test eax, eax
je 0x180137734
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xe0]
sub rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call fcn.180137020
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180137734
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov r8, qword [rsp + 0xe8]
mov rdx, qword [rsp + 0xe0]
mov rcx, rax
call fcn.18010e910
test eax, eax
je 0x180137734
mov dword [rsp + 0x38], 0
lea r9, [rsp + 0x38]
mov r8d, 0x40
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180137734
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov rdi, qword [rsp + 0xe0]
mov rsi, rax
mov rcx, qword [rsp + 0xe8]
rep movsb byte [rdi], byte [rsi]
mov byte [rsp + 0x20], 1
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.1800ef5a0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x22], al
lea rcx, [rsp + 0x78]
call fcn.180004900
movzx eax, byte [rsp + 0x22]
add rsp, 0xc8
pop rdi
pop rsi
ret

Function at 0x180137840
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
je 0x18013785e
cmp qword [rsp + 0x48], 0
jne 0x180137860
jmp 0x1801378cd
mov edx, 8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180137888
mov edx, 8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x18013788a
jmp 0x1801378cd
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
cmp qword [rax], rcx
je 0x1801378cd
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1801378cd
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov qword [rax], rcx
add rsp, 0x38
ret
Function at 0x180138650
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov qword [rax], 0
mov rax, qword [rsp + 0x50]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x10], 0
lea rcx, [0x1801c52f8]
call fcn.1800a94f0
cmp qword [0x1801c4a18], 0
jne 0x1801386ea
cmp qword [0x1801c4a10], 0
jne 0x1801386ea
mov byte [0x1801c4a20], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x180137980]
xor edx, edx
xor ecx, ecx
call fcn.180115460
mov qword [0x1801c4a10], rax
cmp qword [0x1801c4a10], 0
je 0x1801386ea
mov edx, 0xfffffffe
mov rcx, qword [0x1801c4a10]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rax, qword [0x1801c4a18]
inc rax
mov qword [0x1801c4a18], rax
lea rcx, [0x1801c52f8]
call fcn.1800a9500
mov rax, qword [rsp + 0x50]
add rsp, 0x48
ret
Function at 0x140004907
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.1400123e0
mov r15, qword [0x14002048c]
cmp r15, 1
jne 0x1400049d6
push qword [0x14002057c]
pop rcx
call fcn.14000d5b4
mov r15, rax
and r15, r15
jle 0x14000496c
mov rcx, qword [0x14002057c]
call fcn.14000d5bc
mov rcx, qword [0x14002057c]
call fcn.14000d5d0
or rax, rax
je 0x14000496c
mov rbp, qword [0x140020584]
push qword [rbp + 0x10]
pop rcx
call fcn.14000da6c
jmp 0x140004949
push qword [0x14002056c]
pop rcx
call fcn.14000d5b4
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x1400049d6
push 5
push 0
push 1
push qword [0x14002056c]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009070
mov rcx, qword [0x14002056c]
call fcn.14000d5bc
mov rcx, qword [0x14002056c]
call fcn.14000d5d0
or rax, rax
je 0x1400049d6
mov rbp, qword [0x140020574]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x1400049b3
mov rax, 1
jmp 0x1400049e2
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006a58
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x14000720c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
invalid
invalid
invalid
invalid
xchg r11d, eax
invalid
xchg r11d, eax
invalid
xchg r11d, eax
invalid
invalid
std
invalid
Function at 0x14001ba94
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001baaa
mov al, 1
jmp 0x14001bb0a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001babb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001bb08
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019be8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001bb08
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001bb08
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001bb08
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001bb0a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001ff20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001ff48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001ff48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140054354
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400545c8
Function at 0x140011285
Capabilities:
Terminate process

Disassembly:
jmp 0x140017bb0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011320
Capabilities:
Parse pe header

Disassembly:
jmp 0x140018f00
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140018f20
xor al, al
jmp 0x140018fa1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140018f33
xor al, al
jmp 0x140018fa1
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 0x140018f5d
xor al, al
jmp 0x140018fa1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140018f71
xor al, al
jmp 0x140018fa1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140018f83
xor al, al
jmp 0x140018fa1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140018f9f
xor al, al
jmp 0x140018fa1
mov al, 1
add rsp, 0x38
ret
Function at 0x1402366e0
Capabilities:
Get file version info

Disassembly:
mov dword [rsp + 0x18], r8d
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov byte [rsp + 0x48], 0x76
mov r8d, dword [rsp + 0x50]
movzx edx, byte [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.1402366e0
lea r9, [rsp + 0x28]
mov r8d, 0xe3
mov edx, 0x44
mov rcx, qword [rsp + 0x28]
call sub.VERSION.dll_GetFileVersionInfoW
mov dword [rsp + 0x20], eax
movabs rax, 0x71da564a8d351a
mov qword [rsp + 0x40], rax
movzx edx, byte [rsp + 0x48]
movzx ecx, byte [rsp + 0x48]
call fcn.140236640
mov eax, 0xaa
add rsp, 0x38
ret

Function at 0x140236fb0
Capabilities:
Parse pe header

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

Function at 0x14023b5f4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14023b3f0
Function at 0x14023e050
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14023e0d7
mov rsi, rbx
cmp word [rax], bp
je 0x14023e096
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14023e080
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14023e07c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14023ea70
mov rdi, rax
test rax, rax
je 0x14023e0c4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1402439c0
mov rbp, rdi
xor ecx, ecx
call fcn.14023cd18
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140243220
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140243248
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140243248
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140005160
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140025040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov dword [rsp + 0x20], 0x130
mov rbx, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x1400051f0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x1400051e4
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400051df
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400052bd
mov rcx, r8
call fcn.140016980
xor eax, eax
jmp 0x140005289
cmp qword [rbx + 0x18], 0xf
mov r8, rbx
jbe 0x1400051fd
mov r8, qword [rbx]
lea rax, [rsp + 0x4c]
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140005223
inc rax
test ecx, ecx
jne 0x140005210
mov rcx, rdi
test edx, edx
je 0x140005247
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400051f0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400051aa
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
mov edi, dword [rsp + 0x28]
cmp rdx, 0xf
jbe 0x140005287
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x140005282
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400052bd
mov rcx, r8
call fcn.140016980
mov eax, edi
mov byte [rbx], 0
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140016960
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140006590
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x140025040]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov esi, edx
mov qword [rsp + 0x28], rcx
mov rbx, rcx
xor ebp, ebp
xor edx, edx
lea ecx, [rbp + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140006614
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x14000660b
cmp dword [rsp + 0x38], esi
je 0x140006660
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400065f3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
lea rdx, [0x14001c77f]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
xor r8d, r8d
mov qword [rbx + 0x18], rbp
mov rcx, rbx
call fcn.140004c40
mov rax, rbx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140016960
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
xorps xmm0, xmm0
lea rax, [rsp + 0x5c]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], rbp
nop word [rax + rax]
inc r8
cmp byte [rax + r8], bpl
jne 0x140006680
lea rdx, [rsp + 0x5c]
jmp 0x14000662c

Function at 0x140006e30
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140006e58
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140006e7e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140006e80
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140006ed9
test ecx, ecx
jle 0x140006eb9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_strchr_1
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140006ed9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140006ed9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x140006f00
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140006f22
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140006f38
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140006f54
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140006f56
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140006f92
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_strchr_1
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000702e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140006fcd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000700e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000702e
cmp rbx, rax
ja 0x140006fe0
test rbx, rbx
je 0x14000702e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret