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

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140047960]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x14003966a
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140039679
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400396b0
cmp eax, 0x103
je 0x1400396ba
test eax, eax
js 0x140039696
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400396b0
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14001a2b0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14001a350
mov ecx, 7
int 0x29
ud2

Function at 0x140039b70
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140039ba6
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [0x140037db0]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.140006c10
ud2
Function at 0x14003dc20
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.14003e9c0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x14003dc90
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14004e254]
test esi, esi
mov rbx, rcx
jle 0x14003ddc0
mov rax, qword [0x14004e258]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14003dcdb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14003dd65
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14003dcc0
mov rcx, rbx
call fcn.14003e6e0
test rax, rax
mov rdi, rax
je 0x14003dde2
mov rax, qword [0x14004e258]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14003e820
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14004e258]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14003ddc7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14003dd5e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14003dd70
add dword [0x14004e254], 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 [0x14004e258]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14003dd5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14003dc20
nop dword [rax]
xor esi, esi
jmp 0x14003dce8
mov rax, qword [0x14004e258]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14003dc20
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14003dc20
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14003e350
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14004e2c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14004e2a0]
test rbx, rbx
je 0x14003e3ac
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 0x14003e3a3
test rsi, rsi
je 0x14003e3a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14003e388
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 0x14003e6e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140048b40]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14003e700
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14003e708
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14003e700
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14003e75d
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 0x14003e754
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14003e700
add rax, 0x28
cmp rax, r9
jne 0x14003e740
xor eax, eax
ret

Function at 0x14003e760
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140048b40]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14003e77f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14003e788
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14003e77f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14003e820
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140048b40]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14003e83f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14003e848
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x2fc54c050
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc54d130
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc54ca52
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc56f108]
test eax, eax
je 0x2fc54caea
lea rax, [0x2fc56f0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc56f110]
mov qword [rbp - 8], rax
jmp 0x2fc54cace
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 0x2fc54cac2
cmp qword [rbp - 0x10], 0
je 0x2fc54cac2
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 0x2fc54ca88
lea rax, [0x2fc56f0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc54caeb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc54cbf0
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 0x2fc54cc18
mov eax, 0
jmp 0x2fc54cc66
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 0x2fc54cc41
mov eax, 0
jmp 0x2fc54cc66
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 0x2fc54cc61
mov eax, 0
jmp 0x2fc54cc66
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc54cc6c
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 0x2fc54ccea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc54cce1
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 0x2fc54cce1
mov rax, qword [rbp - 8]
jmp 0x2fc54ccff
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 0x2fc54ccb4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140ea4c64
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140ea4c6e
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140ea4c97
pop rbp
sub rbp, 0x33
sub rbp, 0xea4c64
sub rsp, 0x20
jmp 0x140ea4cb6
mov rax, 0xea4c64
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffb1baefa2
xor byte [rax], dl
inc rax
dec rcx
jne 0x140ea4cd5
jmp 0x140ea4cec
invalid
Function at 0x2fc4d51b0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d6290
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d5bb2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f8108]
test eax, eax
je 0x2fc4d5c4a
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f8110]
mov qword [rbp - 8], rax
jmp 0x2fc4d5c2e
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 0x2fc4d5c22
cmp qword [rbp - 0x10], 0
je 0x2fc4d5c22
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 0x2fc4d5be8
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d5c4b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d5d50
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 0x2fc4d5d78
mov eax, 0
jmp 0x2fc4d5dc6
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 0x2fc4d5da1
mov eax, 0
jmp 0x2fc4d5dc6
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 0x2fc4d5dc1
mov eax, 0
jmp 0x2fc4d5dc6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc55cb20
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc55dc00
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc55d522
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc580108]
test eax, eax
je 0x2fc55d5ba
lea rax, [0x2fc5800e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc580110]
mov qword [rbp - 8], rax
jmp 0x2fc55d59e
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 0x2fc55d592
cmp qword [rbp - 0x10], 0
je 0x2fc55d592
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 0x2fc55d558
lea rax, [0x2fc5800e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc55d5bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc55d6c0
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 0x2fc55d6e8
mov eax, 0
jmp 0x2fc55d736
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 0x2fc55d711
mov eax, 0
jmp 0x2fc55d736
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 0x2fc55d731
mov eax, 0
jmp 0x2fc55d736
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc55d73c
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 0x2fc55d7ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc55d7b1
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 0x2fc55d7b1
mov rax, qword [rbp - 8]
jmp 0x2fc55d7cf
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 0x2fc55d784
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000135c
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbp, rcx
mov esi, r9d
mov ecx, r9d
mov r14, r8
mov r15, rdx
xor ebx, ebx
call fcn.140007384
mov rdi, rax
test rax, rax
je 0x14000140a
mov edx, dword [r14]
lea rcx, [0x140024ef0]
mov r9, rax
mov r8d, esi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140001402
lea r9, [rsp + 0x68]
mov rcx, rdi
lea r8, [rsp + 0x20]
lea rdx, [0x14001f124]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140001402
cmp dword [rsp + 0x68], ebx
je 0x140001402
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140001402
movzx edx, word [rcx + 0xa]
lea r8d, [rbx + 1]
movzx eax, dx
sub ax, r8w
cmp ax, 8
ja 0x140001402
movzx eax, word [rcx + 8]
cmp ax, 0x63
ja 0x140001402
mov byte [rbp], dl
mov ebx, r8d
mov byte [r15], al
mov rcx, rdi
call fcn.140007198
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1400014e0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r14
lea rbp, [rsp - 0x470]
sub rsp, 0x570
mov ebx, 0x11c
lea rcx, [rsp + 0x30]
mov r8d, ebx
xor edx, edx
call fcn.140004770
mov dword [rsp + 0x30], ebx
mov r8b, 3
xor ebx, ebx
mov dword [rsp + 0x34], 6
xor ecx, ecx
mov dword [rsp + 0x38], 4
mov dword [rbp + 0x44], ebx
lea edx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
lea edx, [rbx + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
lea edx, [rbx + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
lea edx, [rbx + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8, rax
lea edx, [rbx + 0x33]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x140001713
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001713
lea rdx, str.RtlGetNtVersionNumbers
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001713
lea r8, [rbp + 0x4a0]
lea rdx, [rbp + 0x498]
lea rcx, [rbp + 0x490]
call rax
cmp dword [rbp + 0x490], 0xa
ja 0x140001713
jne 0x1400015da
cmp dword [rbp + 0x498], ebx
ja 0x140001713
mov r14d, 0x208
lea rsi, [0x140025320]
mov edx, r14d
lea r9, [0x14001f170]
mov rcx, rsi
lea r8, str.System32Drivers_s.sys
call fcn.1400012b0
mov edx, 0x104
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov r8d, eax
test eax, eax
je 0x140001713
cmp eax, 0x104
jae 0x14000162e
lea edx, [rax - 1]
cmp word [rbp + rdx*2 + 0x50], 0x5c
cmove r8d, edx
test r8d, r8d
je 0x140001713
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rsi + rdx*2], bx
jne 0x14000163b
lea ecx, [r8 + 1]
add rdx, rcx
cmp rdx, 0x104
jae 0x140001713
mov eax, r8d
lea r9, [rbp + 0x50]
lea r8, str._s_s
mov qword [rsp + 0x20], rsi
mov rdx, r14
lea rcx, [0x140024ef0]
mov word [rbp + rax*2 + 0x50], bx
call fcn.1400012b0
lea rax, str.SRClient.dll
mov rdx, r14
lea r9, [rbp + 0x50]
mov qword [rsp + 0x20], rax
lea r8, str._sSystem32_s
lea rcx, [rbp + 0x260]
call fcn.1400012b0
lea rcx, [rbp + 0x260]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140025528], rax
test rax, rax
je 0x1400016fe
lea rdx, str.SRSetRestorePointW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140025528]
lea rdx, str.SRRemoveRestorePoint
mov qword [0x1400250f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1400250f8], rbx
mov qword [0x140025530], rax
je 0x1400016fe
test rax, rax
jne 0x14000170c
mov qword [0x1400250f8], rbx
mov qword [0x140025530], rbx
mov eax, 1
jmp 0x140001715
xor eax, eax
mov rbx, qword [rsp + 0x5a8]
add rsp, 0x570
pop r14
pop rsi
pop rbp
ret
Function at 0x14000172c
Capabilities:
Move file
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov ebx, edx
mov r15, rcx
lea rdx, [0x14001f230]
mov r8d, 0x20
lea rcx, [0x140024ef0]
call fcn.140005150
xor edi, edi
mov r14, rax
test rax, rax
jne 0x140001800
xor edx, edx
xor ecx, ecx
call fcn.140005824
mov rsi, rax
test rax, rax
jne 0x140001789
xor eax, eax
jmp 0x140001827
mov rdx, rax
lea rcx, [0x140024ef0]
call fcn.140007168
test eax, eax
je 0x1400017b0
call fcn.140007148
cmp dword [rax], 2
je 0x1400017b8
mov rcx, rsi
call fcn.140007198
jmp 0x140001782
mov rcx, rsi
call fcn.14000737c
mov r8d, 0x20
lea rdx, [0x14001f230]
lea rcx, [0x140024ef0]
call fcn.140005150
mov r14, rax
test rax, rax
je 0x1400017a6
mov r9, rax
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.140005a80
cmp rax, rbx
jne 0x1400017f6
mov edi, 1
mov rcx, rsi
call fcn.140007198
jmp 0x14000181d
mov r9, rax
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.140005a80
cmp rax, rbx
jne 0x14000181d
mov edi, 1
mov rcx, r14
call fcn.1400053e4
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
Function at 0x14000374c
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1400037dd
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x1400037dd
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400037dd
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1400037c1
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1400037bb
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1400037c3
add rdx, 0x28
jmp 0x1400037a0
xor edx, edx
test rdx, rdx
jne 0x1400037cc
xor al, al
jmp 0x1400037e3
test dword [rdx + 0x24], 0x80000000
je 0x1400037d9
xor al, al
jmp 0x1400037e3
mov al, 1
jmp 0x1400037e3
xor al, al
jmp 0x1400037e3
add rsp, 0x18
ret

Function at 0x140007354
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140007374
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400070d8
or eax, 0xffffffff
jmp 0x140007376
xor eax, eax
add rsp, 0x28
ret
jmp 0x140007354

Function at 0x14000737c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140007374
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400070d8
or eax, 0xffffffff
jmp 0x140007376
xor eax, eax
add rsp, 0x28
ret
jmp 0x140007354