joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000fd00
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140090150]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000fd20
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000fd28
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000fd20
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000fd7d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000fd74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000fd20
add rax, 0x28
cmp rax, r9
jne 0x14000fd60
xor eax, eax
ret

Function at 0x14000fd80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140090150]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000fd9f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000fda8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000fd9f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000fe40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140090150]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000fe5f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000fe68
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140010930
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, str._buffer_overflow_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140010960
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140010980
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x1400109b0
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140016a00
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x140090230]
mov rdx, qword [rax]
mov qword [rsp + 0x98], rdx
xor edx, edx
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x7b], 0
mov qword [rsp + 0x83], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140016b1a
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140016af2
add rax, 1
cmp rax, 0x6b
je 0x140016b0f
cmp byte [rcx + rax], 0
jne 0x140016ae8
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x140016b0f
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x28
mov eax, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140016b00

Function at 0x140016eb0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140096c30], 1
je 0x140016f28
lea rdi, [0x140096c30]
mov rcx, rdi
call fcn.140016790
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140016130
mov esi, dword [0x140096c30]
test esi, esi
jne 0x140016f38
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140083748], eax
cmp eax, 0xffffffff
je 0x14001da46
mov dword [0x140096c30], 1
mov rcx, rbp
call fcn.140016400
test rbx, rbx
je 0x140016f28
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140016b30
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140016f08
mov ecx, 2
call qword [fcn.140015a10]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140016f08
call sub.msvcrt.dll_abort
nop
Function at 0x140016f60
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140016c40
cmp qword [0x140099048], 0
mov rbx, rax
je 0x140017078
test rax, rax
je 0x140017078
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14001a3e0
cmp eax, 1
je 0x140017086
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
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 fcn.14001da4c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140083748]
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 0x14001708c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.140016a00
nop
jmp fcn.14001da4c

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

Disassembly:
sub rsp, 0x28
call fcn.140016eb0
mov ecx, dword [0x140083748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400170c0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140016f60
Function at 0x140017880
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, qword [0x140090230]
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x1400179c8
cmp eax, 1
je 0x1400178ed
call fcn.140016790
lea r12, [rax + 8]
mov rdi, rax
mov rcx, r12
call fcn.140016130
mov r13d, dword [rbx]
test r13d, r13d
je 0x140017910
cmp r13d, 1
jne 0x1400179a0
mov rcx, r12
call fcn.140016400
test rdi, rdi
je 0x1400178ed
mov rcx, rdi
call fcn.140016b30
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rbp]
jne 0x140017a1b
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x140016c10]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140016eb0
mov ecx, dword [0x140083748]
mov r13, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r13
test rax, rax
je 0x140017a08
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140016eb0
mov ecx, dword [0x140083748]
call r13
test rax, rax
je 0x1400179f0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140016eb0
mov ecx, dword [0x140083748]
call r13
test rax, rax
je 0x1400179d8
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x1400178d8
mov ecx, 2
call qword [fcn.140015a10]
mov r9d, r13d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400178d8
mov eax, 0x16
jmp 0x1400178ef
call fcn.140016f60
test rax, rax
jne 0x140017989
jmp 0x14001da7e
call fcn.140016f60
test rax, rax
jne 0x140017965
jmp 0x14001da6f
call fcn.140016f60
test rax, rax
jne 0x14001793f
jmp 0x14001da65
call fcn.140010980
nop
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2

Function at 0x140017ca0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140016eb0
mov ecx, dword [0x140083748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140017d18
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.14001a3f0
cmp esi, dword [rbx + 0x48]
jae 0x140017cf3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140017cf3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.14001a430
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140016f60
mov rbx, rax
jmp 0x140017ccd
Function at 0x140017d30
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.140016eb0
mov ecx, dword [0x140083748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140017e30
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.14001a3f0
cmp esi, dword [rbx + 0x48]
jae 0x140017db0
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.14001a430
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x140017e3d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x140017e3d
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x140017d7f
call fcn.140016f60
mov rbx, rax
jmp 0x140017d6a
mov rcx, r13
call fcn.14001a430
mov eax, 0xc
jmp 0x140017d9d

Function at 0x140017ec0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140016eb0
mov ecx, dword [0x140083748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140017ee8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140016f60
test rax, rax
jne 0x140017eda
add rsp, 0x28
ret

Function at 0x140017f50
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140016eb0
mov ecx, dword [0x140083748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140017f78
add rax, 0x18
add rsp, 0x28
ret
call fcn.140016f60
test rax, rax
jne 0x140017f6a
jmp 0x140017f6e

Function at 0x140018090
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140096c38]
test eax, eax
jne 0x1400180a8
xor eax, eax
add rsp, 0x28
ret
call fcn.140016eb0
mov ecx, dword [0x140083748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400180d8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001809e
test byte [rax + 0x40], 3
je 0x14001809e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x1400180a0
call fcn.140016f60
test rax, rax
jne 0x1400180be
jmp 0x14001809e

Function at 0x1400180f0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140016eb0
mov ecx, dword [0x140083748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018130
test ebx, ebx
jle 0x140018120
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.140016f60
test rax, rax
jne 0x14001810d
add rsp, 0x20
pop rbx
ret
Function at 0x140018220
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140016eb0
mov ecx, dword [0x140083748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140018298
test byte [rbx + 0x40], 0xc
jne 0x14001824f
mov eax, dword [0x140096c38]
test eax, eax
jne 0x140018260
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140016130
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140018283
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140018283
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400182ac
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140016400
call fcn.140016f60
mov rbx, rax
test rax, rax
jne 0x14001823f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x1400182ca
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140016400
call fcn.140018140
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140018350
call fcn.1400194c0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140018388
call fcn.140016eb0
mov ecx, dword [0x140083748]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400183e0
test esi, esi
je 0x140018366
call fcn.140018220
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400183c0
mov edx, edi
call fcn.140019590
call fcn.140018220
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140016eb0
mov ecx, dword [0x140083748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400183d0
call fcn.140018220
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018220
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140016eb0
mov ecx, dword [0x140083748]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140018325
call fcn.140016f60
mov rbx, rax
jmp 0x140018325
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001833e
call fcn.140016f60
jmp 0x140018366
call fcn.140016f60
mov rbx, rax
jmp 0x140018321
Function at 0x1400182e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140016eb0
mov ecx, dword [0x140083748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140018298
test byte [rbx + 0x40], 0xc
jne 0x14001824f
mov eax, dword [0x140096c38]
test eax, eax
jne 0x140018260
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140016130
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140018283
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140018283
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400182ac
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140016400
call fcn.140016f60
mov rbx, rax
test rax, rax
jne 0x14001823f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x1400182ca
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140016400
call fcn.140018140
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140018350
call fcn.1400194c0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140018388
call fcn.140016eb0
mov ecx, dword [0x140083748]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400183e0
test esi, esi
je 0x140018366
call fcn.140018220
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400183c0
mov edx, edi
call fcn.140019590
call fcn.140018220
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140016eb0
mov ecx, dword [0x140083748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400183d0
call fcn.140018220
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018220
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140016eb0
mov ecx, dword [0x140083748]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140018325
call fcn.140016f60
mov rbx, rax
jmp 0x140018325
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001833e
call fcn.140016f60
jmp 0x140018366
call fcn.140016f60
mov rbx, rax
jmp 0x140018321

Function at 0x1400183f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140016eb0
mov ecx, dword [0x140083748]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140018460
test esi, esi
je 0x140018440
call fcn.140018220
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140018470
mov edx, esi
call fcn.140019590
call fcn.140018220
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140018220
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018220
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140016f60
mov rbx, rax
jmp 0x140018411
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001842a
Function at 0x140003e30
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
push r12
push r13
mov eax, 0x1070
call fcn.14000fc70
sub rsp, rax
mov rax, qword [0x140022010]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rdx, qword [rsp + 0x10b0]
xor ebp, ebp
mov qword [rsp + 0x38], r9
mov r12, r8
mov qword [rsp + 0x30], rdx
mov r13, rcx
test r8, r8
je 0x140003eab
mov r9d, 0x1000
lea rdx, [rsp + 0x40]
call fcn.140002110
test al, al
jne 0x140003eb3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.____Cant_read_module_headers
call fcn.140005c20
lea rdx, [0x140005e00]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rdx, rbp
jmp 0x140003fd3
mov qword [rsp + 0x1068], rsi
lea rdx, str.PAGE
mov qword [rsp + 0x1060], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x1058], r14
mov qword [rsp + 0x1050], r15
inc rdi
cmp byte [rdx + rdi], bpl
jne 0x140003ee1
movsxd rax, dword [rsp + 0x7c]
lea rcx, [rsp + 0x40]
add rcx, rax
mov qword [rsp + 0x1098], rbx
mov esi, ebp
movzx eax, word [rcx + 0x14]
lea r15, [rcx + 0x18]
movzx r14d, word [rcx + 6]
add r15, rax
test r14d, r14d
je 0x140003f85
nop word [rax + rax]
mov eax, esi
mov r8, rdi
lea rcx, [rax + rax*4]
lea rbx, [r15 + rcx*8]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140003f4e
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], bpl
jne 0x140003f40
cmp rdi, rax
je 0x140003f5e
inc esi
cmp esi, r14d
jae 0x140003f85
lea rdx, str.PAGE
jmp 0x140003f20
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x140003f85
mov ecx, dword [rbx + 8]
lea rdx, [rsp + 0x40]
add rdx, rax
je 0x140003f85
test ecx, ecx
je 0x140003f85
lea rax, [rsp + 0x40]
mov ebp, ecx
sub rdx, rax
add rdx, r12
jmp 0x140003fab
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.____Cant_find_section
call fcn.140005c20
lea rdx, [0x140005e00]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rdx, rbp
mov rbx, qword [rsp + 0x1098]
mov rdi, qword [rsp + 0x1060]
mov rsi, qword [rsp + 0x1068]
mov r14, qword [rsp + 0x1058]
mov r15, qword [rsp + 0x1050]
mov rax, qword [rsp + 0x30]
mov rcx, r13
mov r9, qword [rsp + 0x38]
mov r8d, ebp
mov qword [rsp + 0x20], rax
call fcn.140003cb0
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000ea50
add rsp, 0x1070
pop r13
pop r12
pop rbp
ret
Function at 0x140004d40
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140004d68
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140004d8e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004d90
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004de9
test ecx, ecx
jle 0x140004dc9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140004de9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004de9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140004e10
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140004e32
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140004e48
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140004e64
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004e66
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004ea2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140004f3e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140004edd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140004f1e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140004f3e
cmp rbx, rax
ja 0x140004ef0
test rbx, rbx
je 0x140004f3e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret