joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400016e0
Capabilities:
Access firewall policy via inetfwpolicy2
Access firewall rule properties via inetfwrule

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rdx
mov qword [rsp + 0x40], 0
mov rbx, rcx
mov qword [rsp + 0x38], 0
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
xor edx, edx
lea rax, [rsp + 0x40]
lea r9, [0x1400036b0]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400036f0]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x90]
xor edx, edx
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
lea r9, [0x1400036d0]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400036e0]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140001839
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [rsp + 0x30]
mov edx, 1
mov rax, qword [rcx]
call qword [rax + 0xe0]
mov rcx, qword [rsp + 0x30]
mov edx, 6
mov rax, qword [rcx]
call qword [rax + 0x80]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rcx, qword [rsp + 0x30]
mov rdx, rax
mov rbx, rax
mov r8, qword [rcx]
call qword [r8 + 0xa0]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rcx, qword [rsp + 0x30]
mov rdx, rax
mov rbx, rax
mov r8, qword [rcx]
call qword [r8 + 0x40]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x30]
mov edx, 2
mov rax, qword [rcx]
call qword [rax + 0x130]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140001849
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001859
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400020a0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140002a34
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002a7e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002a7e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002a7e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002a7e
cmp dword [rcx + 0x84], 0xe
jbe 0x140002a7e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002a80
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbx
sub rsp, 0x70
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor r9d, r9d
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1400161fc
test eax, eax
jne 0x14000105f
lea rcx, str.Fatal_Error:_MFC_initialization_failed_n
call fcn.1400296a0
mov dword [rsp + 0x20], 1
jmp 0x140001065
call fcn.1400054b0
nop
mov eax, dword [rsp + 0x20]
add rsp, 0x70
pop rbx
ret
Function at 0x1400043e0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call fcn.140007570
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
add rsp, 0x28
ret
Function at 0x1400129f0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov rbx, rcx
mov dword [rsp + 0x78], 0
lea rdx, str.Windows_NT_x86
call fcn.140007430
mov dword [rsp + 0x78], 1
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx edx, word [rsp + 0x28]
test edx, edx
je 0x140012aab
cmp edx, 6
je 0x140012a80
cmp edx, 9
je 0x140012a55
mov rcx, rbx
call fcn.140008a20
mov rax, rbx
jmp 0x140012ad4
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, str.Windows_x64
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str.Windows_x64
mov rcx, rbx
call fcn.140008b00
mov rax, rbx
jmp 0x140012ad4
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, str.Windows_IA64
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str.Windows_IA64
mov rcx, rbx
call fcn.140008b00
mov rax, rbx
jmp 0x140012ad4
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, str.Windows_NT_x86
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str.Windows_NT_x86
mov rcx, rbx
call fcn.140008b00
mov rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x14001b61c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.140022ecc
mov rsi, rax
test rax, rax
je 0x14001b698
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x14001b693
cmp dword [rbx], 0x40
jb 0x14001b693
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x14001b693
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x14001b69c
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14002bddc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140037de4
nop
cmp dword [0x14006c0e8], 1
je 0x14002bd88
mov dword [0x14006c0e4], 1
mov byte [0x14006c0e0], r12b
test ebx, ebx
jne 0x14002bd74
mov rcx, qword [0x14006e7b0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14002bd61
mov rcx, qword [0x14006e7a8]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x14002bd00
call fcn.14002e0d4
cmp qword [rdi], rax
jne 0x14002bd00
jmp 0x14002bce6
cmp rdi, rsi
jb 0x14002bd61
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.14002e0d4
mov qword [rdi], rax
call rbx
mov rcx, qword [0x14006e7b0]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x14006e7a8]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14002bd3f
cmp r13, rax
je 0x14002bd5f
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x14002bce6
lea rdx, [0x14004ec88]
lea rcx, [0x14004ec70]
call fcn.14002bb30
lea rdx, [0x14004ec98]
lea rcx, [0x14004ec90]
call fcn.14002bb30
nop
test r12d, r12d
je 0x14002bd97
mov ecx, 8
call fcn.140037ce4
test r12d, r12d
jne 0x14002bdc2
mov dword [0x14006c0e8], 1
lea ecx, [r12 + 8]
call fcn.140037ce4
mov ecx, r15d
call fcn.14002bac4
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x14002bc50

Function at 0x14002bde8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14002bc50
Function at 0x140030ca7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400666f0]
jne 0x140029b2a
rol rcx, 0x10
test cx, 0xffff
jne 0x140029b26
repz ret
ror rcx, 0x10
jmp 0x140030c00
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14006c1d0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14006c2c8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140030c85
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14006c1d0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140030ca7
mov rax, qword [rsp + 0x88]
mov qword [0x14006c2c8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14006c268], rax
mov rax, qword [0x14006c2c8]
mov qword [0x14006c140], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14006c250], rax
mov dword [0x14006c130], 0xc0000409
mov dword [0x14006c134], 1
mov rax, qword [0x1400666f0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400666f8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14006c1c8], eax
mov ecx, 1
call fcn.140036a18
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140055698]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14006c1c8], 0
jne 0x140030d2e
mov ecx, 1
call fcn.140036a18
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14003e8d4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.14002e0d4
xor ebx, ebx
mov rdi, rax
cmp qword [0x14006d000], rbx
jne 0x14003e9da
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14003eaaf
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003eaaf
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140057e50]
mov rcx, rsi
mov qword [0x14006d000], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140057e38]
mov rcx, rsi
mov qword [0x14006d008], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x14006d010], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14006d020], rax
test rax, rax
je 0x14003e9d1
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14006d018], rax
jmp 0x14003e9e1
mov rax, qword [0x14006d018]
jmp 0x14003e9e8
mov rax, qword [0x14006d018]
mov r11, qword [0x14006d020]
cmp rax, rdi
je 0x14003ea50
cmp r11, rdi
je 0x14003ea50
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14006d020]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14003ea50
test rax, rax
je 0x14003ea50
call rsi
test rax, rax
je 0x14003ea4a
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14003ea4a
test byte [rsp + 0x38], 1
jne 0x14003ea50
bts ebp, 0x15
jmp 0x14003ea8e
mov rcx, qword [0x14006d008]
cmp rcx, rdi
je 0x14003ea8e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003ea8e
call rax
mov rbx, rax
test rax, rax
je 0x14003ea8e
mov rcx, qword [0x14006d010]
cmp rcx, rdi
je 0x14003ea8e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003ea8e
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14006d000]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003eaaf
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14003eab1
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400111f9
Capabilities:
Terminate process

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

Function at 0x140011276
Capabilities:
Execute command

Disassembly:
jmp 0x140011890
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1400210a2]
call fcn.140011375
mov dword [rbp + 4], 0xa
jmp 0x1400118bc
mov eax, dword [rbp + 4]
dec eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jl 0x1400118eb
lea rcx, [0x140019c24]
call qword [sym.imp.ucrtbased.dll_system]
mov edx, dword [rbp + 4]
lea rcx, [0x140019c28]
call fcn.14001119f
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400118b4
xor eax, eax
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x140011280
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014160
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014180
xor al, al
jmp 0x140014201
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014193
xor al, al
jmp 0x140014201
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400141bd
xor al, al
jmp 0x140014201
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400141d1
xor al, al
jmp 0x140014201
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400141e3
xor al, al
jmp 0x140014201
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400141ff
xor al, al
jmp 0x140014201
mov al, 1
add rsp, 0x38
ret
Function at 0x140011307
Capabilities:
Terminate process

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

Function at 0x1400113d9
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400174b0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400174d0
xor al, al
jmp 0x140017551
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400174e3
xor al, al
jmp 0x140017551
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001750d
xor al, al
jmp 0x140017551
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017521
xor al, al
jmp 0x140017551
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140017533
xor al, al
jmp 0x140017551
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001754f
xor al, al
jmp 0x140017551
mov al, 1
add rsp, 0x38
ret
Function at 0x14000193c
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000f080]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000f090]
mov dword [rax], 1
mov rax, qword [0x14000f0a0]
mov dword [rax], 1
mov rax, qword [0x14000f030]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000f070]
mov dword [0x14001200c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000f140]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000f120]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000efe0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001450
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
lea rax, [rbp - 8]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call rax
test eax, eax
sete al
test al, al
je 0x1400014a3
mov eax, 0xffffffff
jmp 0x1400015ce
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0x800c
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
call rax
test eax, eax
sete al
test al, al
je 0x1400014e0
mov eax, 0xffffffff
jmp 0x1400015ce
mov rax, qword [rbp + 0x28]
mov ecx, eax
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp + 0x20]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptHashData]
call rax
test eax, eax
sete al
test al, al
je 0x140001516
mov eax, 0xffffffff
jmp 0x1400015ce
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8, rcx
mov edx, 0x6610
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
call rax
test eax, eax
sete al
test al, al
je 0x140001551
mov eax, 0xffffffff
jmp 0x1400015ce
mov rax, qword [rbp - 0x18]
lea rdx, [rbp + 0x18]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x10]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call rax
test eax, eax
sete al
test al, al
je 0x140001594
mov eax, 0xffffffff
jmp 0x1400015ce
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call rax
mov eax, 0
add rsp, 0x50
pop rbp
ret

Function at 0x140001ba0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001c10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400120c4]
mov rbx, rcx
test esi, esi
jle 0x140001d40
mov rax, qword [0x1400120c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001c5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001ce5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001c40
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001d62
mov rax, qword [0x1400120c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400120c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001d47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001cde
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001cf0
add dword [0x1400120c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400120c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001cde
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001c68
mov rax, qword [0x1400120c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400022d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140012120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140012100]
test rbx, rbx
je 0x14000232c
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 0x140002323
test rsi, rsi
je 0x140002323
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002308
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 0x140002540
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002558
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002560
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret