joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003d60
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rsi, rdx
xor r14d, r14d
mov rdx, rcx
mov qword [rbp + 0x38], r14
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x48], r14
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rax, [rbp - 0x40]
mov dword [rbp - 0x30], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x30]
mov qword [rbp - 0x28], r14
lea edx, [r14 + 1]
mov dword [rbp - 0x18], 0x40
lea rcx, [rbp + 0x38]
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
nop dword [rax + rax]
test eax, eax
js 0x140003f2e
xor edx, edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov edi, r14d
mov dword [rbp + 0x30], r14d
jmp 0x140003e4d
cmp qword [rbp - 0x48], r14
je 0x140003e18
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x48]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov eax, dword [rbp + 0x30]
xor edx, edx
mov word [rbp - 0x4e], ax
mov rcx, qword gs:[0x60]
lea edi, [rax + 2]
mov r8d, edi
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbp - 0x48], rax
test rax, rax
je 0x140003f44
mov rcx, qword [rbp + 0x38]
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x50]
call qword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xc0000023
je 0x140003df3
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x38], r14
test ebx, ebx
js 0x140003f08
movzx ecx, word [rbp - 0x50]
lea r8, [rbp - 0x30]
shr rcx, 1
xorps xmm0, xmm0
mov edx, 1
mov word [rax + rcx*2], r14w
lea rax, [rbp - 0x50]
lea rcx, [rbp + 0x38]
mov qword [rbp - 0x20], rax
mov word [rbp - 0x4e], di
mov dword [rbp - 0x30], 0x30
mov qword [rbp - 0x28], r14
mov dword [rbp - 0x18], 0x40
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
nop dword [rax + rax]
test eax, eax
jns 0x140003e4d
mov rax, qword [rbp - 0x48]
mov ebx, r14d
mov qword [rsi], rax
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140003f04
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x38], r14
test ebx, ebx
jns 0x140003f2c
test rax, rax
je 0x140003f2c
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x48]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ebx, 0xc000009a
jmp 0x140003ee7
Function at 0x140003f54
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x7b0]
sub rsp, 0x8b0
mov rax, qword [0x140010098]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov rsi, rdx
mov r14, r8
mov rdx, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
xor r15d, r15d
mov dword [rsp + 0x68], 0x30
lea rax, [rsp + 0x58]
mov qword [rsp + 0x70], r15
xorps xmm0, xmm0
mov dword [rbp - 0x80], 0x40
lea r8, [rsp + 0x68]
mov qword [rsp + 0x78], rax
lea edx, [r15 + 1]
lea rcx, [rsp + 0x48]
movdqu xmmword [rbp - 0x78], xmm0
call qword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
nop dword [rax + rax]
test eax, eax
js 0x14000409c
mov dword [rsp + 0x40], r15d
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rdx, [rbp - 0x60]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8d, 0x800
mov byte [rsp + 0x20], r15b
call qword [sym.imp.ntdll.dll_NtQueryDirectoryObject]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x8000001a
je 0x140004089
test eax, eax
js 0x140004074
cmp word [rbp - 0x60], r15w
je 0x140003fea
lea rbx, [rbp - 0x58]
mov rdx, qword [rbx + 0x10]
mov r8, r14
mov rcx, qword [rbx]
mov rax, rsi
call qword [0x14000c0f8]
mov edi, eax
test eax, eax
js 0x14000405f
add rbx, 0x20
cmp word [rbx - 8], r15w
jne 0x140004039
jmp 0x140003fea
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, edi
jmp 0x14000409c
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, ebx
jmp 0x14000409c
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.140007d40
mov rbx, qword [rsp + 0x8f8]
add rsp, 0x8b0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400040cc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rdi, rcx
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
nop dword [rax + rax]
xor r15d, r15d
mov r14, rax
test rax, rax
je 0x140004204
test rdi, rdi
je 0x140004204
cmp word [rdi], r15w
je 0x140004204
or rsi, 0xffffffffffffffff
mov rbx, rsi
inc rbx
cmp word [rdi + rbx*2], r15w
jne 0x140004119
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileType]
nop dword [rax + rax]
cmp eax, 2
jne 0x140004176
lea rdx, [rsp + 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
nop dword [rax + rax]
test eax, eax
je 0x140004176
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], r15
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
nop dword [rax + rax]
jmp 0x140004204
lea edx, [rbx + 1]
xor ecx, ecx
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
je 0x140004204
add ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
nop dword [rax + rax]
mov qword [rsp + 0x38], r15
mov r9d, esi
mov qword [rsp + 0x30], r15
mov ecx, eax
mov dword [rsp + 0x28], ebx
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop dword [rax + rax]
test eax, eax
je 0x1400041f5
inc rsi
cmp byte [rsi + rbp], r15b
jne 0x1400041cd
mov r8, rsi
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x78]
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140004494
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x20
xor r9d, r9d
lea rdx, [0x14000c620]
mov rbx, rcx
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
nop dword [rax + rax]
test rax, rax
jne 0x1400044c3
add rsp, 0x20
pop rbx
ret
mov rdx, rax
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadResource]
Function at 0x1400045d0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140010098]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, dword [0x140016070]
test eax, eax
jne 0x1400046d4
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000463f
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x30]
xor eax, eax
mov edx, dword [rsp + 0x24]
mov dword [0x140016070], eax
sub ecx, 1
je 0x1400046b0
cmp ecx, 1
jne 0x1400046d4
cmp edx, 5
jne 0x14000469e
mov eax, dword [rsp + 0x28]
test eax, eax
je 0x140004697
sub eax, ecx
je 0x14000467d
cmp eax, ecx
je 0x140004673
lea eax, [rdx + 0xf]
jmp 0x1400046f2
mov edx, 0x10
lea ecx, [rdx - 0xf]
jmp 0x140004685
mov edx, 8
lea ecx, [rdx - 6]
xor eax, eax
cmp word [rsp + 0x134], cx
cmovae eax, edx
or eax, 4
jmp 0x1400046f2
mov eax, 4
jmp 0x1400046f2
cmp edx, 4
ja 0x1400046ed
mov ecx, 2
mov eax, ecx
mov dword [0x140016070], ecx
cmp edx, 4
jne 0x1400046d4
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x1400046c7
cmp ecx, 0xa
je 0x1400046c7
cmp ecx, 0x5a
jne 0x1400046d4
mov ecx, 1
mov eax, ecx
mov dword [0x140016070], ecx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140007d40
add rsp, 0x158
ret
mov eax, 0x20
mov dword [0x140016070], eax
jmp 0x1400046d4

Function at 0x1400048bc
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140010098]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rax, [r11 - 0x20]
mov dword [rsp + 0x30], 6
mov r9d, 1
mov qword [r11 - 0x38], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftActive_SetupInstalled_Components89820200_ECBD_11CF_8B85_00AA005B4383
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000499f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.Locale
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x14000499f
lea rsi, [0x1400091b0]
mov rdi, rsi
mov rdx, qword [rdi]
lea rcx, [rsp + 0x40]
mov r8d, 3
call sub.msvcrt.dll__wcsnicmp
test eax, eax
je 0x14000498d
inc ebx
add rdi, 0x10
cmp ebx, 0x1c
jb 0x140004969
jmp 0x14000499f
movsxd rax, ebx
add rax, rax
movzx eax, word [rsi + rax*8 + 8]
mov word [0x140016074], ax
movzx eax, word [0x140016074]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007d40
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1400053dc
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov ebp, edx
lea r9, [rsp + 0x58]
xor edx, edx
mov rsi, r8
mov r14, rcx
xor r8d, r8d
lea ecx, [rdx + 0x63]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xc0000023
je 0x140005425
test eax, eax
js 0x1400054b1
jmp 0x1400054c5
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, dword [rsp + 0x58]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x1400054c5
mov r8d, dword [rsp + 0x58]
lea r9, [rsp + 0x58]
mov rdx, rax
mov ecx, 0x63
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140005493
movzx ecx, word [rdi]
add ecx, 2
mov dword [rsi], ecx
cmp ecx, ebp
jbe 0x140005484
mov ebx, 0xc0000023
jmp 0x140005493
mov rdx, qword [rdi + 8]
mov r8d, ecx
mov rcx, r14
call sub.msvcrt.dll_memcpy
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov ecx, 0x80000000
lea eax, [rbx + rcx]
test ecx, eax
jne 0x1400054dc
cmp ebx, 0xc0000023
je 0x1400054dc
mov r9, rsi
lea rcx, [0x140005720]
mov r8d, ebp
mov rdx, r14
call fcn.140005848
mov ebx, eax
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140005560
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140010098]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ebx, 1
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea r8d, [rbx + 0x1f]
lea ecx, [rbx + 0x59]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
test eax, eax
js 0x1400055a5
xor ebx, ebx
cmp dword [rsp + 0x30], 3
cmovl ebx, dword [rsp + 0x30]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140007d40
add rsp, 0x50
pop rbx
ret
Function at 0x140005914
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov dword [rax + 8], ecx
push rsi
push rdi
push r14
sub rsp, 0x20
mov r14, rdx
mov rsi, r9
xor edx, edx
lea r9, [rax + 8]
mov ebp, r8d
xor r8d, r8d
lea ecx, [rdx + 0x62]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xc0000023
je 0x140005966
test eax, eax
js 0x1400059f9
mov ebx, 0xc0000001
jmp 0x1400059f9
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, dword [rsp + 0x40]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140005995
mov ebx, 0xc000009a
jmp 0x1400059f9
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rdi
mov ecx, 0x62
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x1400059db
movzx eax, word [rdi]
add eax, 2
mov dword [rsi], eax
cmp eax, ebp
jbe 0x1400059cc
mov ebx, 0xc0000023
jmp 0x1400059db
mov rdx, qword [rdi + 8]
mov rcx, r14
mov r8d, eax
call sub.msvcrt.dll_memcpy
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14000602c
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov r14, qword [rbp + 0x50]
lea rcx, [rbp - 0x10]
mov rsi, qword [rbp + 0x58]
xor edi, edi
and qword [rbp + 0x40], rdi
mov rbx, r8
and qword [r14], rdi
and dword [rsi], edi
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
test rbx, rbx
je 0x140006084
lea r9, [rbp + 0x40]
mov rdx, rbx
call fcn.140005dfc
mov ebx, eax
test eax, eax
js 0x14000617e
mov rcx, qword [rbp + 0x40]
lea rax, [rbp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], edi
lea rdx, [rbp - 0x10]
lea r8d, [r9 + 2]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xc0000023
je 0x1400060c7
test eax, eax
js 0x14000617e
mov ebx, 0xc0000001
jmp 0x14000617e
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, dword [rbp + 0x48]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400060f8
mov ebx, 0xc000009a
jmp 0x14000617e
mov rcx, qword [rbp + 0x40]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x10]
mov eax, dword [rbp + 0x48]
mov r9, rdi
mov r8d, 2
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14000617e
cmp dword [rdi + 4], 1
je 0x140006138
mov ebx, 0xc0000024
jmp 0x14000617e
mov eax, dword [rbp + 0x48]
xor edx, edx
add eax, 0xfffffff4
mov dword [rbp + 0x48], eax
mov rcx, qword gs:[0x60]
mov r8d, eax
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [r14], rax
test rax, rax
je 0x1400060ee
mov r8d, dword [rbp + 0x48]
lea rdx, [rdi + 0xc]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov eax, dword [rbp + 0x48]
xor ebx, ebx
mov dword [rsi], eax
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x140006193
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test rdi, rdi
je 0x1400061b6
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140007b40
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140016090], rbx
je 0x140007b8c
cmp rax, rbx
jne 0x140007b7f
mov ebx, 1
mov esi, ebx
jmp 0x140007b91
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007b64
mov ebx, 1
mov eax, dword [0x140016098]
cmp eax, ebx
jne 0x140007ba7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140007c0c
mov eax, dword [0x140016098]
test eax, eax
jne 0x140007c06
mov dword [0x140016098], ebx
lea r15, [0x14000c130]
lea rdi, [0x14000c118]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140007bf8
test eax, eax
jne 0x140007bfc
cmp qword [rdi], 0
je 0x140007bed
mov rax, qword [rdi]
mov rcx, qword [0x14000c0f8]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140007bce
test eax, eax
je 0x140007c0c
mov eax, 0xff
jmp 0x140007ce8
mov dword [0x140015ac4], ebx
mov eax, dword [0x140016098]
cmp eax, ebx
jne 0x140007c33
lea rdx, [0x14000c110]
lea rcx, [0x14000c100]
call sub.msvcrt.dll__initterm
mov dword [0x140016098], 2
test esi, esi
jne 0x140007c40
xor eax, eax
xchg qword [0x140016090], rax
cmp qword [0x1400160a0], 0
je 0x140007c74
lea rcx, [0x1400160a0]
call fcn.140007f00
test eax, eax
je 0x140007c74
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400160a0]
mov r9, qword [0x14000c0f8]
call r9
mov r8, qword [0x140015ad8]
mov rdx, qword [0x140015ad0]
mov ecx, dword [0x140015ac8]
call fcn.14000290c
mov dword [0x140015ac0], eax
cmp dword [0x140015ae0], 0
jne 0x140007ca4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140015ac4], 0
jne 0x140007cb9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140015ac0]
jmp 0x140007ce8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400aa000
add rsp, 0x28
jmp 0x140007b40

Function at 0x140007dec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140007e38
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140007e30
cmp dword [rcx + 0x3c], edx
jl 0x140007e30
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140007e30
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140007e38
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140003010
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 fcn.140004b70
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004b70
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140003080
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x1400031b0
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400030cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003155
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400030b0
mov rcx, rbx
call fcn.140003ad0
mov rdi, rax
test rax, rax
je 0x1400031d2
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003c10
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400031b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000314e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003160
add dword [0x1400090a4], 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 [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000314e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140003010
nop dword [rax]
xor esi, esi
jmp 0x1400030d8
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140003010
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140003010
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003740
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x14000379c
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 0x140003793
test rsi, rsi
je 0x140003793
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003778
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 0x140003ad0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006650]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003af0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003af8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003af0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140003b4d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003b44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003af0
add rax, 0x28
cmp rax, r9
jne 0x140003b30
xor eax, eax
ret

Function at 0x140003b50
Capabilities:
Parse pe header

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

Function at 0x140003c10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006650]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003c2f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003c38
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret