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

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

Function at 0x14001d8b0
Capabilities:
Parse pe header

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

Function at 0x14001d970
Capabilities:
Parse pe header

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

Function at 0x14001e830
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 0x14001e860
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 0x14001e880
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 0x14001e8b0
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 0x140029910
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x1401eac40]
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 0x140029a2a
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140029a02
add rax, 1
cmp rax, 0x6b
je 0x140029a1f
cmp byte [rcx + rax], 0
jne 0x1400299f8
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x140029a1f
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 0x140029a10

Function at 0x140029dc0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140214c40], 1
je 0x140029e38
lea rdi, [0x140214c40]
mov rcx, rdi
call fcn.1400296a0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140028fd0
mov esi, dword [0x140214c40]
test esi, esi
jne 0x140029e48
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14011b5b8], eax
cmp eax, 0xffffffff
je 0x1400c8ad6
mov dword [0x140214c40], 1
mov rcx, rbp
call fcn.1400292a0
test rbx, rbx
je 0x140029e38
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140029a40
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140029e18
mov ecx, 2
call qword [fcn.140027380]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140029e18
call sub.msvcrt.dll_abort
nop
Function at 0x140029e70
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140029b50
cmp qword [0x140217048], 0
mov rbx, rax
je 0x140029f88
test rax, rax
je 0x140029f88
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.1400295a0
cmp eax, 1
je 0x140029f96
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.1400c8adc
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x14011b5b8]
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 0x140029f9c
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.140029910
nop
jmp fcn.1400c8adc

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

Disassembly:
sub rsp, 0x28
call fcn.140029dc0
mov ecx, dword [0x14011b5b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140029fd0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140029e70
Function at 0x14002a790
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 [0x1401eac40]
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x14002a8d8
cmp eax, 1
je 0x14002a7fd
call fcn.1400296a0
lea r12, [rax + 8]
mov rdi, rax
mov rcx, r12
call fcn.140028fd0
mov r13d, dword [rbx]
test r13d, r13d
je 0x14002a820
cmp r13d, 1
jne 0x14002a8b0
mov rcx, r12
call fcn.1400292a0
test rdi, rdi
je 0x14002a7fd
mov rcx, rdi
call fcn.140029a40
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rbp]
jne 0x14002a92b
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x140029b20]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140029dc0
mov ecx, dword [0x14011b5b8]
mov r13, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r13
test rax, rax
je 0x14002a918
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140029dc0
mov ecx, dword [0x14011b5b8]
call r13
test rax, rax
je 0x14002a900
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140029dc0
mov ecx, dword [0x14011b5b8]
call r13
test rax, rax
je 0x14002a8e8
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x14002a7e8
mov ecx, 2
call qword [fcn.140027380]
mov r9d, r13d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14002a7e8
mov eax, 0x16
jmp 0x14002a7ff
call fcn.140029e70
test rax, rax
jne 0x14002a899
jmp 0x1400c8b0e
call fcn.140029e70
test rax, rax
jne 0x14002a875
jmp 0x1400c8aff
call fcn.140029e70
test rax, rax
jne 0x14002a84f
jmp 0x1400c8af5
call fcn.14001e880
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 0x14002abb0
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.140029dc0
mov ecx, dword [0x14011b5b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002ac28
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.1400295b0
cmp esi, dword [rbx + 0x48]
jae 0x14002ac03
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14002ac03
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.1400295f0
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.140029e70
mov rbx, rax
jmp 0x14002abdd
Function at 0x14002ac40
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.140029dc0
mov ecx, dword [0x14011b5b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002ad40
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.1400295b0
cmp esi, dword [rbx + 0x48]
jae 0x14002acc0
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.1400295f0
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 0x14002ad4d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14002ad4d
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 0x14002ac8f
call fcn.140029e70
mov rbx, rax
jmp 0x14002ac7a
mov rcx, r13
call fcn.1400295f0
mov eax, 0xc
jmp 0x14002acad

Function at 0x14002add0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140029dc0
mov ecx, dword [0x14011b5b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002adf8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140029e70
test rax, rax
jne 0x14002adea
add rsp, 0x28
ret

Function at 0x14002ae60
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140029dc0
mov ecx, dword [0x14011b5b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002ae88
add rax, 0x18
add rsp, 0x28
ret
call fcn.140029e70
test rax, rax
jne 0x14002ae7a
jmp 0x14002ae7e

Function at 0x14002afa0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140214c48]
test eax, eax
jne 0x14002afb8
xor eax, eax
add rsp, 0x28
ret
call fcn.140029dc0
mov ecx, dword [0x14011b5b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002afe8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14002afae
test byte [rax + 0x40], 3
je 0x14002afae
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14002afb0
call fcn.140029e70
test rax, rax
jne 0x14002afce
jmp 0x14002afae

Function at 0x14002b000
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140029dc0
mov ecx, dword [0x14011b5b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002b040
test ebx, ebx
jle 0x14002b030
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.140029e70
test rax, rax
jne 0x14002b01d
add rsp, 0x20
pop rbx
ret
Function at 0x14002b130
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140029dc0
mov ecx, dword [0x14011b5b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002b1a8
test byte [rbx + 0x40], 0xc
jne 0x14002b15f
mov eax, dword [0x140214c48]
test eax, eax
jne 0x14002b170
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140028fd0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14002b193
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14002b193
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14002b1bc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400292a0
call fcn.140029e70
mov rbx, rax
test rax, rax
jne 0x14002b14f
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 0x14002b1da
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400292a0
call fcn.14002b050
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14002b260
call fcn.140028d60
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14002b298
call fcn.140029dc0
mov ecx, dword [0x14011b5b8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002b2f0
test esi, esi
je 0x14002b276
call fcn.14002b130
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14002b2d0
mov edx, edi
call fcn.140028e30
call fcn.14002b130
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140029dc0
mov ecx, dword [0x14011b5b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002b2e0
call fcn.14002b130
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14002b130
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140029dc0
mov ecx, dword [0x14011b5b8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14002b235
call fcn.140029e70
mov rbx, rax
jmp 0x14002b235
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002b24e
call fcn.140029e70
jmp 0x14002b276
call fcn.140029e70
mov rbx, rax
jmp 0x14002b231
Function at 0x14002b1f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140029dc0
mov ecx, dword [0x14011b5b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002b1a8
test byte [rbx + 0x40], 0xc
jne 0x14002b15f
mov eax, dword [0x140214c48]
test eax, eax
jne 0x14002b170
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140028fd0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14002b193
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14002b193
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14002b1bc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400292a0
call fcn.140029e70
mov rbx, rax
test rax, rax
jne 0x14002b14f
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 0x14002b1da
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.1400292a0
call fcn.14002b050
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14002b260
call fcn.140028d60
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14002b298
call fcn.140029dc0
mov ecx, dword [0x14011b5b8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002b2f0
test esi, esi
je 0x14002b276
call fcn.14002b130
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14002b2d0
mov edx, edi
call fcn.140028e30
call fcn.14002b130
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140029dc0
mov ecx, dword [0x14011b5b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002b2e0
call fcn.14002b130
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14002b130
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140029dc0
mov ecx, dword [0x14011b5b8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14002b235
call fcn.140029e70
mov rbx, rax
jmp 0x14002b235
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002b24e
call fcn.140029e70
jmp 0x14002b276
call fcn.140029e70
mov rbx, rax
jmp 0x14002b231

Function at 0x14002b300
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140029dc0
mov ecx, dword [0x14011b5b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002b370
test esi, esi
je 0x14002b350
call fcn.14002b130
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14002b380
mov edx, esi
call fcn.140028e30
call fcn.14002b130
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14002b130
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14002b130
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140029e70
mov rbx, rax
jmp 0x14002b321
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002b33a
Function at 0x14008ecf0
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 0x14008ed38
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14008ed0a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140641058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406411df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140641089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14064106f
add dl, dl
jne 0x140641096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406410f6
xor eax, eax
add dl, dl
jne 0x1406410a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406411ad
add dl, dl
jne 0x1406410b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406410c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406410d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406410dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406410ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14064107e
mov eax, 1
add dl, dl
jne 0x140641106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140641113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406410fb
sub eax, ebx
mov ebx, 1
jne 0x14064114c
mov ecx, 1
add dl, dl
jne 0x14064112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14064113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140641123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14064107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140641168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140641175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14064115d
cmp eax, 0x7d00
jae 0x14064119b
cmp eax, 0x500
jb 0x140641196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14064107e
cmp eax, 0x7f
ja 0x14064119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14064107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406411d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14064107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0xf43190
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xf4319d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xf431ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xf43195
lea eax, [rcx + 1]
jmp 0xf431bb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xf431ce
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xf431b4
sub eax, 3
jb 0xf431ee
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xf4323d
sar eax, 1
movsxd rbp, eax
jb 0xf43224
jmp 0xf431fc
add ebx, ebx
jne 0xf431fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xf43224
inc ecx
add ebx, ebx
jne 0xf4320a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xf43224
call r11
adc ecx, ecx
add ebx, ebx
jne 0xf4321d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xf4320c
add ecx, 2
jmp 0xf43229
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00f43152
jmp 0xf4319d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xb35000]
mov eax, dword [rdi]
or eax, eax
je 0xf43299
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xb43000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xf43249
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xf43293
mov qword [rbx], rax
add rbx, 8
jmp 0xf43269
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xf432dd
cmp al, 0xef
ja 0xf432c5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xf432a5
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xf432b4
mov eax, dword [rdi]
add rdi, 4
jmp 0xf432b4
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xf43331
sub rsp, 0xffffffffffffff80
jmp 0x468a80