joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400081a0
Capabilities:
Terminate process

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rdx
add rbx, qword [rcx]
mov rsi, rcx
jo 0x140008283
mov rbp, qword [rcx + 8]
test rbp, rbp
je 0x1400081d7
movabs rdx, 0x4000000000000000
mov rax, qword [rbp]
and rdx, rax
je 0x140008270
mov r8, rbx
add r8, 1
jo 0x140008283
mov rdi, r8
add rdi, 8
jo 0x140008283
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rdi
test rdi, rdi
js 0x1400082ec
lea rcx, [0x14001c2a0]
call sym.__emutls_get_address
mov rdx, rdi
mov rcx, rax
call sym.rawAlloc__system_u6816
mov r8, rdi
xor edx, edx
mov rcx, rax
call sym.memset
mov qword [rsi + 8], rax
mov qword [rax], rbx
mov rcx, qword [rsi]
test rcx, rcx
jle 0x14000827a
cmp rbx, rcx
cmovle rcx, rbx
test rcx, rcx
js 0x1400082e0
mov rax, qword [rsi + 8]
mov r8, rcx
lea rdx, [rbp + 8]
add rax, 8
mov rcx, rax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.memcpy
btr rax, 0x3e
cmp rbx, rax
jg 0x140008290
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.raiseOverflow
test rax, rax
jle 0x140008300
cmp rax, 0x7fff
jg 0x140008310
lea rdx, [rax + rax]
add rax, 9
js 0x140008330
cmp rbx, rdx
cmovl rbx, rdx
mov rcx, rbx
add rcx, 1
jo 0x140008283
add rcx, 8
jo 0x140008283
test rcx, rcx
js 0x1400082e0
mov r8, rcx
mov rcx, qword [rsi + 8]
mov rdx, rax
call sym.realloc0Impl__system_u1770
mov qword [rsi + 8], rax
mov qword [rax], rbx
jmp 0x14000827a
movabs r8, 0x7fffffffffffffff
xor edx, edx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.raiseRangeErrorI
mov edx, 4
jmp 0x1400082a1
imul rcx, rax, 3
jo 0x140008341
mov rdx, rcx
shr rdx, 0x3f
add rdx, rcx
sar rdx, 1
jmp 0x1400082a1
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rax
jmp 0x1400082ec
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
call sym.raiseOverflow
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400082a1

Function at 0x140009760
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
mov qword [rcx], rdx
test rbx, rbx
je 0x1400097c0
mov rax, qword [rbx - 0x10]
lea rdx, [rbx - 0x10]
cmp rax, 0xf
jbe 0x1400097a0
sub rax, 0x10
jo 0x1400097c6
mov r8, qword [rbx]
xor ecx, ecx
mov qword [rbx - 0x10], rax
add rsp, 0x20
pop rbx
jmp sym.rememberCycle__system_u3375
mov r8, qword [rbx]
mov ecx, 1
call sym.rememberCycle__system_u3375
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp sym.nimDestroyAndDispose
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp sym.raiseOverflow
Function at 0x1400097d0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, qword [rcx]
test rdx, rdx
je 0x1400097eb
mov rax, qword [rdx - 0x10]
add rax, 0x10
jo 0x140009846
mov qword [rdx - 0x10], rax
mov qword [rcx], rdx
test rbx, rbx
je 0x140009840
mov rax, qword [rbx - 0x10]
lea rdx, [rbx - 0x10]
cmp rax, 0xf
jbe 0x140009820
sub rax, 0x10
jo 0x140009861
mov r8, qword [rbx]
xor ecx, ecx
mov qword [rbx - 0x10], rax
add rsp, 0x30
pop rbx
jmp sym.rememberCycle__system_u3375
mov r8, qword [rbx]
mov ecx, 1
call sym.rememberCycle__system_u3375
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp sym.nimDestroyAndDispose
add rsp, 0x30
pop rbx
ret
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rcx
call sym.raiseOverflow
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
jmp 0x1400097eb
add rsp, 0x30
pop rbx
jmp sym.raiseOverflow

Function at 0x14000a8f0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 8]
mov rbx, rcx
test rax, rax
je 0x14000a950
mov rdx, qword [rax - 0x10]
lea rcx, [rax - 0x10]
cmp rdx, 0xf
jbe 0x14000a930
sub rdx, 0x10
jo 0x14000a956
mov r8, qword [rax]
mov qword [rax - 0x10], rdx
mov rdx, rcx
xor ecx, ecx
add rsp, 0x20
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 + 8]
add rsp, 0x20
pop rbx
jmp sym.nimDestroyAndDispose
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp sym.raiseOverflow

Function at 0x14000ab30
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov rcx, rsi
mov r8, rdi
mov edx, 1
mov rbx, rax
mov r9, rax
call sym.fwrite
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.fflush
Function at 0x14000ab70
Capabilities:
Terminate process
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
cmp qword [0x140776150], 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 [0x140776150]
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, [0x140776120]
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 [0x140776158]
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 [0x140770060]
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 [0x140776328]
test eax, eax
je 0x14001094a
lea rax, [0x140776300]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140776330]
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, [0x140776300]
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 0x140010acc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140010b4a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140010b41
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140010b41
mov rax, qword [rbp - 8]
jmp 0x140010b5f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140010b14
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140018749
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
lea rax, [rbp - 0x70]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x20]
mov qword [rax], rdx
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x78], rax
movzx eax, byte [rbp - 0x78]
and eax, 0xfffffffe
mov byte [rbp - 0x78], al
movzx eax, byte [rbp - 0x70]
shr al, 1
and eax, 0xf
mov edx, eax
movzx eax, byte [rbp - 0x70]
shr al, 1
and eax, 0xf
sub eax, 1
and eax, edx
and eax, 0xf
and eax, 0xf
lea edx, [rax + rax]
movzx eax, byte [rbp - 0x78]
and eax, 0xffffffe1
or eax, edx
mov byte [rbp - 0x78], al
mov rax, qword [rbp - 0x70]
shr rax, 9
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x58], 1
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x58]
cmp rdx, rax
cmovbe rax, rdx
mov qword [rbp - 8], rax
mov rax, qword [rbp - 0x70]
shr rax, 9
sub rax, qword [rbp - 8]
movabs rdx, 0x7fffffffffffff
and rax, rdx
shl rax, 9
mov rdx, rax
mov rax, qword [rbp - 0x78]
and eax, 0x1ff
or rax, rdx
mov qword [rbp - 0x78], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x78]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x30]
mov rax, qword [rax]
mov qword [rbp - 0x80], rax
mov rax, qword [rbp - 0x38]
mov rax, qword [rax]
mov qword [rbp - 0x40], rax
mov rcx, qword [rbp - 0x40]
mov r8, qword [rbp - 0x28]
lea rdx, [rbp - 0x80]
mov rax, qword [rdx]
lock cmpxchg qword [r8], rcx
mov rcx, rax
sete al
test al, al
jne 0x140018864
mov qword [rdx], rcx
mov byte [rbp - 0x41], al
mov rdx, qword [rbp - 0x80]
mov rax, qword [rbp - 0x30]
mov qword [rax], rdx
movzx eax, byte [rbp - 0x41]
xor eax, 1
test al, al
jne 0x14001877e
movzx eax, byte [rbp - 0x70]
and eax, 0x1e
test al, al
je 0x1400188b9
movzx eax, byte [rbp - 0x70]
shr al, 1
and eax, 0xf
movzx edx, al
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.do_spin_byte_ptr
mov qword [rbp - 0x60], rax
mov byte [rbp - 0x61], 1
movzx eax, byte [rbp - 0x61]
movzx edx, al
mov rax, qword [rbp - 0x60]
mov byte [rax], dl
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.__MCF_batch_release_common
nop
add rsp, 0xa0
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 [0x140770010]
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
Function at 0x140019388
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax]
test eax, eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 4]
test eax, eax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 8]
test rax, rax
mov rax, qword [0x140770010]
mov rax, qword [rax]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
test rax, rax
call sym._MCF_thread_self_tid
mov rdx, qword [rbp + 0x10]
mov dword [rdx + 4], eax
mov rax, qword [rbp + 0x10]
add rax, 8
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, 0xffffffffffffffff
mov rdx, 0xfffffffffffffffe
mov rcx, 0xffffffffffffffff
mov rax, qword [sym.imp.ntdll.dll_NtDuplicateObject]
call rax
test eax, eax
jns 0x14001942b
lea rax, str.__MCF_thread_attach_foreign
mov rcx, rax
call sym.__MCF_runtime_failure
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 8]
test rax, rax
jne 0x140019447
lea rax, str.__MCF_thread_attach_foreign
mov rcx, rax
call sym.__MCF_runtime_failure
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 1
mov edx, dword [rbp - 0xc]
mov rax, qword [rbp - 8]
mov dword [rax], edx
mov rax, qword [0x140770010]
mov rax, qword [rax]
mov eax, dword [rax + 0xc]
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x14001948e
lea rax, str.__MCF_thread_attach_foreign
mov rcx, rax
call sym.__MCF_runtime_failure
mov rax, qword [rbp + 0x10]
add rsp, 0x50
pop rbp
ret

Function at 0x14001963d
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [0x140770010]
mov rax, qword [rax]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
setne al
movzx eax, al
test eax, eax
je 0x140019676
mov rax, qword [rbp - 8]
jmp 0x14001969e
mov ecx, 0x640
call sym.__MCF_malloc_0
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140019692
mov eax, 0
jmp 0x14001969e
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.__MCF_thread_attach_foreign
add rsp, 0x30
pop rbp
ret
Function at 0x14001a9fd
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [0x14001c4d0]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x14001aa83
cmp qword [rbp - 8], 0xffffffffffffff81
je 0x14001aa83
mov rax, qword [rbp - 8]
add rax, 0x20
mov r8d, 0
mov edx, 0
mov rcx, rax
call sym.__MCF_dtor_queue_finalize
mov rax, qword [rbp - 8]
add rax, 0x618
mov rcx, rax
call sym.__MCF_tls_table_finalize
mov rax, qword [0x14001c4d0]
mov eax, dword [rax + 0xc]
mov rdx, 0xffffffffffffff81
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
call sym._MCF_thread_drop_ref_nonnull
jmp 0x14001aa84
nop
add rsp, 0x30
pop rbp
ret