joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002330
Capabilities:
Delete service

Disassembly:
push rdi
sub rsp, 0x20
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
jne 0x140002350
add rsp, 0x20
pop rdi
ret
mov rcx, rdi
mov qword [rsp + 0x30], rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140002380
Capabilities:
Start service

Disassembly:
push rdi
sub rsp, 0x20
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
jne 0x1400023a0
add rsp, 0x20
pop rdi
ret
xor r8d, r8d
mov qword [rsp + 0x30], rbx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x1400023d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x1400023d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
je 0x1400023d5
xor ebx, ebx
jmp 0x1400023da
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400023f0
Capabilities:
Stop service

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x14003a2a8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
jne 0x14000242c
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400045d0
add rsp, 0x50
pop rdi
ret
lea r8, [rsp + 0x20]
mov qword [rsp + 0x70], rbx
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400045d0
add rsp, 0x50
pop rdi
ret

Function at 0x140002f10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
lea r8, str.BINRES
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x140002f9e
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rdi
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
lea rdx, [0x14002cc10]
mov rcx, rbp
mov rsi, rax
call fcn.140011478
mov rbx, rax
test rax, rax
je 0x140002f9e
mov r8d, edi
mov r9, rax
mov edx, 1
mov rcx, rsi
call fcn.1400117f4
mov rcx, rbx
call fcn.140011324
mov al, 1
jmp 0x140002fa0
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140002fc0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
lea rax, [rsp + 0x68]
mov dword [rsp + 0x50], 4
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlCrashControl
mov rcx, 0xffffffff80000002
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000308e
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea r9d, [rbx + 0x10]
lea rax, [rsp + 0x58]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r8, str.CrashDumpEnabled
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x140003083
mov eax, dword [rsp + 0x58]
cmp eax, 8
ja 0x140003083
mov ebx, eax
cmp eax, 1
jne 0x140003083
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea r9d, [rbx + 0xf]
lea rax, [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r8, str.FilterPages
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
mov ecx, 8
cmove ebx, ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x1400036c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
push rbp
push rdi
push r14
push r15
sub rsp, 0x40
mov r14d, ecx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [rsp + 0x78]
xor r15d, r15d
mov ebp, eax
mov ebx, r15d
test edi, edi
je 0x14000386e
mov qword [rsp + 0x88], r12
mov r12d, 0x83360024
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, ebp
sub ecx, eax
cmp ecx, 0x3e8
jae 0x14000377e
mov rcx, qword [0x14003a190]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], r15
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov edx, 0x83360014
test r14d, r14d
mov dword [rsp + 0x28], r15d
mov r9d, 4
mov qword [rsp + 0x20], r15
cmovne edx, r12d
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140003771
mov eax, dword [rsp + 0x78]
cmp eax, 1
je 0x14000377e
shr eax, 1
mov dword [rsp + 0x78], eax
jne 0x140003775
mov dword [rsp + 0x78], 1
jmp 0x140003775
add ebx, dword [rsp + 0x78]
cmp ebx, edi
jb 0x140003700
jmp 0x140003851
cmp ebx, edi
jae 0x140003851
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x78], 0x2000
cmp ebx, edi
jae 0x14000384c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, ebp
sub ecx, eax
cmp ecx, 0x3e8
jae 0x14000384c
mov rcx, qword [0x14003a190]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], r15
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], rax
test r14d, r14d
mov esi, 0x83360014
mov dword [rsp + 0x28], r15d
cmovne esi, r12d
mov qword [rsp + 0x20], r15
mov edx, esi
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140003839
cmp ebx, edi
jae 0x140003839
mov rcx, qword [0x14003a190]
lea rax, [rsp + 0x80]
add ebx, dword [rsp + 0x78]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x38], r15
mov r9d, 4
mov qword [rsp + 0x30], rax
mov edx, esi
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400037f7
mov eax, dword [rsp + 0x78]
shr eax, 1
mov dword [rsp + 0x78], eax
cmp eax, 1
ja 0x140003793
mov rsi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x88]
test ebx, ebx
je 0x14000386e
lea rcx, [0x14003bf40]
mov eax, ebx
add qword [rcx + r14*8], rax
lea rcx, [rcx + r14*8]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400038c0
Capabilities:
Acquire debug privileges
Delete registry value
Set registry value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], 0
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlCrashControl
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140003a2b
cmp dword [0x14003ad5c], eax
mov qword [rsp + 0x58], rbx
je 0x14000395b
cmp dword [rsp + 0x40], 8
lea rdx, str.FilterPages
mov rcx, qword [rsp + 0x50]
jne 0x140003955
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x48], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
test eax, eax
jne 0x140003a19
jmp 0x14000395b
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
lea rdx, str.CrashDumpEnabled
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
test eax, eax
jne 0x140003a19
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
lea edx, [rbx + 1]
lea rcx, str.SeDebugPrivilege
call fcn.140002e40
test eax, eax
je 0x140003a19
lea rcx, str.ntdll.dll
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x1400039d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140003a06
lea rdx, str.NtSetSystemInformation
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400039f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400039fb
xor edx, edx
xor r8d, r8d
lea ecx, [rdx + 0x22]
call rax
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edx, edx
lea rcx, str.SeDebugPrivilege
call fcn.140002e40
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x38
ret
Function at 0x140003e30
Capabilities:
Delete file
Query environment variable
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x14003a2a8]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov rbx, rcx
lea rdx, [rbp + 0x250]
lea rcx, str.SYSTEMROOT
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x140003ec6
movups xmm0, xmmword [str.Could_not_resolve_the_SYSTEMROOT_environment_variable]
mov eax, dword [0x14002cb88]
movups xmm1, xmmword [0x14002cb68]
mov dword [rbp + 0x70], eax
movzx eax, word [0x14002cb8c]
movaps xmmword [rbp + 0x40], xmm0
movups xmm0, xmmword [0x14002cb78]
mov word [rbp + 0x74], ax
movaps xmmword [rbp + 0x50], xmm1
movaps xmmword [rbp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rbp + 0x40]
mov rcx, rbx
mov r8d, eax
call fcn.1400024c0
jmp 0x140003ffa
lea r9, [rbp + 0x250]
mov edx, 0x104
lea r8, str._s_system32driversmyfault.sys
lea rcx, [rsp + 0x30]
call fcn.140001ef0
mov edx, 0x80
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rdx, [rsp + 0x30]
lea rcx, str.MYFAULT
call fcn.140002f10
lea r9, [rsp + 0x20]
lea r8, [0x14003a190]
lea rdx, [rsp + 0x30]
lea rcx, str.MYFAULT
call fcn.1400021f0
test eax, eax
jne 0x140003ff5
lea rdx, [rsp + 0x30]
lea rcx, str.MYFAULT
call fcn.140002f10
test al, al
jne 0x140003f5d
lea r9, [rsp + 0x30]
mov edx, 0x104
lea r8, str.Unable_to_extract_the_file__s_to_myfault.sys
lea rcx, [rbp + 0x40]
call fcn.140001ef0
jmp 0x140003eac
mov edx, 0x80
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea r9, [rsp + 0x20]
lea r8, [0x14003a190]
lea rdx, [rsp + 0x30]
lea rcx, str.MYFAULT
call fcn.1400021f0
test eax, eax
jne 0x140003ff5
lea rcx, str.MYFAULT
call fcn.140002470
lea r9, [rsp + 0x20]
lea r8, [0x14003a190]
lea rdx, [rsp + 0x30]
lea rcx, str.MYFAULT
call fcn.1400021f0
test eax, eax
jne 0x140003ff5
lea r9, [0x14002cbe8]
mov edx, 0x104
lea r8, str.Cant_load__s.
lea rcx, [rbp + 0x40]
call fcn.140001ef0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov r8d, dword [rsp + 0x20]
lea rdx, [rbp + 0x40]
mov rcx, rbx
call fcn.1400024c0
jmp 0x140003ffa
mov eax, 1
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.1400045d0
mov rbx, qword [rsp + 0x488]
add rsp, 0x470
pop rbp
ret
Function at 0x140004ff0
Capabilities:
Parse pe header

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

Function at 0x14000f914
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000f77f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f77f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f77f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f77f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f77f
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f77f
cmp dword [rcx + 0xf8], 0
je 0x14000f77f
mov ecx, ebx
call fcn.14000f830
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f60c
nop
cmp dword [rbp + 0x20], 0
je 0x14000f7cd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f7d8
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f710
Function at 0x14001cea0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001ceb6
mov al, 1
jmp 0x14001cf16
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001cec7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001cf14
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000f1cc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001cf14
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001cf14
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001cf14
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001cf16
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001e950
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14001e980
xor eax, eax
jmp 0x14001ea43
mov rbp, rbx
cmp word [rax], si
je 0x14001e9a5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001e98c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001e988
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14001c118
movsxd r14, eax
test eax, eax
jne 0x14001e9e3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001e979
mov rcx, r14
call fcn.140018cb8
mov rdi, rax
test rax, rax
jne 0x14001e9fc
xor ecx, ecx
call fcn.140018390
jmp 0x14001e9d8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14001c118
test eax, eax
jne 0x14001ea2d
mov rcx, rdi
call fcn.140018390
jmp 0x14001ea37
xor ecx, ecx
call fcn.140018390
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140021328
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14003b820]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14002137f
cmp word [rdx], r13w
jne 0x14002137f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140021384
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400214a9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400214ca
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400213bd
mov rdx, r9
mov word [rbx], cx
jmp 0x1400213e4
cmp r9, r8
jae 0x1400213f4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14002139e
jmp 0x1400214a9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002149e
cmp dword [rsp + 0x80], esi
je 0x14002149e
lea r8, [0x14003b820]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140021476
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140021446
mov word [rbx], r13w
jmp 0x1400214a6
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140021453
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400214a6
cmp word [rsp + 0x70], r13w
jne 0x140021483
cmp rbx, r14
je 0x140021440
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140021248
cmp word [rsp + 0x70], r13w
je 0x1400214a9
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14003b820]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400214a3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400214a9
Function at 0x1400242ec
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140021248
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140021248
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002443c
cmp rax, 0xffffffffffffffff
je 0x14002443c
xor edi, edi
test rbp, rbp
jle 0x1400243e7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140018318
mov rbx, rax
test rax, rax
jne 0x140024374
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400243dd
mov edx, 0x8000
mov ecx, r14d
call fcn.14000f2b4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001b860
cmp eax, 0xffffffff
je 0x1400243bd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140024384
mov edx, r15d
mov ecx, r14d
call fcn.14000f2b4
jmp 0x1400243dd
cmp byte [rsi + 0x38], dil
je 0x1400243d4
cmp dword [rsi + 0x34], 5
jne 0x1400243d4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400243dd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140018390
jmp 0x140024450
jns 0x140024450
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140021248
cmp rax, 0xffffffffffffffff
jne 0x140024408
cmp byte [rsi + 0x30], dil
je 0x140024450
mov edi, dword [rsi + 0x2c]
jmp 0x140024450
mov ecx, r14d
call fcn.14000f1cc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140024450
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140024450
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140024449
mov eax, dword [rsi + 0x2c]
jmp 0x14002444e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140021248
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000b7a0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000b7b0]
mov dword [rax], 1
mov rax, qword [0x14000b7c0]
mov dword [rax], 1
mov rax, qword [0x14000b740]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000b790]
mov dword [0x14000e020], 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 [0x14000b870]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000b850]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000b6f0]
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 0x140001880
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 0x1400018f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e0b4]
mov rbx, rcx
test esi, esi
jle 0x140001a20
mov rax, qword [0x14000e0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000193b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400019c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001920
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001a42
mov rax, qword [0x14000e0b8]
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 [0x14000e0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a27
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400019be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400019d0
add dword [0x14000e0b4], 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 [0x14000e0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019be
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 0x140001948
mov rax, qword [0x14000e0b8]
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 0x140001fb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e100]
test rbx, rbx
je 0x14000200c
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 0x140002003
test rsi, rsi
je 0x140002003
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001fe8
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 0x140002220
Capabilities:
Parse pe header

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