joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007ef0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
cmp byte [0x1405f7c70], 0
jne 0x140007fb1
lea rcx, str.UMASK
mov byte [0x1405f7c70], 1
mov dword [0x14032fbd0], 0x1a0
mov dword [0x14032fbd4], 0x1e8
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140007f41
mov rcx, rax
call fcn.140007d50
or eax, 0x180
mov dword [0x14032fbd0], eax
lea rcx, str.UMASK_DIR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140007f66
mov rcx, rax
call fcn.140007d50
or eax, 0x1c0
mov dword [0x14032fbd4], eax
call fcn.140015510
test al, al
jne 0x140007fb8
call fcn.140015950
test al, al
jne 0x140007fb8
lea rcx, str.HOME
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov qword [0x1405f7d48], rax
test rax, rax
je 0x140007fa7
mov rdx, rax
lea rcx, [0x1405f7f70]
call fcn.140010cd0
mov qword [0x1405f7d48], rax
call fcn.1400080b0
call fcn.140017900
xor al, al
add rsp, 0x28
ret
mov al, 1
add rsp, 0x28
ret

Function at 0x1400080f0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140008197
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesWinsock2Parameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140008197
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesWinsockParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140008197
lea rcx, str.HAVE_TCPIP
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140008190
cmp byte [0x1405f7c71], 0
je 0x140008197
xor al, al
add rsp, 0x38
ret
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add rsp, 0x38
ret

Function at 0x1400081b0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1405f7248]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
call fcn.1400080f0
test al, al
je 0x140008237
mov qword [rsp + 0x1d0], rbx
lea rdx, [rsp + 0x20]
mov ebx, 0x202
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400081f7
cmp word [rsp + 0x20], bx
je 0x14000820e
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, ebx
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140008215
mov byte [0x1405f7c71], 1
mov rbx, qword [rsp + 0x1d0]
xor al, al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140050c80
add rsp, 0x1d8
ret
xor al, al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140050c80
add rsp, 0x1d8
ret
Function at 0x140008260
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0x980]
sub rsp, 0xa80
mov rax, qword [0x1405f7248]
xor rax, rsp
mov qword [rbp + 0x970], rax
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMySQL
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400083de
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x44]
mov qword [rsp + 0xa90], rbx
lea r8, [rsp + 0x60]
lea ebx, [rax + 1]
mov qword [rsp + 0xa98], rdi
lea rax, [rsp + 0x40]
mov dword [rsp + 0x44], 0xff
mov qword [rsp + 0x38], rax
xor edi, edi
lea rax, [rbp + 0x60]
mov dword [rsp + 0x40], 0x3ff
mov qword [rsp + 0x30], rax
xor edx, edx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x1400083c3
nop word [rax + rax]
cmp eax, 0xea
je 0x14000836d
test eax, eax
jne 0x1400083c3
cmp dword [rsp + 0x48], 1
jne 0x14000836d
lea r9, [rbp + 0x60]
mov qword [rsp + 0x20], rdi
lea r8, [0x1400559c8]
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x460]
call fcn.14001a7e0
lea rcx, [rbp + 0x460]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__putenv]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0x60]
mov dword [rsp + 0x44], 0xff
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x60]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x40], 0x3ff
mov qword [rsp + 0x28], rax
mov edx, ebx
mov qword [rsp + 0x20], rdi
inc ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x140008320
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0xa98]
mov rbx, qword [rsp + 0xa90]
mov rcx, qword [rbp + 0x970]
xor rcx, rsp
call fcn.140050c80
add rsp, 0xa80
pop rbp
ret

Function at 0x14000d100
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x20
test rcx, rcx
mov r14d, edx
mov esi, 1
lea rdx, [0x14000c900]
cmovne rsi, rcx
lea rcx, [0x1405f7d08]
call fcn.14000b2c0
mov rcx, rsi
test r14b, 0x20
je 0x14000d144
mov rax, qword [0x1405f7cf0]
mov edx, 1
call rax
jmp 0x14000d14d
mov rax, qword [0x1405f7ce8]
call rax
mov rdi, rax
test rax, rax
jne 0x14000d1ce
mov qword [rsp + 0x50], rbp
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call fcn.1400158e0
mov ebp, r14d
and ebp, 8
je 0x14000d1a1
lea rax, [fcn.1400124f0]
mov qword [rsp + 0x48], rbx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.14000abe0
lea rcx, fcn.1400124f0
mov rbx, rax
call fcn.14000abd0
xchg qword [rax], rbx
mov rbx, qword [rsp + 0x48]
test r14b, 0x18
je 0x14000d1b9
mov r8, rsi
mov edx, 0x440
mov ecx, 5
call fcn.14000fab0
test ebp, ebp
mov rbp, qword [rsp + 0x50]
je 0x14000d1ce
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rax, rdi
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14000f090
Capabilities:
Get file size

Disassembly:
jmp 0x140016b80
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rsi, rdx
mov ebx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
xor edi, edi
mov dword [rax], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140015dd0
mov rbp, qword [rax]
cmp rbp, 0xffffffffffffffff
je 0x140016c61
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x90]
mov r8, rbx
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140016c61
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open_osfhandle]
mov r8d, eax
test eax, eax
js 0x140016c61
mov edx, eax
lea rcx, [rsp + 0x98]
call fcn.140015b70
mov rdx, rsi
mov ecx, r8d
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64]
test eax, eax
js 0x140016c43
lea rdx, [rsi + 0x18]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140016c48
mov edi, 0xffffffff
cmp byte [rsp + 0x98], 0
jne 0x140016c66
mov ecx, dword [rsp + 0x9c]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
jmp 0x140016c66
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x140016c7c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], ebx
je 0x140016ccc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0
je 0x140016cac
test ebx, ebx
je 0x140016cac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, dword [rax]
mov ecx, ebx
call fcn.14001a5f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp esi, dword [rax]
je 0x140016cac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], esi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0
jne 0x140016cbe
mov ecx, ebx
call fcn.14001a5f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call fcn.1400158e0
nop
mov eax, edi
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000f4c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rax, rdx
mov edi, r9d
mov r9, rcx
mov rsi, rcx
mov rcx, rax
mov edx, 1
mov rbx, r8
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rbp, rax
cmp rax, rbx
je 0x14000f59b
test dil, 0x1a
je 0x14000f561
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
je 0x14000f530
mov rcx, rsi
call fcn.14000f4b0
mov ecx, eax
call fcn.140017d80
mov rbx, rax
call fcn.140015370
mov edx, 2
mov ecx, eax
jmp 0x14000f556
mov eax, edi
and eax, 6
je 0x14000f561
mov rcx, rsi
call fcn.14000f4b0
mov ecx, eax
call fcn.140017d80
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edx, 9
mov ecx, dword [rax]
mov r9, rbx
xor r8d, r8d
call fcn.14000f420
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0
je 0x14000f576
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
jmp 0x14000f57b
mov ecx, 0xffffffff
call fcn.1400158e0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
jne 0x14000f592
and edi, 6
je 0x14000f5a4
mov rax, 0xffffffffffffffff
jmp 0x14000f5a7
and edi, 6
je 0x14000f5a4
xor eax, eax
jmp 0x14000f5a7
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140013b80
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1405f7248]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [0x1405fc288]
test rax, rax
jne 0x140013c37
movzx eax, word [0x14005725c]
lea r8, [rsp + 0x22]
mov word [rsp + 0x20], ax
mov edx, 0x1004
movzx eax, byte [0x14005725e]
mov ecx, 0x800
mov byte [rsp + 0x22], al
xor eax, eax
mov dword [rsp + 0x23], eax
mov word [rsp + 0x27], ax
mov byte [rsp + 0x29], al
lea r9d, [rax + 7]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
xor edx, edx
lea r8, [rsp + 0x20]
mov eax, edx
lea r9, str.cp932
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
inc rax
cmp cl, byte [r9 + rax - 1]
jne 0x140013c17
cmp rax, 6
jne 0x140013c00
jmp 0x140013c1c
sbb edx, edx
or edx, 1
test edx, edx
lea rcx, [0x14045bde0]
lea rax, [0x140331e50]
cmove rax, rcx
mov qword [0x1405fc288], rax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140050c80
add rsp, 0x48
ret
Function at 0x140016b80
Capabilities:
Get file size

Disassembly:
jmp 0x140016b80
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rsi, rdx
mov ebx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
xor edi, edi
mov dword [rax], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140015dd0
mov rbp, qword [rax]
cmp rbp, 0xffffffffffffffff
je 0x140016c61
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x90]
mov r8, rbx
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140016c61
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__open_osfhandle]
mov r8d, eax
test eax, eax
js 0x140016c61
mov edx, eax
lea rcx, [rsp + 0x98]
call fcn.140015b70
mov rdx, rsi
mov ecx, r8d
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64]
test eax, eax
js 0x140016c43
lea rdx, [rsi + 0x18]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x140016c48
mov edi, 0xffffffff
cmp byte [rsp + 0x98], 0
jne 0x140016c66
mov ecx, dword [rsp + 0x9c]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
jmp 0x140016c66
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x140016c7c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], ebx
je 0x140016ccc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0
je 0x140016cac
test ebx, ebx
je 0x140016cac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, dword [rax]
mov ecx, ebx
call fcn.14001a5f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp esi, dword [rax]
je 0x140016cac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], esi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0
jne 0x140016cbe
mov ecx, ebx
call fcn.14001a5f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call fcn.1400158e0
nop
mov eax, edi
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400181b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [0x14032fc78]
mov rdi, r8
mov esi, edx
mov rbx, rcx
movsxd r9, r9d
add rsi, rcx
xor edx, edx
mov rcx, rdi
mov r10d, dword [rax + r9*4]
shr r10d, 3
mov r8d, r10d
lea rbp, [r10 + rdi]
call sub.VCRUNTIME140.dll_memset
mov rax, rdi
cmp rbx, rsi
jae 0x140018217
nop word [rax + rax]
movzx ecx, byte [rbx]
cmp rax, rbp
cmove rax, rdi
inc rbx
xor byte [rax], cl
inc rax
cmp rbx, rsi
jb 0x140018200
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001a400
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsx ebx, cl
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, ebx
mov edi, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
lea ecx, [rax - 0x41]
cmp cl, 0x19
ja 0x14001a440
movsx ecx, al
sub ecx, 0x41
movzx edx, cl
bt edi, edx
jae 0x14001a440
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
add rsp, 0x20
pop rdi
ret
Function at 0x140001330
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1401ac040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rdx
mov qword [rsp + 0x38], rdx
xor ebp, ebp
mov ecx, 0x250
call fcn.14004ecf4
mov rbx, rax
mov qword [rsp + 0x30], rax
mov dword [rax], ebp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rbp
xorps xmm0, xmm0
movups xmmword [rax + 0x18], xmm0
movups xmmword [rax + 0x28], xmm0
movups xmmword [rax + 0x38], xmm0
mov qword [rax + 0x48], rbp
mov edx, 0x102
mov rcx, rax
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
xor eax, eax
mov qword [rbx + 0x50], rax
lea rcx, [rbx + 0x58]
xor edx, edx
mov r8d, 0x1f4
call sub.VCRUNTIME140.dll_memset
mov word [rbx + 0x24c], bp
mov rsi, qword [0x1401b20d0]
mov qword [0x1401b20d0], rbx
test rsi, rsi
je 0x1400013e1
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_destroy_in_situ]
mov edx, 0x250
mov rcx, rsi
call fcn.14004ef78
mov rdx, rdi
lea rcx, [0x1401b20e0]
call fcn.140004cc0
mov ecx, 0x10
call fcn.14004ecf4
mov rbx, rax
mov qword [rsp + 0x30], rax
mov ecx, 8
call fcn.14004ecf4
lea rcx, [0x1401b20b0]
mov qword [rax], rcx
mov qword [rsp + 0x40], rax
lea rsi, [rbx + 8]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x140005ab0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x1400014b1
mov rcx, qword [0x1401b20d8]
mov qword [0x1401b20d8], rbx
test rcx, rcx
je 0x14000146f
cmp dword [rcx + 8], 0
je 0x140001464
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov edx, 0x10
call fcn.14004ef78
nop
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140001488
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], rbp
lea rax, [0x1401b20d0]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14004ebf0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov dword [rsi], ebp
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x140001710
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1401ac040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov esi, ecx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000176f
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_create_snapshot.
call fcn.1400053b0
lea rdx, [0x140005580]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
jmp 0x14000181b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x1400017b9
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_enumerate_processes.
call fcn.1400053b0
lea rdx, [0x140005580]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14000181b
mov qword [rsp + 0x170], rbx
cmp dword [rsp + 0x40], esi
jne 0x1400017f6
mov r8d, dword [rsp + 0x28]
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400017f6
mov edx, 9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400017c1
mov rbx, qword [rsp + 0x170]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14004ebf0
mov rsi, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
Function at 0x140001a20
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x1401ac040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140001a9d
nop word [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
mov rcx, rbx
test eax, eax
je 0x140001aa1
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140001a70
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140001aab
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14004ebf0
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret

Function at 0x1400043f0
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 0x140004418
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 0x14000443e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004440
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004499
test ecx, ecx
jle 0x140004479
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
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 0x140004499
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004499
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 0x1400044c0
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 0x1400044e2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400044f8
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 0x140004514
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004516
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004552
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
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 0x1400045ee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000458d
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 0x1400045ce
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 0x1400045ee
cmp rbx, rax
ja 0x1400045a0
test rbx, rbx
je 0x1400045ee
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