joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001bc30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001a840
mov ecx, dword [0x1400d5308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001bbe8
test byte [rbx + 0x40], 0xc
jne 0x14001bb9f
mov eax, dword [0x14010bc48]
test eax, eax
jne 0x14001bbb0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140019ac0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001bbd3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001bbd3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001bbfc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140019d90
call fcn.14001a8f0
mov rbx, rax
test rax, rax
jne 0x14001bb8f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001bc1a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140019d90
call fcn.14001ba90
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001bca0
call fcn.140019780
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001bcd8
call fcn.14001a840
mov ecx, dword [0x1400d5308]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001bd30
test esi, esi
je 0x14001bcb6
call fcn.14001bb70
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001bd10
mov edx, edi
call fcn.140019850
call fcn.14001bb70
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001a840
mov ecx, dword [0x1400d5308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001bd20
call fcn.14001bb70
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001bb70
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001a840
mov ecx, dword [0x1400d5308]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14001bc75
call fcn.14001a8f0
mov rbx, rax
jmp 0x14001bc75
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001bc8e
call fcn.14001a8f0
jmp 0x14001bcb6
call fcn.14001a8f0
mov rbx, rax
jmp 0x14001bc71

Function at 0x14001bd40
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14001a840
mov ecx, dword [0x1400d5308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001bdb0
test esi, esi
je 0x14001bd90
call fcn.14001bb70
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001bdc0
mov edx, esi
call fcn.140019850
call fcn.14001bb70
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001bb70
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001bb70
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001a8f0
mov rbx, rax
jmp 0x14001bd61
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001bd7a
Function at 0x140087e90
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, qword [sym.imp.msvcrt.dll__read]
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, rdi
call fcn.140087ca0
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call rbp
movsxd r13, eax
cmp eax, 0xffffffff
je 0x140087ee0
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call r12
cmp dword [rax], 4
je 0x140087eb3
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x1400a8ca0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0x80000000
mov dword [rbp - 0x18], 0x7fffffff
mov qword [rbp - 8], 0
jmp 0x1400a8d32
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 8]
mov eax, dword [rax + rdx*4]
and eax, 0x80000000
mov ecx, eax
mov rax, qword [rbp - 8]
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x7fffffff
or eax, ecx
mov dword [rbp - 0x24], eax
mov rax, qword [rbp - 8]
lea rdx, [rax + 0x18d]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
mov edx, dword [rbp - 0x24]
shr edx, 1
xor edx, eax
mov eax, dword [rbp - 0x24]
and eax, 1
test eax, eax
je 0x1400a8d19
mov eax, 0x9908b0df
jmp 0x1400a8d1e
mov eax, 0
xor eax, edx
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 8]
mov dword [rax + rdx*4], ecx
add qword [rbp - 8], 1
cmp qword [rbp - 8], 0xe2
jbe 0x1400a8cc4
mov qword [rbp - 0x10], 0xe3
jmp 0x1400a8db4
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x80000000
mov ecx, eax
mov rax, qword [rbp - 0x10]
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x7fffffff
or eax, ecx
mov dword [rbp - 0x20], eax
mov rax, qword [rbp - 0x10]
lea rdx, [rax - 0xe3]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
mov edx, dword [rbp - 0x20]
shr edx, 1
xor edx, eax
mov eax, dword [rbp - 0x20]
and eax, 1
test eax, eax
je 0x1400a8d9b
mov eax, 0x9908b0df
jmp 0x1400a8da0
mov eax, 0
xor eax, edx
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x10]
mov dword [rax + rdx*4], ecx
add qword [rbp - 0x10], 1
cmp qword [rbp - 0x10], 0x26e
jbe 0x1400a8d46
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x9bc]
and eax, 0x80000000
mov edx, eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax]
and eax, 0x7fffffff
or eax, edx
mov dword [rbp - 0x1c], eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x630]
mov edx, dword [rbp - 0x1c]
shr edx, 1
xor edx, eax
mov eax, dword [rbp - 0x1c]
and eax, 1
test eax, eax
je 0x1400a8e01
mov eax, 0x9908b0df
jmp 0x1400a8e06
mov eax, 0
xor edx, eax
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x9bc], edx
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x9c0], 0
nop
add rsp, 0x30
pop rbp
ret
Function at 0x1400a8e30
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov eax, dword [rbp + 0x18]
mov ecx, eax
call fcn.1400c6c80
mov rdx, qword [rbp + 0x10]
mov dword [rdx], eax
mov qword [rbp - 8], 1
jmp 0x1400a8ea8
mov rax, qword [rbp - 8]
lea rdx, [rax - 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
shr eax, 0x1e
xor dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
imul eax, eax, 0x6c078965
mov dword [rbp - 0xc], eax
mov rax, qword [rbp - 8]
mov ecx, eax
call fcn.1400c6cb0
add dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
mov ecx, eax
call fcn.1400c6c80
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp - 8]
mov dword [rdx + rcx*4], eax
add qword [rbp - 8], 1
cmp qword [rbp - 8], 0x26f
jbe 0x1400a8e59
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x9c0], 0x270
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400a8f00
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x9c0]
cmp rax, 0x26f
jbe 0x1400a8f2b
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.1400a8ca0
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x9c0]
lea rcx, [rax + 1]
mov rdx, qword [rbp + 0x10]
mov qword [rdx + 0x9c0], rcx
mov rdx, qword [rbp + 0x10]
mov eax, dword [rdx + rax*4]
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shr eax, 0xb
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shl eax, 7
and eax, 0x9d2c5680
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shl eax, 0xf
and eax, 0xefc60000
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shr eax, 0x12
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret
Function at 0x14000e700
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000e728
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000e728
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140009008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140009008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140009008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x140001a4a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x2299d6
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001a95
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.VirtualAlloc_failed:__lu_n
call fcn.140001540
jmp 0x140001aea
mov rax, qword [rbp - 8]
mov r8d, 0x2299d6
lea rdx, [0x140013020]
mov rcx, rax
call sub.msvcrt.dll_memmove
mov rax, qword [rbp - 8]
mov r9, rax
mov r8d, 0
mov edx, 0
mov ecx, 0x10000
mov rax, qword [sym.imp.CRYPT32.dll_CertEnumSystemStore]
call rax
mov rax, qword [rbp - 8]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140001b80
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Patch event tracing for windows function

Disassembly:
push rbp
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x90]
mov dword [rbp - 0x14], 0
lea rax, str.EtwEventWrite
mov qword [rbp - 0x60], rax
lea rax, str.EtwEventWriteFull
mov qword [rbp - 0x58], rax
lea rax, str.EtwEventWriteTransfer
mov qword [rbp - 0x50], rax
lea rax, str.EtwRegister
mov qword [rbp - 0x48], rax
lea rax, str.EtwRegisterTraceGuidsW
mov qword [rbp - 0x40], rax
lea rax, str.EtwRegisterTraceGuidsA
mov qword [rbp - 0x38], rax
lea rax, str.EtwSendMessage
mov qword [rbp - 0x30], rax
lea rax, str.EtwEventWriteNoRegistration
mov qword [rbp - 0x28], rax
mov dword [rbp - 4], 0
jmp 0x140001cd3
mov eax, dword [rbp - 4]
cdqe
mov rbx, qword [rbp + rax*8 - 0x60]
lea rcx, str.ntdll.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140001cce
lea rdx, [rbp - 0x14]
mov rax, qword [rbp - 0x10]
mov r9, rdx
mov r8d, 0x40
mov edx, 0x1000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
jne 0x140001c64
mov eax, 0
jmp 0x140001ce4
mov dword [rbp - 0x64], 0xc3c03348
mov edx, dword [rbp - 0x64]
mov rax, qword [rbp - 0x10]
mov dword [rax], edx
mov edx, dword [rbp - 0x14]
lea rcx, [rbp - 0x14]
mov rax, qword [rbp - 0x10]
mov r9, rcx
mov r8d, edx
mov edx, 0x1000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
jne 0x140001ca1
mov eax, 0
jmp 0x140001ce4
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
mov rax, qword [rbp - 0x10]
mov r8d, 0x1000
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
call rax
test eax, eax
jne 0x140001ccf
mov eax, 0
jmp 0x140001ce4
nop
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cmp eax, 7
jbe 0x140001bfc
mov eax, 1
add rsp, 0x98
pop rbx
pop rbp
ret
Function at 0x140001cf0
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov eax, dword [rbp + 0x50]
mov dword [rbp + 0x7c], eax
cmp dword [rbp + 0x7c], 1
ja 0x140001d26
mov eax, 1
jmp 0x140001e5f
mov dword [rbp - 0x10], 0x40
lea rax, [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
call rax
mov rax, qword [rbp - 8]
shr rax, 0x14
mov dword [rbp + 0x78], eax
cmp dword [rbp + 0x78], 0x7ff
ja 0x140001d5b
mov eax, 1
jmp 0x140001e5f
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 3
mov edx, 0
lea rcx, str..PhysicalDrive0
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
call rax
mov qword [rbp + 0x70], rax
cmp qword [rbp + 0x70], 0xffffffffffffffff
jne 0x140001daa
mov eax, 1
jmp 0x140001e5f
mov rax, qword [rbp + 0x70]
mov qword [rsp + 0x38], 0
lea rdx, [rbp - 0x34]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0x18
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0x70000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeviceIoControl]
call rax
test eax, eax
jne 0x140001e09
mov rax, qword [rbp + 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x140001e5f
mov rax, qword [rbp - 0x30]
mov edx, dword [rbp - 0x24]
mov edx, edx
imul rax, rdx
mov edx, dword [rbp - 0x20]
mov edx, edx
imul rax, rdx
mov edx, dword [rbp - 0x1c]
mov edx, edx
imul rax, rdx
lea rdx, [rax + 0x3fffffff]
test rax, rax
cmovs rax, rdx
sar rax, 0x1e
mov dword [rbp + 0x6c], eax
mov rax, qword [rbp + 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
cmp dword [rbp + 0x6c], 0x63
ja 0x140001e5a
mov eax, 1
jmp 0x140001e5f
mov eax, 0
add rsp, 0x100
pop rbp
ret

Function at 0x140001e68
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov edx, 0
mov ecx, 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0xffffffffffffffff
jne 0x140001ea9
mov eax, 0
jmp 0x140001f45
mov dword [rbp - 0x60], 0x130
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x140001ee1
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x140001f45
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, qword [rbp + 0xf0]
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140001f16
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x140001f45
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140001ee1
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x160
pop rbp
ret
Function at 0x140002300
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.1400122e0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400122e0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140002370
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1402410b4]
mov r12, rcx
test ebx, ebx
jle 0x1400024a0
mov rax, qword [0x1402410b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1400023bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140002443
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1400023a0
mov rcx, r12
call fcn.140002d10
mov rsi, rax
test rax, rax
je 0x1400024c2
mov rax, qword [0x1402410b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140002e40
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1402410b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400024a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000243c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002450
add dword [0x1402410b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1402410b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000243c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002300
nop dword [rax]
xor ebx, ebx
jmp 0x1400023c7
mov rax, qword [0x1402410b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002300
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140002300
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002980
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140241120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140241100]
test rbx, rbx
je 0x1400029d4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400029cb
test r12, r12
je 0x1400029cb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400029b0
lea rcx, [0x140241120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002d10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14023dae0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002d30
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002d38
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002d30
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002d85
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002d7c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002d30
add rax, 0x28
cmp rax, r9
jne 0x140002d68
xor eax, eax
ret

Function at 0x140002d90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14023dae0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002db0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002db8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002db0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140002e40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14023dae0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002e60
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002e68
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140004630
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14023db60]
mov rax, qword [rsi]
test rax, rax
je 0x1400046c0
cmp qword [rax + 0x30], 0
jne 0x1400046e0
lea rbx, [0x14023ca68]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140004690
cmp qword [rax + 0x30], 0
jne 0x1400046b0
lea rdx, [0x14023ca68]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x140012470
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140009530
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140004672
test rax, rax
jne 0x1400046b0
call fcn.140009530
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140004680
call fcn.140009530
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140004650
test rax, rax
jne 0x1400046e0
call fcn.140009530
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x14000465b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x1400046f0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140004802
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400047da
add rax, 1
cmp rax, 0x6b
je 0x1400047f7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x1400047d0
cmp edx, 0x6a
je 0x1400047f7
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1400047eb