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

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14001a7a0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14001a7a0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14000f950
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140107094]
mov rbx, rcx
test esi, esi
jle 0x14000fa80
mov rax, qword [0x140107098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000f99b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000fa25
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000f980
mov rcx, rbx
call fcn.1400103d0
mov rdi, rax
test rax, rax
je 0x14000faa2
mov rax, qword [0x140107098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140010510
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140107098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000fa87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000fa1e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000fa30
add dword [0x140107094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140107098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000fa1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000f8e0
nop dword [rax]
xor esi, esi
jmp 0x14000f9a8
mov rax, qword [0x140107098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000f8e0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000f8e0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140010040
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140107100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401070e0]
test rbx, rbx
je 0x14001009c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140010093
test eax, eax
jne 0x140010093
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140010078
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400103d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400de820]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400103f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400103f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400103f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14001044d
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 0x140010444
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400103f0
add rax, 0x28
cmp rax, r9
jne 0x140010430
xor eax, eax
ret

Function at 0x140010450
Capabilities:
Parse pe header

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

Function at 0x140010510
Capabilities:
Parse pe header

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

Function at 0x1400114b0
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 0x1400114e0
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 0x140011500
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 0x140011530
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 0x14001d3d0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140107c40], 1
je 0x14001d470
lea rdi, [0x140107c40]
mov rcx, rdi
call fcn.14001cd70
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14001c680
mov esi, dword [0x140107c40]
test esi, esi
jne 0x14001d448
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400d4308], eax
cmp eax, 0xffffffff
je 0x1400d3a66
mov dword [0x140107c40], 1
mov rcx, rbp
call fcn.14001c950
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14001d050
cmp esi, 1
je 0x14001d42c
mov ecx, 2
call qword [fcn.14001a7a0]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14001d42c
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [0x28]
ud2

Function at 0x14001d480
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14001d160
mov rbx, rax
test rax, rax
je 0x14001d57c
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.14001cc60
cmp eax, 1
je 0x14001d588
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 0x1400d3a6c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400d4308]
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 0x1400d3a6c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.14001cfc0
nop
nop

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

Disassembly:
sub rsp, 0x28
call fcn.14001d3d0
mov ecx, dword [0x1400d4308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001d5b0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14001d480
Function at 0x14001dd70
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r12, qword [0x1400de920]
mov rax, qword [r12]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x14001ded0
cmp eax, 1
je 0x14001ddd5
call fcn.14001cd70
lea r13, [rax + 8]
mov rdi, rax
mov rcx, r13
call fcn.14001c680
mov ebp, dword [rbx]
test ebp, ebp
je 0x14001ddf8
cmp ebp, 1
jne 0x14001de98
mov rcx, r13
call fcn.14001c950
mov rcx, rdi
call fcn.14001d050
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [r12]
jne 0x14001df1b
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x14001d130]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14001d3d0
mov ecx, dword [0x1400d4308]
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rbp
test rax, rax
je 0x14001df08
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.14001d3d0
mov ecx, dword [0x1400d4308]
call rbp
test rax, rax
je 0x14001def0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.14001d3d0
mov ecx, dword [0x1400d4308]
call rbp
test rax, rax
je 0x14001dee0
mov rdx, qword [rsp + 0x30]
mov rcx, r13
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
call fcn.14001c950
mov rcx, rdi
call fcn.14001d050
jmp 0x14001ddd5
mov ecx, 2
call qword [fcn.14001a7a0]
mov r9d, ebp
mov r8, rbx
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rcx, r13
call fcn.14001c950
mov rcx, rdi
call fcn.14001d050
jmp 0x14001ddd5
mov eax, 0x16
jmp 0x14001ddd7
call fcn.14001d480
test rax, rax
jne 0x14001de6e
jmp 0x1400d3a9e
call fcn.14001d480
test rax, rax
jne 0x14001de4b
jmp 0x1400d3a8f
call fcn.14001d480
test rax, rax
jne 0x14001de26
jmp 0x1400d3a85
call fcn.140011500
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 0x14001e1a0
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.14001d3d0
mov ecx, dword [0x1400d4308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001e218
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.14001cc70
cmp esi, dword [rbx + 0x48]
jae 0x14001e1f3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14001e1f3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.14001ccc0
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.14001d480
mov rbx, rax
jmp 0x14001e1cd
Function at 0x14001e230
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.14001d3d0
mov ecx, dword [0x1400d4308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001e328
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.14001cc70
mov rdi, qword [rbx + 0x50]
cmp esi, dword [rbx + 0x48]
jb 0x14001e2f3
lea r15d, [rsi + 1]
mov rcx, rdi
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x14001e335
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14001e335
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
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.14001ccc0
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
call fcn.14001d480
mov rbx, rax
jmp 0x14001e26a
mov rcx, r13
call fcn.14001ccc0
mov eax, 0xc
jmp 0x14001e311

Function at 0x14001e3d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001d3d0
mov ecx, dword [0x1400d4308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e3f8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14001d480
test rax, rax
jne 0x14001e3ea
add rsp, 0x28
ret

Function at 0x14001e460
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001d3d0
mov ecx, dword [0x1400d4308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e488
add rax, 0x18
add rsp, 0x28
ret
call fcn.14001d480
test rax, rax
jne 0x14001e47a
jmp 0x14001e47e

Function at 0x14001e5a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140107c48]
test eax, eax
jne 0x14001e5b8
xor eax, eax
add rsp, 0x28
ret
call fcn.14001d3d0
mov ecx, dword [0x1400d4308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e5e8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001e5ae
test byte [rax + 0x40], 3
je 0x14001e5ae
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001e5b0
call fcn.14001d480
test rax, rax
je 0x14001e5ae
jmp 0x14001e5ce

Function at 0x14001e600
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14001d3d0
mov ecx, dword [0x1400d4308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e640
test ebx, ebx
jle 0x14001e630
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.14001d480
test rax, rax
jne 0x14001e61d
add rsp, 0x20
pop rbx
ret
Function at 0x14001e730
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001d3d0
mov ecx, dword [0x1400d4308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001e7a8
test byte [rbx + 0x40], 0xc
jne 0x14001e75f
mov eax, dword [0x140107c48]
test eax, eax
jne 0x14001e770
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001c680
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001e793
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001e793
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001e7bc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001c950
call fcn.14001d480
mov rbx, rax
test rax, rax
jne 0x14001e74f
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 0x14001e7da
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001c950
call fcn.14001e650
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001e858
call fcn.14001c340
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call fcn.14001d3d0
mov ecx, dword [0x1400d4308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001e8a0
test rsi, rsi
je 0x14001e86e
call fcn.14001e730
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001e890
mov edx, edi
call fcn.14001c410
call fcn.14001e730
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001d3d0
mov ecx, dword [0x1400d4308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e8b0
call fcn.14001e730
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001e730
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001e846
call fcn.14001d480
mov rbx, rax
jmp 0x14001e82c
call fcn.14001d480
jmp 0x14001e86e
Function at 0x14001e7f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001d3d0
mov ecx, dword [0x1400d4308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001e7a8
test byte [rbx + 0x40], 0xc
jne 0x14001e75f
mov eax, dword [0x140107c48]
test eax, eax
jne 0x14001e770
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001c680
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001e793
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001e793
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001e7bc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001c950
call fcn.14001d480
mov rbx, rax
test rax, rax
jne 0x14001e74f
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 0x14001e7da
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001c950
call fcn.14001e650
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001e858
call fcn.14001c340
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call fcn.14001d3d0
mov ecx, dword [0x1400d4308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001e8a0
test rsi, rsi
je 0x14001e86e
call fcn.14001e730
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001e890
mov edx, edi
call fcn.14001c410
call fcn.14001e730
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001d3d0
mov ecx, dword [0x1400d4308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e8b0
call fcn.14001e730
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001e730
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001e846
call fcn.14001d480
mov rbx, rax
jmp 0x14001e82c
call fcn.14001d480
jmp 0x14001e86e

Function at 0x14001e8c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14001d3d0
mov ecx, dword [0x1400d4308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001e930
test esi, esi
je 0x14001e910
call fcn.14001e730
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001e940
mov edx, esi
call fcn.14001c410
call fcn.14001e730
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001e730
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001e730
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001d480
mov rbx, rax
jmp 0x14001e8e1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001e8fa
Function at 0x140094bb0
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, qword [sym.imp.msvcrt.dll__read]
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, rdi
call fcn.1400949c0
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call rbp
movsxd r13, eax
cmp eax, 0xffffffff
je 0x140094c00
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call r12
cmp dword [rax], 4
je 0x140094bd3
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x140001530
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x38
mov rsi, qword [rcx + 0x18]
mov rbx, rcx
mov qword [rcx + 0x20], rsi
mov rax, qword [rcx + 0x38]
mov edi, dword [rax + 0x50]
test rdi, rdi
je 0x14000157f
mov rax, qword [rcx + 0x28]
sub rax, rsi
cmp rdi, rax
jbe 0x14000156a
mov edx, edi
add rcx, 0x18
call fcn.1400019c0
jmp 0x14000157f
mov r8, rdi
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
lea rax, [rsi + rdi]
mov qword [rbx + 0x20], rax
mov rax, qword [rbx + 0x38]
mov r8d, dword [rax + 0x54]
test r8d, r8d
je 0x14000159c
mov rdx, qword [rbx]
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memmove
mov rax, qword [rbx + 0x38]
xor edi, edi
cmp di, word [rax + 6]
jae 0x14000162f
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x30], r14
mov r14d, edi
nop word [rax + rax]
mov rsi, qword [rbx + 0x40]
mov r12, qword [rbx + 0x30]
add rsi, r14
mov rdx, qword [rbx]
mov ebp, dword [rsi + 0xc]
mov ecx, dword [rsi + 0x14]
add rbp, qword [rbx + 0x18]
add r12, rcx
mov eax, dword [rsi + 0x10]
test eax, eax
je 0x1400015f3
add rdx, rcx
mov r8d, eax
mov rcx, rbp
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [rsi + 0x10]
mov r9, rbp
mov dword [rsp + 0x20], eax
mov r8, r12
lea rcx, str.___copying___s__0x_p____0x_p__0x_04X__n
mov rdx, rsi
call fcn.140001260
mov rax, qword [rbx + 0x38]
inc rdi
add r14, 0x28
movzx ecx, word [rax + 6]
cmp rdi, rcx
jb 0x1400015c0
mov r14, qword [rsp + 0x30]
mov r12, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
add rsp, 0x38
pop r15
pop rdi
pop rsi
pop rbx
ret
Function at 0x140004a50
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push r12
push r15
sub rsp, 0x10
mov r11d, dword [rdx + 0xb0]
mov r15, r8
mov rsi, rdx
mov r12, rcx
test r11d, r11d
je 0x140004bcc
movzx eax, word [rdx + 0x14]
lea r9, [rdx + 0x18]
movzx r8d, word [rdx + 6]
add r9, rax
xor r10d, r10d
test r8d, r8d
je 0x140004bcc
nop
mov edx, dword [r9 + 0xc]
cmp r11d, edx
jb 0x140004aa4
mov ecx, dword [r9 + 8]
add ecx, edx
cmp r11d, ecx
jb 0x140004aba
inc r10d
add r9, 0x28
cmp r10d, r8d
jl 0x140004a90
add rsp, 0x10
pop r15
pop r12
pop rsi
ret
sub r11d, edx
mov qword [rsp], r14
mov r14d, dword [r9 + 0x14]
mov eax, r11d
add rax, r12
add r14, rax
je 0x140004bc8
mov qword [rsp + 0x38], rbp
xor ebp, ebp
cmp dword [rsi + 0xb4], ebp
jbe 0x140004bc3
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rdi
mov qword [rsp + 8], r13
mov r13d, 0xf000
nop dword [rax]
mov edi, dword [r14 + 4]
lea rdx, [rsi + 0x18]
movzx eax, word [rsi + 0x14]
lea r10, [r14 + 8]
movzx ebx, word [rsi + 6]
sub rdi, 8
mov r11d, dword [r14]
add rdx, rax
shr rdi, 1
xor r9d, r9d
test ebx, ebx
je 0x140004b55
nop dword [rax + rax]
mov r8d, dword [rdx + 0xc]
cmp r11d, r8d
jb 0x140004b49
mov eax, dword [rdx + 8]
lea ecx, [r8 + rax]
cmp r11d, ecx
jb 0x140004bd6
inc r9d
add rdx, 0x28
cmp r9d, ebx
jl 0x140004b30
xor r8d, r8d
xor edx, edx
test rdi, rdi
je 0x140004ba1
mov r9d, 0xa000
nop word [rax + rax]
movzx eax, word [r10]
movzx ecx, ax
and cx, r13w
cmp cx, r9w
jne 0x140004b94
and eax, 0xfff
lea rcx, [rax + r8]
mov rax, r15
sub rax, qword [rsi + 0x30]
add qword [rcx], rax
inc edx
add r10, 2
mov eax, edx
cmp rax, rdi
jb 0x140004b70
add ebp, dword [r14 + 4]
mov r14, r10
cmp ebp, dword [rsi + 0xb4]
jb 0x140004b00
mov r13, qword [rsp + 8]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov r14, qword [rsp]
add rsp, 0x10
pop r15
pop r12
pop rsi
ret
sub r11d, r8d
mov r8d, dword [rdx + 0x14]
mov eax, r11d
add rax, r12
add r8, rax
jmp 0x140004b58
Function at 0x140008010
Capabilities:
Get file size
Read file on windows

Disassembly:
push rdi
sub rsp, 0x40
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140008052
xor eax, eax
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x50], rbx
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov rdx, rax
mov r8d, ebx
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rbx, qword [rsp + 0x50]
test eax, eax
jne 0x1400080b7
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret