joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d30a0
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.2fc4d4180
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d3aa2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f6108]
test eax, eax
je 0x2fc4d3b3a
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f6110]
mov qword [rbp - 8], rax
jmp 0x2fc4d3b1e
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 0x2fc4d3b12
cmp qword [rbp - 0x10], 0
je 0x2fc4d3b12
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 0x2fc4d3ad8
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d3b3b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d3c40
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 0x2fc4d3c68
mov eax, 0
jmp 0x2fc4d3cb6
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 0x2fc4d3c91
mov eax, 0
jmp 0x2fc4d3cb6
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 0x2fc4d3cb1
mov eax, 0
jmp 0x2fc4d3cb6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d3cbc
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 0x2fc4d3d3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d3d31
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 0x2fc4d3d31
mov rax, qword [rbp - 8]
jmp 0x2fc4d3d4f
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 0x2fc4d3d04
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc540650
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.2fc541730
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc541052
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc563108]
test eax, eax
je 0x2fc5410ea
lea rax, [0x2fc5630e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc563110]
mov qword [rbp - 8], rax
jmp 0x2fc5410ce
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 0x2fc5410c2
cmp qword [rbp - 0x10], 0
je 0x2fc5410c2
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 0x2fc541088
lea rax, [0x2fc5630e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc5410eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc5411f0
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 0x2fc541218
mov eax, 0
jmp 0x2fc541266
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 0x2fc541241
mov eax, 0
jmp 0x2fc541266
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 0x2fc541261
mov eax, 0
jmp 0x2fc541266
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc54126c
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 0x2fc5412ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc5412e1
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 0x2fc5412e1
mov rax, qword [rbp - 8]
jmp 0x2fc5412ff
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 0x2fc5412b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001f60
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xa0
mov qword [rax - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, rdx
mov rbx, rcx
mov qword [rcx + 8], rdx
lea rdx, [rcx + 0x24]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
xor esi, esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, str.SoftwareSynapticsSynTPEnh
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x68]
call fcn.140004520
nop
mov dword [rsp + 0xb0], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0xb8]
lea rdx, str.ExtraHelperCapabilitiesFlags
lea rcx, [rsp + 0x70]
call fcn.140003d20
mov eax, dword [rsp + 0xb8]
mov dword [rbx + 0x28], eax
mov dword [rbx + 0x80], 2
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.1400044b0
nop
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, str.SoftwareSynapticsSynTPEnh
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x38]
call fcn.140004740
test eax, eax
je 0x14000204d
mov qword [rsp + 0x20], rsi
lea r9, [rbx + 0x80]
lea r8, [rbx + 0x80]
lea rdx, str.UseSetProcessDPIAware
lea rcx, [rsp + 0x40]
call fcn.140003d20
lea rcx, [rsp + 0x40]
call fcn.140003cd0
mov eax, dword [rbx + 0x80]
dec eax
cmp eax, 1
ja 0x1400020c3
cmp qword [rbx + 0x60], 0
je 0x1400020c3
lea rcx, str.User32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14000208f
lea rcx, str.User32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x1400020af
lea rdx, str.SetProcessDpiAwarenessContext
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400020af
mov ecx, 0x22
call rax
test eax, eax
jns 0x1400020c3
mov ecx, dword [rbx + 0x80]
call fcn.140002810
test eax, eax
jne 0x1400020c3
call fcn.1400027c0
xor edx, edx
lea rcx, str.SynTPEnhWndClass
call qword [sym.imp.USER32.dll_FindWindowW]
mov qword [rbx + 0x10], rax
mov edx, 0x8000
mov rcx, qword [rbx + 8]
call fcn.140006500
test eax, eax
jne 0x14000210d
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [0x140002770]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rbx
call fcn.140008210
mov rcx, rbx
call fcn.1400018e0
nop
lea rcx, [rsp + 0x38]
call fcn.1400045e0
nop
lea rcx, [rsp + 0x68]
call fcn.1400045e0
mov eax, 1
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140002290
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov eax, 0x2890
call fcn.1400084a0
sub rsp, rax
mov rax, qword [0x140028b30]
xor rax, rsp
mov qword [rsp + 0x2880], rax
mov rbp, r8
mov rsi, rcx
mov r8d, edx
xor edx, edx
mov ecx, 0x410
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14000238d
lea r9, [rsp + 0x40]
lea r8d, [rbx + 8]
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x14000238d
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x2828
call fcn.140008530
mov eax, dword [rsi]
mov rdx, qword [rsp + 0x20]
movups xmm0, xmmword [0x14001b700]
lea r8, [rsp + 0x68]
mov r9d, 0x104
mov rcx, rdi
movaps xmmword [rsp + 0x2860], xmm0
mov dword [rsp + 0x50], 0xf
mov dword [rsp + 0x2870], eax
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x140002384
mov r8, qword [rsi + 8]
xor eax, eax
lea r9, [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea edx, [rbx + 0x4a]
mov rcx, rbp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x2828
call qword [sym.imp.USER32.dll_SendMessageW]
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x2880]
xor rcx, rsp
call fcn.140008500
mov rbx, qword [rsp + 0x28c8]
add rsp, 0x2890
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003d20
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push r14
sub rsp, 0x48
xor ebx, ebx
mov r14, r9
mov rbp, rdx
mov esi, ebx
test r9, r9
je 0x140003d40
mov esi, dword [r9]
test rdx, rdx
je 0x140003f1c
cmp qword [rsp + 0x80], rbx
je 0x140003f1c
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x40], rdi
test rcx, rcx
je 0x140003dbf
mov rdi, qword [rsp + 0x90]
mov qword [rsp + 0x30], rcx
test rdi, rdi
je 0x140003e0a
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140003e0a
test byte [0x140028b08], 4
je 0x140003dbf
lea r8, str.Couldnt_open_subkey:__s_n
lea rcx, str.CRegistryEx::GetDWORD
mov r9, rdi
mov edx, 3
call fcn.1400069a0
test r14, r14
je 0x140003f0b
test byte [0x140028b08], 4
je 0x140003dec
lea r8, str.Returning_default_value:_0x_08X_n
lea rcx, str.CRegistryEx::GetDWORD
mov r9d, esi
mov edx, 3
call fcn.1400069a0
mov rax, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x40]
mov dword [rax], esi
mov eax, 1
add rsp, 0x48
pop r14
pop rsi
pop rbp
pop rbx
ret
test byte [0x140028b08], 4
je 0x140003e2e
lea r8, str.Opened_subkey:__s_n
lea rcx, str.CRegistryEx::GetDWORD
mov r9, rdi
mov edx, 3
call fcn.1400069a0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x88]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x88], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
test rdi, rdi
je 0x140003e7b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
je 0x140003eac
test byte [0x140028b08], 4
je 0x140003dbf
lea r8, str.Error_querying_value:__d_n
lea rcx, str.CRegistryEx::GetDWORD
mov r9d, ebp
mov edx, 3
call fcn.1400069a0
jmp 0x140003dbf
test byte [0x140028b08], 4
je 0x140003edd
mov eax, dword [rsp + 0x78]
lea r9, [rsp + 0x80]
lea r8, str.Read_0x_08X_successfully._Type_d._n
lea rcx, str.CRegistryEx::GetDWORD
mov edx, 3
mov dword [rsp + 0x20], eax
call fcn.1400069a0
mov eax, dword [rsp + 0x78]
cmp eax, 4
je 0x140003ef5
cmp eax, 3
jne 0x140003efa
cmp dword [rsp + 0x88], 4
jne 0x140003efa
mov ebx, 1
mov eax, ebx
mov rdi, qword [rsp + 0x40]
add rsp, 0x48
pop r14
pop rsi
pop rbp
pop rbx
ret
xor eax, eax
mov rdi, qword [rsp + 0x40]
add rsp, 0x48
pop r14
pop rsi
pop rbp
pop rbx
ret
xor eax, eax
add rsp, 0x48
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x140003f30
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x30
mov rbx, qword [rsp + 0x80]
mov r12, r9
mov rsi, r8
mov r15, rdx
mov rdi, rcx
cmp r8, rbx
jne 0x140003f78
lea rdx, str.RegistryEx.cpp
lea rcx, str.pszValue___pszDefaultValue
mov r8d, 0x126
call fcn.140001740
xor ebp, ebp
mov r13d, ebp
test r15, r15
je 0x140004110
test rsi, rsi
je 0x140004110
test r12, r12
je 0x140004110
mov rcx, qword [rdi + 0x10]
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x60], r14
test rcx, rcx
je 0x1400040c5
mov r14, qword [rsp + 0x88]
mov r13d, dword [r12]
mov qword [rsp + 0x68], rcx
test r14, r14
je 0x140003fed
lea rax, [rsp + 0x68]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400040c5
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x80]
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
test r14, r14
je 0x14000401e
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [rsp + 0x80]
cmp ecx, 2
jne 0x140004090
mov eax, 2
mul r13
cmovo rax, rdi
mov rcx, rax
call fcn.140007190
mov r14, rax
test rax, rax
je 0x140004089
mov r8d, r13d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rdx, rsi
mov rcx, r14
sub rdx, r14
nop
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [rdx + rcx - 2], ax
test ax, ax
jne 0x140004060
mov rax, rdi
inc rax
cmp word [rsi + rax*2], bp
jne 0x140004074
mov rcx, r14
mov dword [r12], eax
call fcn.140008370
mov ecx, dword [rsp + 0x80]
test r15d, r15d
jne 0x1400040c5
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x1400040a2
cmp ecx, 7
jne 0x1400040a7
mov ebp, 1
mov eax, ebp
mov r14, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
test rbx, rbx
je 0x14000410c
nop word [rax + rax]
cmp word [rbx + rdi*2 + 2], bp
lea rdi, [rdi + 1]
jne 0x1400040d0
lea ecx, [rdi*2 + 2]
cmp ecx, r13d
ja 0x14000410c
sub rsi, rbx
nop word [rax + rax]
movzx eax, word [rbx]
lea rbx, [rbx + 2]
mov word [rsi + rbx - 2], ax
test ax, ax
jne 0x1400040f0
mov dword [r12], ecx
mov eax, 1
jmp 0x1400040a9
xor eax, eax
jmp 0x1400040a9
xor eax, eax
jmp 0x1400040ae
Function at 0x1400051a0
Capabilities:
Get disk information

Disassembly:
push rbx
push rdi
sub rsp, 0x668
mov rbx, rdx
mov edi, ecx
test rdx, rdx
je 0x1400053db
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400051c0
cmp rax, 0x104
ja 0x1400053db
lea rdx, [0x14001c14c]
mov rcx, rbx
call fcn.1400089e0
test rax, rax
je 0x1400053db
mov qword [rsp + 0x680], rbp
mov qword [rsp + 0x688], rsi
mov qword [rsp + 0x690], r14
mov qword [rsp + 0x660], r15
xor r15d, r15d
mov r8d, edi
xor edx, edx
mov ecx, 0x400
mov r14d, r15d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea edi, [r15 + 1]
mov rsi, rax
test rax, rax
je 0x1400053b0
lea rcx, str.psapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
test rax, rax
je 0x1400053b0
lea rdx, str.GetProcessImageFileNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140005278
lea rdx, [rsp + 0x30]
mov r8d, 0x104
mov rcx, rsi
call rax
test eax, eax
cmovne r14d, edi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r14d, r14d
je 0x1400053b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [0x140028b08], 2
je 0x1400052c1
lea rax, [rsp + 0x30]
lea r8, str.AppName_to_Verify:__s_nAppName_from_Process:__s_n
lea rcx, str.IsProcessFromApp
mov r9, rbx
mov edx, 2
mov qword [rsp + 0x20], rax
call fcn.140006aa0
lea rcx, [rsp + 0x240]
sub rcx, rbx
nop dword [rax]
movzx eax, word [rbx]
lea rbx, [rbx + 2]
mov word [rcx + rbx - 2], ax
test ax, ax
jne 0x1400052d0
lea rcx, [rsp + 0x240]
call fcn.140008ff8
lea rdx, [0x14001c14c]
lea rcx, [rsp + 0x240]
call fcn.1400089e0
lea rcx, [rsp + 0x30]
mov rbx, rax
call fcn.140008ff8
lea rdx, [rbx + 4]
lea rcx, [rsp + 0x30]
call fcn.1400089e0
test rax, rax
je 0x1400053d7
mov word [rax - 2], r15w
mov word [rbx + 2], r15w
lea rcx, [rsp + 0x452]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x450], r15w
call fcn.140008530
lea rdx, [rsp + 0x450]
lea rcx, [rsp + 0x240]
mov r8d, 0x103
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1400053d7
lea rdx, [rsp + 0x450]
lea rcx, [rsp + 0x30]
call fcn.140008c84
test eax, eax
jne 0x1400053d7
mov eax, edi
mov r14, qword [rsp + 0x690]
mov rsi, qword [rsp + 0x688]
mov rbp, qword [rsp + 0x680]
mov r15, qword [rsp + 0x660]
add rsp, 0x668
pop rdi
pop rbx
ret
test byte [0x140028b08], dil
je 0x1400053ce
lea r8, str.Cannot_open_process_or_cannot_GetProcessImageFileName_n
lea rcx, str.IsProcessFromApp
mov edx, edi
call fcn.140006aa0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140005386
test byte [0x140028b08], 1
je 0x14000540a
test rbx, rbx
lea r9, [0x14001c158]
lea r8, str.Invalid_App_path_name__need_DOS_full_path_:__s_n
lea rcx, str.IsProcessFromApp
mov edx, 1
cmovne r9, rbx
call fcn.140006aa0
xor eax, eax
add rsp, 0x668
pop rdi
pop rbx
ret
Function at 0x2fc53e010
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.2fc53f0f0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc53ea12
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc561108]
test eax, eax
je 0x2fc53eaaa
lea rax, [0x2fc5610e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc561110]
mov qword [rbp - 8], rax
jmp 0x2fc53ea8e
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 0x2fc53ea82
cmp qword [rbp - 0x10], 0
je 0x2fc53ea82
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 0x2fc53ea48
lea rax, [0x2fc5610e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc53eaab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc53ebb0
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 0x2fc53ebd8
mov eax, 0
jmp 0x2fc53ec26
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 0x2fc53ec01
mov eax, 0
jmp 0x2fc53ec26
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 0x2fc53ec21
mov eax, 0
jmp 0x2fc53ec26
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc53ec2c
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 0x2fc53ecaa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc53eca1
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 0x2fc53eca1
mov rax, qword [rbp - 8]
jmp 0x2fc53ecbf
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 0x2fc53ec74
mov eax, 0
add rsp, 0x20
pop rbp
ret