joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002e780
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x28], 0xb8f4e4ab
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x24], eax
sub eax, 0x84eac569
je 0x14002e847
jmp 0x14002e7be
mov eax, dword [rsp + 0x24]
sub eax, 0x884a090c
je 0x14002e85e
jmp 0x14002e7d2
mov eax, dword [rsp + 0x24]
sub eax, 0xb8f4e4ab
je 0x14002e827
jmp 0x14002e7e6
mov eax, dword [rsp + 0x24]
sub eax, 0xba80de10
je 0x14002e881
jmp 0x14002e7fa
mov eax, dword [rsp + 0x24]
sub eax, 0xc024a1cc
je 0x14002e8a5
jmp 0x14002e80e
mov eax, dword [rsp + 0x24]
sub eax, 0x2fcd1f6
je 0x14002e898
jmp 0x14002e822
jmp 0x14002e9f4
mov edx, dword [rsp + 0x44]
mov eax, 0x884a090c
mov ecx, 0x84eac569
cmp edx, 0x270
cmove eax, ecx
mov dword [rsp + 0x28], eax
jmp 0x14002e9f4
mov rcx, qword [rsp + 0x38]
call fcn.1400404f0
mov dword [rsp + 0x28], 0xc024a1cc
jmp 0x14002e9f4
mov r8, qword [rsp + 0x38]
mov edx, 0x4e0
mov eax, 0x2fcd1f6
mov ecx, 0xba80de10
cmp edx, dword [r8]
cmovbe eax, ecx
mov dword [rsp + 0x28], eax
jmp 0x14002e9f4
mov rcx, qword [rsp + 0x38]
call fcn.140040950
mov dword [rsp + 0x28], 0x2fcd1f6
jmp 0x14002e9f4
mov dword [rsp + 0x28], 0xc024a1cc
jmp 0x14002e9f4
mov rax, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rdx]
xor r9d, r9d
sub r9d, 1
mov r8d, ecx
sub r8d, r9d
mov dword [rdx], r8d
mov ecx, ecx
mov eax, dword [rax + rcx*4 + 4]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
shr eax, 0xb
mov rcx, qword [rsp + 0x38]
mov ecx, dword [rcx + 0x1384]
xor ecx, 0xffffffff
mov edx, eax
xor edx, ecx
and edx, eax
mov r8d, dword [rsp + 0x2c]
mov eax, r8d
xor eax, 0xffffffff
and eax, 0x1935b8cc
mov r9d, 0xffffffff
xor r9d, 0x1935b8cc
and r8d, r9d
mov ecx, edx
xor ecx, 0xffffffff
and ecx, 0x1935b8cc
and edx, r9d
or eax, r8d
or ecx, edx
xor eax, ecx
mov dword [rsp + 0x2c], eax
mov edx, dword [rsp + 0x2c]
shl edx, 7
xor edx, 0xffffffff
mov ecx, 0xffffffff
xor ecx, 0x9d2c5680
mov eax, 0xffffffff
xor eax, 0x8d0cdcd4
or edx, ecx
or eax, 0x8d0cdcd4
xor edx, 0xffffffff
and edx, eax
mov ecx, dword [rsp + 0x2c]
mov r8d, ecx
xor r8d, 0xffffffff
mov eax, edx
and eax, r8d
xor edx, 0xffffffff
and ecx, edx
or eax, ecx
mov dword [rsp + 0x2c], eax
mov edx, dword [rsp + 0x2c]
shl edx, 0xf
xor edx, 0xffffffff
mov ecx, 0xffffffff
xor ecx, 0xefc60000
mov eax, 0xffffffff
xor eax, 0xbbbd2b02
or edx, ecx
or eax, 0xbbbd2b02
xor edx, 0xffffffff
and edx, eax
mov r8d, dword [rsp + 0x2c]
mov eax, r8d
xor eax, 0xffffffff
and eax, 0x55b7dc94
mov r9d, 0xffffffff
xor r9d, 0x55b7dc94
and r8d, r9d
mov ecx, edx
xor ecx, 0xffffffff
and ecx, 0x55b7dc94
and edx, r9d
or eax, r8d
or ecx, edx
xor eax, ecx
mov dword [rsp + 0x2c], eax
mov edx, dword [rsp + 0x2c]
shr edx, 0x12
mov ecx, dword [rsp + 0x2c]
mov r8d, ecx
xor r8d, 0xffffffff
mov eax, edx
and eax, r8d
xor edx, 0xffffffff
and ecx, edx
or eax, ecx
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
add rsp, 0x48
ret
jmp 0x14002e7a6
Function at 0x14002f730
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x78], 0xfffffffffffffffe
mov qword [rbp - 0x30], rcx
mov rax, rcx
mov qword [rbp - 0x28], rax
mov qword [rbp + 0x70], rcx
lea rdx, str.SOFTWAREMicrosoftCryptography
lea rcx, [rbp + 0x48]
call fcn.140002040
lea rdx, str.MachineGuid
lea rcx, [rbp + 0x28]
call fcn.140002040
jmp 0x14002f77c
mov rcx, qword [rbp - 0x30]
mov byte [rbp + 0x27], 0
call fcn.14002e4f0
lea rcx, [rbp + 0x48]
call fcn.140002540
mov rdx, rax
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov r9d, 0x20019
lea rax, [rbp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 0
jne 0x14002f8f1
mov dword [rbp + 0x1c], 0
lea rcx, [rbp + 0x28]
call fcn.140002540
mov rdx, rax
mov rcx, qword [rbp + 0x68]
xor eax, eax
mov r8d, eax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x1c]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0
jne 0x14002f8e2
cmp dword [rbp + 0x20], 1
jne 0x14002f8d3
lea rcx, [rbp - 8]
mov qword [rbp - 0x38], rcx
call fcn.140002930
mov r8, qword [rbp - 0x38]
mov eax, dword [rbp + 0x1c]
mov edx, eax
shr rdx, 1
mov rcx, rbp
call fcn.14002f9e0
jmp 0x14002f82e
mov rcx, rbp
xor eax, eax
mov edx, eax
call fcn.14002fab0
mov qword [rbp - 0x40], rax
lea rcx, [rbp + 0x28]
call fcn.140002540
mov r10, qword [rbp - 0x40]
mov rdx, rax
mov rcx, qword [rbp + 0x68]
xor eax, eax
mov r9d, eax
lea rax, [rbp + 0x1c]
mov r8, r9
mov qword [rsp + 0x20], r10
mov qword [rsp + 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0
jne 0x14002f8c6
mov rcx, rbp
lea rdx, [rbp - 0x18]
mov qword [rbp - 0x48], rdx
call fcn.14002fba0
mov rcx, qword [rbp - 0x48]
lea rdx, [rbp - 0x10]
mov r8d, 1
call fcn.14002fc30
jmp 0x14002f89f
mov rcx, rbp
lea rdx, [rbp - 0x20]
call fcn.14002fca0
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x10]
call fcn.14002fae0
jmp 0x14002f8c1
jmp 0x14002f8c6
mov rcx, rbp
call fcn.14002fd30
jmp 0x14002f8dd
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14002f8e2
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14002f8f6
jmp 0x14002f8f6
mov byte [rbp + 0x27], 1
test byte [rbp + 0x27], 1
jne 0x14002f90d
mov rcx, qword [rbp - 0x30]
call fcn.1400020b0
lea rcx, [rbp + 0x28]
call fcn.1400020b0
lea rcx, [rbp + 0x48]
call fcn.1400020b0
mov rax, qword [rbp - 0x28]
add rsp, 0x100
pop rbp
ret
Function at 0x140063c04
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140063d34
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Enumerate processes
Execute shellcode via indirect call
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x140003008]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001095
xor edx, edx
mov dword [rsp + 0x50], 0x238
mov r8d, 0x234
lea rcx, [rsp + 0x54]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x50]
mov rcx, rdi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140001089
nop dword [rax]
nop word [rax + rax]
lea rdx, [rsp + 0x50]
mov rcx, rdi
inc ebx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001070
cmp ebx, 0x28
jg 0x140001095
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.ntdll.dll
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0x507
mov dword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtAllocateVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, [rax + 4]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 4
mov qword [rsp + 0x20], 0
mov rcx, rax
lea r8, [rsp + 0x38]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [0x140003040]
movzx eax, word [rsp + 0x38]
mov word [rcx + 4], ax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x28], 0x40
lea r9, [rsp + 0x40]
mov rcx, rax
mov dword [rsp + 0x20], 0x1000
xor r8d, r8d
lea rdx, [rsp + 0x30]
call qword [0x140003040]
mov rcx, qword [rsp + 0x30]
lea rdx, [0x140003050]
mov r8d, 0x507
call sub.VCRUNTIME140.dll_memcpy
call qword [rsp + 0x30]
xor eax, eax
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400011a0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x2a0
pop rdi
ret
Function at 0x14000e9c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x68], 0
je 0x14000e9f9
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14000eb43
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x40]
cmp qword [rax], 0
je 0x14000ea23
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
jmp 0x14000ea2b
mov dword [rsp + 0x20], 0
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x60], 0
jle 0x14000eaeb
cmp qword [rsp + 0x28], 0
jle 0x14000eaeb
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x60], rax
jge 0x14000ea63
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
call fcn.140007cf0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x58]
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax]
sub eax, ecx
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x58]
mov dword [rcx], eax
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x40]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x40]
mov qword [rcx], rax
cmp qword [rsp + 0x60], 0
jle 0x14000eb33
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x80], 0
je 0x14000eb33
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x60]
mov edx, 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
add rsp, 0x48
ret
Function at 0x14000fdb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x14000fddb
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000fde2
mov al, 1
jmp 0x14000ff3c
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.1400011a0
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.1400011a0
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x40]
call fcn.1400011b0
movzx eax, al
test eax, eax
je 0x14000fe39
xor al, al
jmp 0x14000ff3c
mov qword [rsp + 0x68], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14000fea9
cmp dword [rsp + 0x30], 1
je 0x14000feb5
cmp dword [rsp + 0x30], 3
je 0x14000ff2a
jmp 0x14000ff3a
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x14000ff01
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x48], rax
je 0x14000ff01
xor al, al
jmp 0x14000ff3c
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000ff1b
mov dword [rsp + 0x34], 1
jmp 0x14000ff23
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x14000ff3c
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14000ff3c
xor al, al
add rsp, 0xa8
ret
Function at 0x140012204
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140012288
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140015650]
cmp byte [rcx + rax], 0
je 0x140012288
dec r8
sub rdx, 1
jne 0x14001226e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140012df0
Capabilities:
Parse pe header

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

Function at 0x1636eb4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1636ebe
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1636ee7
pop rbp
sub rbp, 0x33
sub rbp, 0x1236eb4
sub rsp, 0x20
and byte [rax], al
add byte [rax], al
jmp 0x1636f06
mov rax, 0x1236eb4
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffff94f2fd32
xor byte [rax], dl
inc rax
dec rcx
jne 0x1636f25
jmp 0x1636f3c
jp 0x1636ef9
fstp xword [rcx + 0x32320ebb]
xor bh, byte [rdx - 0x4d]
cmp dh, byte [rbx]
xor dh, byte [rdx]
jp 0x1636f81
fstp xword [rdx - 0xb]
xor dh, byte ss:[rdx]
xor dh, byte [rdx]
xor bh, byte [rdx - 0xb]
invalid
xor bh, byte [rdx + 0x33]
fstp xword [rdx - 0x78]
jrcxz 0x1636fec
jns 0x1636fb8
xor dh, byte [rdx]
xor dh, byte [rdx]
fidiv dword [rdi]
xor dh, byte [rdx]
xor bl, bl
and al, 0x32
xor dh, byte [rdx]
fidiv dword [rax]
add esp, dword [rbx]
jp 0x1636f53
xor dh, byte ss:[rdx]
xor bh, byte [rdx - 0x33]
cli
cmp eax, 0xcdcddcb7
int 0xf1
push 0x68
invalid
xor dh, byte [rdx]
xor dh, byte [rdx]
xor bh, byte [rdx - 0x75]
sub byte [rbp - 0x37], bl
xor dh, byte [rdx]
xor dh, byte [rdx]
xor bh, byte [rdx + 0x33]
fcmovnu st(0), st(2)
invalid
mov dh, 0x56
xor dh, byte [rdx]
xor bh, byte [0x3395dcb0]
xor dl, byte [rcx + rdi*4 + 0x2e]
or esi, dword [rdx - 0x49c22537]
xor dh, byte cs:[rdx]
xor dh, byte [rdx - 0x49c22437]
and dword [rdx], esi
xor dh, byte [rdx]
push rsp
mov bl, 0xc9
int 0x17
cmp eax, 0x32322db6
xor bh, byte [rdx - 0x33]
invalid
Function at 0x140001d60
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.140007ad0
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.140007ad0
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 0x140001dd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000f104]
mov rbx, rcx
test esi, esi
jle 0x140001f00
mov rax, qword [0x14000f108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001e1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001ea5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001e00
mov rcx, rbx
call fcn.140002820
mov rdi, rax
test rax, rax
je 0x140001f22
mov rax, qword [0x14000f108]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002960
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000f108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001f07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001e9e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001eb0
add dword [0x14000f104], 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 [0x14000f108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001e9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001d60
nop dword [rax]
xor esi, esi
jmp 0x140001e28
mov rax, qword [0x14000f108]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001d60
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001d60
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002490
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000f160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000f140]
test rbx, rbx
je 0x1400024ec
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 0x1400024e3
test rsi, rsi
je 0x1400024e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400024c8
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 0x140002820
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000aa40]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002840
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002848
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002840
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000289d
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 0x140002894
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002840
add rax, 0x28
cmp rax, r9
jne 0x140002880
xor eax, eax
ret

Function at 0x1400028a0
Capabilities:
Parse pe header

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

Function at 0x140002960
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000aa40]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000297f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002988
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140002952
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x140002971
mov rcx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001a4e8

Function at 0x1400055bb
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov qword [rsp + 0x28], rdx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.14001a4e8

Function at 0x1400055fa
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
cmp qword [0x1403e10f0], 0
jne 0x140005612
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.1400055bb
lea rsi, [rsp + 0x20]
mov rdx, rcx
mov rcx, rsi
call fcn.140005534
mov rbx, qword [rsp + 0x28]
mov rcx, rsi
call qword [0x1403e10f0]
test rbx, rbx
je 0x140005643
test byte [rbx + 7], 0x40
jne 0x140005643
mov rcx, rbx
call fcn.1400039df
lea rcx, [0x140020320]
call fcn.140015130
cmp byte [rax], 0
je 0x14000567b
lea rcx, [0x140020220]
mov byte [rax], 0
call fcn.140015130
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop rbx
pop rsi
jmp fcn.140003f44
add rsp, 0x38
pop rbx
pop rsi
ret

Function at 0x140005cf2
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r12, [0x1403e10c0]
xor ebx, ebx
lea r14, [0x140020320]
lea r13, [rsp + 0x20]
mov rsi, rcx
mov rdi, rdx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbp, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
cmp rbx, rdi
mov ecx, 1
jl 0x140005d78
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x14002139b]
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
call fcn.14001a4e8
mov rcx, r12
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rbp
xor r8d, r8d
mov rdx, r13
mov rcx, rax
mov rax, rbx
shl rax, 4
movups xmm0, xmmword [rsi + rax]
movaps xmmword [rsp + 0x20], xmm0
call fcn.140005bcb
mov rcx, r14
call fcn.140015130
cmp byte [rax], 0
jne 0x140005daa
inc rbx
jmp 0x140005d2b
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret