joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005c10
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140005c44
cmp word [rcx], 0x5a4d
jne 0x140005c44
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140005c44
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005c44
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140005b50
test eax, eax
jne 0x140005c60
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140005bc0
test rax, rax
je 0x140005c55
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000640c
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140006310
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 rcx, r10
call fcn.1400062b0
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 0x140006764
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1409baed8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1409baed4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400067b2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400067aa
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140006899
inc ebx
add rax, 0x28
jmp 0x14000678a
mov rcx, r12
call fcn.140006f91
mov rbp, rax
test rax, rax
jne 0x1400067d1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140006700
movsxd rbx, ebx
mov rax, qword [0x1409baed8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000703f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1409baed8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140006833
mov rax, qword [0x1409baed8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140006700
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140006893
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140006893
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 [0x1409baed8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140006893
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140006700
inc dword [0x1409baed4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140006cc0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1409baf40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1409baf20]
test rbx, rbx
je 0x140006d0c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140006d06
test eax, eax
jne 0x140006d06
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140006cde
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140006ec0
Capabilities:
Parse pe header

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

Function at 0x140006ee4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140006f1e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140006f15
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140006f20
inc r8d
add rax, 0x28
jmp 0x140006efc
xor eax, eax
ret

Function at 0x140006f91
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409b36d0]
mov r8, rcx
mov rcx, r9
call fcn.140006ec0
test eax, eax
je 0x140006fbd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140006ee4
xor eax, eax
add rsp, 0x28
ret
Function at 0x6d04be70
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.6d05daf0
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.6d05daf0
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 0x6d04bee0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x6d4d55e4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x6d04c088
mov rax, qword [0x6d4d55e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x6d04bf2c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x6d04bfb7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x6d04bf10
mov rcx, r12
call fcn.6d04cbe0
mov rbp, rax
test rax, rax
je 0x6d04c0c2
mov rax, qword [0x6d4d55e8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.6d04cd10
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d4d55e8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d04c0d1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x6d04bfb0
sub eax, 4
and eax, 0xfffffffb
jne 0x6d04c040
add dword [0x6d4d55e4], 1
cmp ebx, 8
jae 0x6d04bfe8
test bl, 4
jne 0x6d04c090
test ebx, ebx
je 0x6d04bfd9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x6d04c0b0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x6d04bfd9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x6d04c01a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x6d4d55e8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d04bfb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.6d04be70
nop dword [rax]
xor edi, edi
jmp 0x6d04bf37
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x6d04bfd9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x6d04bfd9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.6d04be70
mov rax, qword [0x6d4d55e8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.6d04be70
nop
nop dword [rax]
Function at 0x6d04c850
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d4d58c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d4d58a0]
test rbx, rbx
je 0x6d04c8a4
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 0x6d04c89b
test r12, r12
je 0x6d04c89b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d04c880
lea rcx, [0x6d4d58c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x6d04cbe0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x6d4586a0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x6d04cc59
mov rcx, r10
call fcn.6d04cab0
test eax, eax
je 0x6d04cc59
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x6d04cc56
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x6d04cc4d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x6d04cc59
add r8, 0x28
cmp r8, r9
jne 0x6d04cc38
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x6d04d190
Capabilities:
Allocate thread local storage

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x6d04d1c0
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp fcn.6d063260
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x6d04d200
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x6d04d240
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x6d04d258
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x6d04dc90
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, qword [rcx + 8]
mov rdi, qword [rcx]
mov rbx, rcx
cmp rsi, 8
ja 0x6d04dc40
lea rcx, [rdi + 8]
call sub.msvcrt.dll_malloc
test rax, rax
je 0x6d04dc82
mov rdx, qword [rbx + 0x18]
mov qword [rax], rax
lea r9, [rax + 8]
mov r8, rdi
test rdx, rdx
je 0x6d04dc6a
mov rcx, r9
call sub.msvcrt.dll_memcpy
mov r9, rax
mov rax, r9
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
lea rcx, [rsi + rdi + 7]
call sub.msvcrt.dll_malloc
test rax, rax
je 0x6d04dc82
lea r9, [rax + rsi + 7]
neg rsi
mov r8, rdi
and r9, rsi
mov qword [r9 - 8], rax
mov rdx, qword [rbx + 0x18]
test rdx, rdx
jne 0x6d04dc28
mov rcx, r9
xor edx, edx
call sub.msvcrt.dll_memset
mov r9, rax
mov rax, r9
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
sub rsp, 0x28
xor ecx, ecx
xor r9d, r9d
mov r8d, 0xffff
mov dword [0x6d4d5910], 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x6d4d5918], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x6d04dce0
lea rdx, [0x6d04dba0]
mov dword [0x6d4d5908], eax
call fcn.6d063260
test eax, eax
jne 0x6d04dce8
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x6d04dcd7
call sub.msvcrt.dll_abort
nop
nop
Function at 0x6d04dcf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r13, qword [0x6d457bc0]
mov r11d, dword [r13]
mov r12, rcx
test r11d, r11d
jne 0x6d04dd30
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x6d04dd98
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x6d04ddb0
mov r13d, dword [0x6d4d5908]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rsi
mov r14d, eax
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r14d
mov r13, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r13, r13
je 0x6d04de28
mov r14, qword [r13]
cmp r14, rbx
jb 0x6d04de70
lea r13, [r13 + rbx*8]
mov rax, qword [r13]
test rax, rax
jne 0x6d04dd19
mov rcx, r12
call fcn.6d04dbf0
mov qword [r13], rax
jmp 0x6d04dd19
call fcn.6d04dbf0
mov qword [r12 + 0x10], rax
jmp 0x6d04dd19
mov r10d, dword [r13]
test r10d, r10d
je 0x6d04ded2
mov r9d, dword [0x6d43f030]
test r9d, r9d
je 0x6d04df00
lock add dword [0x6d4d5910], 1
jne 0x6d04df34
mov rbx, qword [r12 + 0x10]
test rbx, rbx
je 0x6d04dee0
mov eax, dword [r13]
test eax, eax
je 0x6d04dd39
mov eax, 0xffffffff
lock xadd dword [0x6d4d5910], eax
sub eax, 1
js 0x6d04dd39
mov rcx, qword [0x6d4d5918]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x6d04dd39
lea rcx, [rbx + 0x21]
mov edx, 8
lea rdi, [rbx + 0x20]
call sub.msvcrt.dll_calloc
mov r13, rax
test rax, rax
je 0x6d04df5b
mov qword [rax], rdi
mov ecx, dword [0x6d4d5908]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x6d04dd77
call rsi
jmp 0x6d04dd77
lea rdi, [r14 + r14]
lea rax, [rbx + 0x20]
mov rcx, r13
cmp rbx, rdi
cmova rdi, rax
lea rdx, [rdi*8 + 8]
call sub.msvcrt.dll_realloc
mov r13, rax
test rax, rax
je 0x6d04df5b
mov qword [rax], rdi
sub rdi, r14
lea rcx, [rax + r14*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sub.msvcrt.dll_memset
jmp 0x6d04de49
call 0x6d04dc90
mov dword [0x6d43f030], 1
mov edx, dword [r13]
test edx, edx
jne 0x6d04ddcd
mov rbx, qword [r12 + 0x10]
test rbx, rbx
jne 0x6d04dd39
mov rax, qword [0x6d4d5900]
lea rbx, [rax + 1]
mov qword [0x6d4d5900], rbx
mov qword [r12 + 0x10], rbx
jmp 0x6d04dde9
lock add dword [0x6d43f034], 1
je 0x6d04deb7
mov r8d, dword [0x6d43f030]
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x6d43f030]
test r8d, r8d
jne 0x6d04dec6
nop dword [rax]
xor ecx, ecx
call rsi
mov ecx, dword [rbx]
test ecx, ecx
je 0x6d04df28
jmp 0x6d04dec6
mov rcx, qword [0x6d4d5918]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x6d04dddb
lock sub dword [0x6d4d5910], 1
jmp 0x6d04dddb
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]
nop dword [rax]
cmp qword [rcx], rdx
jae 0x6d04df80
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x6d04df8a
mov qword [rcx + 8], r8
test r9, r9
je 0x6d04df94
cmp qword [rcx], rdx
je 0x6d04df98
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x6d05f9f0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x6d43f128], eax
cmp eax, 0xffffffff
je 0x6d43ec20
add rsp, 0x28
ret
call sub.msvcrt.dll_abort
nop

Function at 0x6d060050
Capabilities:
Print debug messages

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, rcx
test rcx, rcx
je 0x6d060075
call fcn.6d05f8b0
cmp eax, 1
je 0x6d060082
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
ret
lea r12, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
mov rdi, r12
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
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 0x6d060108
mov eax, 0x28
jmp 0x6d0600da
add rax, 1
cmp rax, 0x6b
je 0x6d0600fa
cmp byte [r12 + rax], 0
mov edx, eax
jne 0x6d0600d0
cmp eax, 0x6a
je 0x6d0600fa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
jmp 0x6d0600e8

Function at 0x6d060110
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x6d4d6380], 1
je 0x6d060127
call fcn.6d05ffc0
mov ecx, dword [0x6d43f128]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x6d060150
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
call fcn.6d05fef0
cmp qword [0x6d4db040], 0
mov rbx, rax
je 0x6d06013b
test rax, rax
je 0x6d06013b
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.6d060050
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rdi
mov dword [rsp + 0x30], 2
mov r8, rsi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x6d43ec26
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x6d43f128]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x6d43ec26
mov r12, rbx
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x6d061830
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
mov rbp, r9
call fcn.6d05fef0
mov r12, rax
test rax, rax
je 0x6d061aa0
test rdi, rdi
je 0x6d06186a
mov rax, qword [rax + 0x1d8]
mov qword [rdi], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [r12 + 8], rbp
mov dword [r12 + 0x44], 1
mov rbp, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [r12 + 0xbc], 0
mov r14, r13
mov qword [r12 + 0x28], 0xffffffffffffffff
mov qword [r12 + 0x10], rbx
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call rbp
mov qword [r12 + 0x30], rax
test rax, rax
jne 0x6d0618e0
test ebx, ebx
je 0x6d0618d8
mov ecx, 0x14
call r14
cmp ebx, 4
je 0x6d0618e0
add ebx, 1
jmp 0x6d0618a5
xor ecx, ecx
call r13
jmp 0x6d0618cf
mov qword [r12 + 0x38], 0xffffffffffffffff
lea r14, [r12 + 0x68]
mov rcx, r14
call fcn.6d060050
cmp qword [r12 + 0x30], 0
mov dword [r12], 0xbab1f00d
mov dword [r12 + 0xc0], 0
mov dword [r12 + 0xb8], 0
je 0x6d061a4c
xor edx, edx
test rsi, rsi
je 0x6d061946
mov eax, dword [rsi]
mov edx, dword [rsi + 0x10]
mov dword [r12 + 0x44], eax
test al, 8
jne 0x6d061a78
mov eax, dword [rsi + 0x18]
mov dword [r12 + 0xc0], eax
lea r8, [0x6d0605c0]
mov r9, r12
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov r13, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x6d061a18
mov eax, dword [r12 + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x6d0619f0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [r12 + 0x44], 4
jne 0x6d0619d0
mov qword [r12 + 0x28], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov qword [r12 + 0x28], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x6d0619b6
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x6d06198c
mov edx, 0xf
cmp eax, 0xe
jg 0x6d06198c
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x6d06198c
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x6d061a28
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r12 + 0x38]
call fcn.6d05f730
mov rcx, r14
call fcn.6d060050
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
test rdi, rdi
je 0x6d061a58
mov qword [rdi], 0
mov rcx, r12
call fcn.6d05fc40
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov dword [rsp + 0x3c], edx
call fcn.6d060110
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [r12 + 0xc0], eax
jmp 0x6d061946
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x6d07a5e0
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbx, rcx
mov rsi, rdx
test rcx, rcx
je 0x6d07a740
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov r8d, 1
mov rcx, rsi
mov dword [rsp + 0x28], pe_nt_image_headers64
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
mov eax, 1
cmp r12, 0xffffffffffffffff
je 0x6d07a701
lea rdx, [rsp + 0x48]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x6d07a710
mov rax, qword [rsp + 0x48]
cmp rax, 0x7fffffff
jg 0x6d07a710
test rax, rax
je 0x6d07a710
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov rcx, r12
mov qword [rsp + 0x28], 0
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov r13, rax
test rax, rax
je 0x6d07a710
mov edx, dword [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], 0
mov dword [rbx + 8], edx
mov edx, 4
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
mov qword [rbx], rax
call rdi
cmp qword [rbx], 0
je 0x6d07a758
lea r10, [0x6d32abc0]
mov qword [rbx + 0x28], r10
mov rcx, r12
call rdi
mov r11, qword [rbx]
mov qword [rbx + 0x18], rsi
xor eax, eax
mov qword [rbx + 0x20], 0
mov qword [rbx + 0x10], r11
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call rdi
mov eax, 0x51
mov qword [rbx], 0
mov qword [rbx + 8], 0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov eax, 0x28
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [rbx + 0x30]
movsxd r8, dword [rbx + 8]
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x6d07a717
mov r8d, dword [rbx + 8]
mov r13, qword [sym.imp.KERNEL32.dll_ReadFile]
xor ebp, ebp
lea r14, [rsp + 0x44]
jmp 0x6d07a7a0
mov r8d, dword [rbx + 8]
add ebp, dword [rsp + 0x44]
cmp r8d, ebp
je 0x6d07a7d8
mov rax, qword [rbx]
mov edx, ebp
sub r8d, ebp
mov r9, r14
mov rcx, r12
mov qword [rsp + 0x20], 0
add rdx, rax
call r13
test eax, eax
jne 0x6d07a790
mov r9, qword [rbx + 0x30]
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [r9]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x6d07a717
lea r8, [0x6d32ab80]
mov qword [rbx + 0x28], r8
jmp 0x6d07a6e7