joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400018c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp byte [rdx + 0x11], 0x6e
mov rbx, rcx
mov r13, rdx
mov rdi, r8
je 0x1400019e0
lea rdx, [0x140010254]
mov rcx, r8
call fcn.140003fb0
test rax, rax
mov r12, rax
je 0x140001ad1
lea rdx, [0x140010129]
mov rcx, rbx
call fcn.140003fb0
test rax, rax
mov rbp, rax
je 0x140001a68
mov edx, dword [r13 + 4]
xor r8d, r8d
mov rcx, rax
add edx, dword [rbx + 0x1000]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140001ab0
cmp byte [r13 + 0x10], 1
je 0x140001a18
mov ecx, 0x2000
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test rax, rax
mov rdi, rax
je 0x140001af2
mov esi, dword [r13 + 0xc]
test rsi, rsi
jne 0x14000198e
jmp 0x140001a80
mov r9, r12
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
test rax, rax
je 0x140001a90
sub rsi, rbx
je 0x140001a80
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
cmp rsi, rbx
mov rcx, rdi
cmovbe rbx, rsi
mov rdx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test rax, rax
jne 0x140001968
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002910
mov ebx, 0xffffffff
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x140001a2b
call fcn.140001750
test rax, rax
mov rsi, rax
je 0x140001a4a
mov rdx, rdi
mov rcx, rax
call fcn.140004050
mov rcx, rsi
mov ebx, eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
test ebx, ebx
js 0x140001a50
mov eax, ebx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r9d, r9d
mov r8, r12
mov rdx, r13
mov rcx, rbp
call fcn.140001490
mov ebx, eax
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov eax, ebx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov ebx, 0xffffffff
nop
lea rdx, [r13 + 0x12]
lea rcx, str.Failed_to_create_symbolic_link__s__n
call fcn.1400027b0
jmp 0x140001a06
lea rdx, [r13 + 0x12]
mov ebx, 0xffffffff
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.1400027b0
jmp 0x140001a33
xor ebx, ebx
jmp 0x1400019cf
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
call fcn.140002910
jmp 0x1400019ca
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140002910
mov ebx, 0xffffffff
jmp 0x140001a2b
lea r8, [r13 + 0x12]
mov ebx, 0xffffffff
lea rdx, str.Failed_to_extract__s:_failed_to_open_target_file__n
lea rcx, str.fopen
call fcn.140002910
jmp 0x140001a06
lea r8, [r13 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
call fcn.140002910
jmp 0x140001ac7
Function at 0x140007230
Capabilities:
Create directory

Disassembly:
push r15
mov eax, 0x3038
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000dd80
sub rsp, rax
mov rbx, r8
mov r14, rcx
mov rcx, rdx
mov rdi, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, rbx
mov rsi, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rax, [rsi + rax + 1]
cmp rax, 0xfff
ja 0x140007330
lea rsi, [rsp + 0x30]
mov r9, rdi
mov edx, 0x1000
mov dword [rsp + 0x20], 0x5c
lea r8, str._s_c
mov rcx, rsi
mov ebp, 0x1000
call fcn.14000e670
mov edx, 0x5c
mov rcx, rbx
lea r12, [0x140011be5]
movsxd rdi, eax
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
lea r13, [rsp + 0x1030]
sub rbp, rdi
add rdi, rsi
test rax, rax
mov r15, rax
jne 0x1400072e6
jmp 0x140007340
lea rcx, [r15 + 1]
mov edx, 0x5c
call sub.api_ms_win_crt_private_l1_1_0.dll_strchr
test rax, rax
mov r15, rax
je 0x140007340
mov r9d, r15d
mov r8, r12
mov rdx, rbp
mov qword [rsp + 0x20], rbx
sub r9d, ebx
mov rcx, rdi
call fcn.14000e670
mov rcx, rsi
call fcn.140003f70
test eax, eax
jne 0x1400072d0
mov r8d, 0x1000
mov rdx, r13
mov rcx, rsi
call fcn.140008390
mov rdx, qword [r14 + 0x3038]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400072d0
mov eax, 0xffffffff
jmp 0x140007342
xor eax, eax
add rsp, 0x3038
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140007360
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rdi
mov eax, 0x1020
push rsi
push rbx
call fcn.14000dd80
sub rsp, rax
mov rsi, rdx
lea rdx, [0x140011bea]
call fcn.140003fb0
test rax, rax
mov rbx, rax
je 0x14000744e
lea rdx, [0x140011bed]
mov rcx, rsi
call fcn.140003fb0
test rax, rax
mov rsi, rax
je 0x140007446
lea rdi, [rsp + 0x20]
jmp 0x1400073ef
mov r8d, 0x1000
mov r9, rbx
mov edx, 1
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test rax, rax
mov r8, rax
je 0x140007430
mov r9, rsi
mov edx, 1
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
test rax, rax
je 0x140007420
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
jne 0x140007420
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_feof
test eax, eax
je 0x1400073b0
xor edi, edi
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov eax, edi
add rsp, 0x1020
pop rbx
pop rsi
pop rdi
ret
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_clearerr
mov edi, 0xffffffff
jmp 0x1400073fd
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
test eax, eax
je 0x1400073fb
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_clearerr
jmp 0x140007428
mov rcx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov edi, 0xffffffff
jmp 0x14000740d
Function at 0x140007460
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r12, rcx
mov ecx, 0x2000
mov rbp, rdx
mov rdi, r8
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test rax, rax
mov rsi, rax
je 0x140007550
xor edx, edx
mov r8d, 2
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140007550
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
movsxd rbx, eax
cmp rbx, rdi
jb 0x140007550
mov r15d, 1
sub r15, rdi
mov qword [rsp + 0x28], r15
mov r13d, 0x2000
cmp rbx, r13
cmovae r13, rbx
lea r14, [r13 - 0x2000]
sub rbx, r14
cmp rbx, rdi
jb 0x140007550
xor r8d, r8d
mov edx, r14d
mov rcx, r12
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140007550
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp rax, rbx
jne 0x140007550
mov rdx, qword [rsp + 0x28]
lea rbx, [rdx + rax]
jmp 0x14000753a
lea r15, [rbx - 1]
mov r8, rdi
mov rdx, rbp
lea rcx, [rsi + r15]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
je 0x140007570
mov rbx, r15
test rbx, rbx
jne 0x140007520
lea rbx, [r14 + rdi - 1]
test r14, r14
jne 0x1400074c9
nop dword [rax]
xor ebx, ebx
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rax, rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [r13 + rbx - 0x2001]
jmp 0x140007552
Function at 0x1400075c0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push r15
mov eax, 0x2288
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000dd80
sub rsp, rax
lea r8, str._s
mov edx, 0x1000
lea r13, [rsp + 0x280]
mov qword [rsp + 0x22d0], rcx
mov r9, rcx
mov rcx, r13
call fcn.140007580
cmp eax, 0xfff
jg 0x140007728
lea rsi, [rsp + 0x30]
mov r12d, 0x1000
mov rcx, r13
lea ebx, [rax - 1]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
sub r12d, ebx
cmp rax, 0xffffffffffffffff
mov r14, rax
je 0x140007728
mov rdi, qword [sym.imp.KERNEL32.dll_FindNextFileW]
movsxd rax, ebx
lea r15, [r13 + rax*2]
movsxd rax, r12d
lea rbx, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea rbp, [0x140011c0a]
mov rdx, rbp
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x1400076b8
lea rdx, [0x140011c0e]
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x1400076b8
mov rdx, qword [rsp + 0x28]
lea r8, [0x140011c14]
mov r9, rbx
mov rcx, r15
call fcn.140007580
cmp eax, r12d
jge 0x1400076b8
mov eax, dword [rsp + 0x30]
mov rcx, r13
test al, 0x10
je 0x140007700
test ah, 4
je 0x1400076b0
cmp dword [rsp + 0x54], 0xa000000c
je 0x140007720
call fcn.1400075c0
nop dword [rax]
mov rdx, rsi
mov rcx, r14
call rdi
test eax, eax
jne 0x140007658
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x22d0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
setne al
movzx eax, al
neg eax
add rsp, 0x2288
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, rsi
mov rcx, r14
call rdi
test eax, eax
jne 0x140007658
jmp 0x1400076c4
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1400076b8
mov eax, 0xffffffff
jmp 0x1400076e6

Function at 0x1400078c0
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x4028
push rbx
call fcn.14000dd80
sub rsp, rax
xor r8d, r8d
xor edx, edx
call fcn.140008390
lea rbx, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub eax, 1
cmp eax, 0xffe
ja 0x140007938
lea rsi, [rsp + 0x2020]
mov r8d, 0x1000
mov rcx, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
sub eax, 1
cmp eax, 0xffe
ja 0x140007938
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.140008290
add rsp, 0x4028
pop rbx
pop rsi
ret
xor eax, eax
add rsp, 0x4028
pop rbx
pop rsi
ret
Function at 0x140007df0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push r12
mov eax, 0x2110
push rbp
push rdi
push rsi
push rbx
call fcn.14000dd80
sub rsp, rax
mov r8d, 0x1000
xor ebx, ebx
lea rsi, [rsp + 0x110]
add rcx, 0x10
lea r12, [rsp + 0xa0]
mov rdx, rsi
call fcn.140008390
mov edx, 1
lea rcx, [0x140007730]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, r12
mov dword [rsp + 0x60], 0x18
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
pxor xmm0, xmm0
mov rbp, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
movups xmmword [rsp + 0xa8], xmm0
xor ecx, ecx
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xdc], 0x101
mov word [rsp + 0xe0], ax
call rbp
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov rdi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
mov ecx, eax
call rdi
mov ecx, 1
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf0], rax
call rbp
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov ecx, eax
call rdi
mov ecx, 2
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf8], rax
call rbp
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov ecx, eax
call rdi
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0x100], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
mov qword [rsp + 0x40], r12
mov rcx, rsi
mov dword [rsp + 0x28], 0
lea r8, [rsp + 0x60]
mov rdx, rax
lea rax, [rsp + 0x80]
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140007f90
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x80]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x5c]
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdx, str.Failed_to_create_child_process__n
lea rcx, str.CreateProcessW
call fcn.140002b90
mov eax, 0xffffffff
jmp 0x140007f7b
Function at 0x1400080e0
Capabilities:
Enumerate process modules

Disassembly:
push r15
mov eax, 0x4048
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000dd80
sub rsp, rax
mov dword [rsp + 0x3c], 0
lea rbx, [rsp + 0x3c]
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
xor edx, edx
mov r9, rbx
mov rcx, rax
mov rsi, rax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x140008130
mov r12d, dword [rsp + 0x3c]
test r12d, r12d
jne 0x140008148
add rsp, 0x4048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, r12d
mov edx, 1
call sub.api_ms_win_crt_heap_l1_1_0.dll_calloc
test rax, rax
mov rdi, rax
je 0x140008130
mov r9, rbx
mov r8d, r12d
mov rdx, rax
mov rcx, rsi
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
jne 0x140008190
mov rcx, rdi
add rsp, 0x4048
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.api_ms_win_crt_heap_l1_1_0.dll_free
lea r14, [rsp + 0x2040]
mov r8d, 0x1000
lea rcx, [rbp + 0x2022]
mov rdx, r14
call fcn.140008390
test rax, rax
je 0x140008172
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x3c]
shr eax, 3
test eax, eax
je 0x140008172
lea r12d, [rax*8]
mov rbx, rdi
mov r15, rdi
lea rbp, [rsp + 0x40]
add r12, rdi
xor r13d, r13d
nop dword [rax + rax]
mov rdx, qword [r15]
mov r9d, 0x1000
mov r8, rbp
mov rcx, rsi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x140008223
mov r8, qword [rsp + 0x28]
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140008223
mov rdx, qword [r15]
movsxd rax, r13d
add r13d, 1
mov qword [rdi + rax*8], rdx
add r15, 8
cmp r15, r12
jne 0x1400081e8
test r13d, r13d
jle 0x140008172
movsxd r13, r13d
lea r14, [rdi + r13*8]
mov r13, qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140008255
add rbx, 8
cmp r14, rbx
je 0x140008172
mov rdx, qword [rbx]
mov r9d, 0x1000
mov r8, rbp
mov rcx, rsi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x140008248
xor r12d, r12d
jmp 0x14000827e
cmp r12d, 0x20
je 0x140008248
mov rcx, qword [rbx]
add r12d, 1
call r13
test eax, eax
jne 0x140008278
jmp 0x140008248
Function at 0x14000cfc0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.14000e620
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x14000d030
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14001e374]
test esi, esi
mov rbx, rcx
jle 0x14000d160
mov rax, qword [0x14001e378]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000d07b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000d105
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000d060
mov rcx, rbx
call fcn.14000daa0
test rax, rax
mov rdi, rax
je 0x14000d182
mov rax, qword [0x14001e378]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000dbe0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14001e378]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000d167
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000d0fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000d110
add dword [0x14001e374], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14001e378]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000d0fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000cfc0
nop dword [rax]
xor esi, esi
jmp 0x14000d088
mov rax, qword [0x14001e378]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14000cfc0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14000cfc0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14000d6f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14001e3e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001e3c0]
test rbx, rbx
je 0x14000d74c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000d743
test rsi, rsi
je 0x14000d743
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000d728
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000d960
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000d998
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000d9a0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000d970
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000d998
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000d9a0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000d980
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000d998
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000d9a0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000daa0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140015ba0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000dac0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000dac8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000dac0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000db1d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x14000db14
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000dac0
add rax, 0x28
cmp rax, r9
jne 0x14000db00
xor eax, eax
ret

Function at 0x14000db20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140015ba0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000db3f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000db48
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000db3f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x14000dbe0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140015ba0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000dbff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000dc08
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x18000139c
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push rbp
push rbx
push rdi
push rsi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 8
sub rsp, 0x20
mov rbx, rcx
xor rax, rax
mov rcx, rbp
sub rcx, rsp
mov rdi, rsp
rep stosb byte [rdi], al
mov rcx, rbx
mov qword [rbp - 8], rcx
mov qword [rbp - 0x10], rdx
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x20], r9
mov rbx, qword gs:[0x60]
mov rbx, qword [rbx + 0x18]
mov rbx, qword [rbx + 0x20]
mov r12, rbx
mov rax, qword [rbx + 0x40]
cmp byte [rax + 0x28], 0x4b
je 0x1800013fd
cmp byte [rax + 0x28], 0x6b
je 0x1800013fd
jmp 0x180001443
cmp byte [rax + 0x30], 0x45
je 0x18000140b
cmp byte [rax + 0x30], 0x65
je 0x18000140b
jmp 0x180001443
cmp byte [rax + 0x32], 0x4c
je 0x180001419
cmp byte [rax + 0x32], 0x6c
je 0x180001419
jmp 0x180001443
cmp byte [rax + 0x36], 0x32
je 0x180001421
jmp 0x180001443
cmp byte [rax + 0x3c], 0x4c
je 0x18000142f
cmp byte [rax + 0x3c], 0x6c
je 0x18000142f
jmp 0x180001443
cmp byte [rax + 0x3e], 0x4c
je 0x18000143d
cmp byte [rax + 0x3c], 0x6c
je 0x18000143d
jmp 0x180001443
mov rbx, qword [rbx + 0x20]
jmp 0x18000144b
mov rbx, qword [rbx]
cmp r12, rbx
jne 0x1800013eb
mov r15, rbx
xor r8, r8
mov r8d, dword [rbx + 0x3c]
mov rdx, r8
add rdx, rbx
mov r8d, dword [rdx + 0x88]
add r8, rbx
xor rsi, rsi
mov esi, dword [r8 + 0x20]
add rsi, rbx
xor rcx, rcx
movabs r9, 0x41636f7250746546
inc r9
inc rcx
xor rax, rax
mov eax, dword [rsi + rcx*4]
add rax, rbx
cmp qword [rax], r9
jne 0x18000147f
xor rsi, rsi
mov esi, dword [r8 + 0x24]
add rsi, rbx
mov cx, word [rsi + rcx*2]
xor rsi, rsi
mov esi, dword [r8 + 0x1c]
add rsi, rbx
xor rdx, rdx
mov edx, dword [rsi + rcx*4]
add rdx, rbx
mov r14, rdx
mov rax, r15
mov r8, r14
mov rsp, rbp
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rdi
pop rbx
pop rbp
ret
Function at 0x1800013d4
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push rbp
push rbx
push rdi
push rsi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 8
sub rsp, 0x20
mov rbx, rcx
xor rax, rax
mov rcx, rbp
sub rcx, rsp
mov rdi, rsp
rep stosb byte [rdi], al
mov rcx, rbx
mov qword [rbp - 8], rcx
mov qword [rbp - 0x10], rdx
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x20], r9
mov rbx, qword gs:[0x60]
mov rbx, qword [rbx + 0x18]
mov rbx, qword [rbx + 0x20]
mov r12, rbx
mov rax, qword [rbx + 0x40]
cmp byte [rax + 0x28], 0x4b
je 0x1800013fd
cmp byte [rax + 0x28], 0x6b
je 0x1800013fd
jmp 0x180001443
cmp byte [rax + 0x30], 0x45
je 0x18000140b
cmp byte [rax + 0x30], 0x65
je 0x18000140b
jmp 0x180001443
cmp byte [rax + 0x32], 0x4c
je 0x180001419
cmp byte [rax + 0x32], 0x6c
je 0x180001419
jmp 0x180001443
cmp byte [rax + 0x36], 0x32
je 0x180001421
jmp 0x180001443
cmp byte [rax + 0x3c], 0x4c
je 0x18000142f
cmp byte [rax + 0x3c], 0x6c
je 0x18000142f
jmp 0x180001443
cmp byte [rax + 0x3e], 0x4c
je 0x18000143d
cmp byte [rax + 0x3c], 0x6c
je 0x18000143d
jmp 0x180001443
mov rbx, qword [rbx + 0x20]
jmp 0x18000144b
mov rbx, qword [rbx]
cmp r12, rbx
jne 0x1800013eb
mov r15, rbx
xor r8, r8
mov r8d, dword [rbx + 0x3c]
mov rdx, r8
add rdx, rbx
mov r8d, dword [rdx + 0x88]
add r8, rbx
xor rsi, rsi
mov esi, dword [r8 + 0x20]
add rsi, rbx
xor rcx, rcx
movabs r9, 0x41636f7250746546
inc r9
inc rcx
xor rax, rax
mov eax, dword [rsi + rcx*4]
add rax, rbx
cmp qword [rax], r9
jne 0x18000147f
xor rsi, rsi
mov esi, dword [r8 + 0x24]
add rsi, rbx
mov cx, word [rsi + rcx*2]
xor rsi, rsi
mov esi, dword [r8 + 0x1c]
add rsi, rbx
xor rdx, rdx
mov edx, dword [rsi + rcx*4]
add rdx, rbx
mov r14, rdx
mov rax, r15
mov r8, r14
mov rsp, rbp
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rdi
pop rbx
pop rbp
ret

Function at 0x1800025b4
Capabilities:
Timestomp file

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x20]
lea r8, [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileTime]
nop dword [rax + rax]
test eax, eax
je 0x18000260d
lea r9, [rsp + 0x50]
mov rcx, rbx
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileTime]
nop dword [rax + rax]
mov ecx, 1
mov edx, 0xffffffff
test eax, eax
cmove ecx, edx
mov eax, ecx
jmp 0x180002612
mov eax, 0xffffffff
add rsp, 0x30
pop rbx
ret