joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1d95c
Capabilities:
Get file attributes
Set file attributes
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0xf0
and qword [r11 + 8], 0
mov rax, rcx
mov rcx, qword [0x0002aa20]
mov rbx, qword [rcx + 0x40]
and qword [r11 - 0x38], 0
and qword [r11 - 0x20], 0
and qword [r11 - 0x18], 0
mov dword [r11 - 0x40], 0x30
mov dword [r11 - 0x28], 0x240
mov qword [r11 - 0x30], rax
mov rdi, r9
mov esi, r8d
mov rbp, rdx
call qword [sym.imp.ntoskrnl.exe_IoGetDeviceAttachmentBaseRef]
mov qword [rbx + 0x13], rax
test rax, rax
jne 0x1d9c9
mov rax, qword [rbx + 0xa]
mov qword [rbx + 0x13], rax
mov rax, qword [rbx + 0x13]
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xb8]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], 0x800
and qword [rsp + 0x60], 0
and dword [rsp + 0x58], 0
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 5
mov dword [rsp + 0x30], 3
lea rcx, [rsp + 0x100]
mov edx, 0xc0000000
mov dword [rsp + 0x28], 6
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_IoCreateFileSpecifyDeviceObjectHint]
mov ebx, eax
test eax, eax
js 0x1db51
and qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x80]
mov dword [rsp + 0x30], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov rcx, qword [rsp + 0x100]
xor r8d, r8d
mov dl, 1
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
mov rcx, qword [rsp + 0x100]
lea rdx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwFlushBuffersFile]
mov rcx, qword [rsp + 0x100]
mov edi, 4
lea esi, [rdi + 0x24]
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x80]
mov r9d, esi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
cmp dword [rsp + 0x80], 0
jl 0x1db43
mov ecx, 0x1c95a06
mov eax, 0xfa2b0929
lea r8, [rsp + 0x90]
mov dword [rsp + 0xa4], ecx
mov dword [rsp + 0x94], ecx
mov dword [rsp + 0xac], ecx
mov dword [rsp + 0x9c], ecx
mov rcx, qword [rsp + 0x100]
lea rdx, [rsp + 0x80]
mov r9d, esi
mov dword [rsp + 0xa0], eax
mov dword [rsp + 0x90], eax
mov dword [rsp + 0xa8], eax
mov dword [rsp + 0x98], eax
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0xf0]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1db74
Capabilities:
Get file attributes
Set file attributes
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0xf0
and qword [r11 + 8], 0
mov rax, rcx
mov rcx, qword [0x0002aa20]
mov rbx, qword [rcx + 0x40]
and qword [r11 - 0x38], 0
and qword [r11 - 0x20], 0
and qword [r11 - 0x18], 0
mov dword [r11 - 0x40], 0x30
mov dword [r11 - 0x28], 0x240
mov qword [r11 - 0x30], rax
mov rdi, r9
mov esi, r8d
mov rbp, rdx
call qword [sym.imp.ntoskrnl.exe_IoGetDeviceAttachmentBaseRef]
mov qword [rbx + 0x13], rax
test rax, rax
jne 0x1dbe1
mov rax, qword [rbx + 0xa]
mov qword [rbx + 0x13], rax
mov rax, qword [rbx + 0x13]
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xb8]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], 0x800
and qword [rsp + 0x60], 0
and dword [rsp + 0x58], 0
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x62
mov dword [rsp + 0x38], 5
mov dword [rsp + 0x30], 3
lea rcx, [rsp + 0x100]
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_IoCreateFileSpecifyDeviceObjectHint]
mov ebx, eax
test eax, eax
js 0x1dd69
and qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x80]
mov dword [rsp + 0x30], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov rcx, qword [rsp + 0x100]
xor r8d, r8d
mov dl, 1
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
mov rcx, qword [rsp + 0x100]
lea rdx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwFlushBuffersFile]
mov rcx, qword [rsp + 0x100]
mov edi, 4
lea esi, [rdi + 0x24]
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x80]
mov r9d, esi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
cmp dword [rsp + 0x80], 0
jl 0x1dd5b
mov ecx, 0x1c95a06
mov eax, 0xfa2b0929
lea r8, [rsp + 0x90]
mov dword [rsp + 0xa4], ecx
mov dword [rsp + 0x94], ecx
mov dword [rsp + 0xac], ecx
mov dword [rsp + 0x9c], ecx
mov rcx, qword [rsp + 0x100]
lea rdx, [rsp + 0x80]
mov r9d, esi
mov dword [rsp + 0xa0], eax
mov dword [rsp + 0x90], eax
mov dword [rsp + 0xa8], eax
mov dword [rsp + 0x98], eax
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0xf0]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x200b4
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x00026100]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
and qword [rsp + 0x30], 0
mov ebx, 0x114
lea rcx, [rsp + 0x90]
mov r8, rbx
xor edx, edx
call fcn.00022a90
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x90], ebx
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
cmp dword [rsp + 0x94], 6
lea rcx, [rsp + 0x68]
lea rdx, [0x00023540]
jae 0x20122
lea rdx, [0x00023590]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rsp + 0x40], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x60], 0
cmp byte [0x0002a8be], 0
lea rsi, [0x0002d190]
mov qword [rsp + 0x48], rsi
lea rbx, [0x0002cf10]
mov dword [rsp + 0x38], 0x30
mov dword [rsp + 0x50], 0x40
jne 0x2016b
mov qword [rsp + 0x48], rbx
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x38]
lea rcx, [rsp + 0x30]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x60
mov dword [rsp + 0x20], 1
call qword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
js 0x201a6
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x201bf
cmp byte [0x0002a8be], 0
lea rcx, [rsp + 0x68]
mov rdx, rsi
jne 0x201ba
mov rdx, rbx
call fcn.0001c3f0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.00021470
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rsi
ret

Function at 0x2031c
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x70
and qword [rax + 0x20], 0
mov edi, r8d
mov ebx, edx
call fcn.00020430
and qword [0x0002ae48], 0
lea rcx, [0x0002cea0]
mov edx, 1
mov dword [0x00027694], ebx
mov dword [0x00027734], edi
mov byte [0x0002aa1c], 0
call qword [sym.imp.ntoskrnl.exe_KeInitializeTimerEx]
lea rcx, [0x0002cea0]
xor r9d, r9d
mov rdx, 0xffffffffca5b1700
mov r8d, 0x15f90
call qword [sym.imp.ntoskrnl.exe_KeSetTimerEx]
and qword [rsp + 0x30], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x60], 0
and qword [rsp + 0x68], 0
lea rax, [0x000201e8]
mov ebx, 0x1fffff
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x98]
xor r9d, r9d
mov edx, ebx
mov dword [rsp + 0x40], 0x30
mov dword [rsp + 0x58], 0x200
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
js 0x2041c
mov rcx, qword [rsp + 0x98]
and qword [rsp + 0x28], 0
lea rax, [0x0002ae48]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov rcx, qword [rsp + 0x98]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x204a8
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x80
xor edi, edi
mov qword [r11 + 0x10], rdi
cmp byte [0x0002a8be], dil
jne 0x20664
mov dword [rsp + 0x50], 0x30
lea rax, [0x0002d5b0]
mov qword [r11 - 0x30], rdi
mov dword [rsp + 0x68], 0x200
mov qword [r11 - 0x28], rax
lea rax, [r11 + 8]
mov qword [r11 - 0x58], rax
lea r8, [r11 - 0x38]
lea rcx, [r11 + 0x10]
xor r9d, r9d
mov edx, 0xf003f
mov dword [rsp + 0x28], edi
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x10], rdi
mov qword [r11 - 0x68], rdi
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
cmp qword [rsp + 0x98], rdi
je 0x20664
lea rdx, [0x000233f0]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x90], 1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x98]
mov edi, 4
lea rax, [rsp + 0x90]
lea rdx, [rsp + 0x40]
mov r9d, edi
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea rdx, [0x000233e0]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x90], 1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x98]
lea rax, [rsp + 0x90]
lea rdx, [rsp + 0x40]
mov r9d, edi
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea rdx, [0x00023410]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x90], 1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x98]
lea rax, [rsp + 0x90]
lea rdx, [rsp + 0x40]
mov r9d, edi
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea rdx, [0x00023420]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x90], 1
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
or rcx, 0xffffffffffffffff
lea rdx, [0x00023430]
xor eax, eax
mov r9d, 1
mov rdi, rdx
xor r8d, r8d
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
add rsp, 0x80
pop rdi
ret
Function at 0x20bec
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x70
and qword [rax + 8], 0
and qword [0x0002ce68], 0
and dword [0x0002ce70], 0
mov ebx, 1
lea rcx, [0x0002ce78]
xor r8d, r8d
mov edx, ebx
mov dword [0x0002ce60], ebx
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
lea rcx, [0x0002cee0]
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
and qword [rsp + 0x30], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x60], 0
and qword [rsp + 0x68], 0
lea rax, [0x00020894]
mov ebx, 0x1fffff
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x80]
xor r9d, r9d
mov edx, ebx
mov dword [rsp + 0x40], 0x30
mov dword [rsp + 0x58], 0x200
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
js 0x20cd2
mov rcx, qword [rsp + 0x80]
and qword [rsp + 0x28], 0
lea rax, [0x0002cef8]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov rcx, qword [rsp + 0x80]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
add rsp, 0x70
pop rbx
ret

Function at 0x2f064
Capabilities:
Check os version
Create device object

Disassembly:
sub rsp, 0x28
mov r8, rdx
mov r9, rcx
call fcn.0002f008
mov rdx, r8
mov rcx, r9
add rsp, 0x28
jmp fcn.00012e80
Function at 0x1400017f0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, dword [section..data]
call fcn.140001200
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x14000216c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400021b6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400021b6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400021b6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400021b6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400021b6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400021b8
xor al, al
add rsp, 0x28
ret
Function at 0x14012f1f0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push word [rsp + 9]
rdtsc
cpuid
mov r8b, 0x38
jmp 0x14012f201
xchg word [rsp + 8], r13w
inc bx
push rbx
mov rax, qword [rsp + 7]
jmp 0x14012f1da
mov qword [rsp + 0xa], rdx
mov qword [rsp + 9], rdx
mov ecx, dword [rsp + 2]
mov ax, r13w
lea r13, [rdi + riz - 6]
jmp 0x14012f3e2
push word [rsp + 0x2f]
mov r12, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x1c]
lea rsi, [r9 + r10]
add rsp, 0x2e
neg eax
jmp 0x14012f298
push word [rsp + 0x12]
mov r13d, dword [rsp + 0xf]
mov qword [rsp + 0x15], r14
mov r12, 0x27295db7
mov rdx, rax
rcl bpl, cl
jmp 0x14012f239
sbb r9, 0x5be9f062
mov rsi, qword [rsp + 8]
xchg qword [rsp], rsi
xchg dword [rsp + 4], eax
bswap r8
call fcn.14012f282
xchg r8d, ebp
pop word [rsp + 3]
bt bx, r12w
bswap edx
jmp 0x14012f2e0
sbb r15, 0x61ec1b21
std
adc r15b, bpl
add r12d, edx
jmp 0x14012f328
bsf r14d, r10d
rdtsc
mov word [rsp + 0xf], r8w
mov ecx, ebx
mov r14d, edi
xchg qword [rsp + 0x23], r15
jmp 0x14012f264
clc
add rsp, 7
and r13, 0xffffffff9ac05c4c
mov dword [rsp], edi
jmp 0x14012f37d
mov r13b, 0x5f
mov dx, bp
mov r13b, r12b
xchg cx, r14w
mov r13, 0x39f3e874
pop word [rsp + 5]
jmp 0x14012f312
xchg ebx, esi
xchg r8b, r15b
sbb r14w, r13w
mov al, byte [rsp]
sub rsp, 0xe
pop word [rsp + 0x23]
jmp 0x14012f2f7
mov bl, spl
setns r12b
mov rdx, rax
xchg dword [rsp], r12d
rdtsc
mov bpl, byte [rsp + 5]
call fcn.14012f3b1
ret
inc r15b
xchg byte [rsp], bpl
add bpl, cl
rdtsc
mov r13b, byte [rsp + 2]
mov esi, 0x96012664
jmp 0x14012f362
mov r15d, 0x97e252a8
xchg word [rsp], r13w
bswap rax
bsr r12w, r8w
pushfq
mov r8b, 0x3f
jmp 0x14012f34b

Function at 0x14012f282
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg ebx, r14d
jmp 0x14012f2ca
mov r13w, 0x2cdc
xchg dword [rsp + 1], ebp
xchg r15d, r14d
bswap ebx
xchg cx, ax
mov byte [rsp + 3], dl
jmp 0x14012f2b4

Function at 0x14012f5f8
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov bp, bx
cpuid
bsr r12, r12
add rsp, 0x1d
jmp 0x14012f5d9
lea rcx, [rcx + riz - 0x3a82]
rdtsc
mov rsi, qword [rsp + 3]
lea rsi, [rdi + r11]
lea rdx, [r13 + riz]
bsr r12w, si
jmp 0x14012f5a4
mov r8w, 0x2401
bswap rdx
mov si, r13w
xchg word [rsp + 0xf], r13w
pop qword [rsp]
push rdi
jmp 0x14012f609
mov r9b, byte [rsp + 5]
xchg r9w, r15w
push qword [rsp + 3]
stc
jmp 0x14012f5ba
push qword [rsp + 3]
bswap rsi
bsr bp, r15w
xchg rbx, rax
neg r15
mov byte [rsp + 2], r11b
jmp 0x14012f67c
mov r12, 0xffffffffcebcee9f
lea r13, [rbx + r8]
xchg dword [rsp], r12d
push dx
pop word [rsp]
mov byte [rsp + 1], bpl
jmp 0x14012f639
mov r14d, dword [rsp + 0x10]
clc
mov dword [rsp + 0x10], ebx
lea rsp, [rsp + 0x1b]
mov al, r11b
rdtsc
jmp 0x14012f650

Function at 0x140133211
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop word [rsp + 7]
xchg r8, rax
cld
btr rdx, rdi
jmp 0x1401331e3
Function at 0x1401337c0
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg dl, r14b
lea r15, [0x13fe4db3]
pop rsi
xchg rdx, rsi
mov rsi, rcx
pop rsi
jmp 0x14013377d
bswap r14d
pop ax
rdtsc
mov r14d, ebp
bsr rsi, rsi
bswap esi
jmp 0x14013372c
mov r14b, 0xa1
lea r14, [r14 + r14]
sbb si, 0xe75a
lea r8, [rdi + rdi]
jmp 0x1401337a8
add rsp, 0
dec r14b
lea rsp, [rsp]
and r14w, dx
std
mov r8d, eax
jmp 0x140133761
xchg bl, r14b
cmc
dec r14
lea rsi, [rdx + riz - 0xf]
jmp 0x1401337f9
mov r14d, 0x6f0328ae
lea rbx, [r14 + r13]
cmc
mov ax, di
lea rdx, [r12 + r14]
jmp 0x140133792
lea rsp, [rsp + 0x13]
xchg rdx, rsi
mov r8, r10
mov sil, byte [rsp + 4]
jmp 0x14013374e
lea rbx, [r8 + riz + 0xe3f9]
cld
xchg ebx, eax
lea rsi, [r10*4]
neg al
mov byte [rsp], r9b
jmp 0x140133884
lea rax, [0xffffffffb8a4bea6]
sub r8, rsp
cmc
add rsp, 0
bswap r8d
bswap ebx
jmp 0x1401337d5
std
lea rsp, [rsp]
xchg r8w, r14w
mov r8, rsp
sub rsp, 2
jmp 0x140133855
bsf esi, r15d
mov r8d, 0x50a81fb5
mov sil, r15b
rcl bx, 0
dec r14d
sets bl
jmp 0x140133810
mov r15, 0x3fd0d895
lea rsp, [rsp + 2]
jmp 0x14013389c
mov word [rsp], sp
bswap edx
mov r14d, 0xe6af588c
mov word [rsp], di
mov rax, 0x1f3a9c33
lea rsp, [rsp]
jmp 0x14013383f
mov r14w, word [rsp]
mov r15d, edi
mov dl, byte [rsp]
mov byte [rsp], r15b
mov r8w, r11w
mov sil, 0x24
jmp 0x140133826
and r14w, 0x478e
mov r15w, 0xa27f
push rax
xchg word [rsp + 3], r15w
mov esi, dword [rsp + 2]
xchg qword [rsp], r8
jmp 0x14013391f
push word [rsp]
cmc
lea rax, [r14 + r14]
cmc
xchg r15b, bl
pop dx
jmp 0x14013393b
mov dword [rsp + 1], ebx
lea rsp, [rsp + 0xf]
bts r14, rsi
mov r15w, r11w
mov r14d, r13d
xchg esi, ebx
jmp 0x1401338dd
mov r14b, r10b
lea r14, [rsi + r13]
mov si, r11w
push r13
lea rax, [rdi + riz + 0xb1]
mov r14d, dword [rsp + 3]
jmp 0x1401338f3
mov bl, 0x32
xchg edx, r8d
pushfq
xchg al, bl
rdtsc
mov r8b, byte [rsp + 7]
jmp 0x140133990
rcr r15b, cl
inc bx
bswap r15
or rsi, r11
xchg byte [rsp], sil
mov r15, rsi
jmp 0x140133b51
mov r8d, r12d
mov eax, dword [rsp + 9]
lea rsp, [rsp + 9]
lea rsp, [rsp]
mov sil, byte [rsp]
inc rbx
jmp 0x14013396b
mov r14, r15
mov r14w, 0x8e7
call fcn.140133b25
xchg si, dx
pop bx
cld
sub rsp, 0xe
mov qword [rsp], r15
jmp 0x140133ba3
mov edx, r11d
mov rdx, qword [rsp + 8]
pop r8w
call fcn.140133c04
invalid
not r15
mov ax, r11w
bswap r15d
bt ebx, ebp
mov word [rsp + 5], r15w
rcl rdx, cl
jmp 0x140133b8d
Function at 0x1401343a3
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg rbx, r14
rcr bx, cl
clc
add rsp, 0
lea rsi, [rsp + rbx]
jmp 0x140133ede
mov r15b, spl
sete r8b
setle al
bsr r14d, edx
mov rdx, r15
setbe dl
jmp 0x140133eb2
ror r8, cl
mov sil, r8b
mov r8, r14
std
lea rsi, [r10 + riz]
jmp 0x140133f44
mov r15w, si
add rsp, 0
rdtsc
xchg rsi, rdx
xchg bl, al
setno sil
jmp 0x140133ec8
add rsp, 0
cmc
rcl r15b, cl
inc r15d
mov rbx, rax
rdtsc
jmp 0x140133f5e
bswap ebx
mov r8w, word [rsp]
xor eax, 0xadd5b5aa
mov sil, 7
bts r14w, sp
mov esi, dword [rsp]
jmp 0x140133f0a
lea rax, [rax + riz + 0x58]
mov byte [rsp], bl
mov rbx, 0x5f2ad70d
mov dx, bp
bswap r15d
shr ax, cl
jmp 0x140133f20
lea rsi, [r15*4]
rdtsc
lea r15, [rax + r11]
call fcn.140133ffa
fst dword [rax - 0x3a]
movabs eax, dword [reloc.KERNEL32.dll_VirtualAlloc]
not r8b
ror al, 5
mov dx, ax
mov r14w, 0x9d5c
bsr r8, r13
bswap r14
jmp 0x140133ef5
lea rsp, [rsp + 2]
btc r15, r8
add rsp, 0
mov rbx, 0x61f610c5
cld
add rsp, 0
jmp 0x140133f7d
mov word [rsp + 0x27], r14w
add rsp, 0x2a
lea rax, [rbp + riz + 0x742d]
sub r15b, dil
pop bx
jmp 0x14013404e
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000f890]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000f8a0]
mov dword [rax], 1
mov rax, qword [0x14000f8b0]
mov dword [rax], 1
mov rax, qword [0x14000f820]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000f880]
mov dword [0x14001200c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14000f960]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14000f940]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14000f7d0]
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 [sym._matherr]
call sym.__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 0x140007700
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 sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140007770
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140012094]
test esi, esi
mov rbx, rcx
jle 0x1400078a0
mov rax, qword [0x140012098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400077bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140007845
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400077a0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x1400078c2
mov rax, qword [0x140012098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140012098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400078a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000783e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140007850
add dword [0x140012094], 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 [0x140012098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000783e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400077c8
mov rax, qword [0x140012098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140007e30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140012100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400120e0]
test rbx, rbx
je 0x140007e8c
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 0x140007e83
test rsi, rsi
je 0x140007e83
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140007e68
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]