joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140133c80
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov edx, dword [rsp + 0xe0]
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x80], rax
movsxd r8, dword [rcx + 0x108]
lea ecx, [rdx + 4]
mov r11d, ecx
shr r11d, 6
xor eax, eax
mov r10d, 0
cmp r11, r8
jae 0x140133cdf
mov r10, qword [r9 + r11*8]
shr r10, cl
shl r10d, 5
and r10d, 0x20
lea ecx, [rdx + 3]
mov r11d, ecx
shr r11d, 6
cmp r11, r8
jae 0x140133cfb
mov rax, qword [r9 + r11*8]
shr rax, cl
shl eax, 4
and eax, 0x10
or eax, r10d
lea ecx, [rdx + 2]
mov r14d, ecx
shr r14d, 6
xor r10d, r10d
mov r11d, 0
cmp r14, r8
jae 0x140133d25
mov r11, qword [r9 + r14*8]
shr r11, cl
shl r11d, 3
and r11d, 8
or eax, r11d
lea ecx, [rdx + 1]
mov r11d, ecx
shr r11d, 6
cmp r11, r8
jae 0x140133d46
mov r10, qword [r9 + r11*8]
shr r10, cl
shl r10d, 2
and r10d, 4
or eax, r10d
mov r11d, edx
shr r11d, 6
xor r10d, r10d
cmp r11, r8
jae 0x140133d68
mov ecx, edx
mov r10, qword [r9 + r11*8]
shr r10, cl
add r10d, r10d
and r10d, 2
or eax, r10d
test edx, edx
je 0x140133d8e
dec edx
mov r10d, edx
shr r10d, 6
xor ecx, ecx
cmp r10, r8
jae 0x140133d8c
mov r8, qword [r9 + r10*8]
xor ecx, ecx
bt r8, rdx
setb cl
or eax, ecx
mov r14d, eax
shr r14d, 5
mov ecx, r14d
dec ecx
neg r14
and ecx, eax
xor eax, 0x3f
mov r15d, r14d
and r15d, eax
or r15d, ecx
mov eax, r15d
shr eax, 1
and r15d, 1
add r15, rax
xor r12d, r12d
mov r8d, 0xd8
mov rcx, rsi
xor edx, edx
call fcn.1400c0660
mov r8, r12
xor r8, r15
dec r8
sar r8, 0x3f
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov rdx, rsi
mov r9, rbx
call fcn.140130ad0
inc r12
add rbx, 0xd8
cmp r12, 0x11
jne 0x140133dca
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rax
movaps xmm0, xmmword [0x14016f5d0]
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
add rsi, 0x48
mov eax, dword [rdi + 0x148]
test eax, eax
jle 0x140133e9b
xor ecx, ecx
xor edx, edx
or rdx, qword [rsi + rcx*8]
inc rcx
cmp rax, rcx
jne 0x140133e36
test rdx, rdx
sete dl
test rax, rax
je 0x140133eec
movsxd rcx, eax
mov rax, qword [rdi + 0x140]
xor r8d, r8d
lea r9, [rsp + 0x30]
sub r10, r10
jmp 0x140133e70
mov r10, qword [rax + r8*8]
sbb r10, qword [rsi + r8*8]
mov qword [r9 + r8*8], r10
lea r8, [r8 + 1]
dec rcx
jne 0x140133e70
sbb r10, r10
movsxd rax, dword [rdi + 0x148]
mov ecx, eax
test rax, rax
jle 0x140133eba
xor r8d, r8d
jmp 0x140133eaf
mov dl, 1
jmp 0x140133e48
xor r9d, r9d
mov qword [rsp + r8*8 + 0x30], r9
inc r8
cmp rcx, r8
je 0x140133eba
test dl, dl
jne 0x140133e9f
mov r9, qword [rsp + r8*8 + 0x30]
jmp 0x140133ea2
test rcx, rcx
je 0x140133eec
and r14d, 1
neg r14
mov rcx, r14
not rcx
xor edx, edx
mov r8, qword [rsp + rdx*8 + 0x30]
and r8, r14
mov r9, qword [rsi + rdx*8]
and r9, rcx
or r9, r8
mov qword [rsi + rdx*8], r9
inc rdx
cmp rax, rdx
jne 0x140133ece
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400be510
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14015c6c0
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp dword [r8], 0
jle 0x14015c6ff
xor eax, eax
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x8007000e
jne 0x14015c6cf
mov dword [rsi], 7
jmp 0x14015c6cf
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call fcn.14006e160
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000080
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x14015c6db
mov r14, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x14015c6db
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 8], rax
test rax, rax
je 0x14015c7b1
mov qword [rdi + 0x28], rbx
mov al, 1
jmp 0x14015c6d1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14015c6cf
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x14001f370]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x14001f380]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x14001f380]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x14001f380]
mov dword [rax], 1
mov rax, qword [0x14001f3d0]
mov rdx, rax
mov rax, qword [0x14001f3c0]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x140026024], 1
mov rax, qword [0x14001f380]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x14001f3b0]
mov rdx, rax
mov rax, qword [0x14001f3a0]
mov rcx, rax
call sym._initterm
mov rax, qword [0x14001f380]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x14001f370]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x14001f2b0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x14001f2b0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call sym._pei386_runtime_relocator
mov rax, qword [sym._gnu_exception_handler]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x14001f360]
mov qword [rdx], rax
lea rax, [sym.__mingw_invalidParameterHandler]
mov rcx, rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov eax, dword [0x140026004]
lea rdx, [0x140026008]
mov ecx, eax
call sym.duplicate_ppstrings
call sym.__main
mov rax, qword [0x14001f2f0]
mov rax, qword [rax]
mov rdx, qword [0x140026010]
mov qword [rax], rdx
mov rcx, qword [0x140026010]
mov rdx, qword [0x140026008]
mov eax, dword [0x140026004]
mov r8, rcx
mov ecx, eax
call sym.main
mov dword [0x14002601c], eax
mov eax, dword [0x140026020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14002601c]
mov ecx, eax
call sym.exit
mov eax, dword [0x140026024]
test eax, eax
jne 0x14000136c
call sym._cexit
mov eax, dword [0x14002601c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14001f320]
mov dword [rax], 1
mov rax, qword [0x14001f330]
mov dword [rax], 1
mov rax, qword [0x14001f340]
mov dword [rax], 1
mov rax, qword [0x14001f2e0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001890
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov rbx, rcx
test rax, rax
je 0x1400018ce
mov rdx, qword [rax - 0x10]
lea rcx, [rax - 0x10]
cmp rdx, 0xf
jbe 0x140001950
sub rdx, 0x10
jo 0x140001986
mov qword [rax - 0x10], rdx
mov r8, qword [rax]
mov rdx, rcx
xor ecx, ecx
call sym.rememberCycle__system_u3375
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400018e1
test byte [rcx + 7], 0x40
je 0x140001970
movdqu xmm0, xmmword [rbx + 0x28]
lea rcx, [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
call sym.eqdestroy___stdZassertions_u91
mov rax, qword [rbx + 0x38]
test rax, rax
je 0x140001980
mov rdx, qword [rax - 0x10]
lea rcx, [rax - 0x10]
cmp rdx, 0xf
jbe 0x140001930
sub rdx, 0x10
jo 0x140001990
mov r8, qword [rax]
mov qword [rax - 0x10], rdx
mov rdx, rcx
xor ecx, ecx
add rsp, 0x30
pop rbx
jmp sym.rememberCycle__system_u3375
mov r8, qword [rax]
mov rdx, rcx
mov ecx, 1
call sym.rememberCycle__system_u3375
mov rcx, qword [rbx + 0x38]
add rsp, 0x30
pop rbx
jmp sym.nimDestroyAndDispose
mov r8, qword [rax]
mov rdx, rcx
mov ecx, 1
call sym.rememberCycle__system_u3375
mov rcx, qword [rbx + 8]
call sym.nimDestroyAndDispose
jmp 0x1400018ce
call sym.deallocShared
jmp 0x1400018e1
add rsp, 0x30
pop rbx
ret
call sym.raiseOverflow
jmp 0x1400018ce
add rsp, 0x30
pop rbx
jmp sym.raiseOverflow
Function at 0x140003a20
Capabilities:
Terminate process

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor esi, esi
mov rbp, qword [rcx + 8]
mov rdi, qword [rcx]
lea rbx, [rbp + 0x18]
test rdi, rdi
jg 0x140003a4d
jmp 0x140003a90
add rsi, 1
add rbx, 0x18
cmp rdi, rsi
je 0x140003a90
cmp byte [rbx - 0x10], 0
jne 0x140003a40
mov rax, qword [rbx]
test rax, rax
je 0x140003a40
mov rdx, qword [rax - 0x10]
lea rcx, [rax - 0x10]
cmp rdx, 0xf
jbe 0x140003aa8
sub rdx, 0x10
jo 0x140003add
mov qword [rax - 0x10], rdx
mov r8, qword [rax]
mov rdx, rcx
add rsi, 1
xor ecx, ecx
add rbx, 0x18
call sym.rememberCycle__system_u3375
cmp rdi, rsi
jne 0x140003a4d
nop dword [rax]
test rbp, rbp
je 0x140003a9b
test byte [rbp + 7], 0x40
je 0x140003ac8
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r8, qword [rax]
mov rdx, rcx
mov ecx, 1
call sym.rememberCycle__system_u3375
mov rcx, qword [rbx]
call sym.nimDestroyAndDispose
jmp 0x140003a40
mov edx, 8
mov rcx, rbp
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.alignedDealloc
call sym.raiseOverflow
jmp 0x140003a40

Function at 0x140003cf0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x140003d0f
mov rcx, rdx
call sym.strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sym.fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sym.fflush

Function at 0x140003df0
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov rdi, qword [rcx]
mov rbx, qword [rcx + 8]
mov ecx, 2
call rsi
lea rdx, str.could_not_load:
mov rcx, rax
add rbx, 8
call sym.rawWrite
test rdi, rdi
mov ecx, 2
lea rax, [0x14001d2d8]
cmove rbx, rax
call rsi
mov rcx, rax
mov rdx, rbx
call sym.rawWrite
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xc1
je 0x140003e6c
mov ecx, 2
call rsi
lea rdx, [0x14001d321]
mov rcx, rax
call sym.rawWrite
mov ecx, 1
call sym.exit
mov ecx, 2
call rsi
lea rdx, str._n_bad_format__library_may_be_wrong_architecture_
mov rcx, rax
call sym.rawWrite
jmp 0x140003e4c

Function at 0x140003e90
Capabilities:
Terminate process

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov rsi, rcx
mov ecx, 2
call rbx
lea rdx, str.could_not_import:
mov rcx, rax
call sym.rawWrite
mov ecx, 2
call rbx
mov rdx, rsi
mov rcx, rax
call sym.rawWrite
mov ecx, 2
call rbx
lea rdx, [0x14001d321]
mov rcx, rax
call sym.rawWrite
mov ecx, 1
call sym.exit
nop
nop dword [rax]

Function at 0x140004040
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140026160]
test rax, rax
je 0x140004052
call rax
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
lea rdx, str.out_of_memory_n
mov rcx, rax
call sym.rawWrite
mov ecx, 1
call sym.exit
nop
nop word [rax + rax]
Function at 0x14000ab70
Capabilities:
Terminate process
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
cmp qword [0x140026150], 0
mov rbx, rcx
mov rdi, rdx
je 0x14000abf0
lea rsi, [rsp + 0x30]
mov rdx, rcx
mov rcx, rsi
call sym.cstrToNimstr
mov rbx, qword [rsp + 0x38]
mov rcx, rsi
call qword [0x140026150]
test rbx, rbx
je 0x14000abb0
test byte [rbx + 7], 0x40
je 0x14000abd0
lea rcx, [0x14001c280]
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x14000ac20
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
lea rcx, [0x14001c2a0]
call sym.__emutls_get_address
mov rdx, rbx
mov rcx, rax
call sym.rawDealloc__system_u6968
jmp 0x14000abb0
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov rcx, rbx
mov r8, rdi
mov edx, 1
mov rsi, rax
mov r9, rax
call sym.fwrite
mov rcx, rsi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
jmp sym.fflush
mov byte [rax], 0
lea rcx, [0x14001c180]
call sym.__emutls_get_address
mov rbx, qword [rax]
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x14000ac49
mov rdx, qword [rsi - 0x10]
add rdx, 0x10
jo 0x14000ac94
mov qword [rsi - 0x10], rdx
mov qword [rax], rsi
mov rax, qword [rbx - 0x10]
lea rdx, [rbx - 0x10]
cmp rax, 0xf
jbe 0x14000ac78
sub rax, 0x10
jo 0x14000aca5
mov r8, qword [rbx]
xor ecx, ecx
mov qword [rbx - 0x10], rax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
jmp sym.rememberCycle__system_u3375
mov r8, qword [rbx]
mov ecx, 1
call sym.rememberCycle__system_u3375
mov rcx, rbx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
jmp sym.nimDestroyAndDispose
mov qword [rsp + 0x28], rax
call sym.raiseOverflow
mov rax, qword [rsp + 0x28]
jmp 0x14000ac49
add rsp, 0x40
pop rbx
pop rsi
pop rdi
jmp sym.raiseOverflow

Function at 0x14000acc0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, str.SIGINT:_Interrupted_by_Ctrl_C._n
cmp ecx, 2
je 0x14000ad10
lea rbx, str.SIGSEGV:_Illegal_storage_access.__Attempt_to_read_from_nil___n
cmp ecx, 0xb
je 0x14000ad10
lea rbx, str.SIGABRT:_Abnormal_termination._n
cmp ecx, 0x16
je 0x14000ad10
lea rbx, str.SIGFPE:_Arithmetic_error._n
cmp ecx, 8
je 0x14000ad10
cmp ecx, 4
lea rbx, str.SIGILL:_Illegal_operation._n
lea rax, str.unknown_signal_n
cmovne rbx, rax
nop word [rax + rax]
mov rcx, rbx
call sym.strlen
mov rcx, rbx
mov rdx, rax
call sym.showErrorMessage__system_u3952
mov ecx, 1
call sym.exit
nop
nop
Function at 0x14000b250
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, qword [rdx + 8]
mov rdi, qword [rcx + 8]
mov rbp, qword [rdx]
mov rbx, rcx
cmp rdi, rsi
je 0x14000b371
test rsi, rsi
je 0x14000b348
test byte [rsi + 7], 0x40
jne 0x14000b348
test rdi, rdi
je 0x14000b2c0
movabs rdx, 0x4000000000000000
mov rax, qword [rdi]
test rax, rdx
jne 0x14000b2c0
btr rax, 0x3e
cmp rax, rbp
jge 0x14000b380
lea rcx, [0x14001c2a0]
call sym.__emutls_get_address
mov rdx, rdi
mov rcx, rax
call sym.rawDealloc__system_u6968
mov rdi, rbp
add rdi, 1
jo 0x14000b3ae
mov r12, rdi
add r12, 8
jo 0x14000b3ae
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r12
test r12, r12
js 0x14000b39f
lea rcx, [0x14001c2a0]
call sym.__emutls_get_address
mov rdx, r12
mov rcx, rax
call sym.rawAlloc__system_u6816
mov r8, r12
xor edx, edx
mov rcx, rax
call sym.memset
mov qword [rbx + 8], rax
mov qword [rax], rbp
mov qword [rbx], rbp
test rdi, rdi
js 0x14000b390
mov rcx, qword [rbx + 8]
lea rdx, [rsi + 8]
mov r8, rdi
add rcx, 8
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.memcpy
test rdi, rdi
je 0x14000b36a
test byte [rdi + 7], 0x40
jne 0x14000b36a
lea rcx, [0x14001c2a0]
call sym.__emutls_get_address
mov rdx, rdi
mov rcx, rax
call sym.rawDealloc__system_u6968
mov qword [rbx], rbp
mov qword [rbx + 8], rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdi, [rbp + 1]
jmp 0x14000b31d
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.raiseRangeErrorI
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.raiseOverflow

Function at 0x14000b7c0
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r13, [0x140026120]
mov rsi, rdx
mov rbx, rcx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
jle 0x14000b84f
mov rdi, qword [sym.imp.ucrtbase.dll___acrt_iob_func]
xor r14d, r14d
lea r12, [rsp + 0x20]
lea rbp, [0x14001c280]
jmp 0x14000b815
add r14, 1
add rbx, 0x10
cmp rsi, r14
je 0x14000b856
mov ecx, 1
call rdi
movdqu xmm0, xmmword [rbx]
xor r8d, r8d
mov rdx, r12
mov rcx, rax
movaps xmmword [rsp + 0x20], xmm0
call sym.writeWindows__system_u8954
mov rcx, rbp
call sym.__emutls_get_address
cmp byte [rax], 0
je 0x14000b808
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rdi, qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, 1
call rdi
mov r8d, 1
mov edx, 1
lea rcx, [0x14001d321]
mov r9, rax
call sym.fwrite
mov ecx, 1
call rdi
mov rcx, rax
call sym.fflush
mov rcx, r13
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000bef0
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r8, qword [rcx]
mov rdi, qword [rcx + 8]
add r8, 1
mov rsi, rcx
jo 0x14000bf7b
mov rbx, r8
add rbx, 8
jo 0x14000bf7b
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbx
test rbx, rbx
js 0x14000bf9c
lea rcx, [0x14001c2a0]
call sym.__emutls_get_address
mov rdx, rbx
mov rcx, rax
call sym.rawAlloc__system_u6816
xor edx, edx
mov r8, rbx
mov rcx, rax
call sym.memset
mov rcx, qword [rsi]
mov qword [rsi + 8], rax
mov qword [rax], rcx
add rcx, 1
jo 0x14000bf7b
test rcx, rcx
js 0x14000bf90
mov rax, qword [rsi + 8]
mov r8, rcx
lea rdx, [rdi + 8]
add rax, 8
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.memcpy
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.raiseOverflow
movabs r8, 0x7fffffffffffffff
xor edx, edx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.raiseRangeErrorI

Function at 0x14000cb10
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x30
lea rcx, [0x14001c280]
call sym.__emutls_get_address
cmp byte [rax], 0
je 0x14000cb3a
lea rcx, [0x14001c180]
call sym.__emutls_get_address
mov rbx, qword [rax]
test rbx, rbx
jne 0x14000cb40
add rsp, 0x30
pop rbx
ret
mov rdx, qword [0x140026158]
test rdx, rdx
je 0x14000cb5b
mov qword [rsp + 0x28], rax
mov rcx, rbx
call rdx
mov rax, qword [rsp + 0x28]
mov rcx, rbx
mov qword [rsp + 0x28], rax
call sym.reportUnhandledErrorAux__system_u4196
mov rcx, qword [rsp + 0x28]
xor edx, edx
call sym.eqsink___stdZtypedthreads_u179
mov ecx, 1
call sym.exit
nop
nop

Function at 0x14000cb80
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx + 8]
test rbx, rbx
je 0x14000cb94
test byte [rbx + 7], 0x40
je 0x14000cba0
add rsp, 0x20
pop rbx
ret
lea rcx, [0x14001c2a0]
call sym.__emutls_get_address
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp sym.rawDealloc__system_u6968

Function at 0x14000cd70
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
xor ebx, ebx
mov rdi, qword [rcx]
mov rsi, qword [rcx + 8]
test rdi, rdi
jg 0x14000cd99
jmp 0x14000cde8
add rbx, 1
cmp rdi, rbx
je 0x14000cdbe
mov rax, rbx
shl rax, 4
mov rcx, qword [rsi + rax + 0x10]
test rcx, rcx
je 0x14000cd90
test byte [rcx + 7], 0x40
jne 0x14000cd90
call sym.deallocShared
add rbx, 1
cmp rdi, rbx
jne 0x14000cd99
test byte [rsi + 7], 0x40
je 0x14000cdd0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 8
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.alignedDealloc
test rsi, rsi
jne 0x14000cdbe
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x14000ced0
Capabilities:
Terminate process

Disassembly:
push rsi
push rbx
sub rsp, 0x28
pxor xmm0, xmm0
movups xmmword [rdx], xmm0
mov rbx, rdx
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
call sym.nextPowerOfTwo__pureZmath_u222
mov rcx, qword [0x14001f2c0]
mov rsi, rax
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x14000cf48
mov rax, rsi
sub rax, 1
jo 0x14000cf4f
mov qword [rbx + 0x28], rax
test rsi, rsi
js 0x14000cf28
mov rdx, rsi
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14000b050
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sym.raiseRangeErrorI
add rsp, 0x28
pop rbx
pop rsi
ret
add rsp, 0x28
pop rbx
pop rsi
jmp sym.raiseOverflow
Function at 0x14000fbe0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1400108b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140026328]
test eax, eax
je 0x14001094a
lea rax, [0x140026300]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140026330]
mov qword [rbp - 8], rax
jmp 0x14001092e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140010922
cmp qword [rbp - 0x10], 0
je 0x140010922
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400108e8
lea rax, [0x140026300]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001094b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140010a50
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140010a78
mov eax, 0
jmp 0x140010ac6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140010aa1
mov eax, 0
jmp 0x140010ac6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140010ac1
mov eax, 0
jmp 0x140010ac6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140019074
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
call sym._MCF_thread_self_tid
mov edx, eax
mov rax, qword [rbp - 8]
add rax, 4
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x14], edx
mov edx, dword [rbp - 0x14]
mov rax, qword [rbp - 0x10]
mov dword [rax], edx
fninit
mov rax, qword [0x14001f270]
mov rax, qword [rax]
mov eax, dword [rax + 0xc]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x1400190d8
lea rax, str.do_win32_thread_thunk
mov rcx, rax
call sym.__MCF_runtime_failure
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp - 8]
mov rcx, rax
call rdx
mov eax, 0
add rsp, 0x40
pop rbp
ret