joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006310
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rdi
push rsi
push rbx
mov rax, rcx
lea rcx, [rcx + 0xf]
sub rcx, rdx
cmp rcx, 0x1e
jbe 0x1400063f4
movdqu xmm1, xmmword [rdx]
movups xmmword [rax], xmm1
movdqu xmm0, xmmword [rdx + 0x10]
movups xmmword [rax + 0x10], xmm0
movzx edi, byte [rax + 0x1f]
movzx r9d, byte [rax + 0x1e]
mov r10d, 8
lea r11, [0x1400cb380]
movzx r8d, byte [rax + 0x1d]
movzx edx, byte [rax + 0x1c]
lea rbx, [0x1400cb260]
jmp 0x1400063b9
movzx r8d, r8b
movzx edx, dl
movzx ecx, byte [r11 + r8]
movzx r8d, r9b
movzx r9d, dil
movzx edi, byte [r11 + rdx]
mov edx, r10d
movzx r8d, byte [r11 + r8]
movzx r9d, byte [r11 + r9]
shr edx, 3
xor cl, byte [rbx + rdx]
mov edx, ecx
xor dl, byte [rax]
xor r8b, byte [rax + 1]
add r10d, 1
add rax, 4
xor r9b, byte [rax - 2]
xor dil, byte [rax - 1]
mov byte [rax + 0x1c], dl
mov byte [rax + 0x1d], r8b
mov byte [rax + 0x1e], r9b
mov byte [rax + 0x1f], dil
cmp r10d, 0x3c
je 0x1400063f0
mov ecx, r10d
and ecx, 7
je 0x140006360
cmp ecx, 4
jne 0x14000638e
movzx edx, dl
movzx r8d, r8b
movzx esi, r9b
movzx ecx, dil
movzx edx, byte [r11 + rdx]
movzx r8d, byte [r11 + r8]
movzx r9d, byte [r11 + rsi]
movzx edi, byte [r11 + rcx]
jmp 0x14000638e
pop rbx
pop rsi
pop rdi
ret
movzx ecx, byte [rdx]
mov byte [rax], cl
movzx ecx, byte [rdx + 1]
mov byte [rax + 1], cl
movzx ecx, byte [rdx + 2]
mov byte [rax + 2], cl
movzx ecx, byte [rdx + 3]
mov byte [rax + 3], cl
movzx ecx, byte [rdx + 4]
mov byte [rax + 4], cl
movzx ecx, byte [rdx + 5]
mov byte [rax + 5], cl
movzx ecx, byte [rdx + 6]
mov byte [rax + 6], cl
movzx ecx, byte [rdx + 7]
mov byte [rax + 7], cl
movzx ecx, byte [rdx + 8]
mov byte [rax + 8], cl
movzx ecx, byte [rdx + 9]
mov byte [rax + 9], cl
movzx ecx, byte [rdx + 0xa]
mov byte [rax + 0xa], cl
movzx ecx, byte [rdx + 0xb]
mov byte [rax + 0xb], cl
movzx ecx, byte [rdx + 0xc]
mov byte [rax + 0xc], cl
movzx ecx, byte [rdx + 0xd]
mov byte [rax + 0xd], cl
movzx ecx, byte [rdx + 0xe]
mov byte [rax + 0xe], cl
movzx ecx, byte [rdx + 0xf]
mov byte [rax + 0xf], cl
movzx ecx, byte [rdx + 0x10]
mov byte [rax + 0x10], cl
movzx ecx, byte [rdx + 0x11]
mov byte [rax + 0x11], cl
movzx ecx, byte [rdx + 0x12]
mov byte [rax + 0x12], cl
movzx ecx, byte [rdx + 0x13]
mov byte [rax + 0x13], cl
movzx ecx, byte [rdx + 0x14]
mov byte [rax + 0x14], cl
movzx ecx, byte [rdx + 0x15]
mov byte [rax + 0x15], cl
movzx ecx, byte [rdx + 0x16]
mov byte [rax + 0x16], cl
movzx ecx, byte [rdx + 0x17]
mov byte [rax + 0x17], cl
movzx ecx, byte [rdx + 0x18]
mov byte [rax + 0x18], cl
movzx ecx, byte [rdx + 0x19]
mov byte [rax + 0x19], cl
movzx ecx, byte [rdx + 0x1a]
mov byte [rax + 0x1a], cl
movzx ecx, byte [rdx + 0x1b]
mov byte [rax + 0x1b], cl
movzx ecx, byte [rdx + 0x1c]
mov byte [rax + 0x1c], cl
movzx ecx, byte [rdx + 0x1d]
mov byte [rax + 0x1d], cl
movzx ecx, byte [rdx + 0x1e]
mov byte [rax + 0x1e], cl
movzx edx, byte [rdx + 0x1f]
mov byte [rax + 0x1f], dl
jmp 0x140006337
Function at 0x14001a490
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.1400261b0
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.1400261b0
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 0x14001b162
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400fa168]
test eax, eax
je 0x14001b1fa
lea rax, [0x1400fa140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400fa170]
mov qword [rbp - 8], rax
jmp 0x14001b1de
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 0x14001b1d2
cmp qword [rbp - 0x10], 0
je 0x14001b1d2
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 0x14001b198
lea rax, [0x1400fa140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001b1fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14001b300
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 0x14001b328
mov eax, 0
jmp 0x14001b376
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 0x14001b351
mov eax, 0
jmp 0x14001b376
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 0x14001b371
mov eax, 0
jmp 0x14001b376
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14001b37c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001b3fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14001b3f1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14001b3f1
mov rax, qword [rbp - 8]
jmp 0x14001b40f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14001b3c4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140028800
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
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 + 0x78], 0
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 0x140028902
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400288da
add rax, 1
cmp rax, 0x6b
je 0x1400288f7
cmp byte [rcx + rax], 0
jne 0x1400288d0
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x1400288f7
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 0x1400288e8

Function at 0x140028ca0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400fad60], 1
je 0x140028d18
lea rdi, [0x1400fad60]
mov rcx, rdi
call fcn.140028590
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140027ec0
mov esi, dword [0x1400fad60]
test esi, esi
jne 0x140028d28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400c8368], eax
cmp eax, 0xffffffff
je 0x1400c7cb6
mov dword [0x1400fad60], 1
mov rcx, rbp
call fcn.140028190
test rbx, rbx
je 0x140028d18
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140028920
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140028cf8
mov ecx, 2
call qword [fcn.1400261b0]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140028cf8
call sub.msvcrt.dll_abort
nop
Function at 0x140028d50
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140028a30
cmp qword [0x1400fd048], 0
mov rbx, rax
je 0x140028e68
test rax, rax
je 0x140028e68
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.140028490
cmp eax, 1
je 0x140028e76
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.1400c7cbc
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400c8368]
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 0x140028e7c
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.140028800
nop
jmp fcn.1400c7cbc

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

Disassembly:
sub rsp, 0x28
call fcn.140028ca0
mov ecx, dword [0x1400c8368]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140028eb0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140028d50
Function at 0x140029620
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x140029748
cmp eax, 1
je 0x14002967b
call fcn.140028590
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.140027ec0
mov r12d, dword [rbx]
test r12d, r12d
je 0x140029690
cmp r12d, 1
jne 0x140029720
mov rcx, rbp
call fcn.140028190
test rdi, rdi
je 0x14002967b
mov rcx, rdi
call fcn.140028920
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x140028a00]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140028ca0
mov ecx, dword [0x1400c8368]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x140029788
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140028ca0
mov ecx, dword [0x1400c8368]
call r12
test rax, rax
je 0x140029770
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140028ca0
mov ecx, dword [0x1400c8368]
call r12
test rax, rax
je 0x140029760
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x140029666
mov ecx, 2
call qword [fcn.1400261b0]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140029666
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140028d50
test rax, rax
jne 0x140029709
jmp 0x1400c7cd5
call fcn.140028d50
test rax, rax
jne 0x1400296e5
jmp 0x1400c7cee
call fcn.140028d50
test rax, rax
jne 0x1400296bf
jmp 0x1400c7ce4
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x140029a10
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.140028ca0
mov ecx, dword [0x1400c8368]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140029a88
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.1400284a0
cmp esi, dword [rbx + 0x48]
jae 0x140029a63
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140029a63
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.1400284e0
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.140028d50
mov rbx, rax
jmp 0x140029a3d
Function at 0x140029aa0
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.140028ca0
mov ecx, dword [0x1400c8368]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140029ba0
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.1400284a0
cmp esi, dword [rbx + 0x48]
jae 0x140029b20
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.1400284e0
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 0x140029bad
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x140029bad
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 0x140029aef
call fcn.140028d50
mov rbx, rax
jmp 0x140029ada
mov rcx, r13
call fcn.1400284e0
mov eax, 0xc
jmp 0x140029b0d

Function at 0x140029c30
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140028ca0
mov ecx, dword [0x1400c8368]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140029c58
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140028d50
test rax, rax
jne 0x140029c4a
add rsp, 0x28
ret

Function at 0x140029cc0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140028ca0
mov ecx, dword [0x1400c8368]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140029ce8
add rax, 0x18
add rsp, 0x28
ret
call fcn.140028d50
test rax, rax
jne 0x140029cda
jmp 0x140029cde

Function at 0x140029e00
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400fad68]
test eax, eax
jne 0x140029e18
xor eax, eax
add rsp, 0x28
ret
call fcn.140028ca0
mov ecx, dword [0x1400c8368]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140029e48
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x140029e0e
test byte [rax + 0x40], 3
je 0x140029e0e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140029e10
call fcn.140028d50
test rax, rax
jne 0x140029e2e
jmp 0x140029e0e

Function at 0x140029e60
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140028ca0
mov ecx, dword [0x1400c8368]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140029ea0
test ebx, ebx
jle 0x140029e90
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.140028d50
test rax, rax
jne 0x140029e7d
add rsp, 0x20
pop rbx
ret
Function at 0x140029f90
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140028ca0
mov ecx, dword [0x1400c8368]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002a008
test byte [rbx + 0x40], 0xc
jne 0x140029fbf
mov eax, dword [0x1400fad68]
test eax, eax
jne 0x140029fd0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140027ec0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140029ff3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140029ff3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14002a01c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140028190
call fcn.140028d50
mov rbx, rax
test rax, rax
jne 0x140029faf
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 0x14002a03a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140028190
call fcn.140029eb0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14002a0c0
call fcn.140027c70
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14002a0f8
call fcn.140028ca0
mov ecx, dword [0x1400c8368]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002a150
test esi, esi
je 0x14002a0d6
call fcn.140029f90
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14002a130
mov edx, edi
call fcn.140027d20
call fcn.140029f90
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140028ca0
mov ecx, dword [0x1400c8368]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002a140
call fcn.140029f90
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140029f90
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140028ca0
mov ecx, dword [0x1400c8368]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14002a095
call fcn.140028d50
mov rbx, rax
jmp 0x14002a095
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002a0ae
call fcn.140028d50
jmp 0x14002a0d6
call fcn.140028d50
mov rbx, rax
jmp 0x14002a091
Function at 0x14002a050
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140028ca0
mov ecx, dword [0x1400c8368]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002a008
test byte [rbx + 0x40], 0xc
jne 0x140029fbf
mov eax, dword [0x1400fad68]
test eax, eax
jne 0x140029fd0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140027ec0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140029ff3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140029ff3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14002a01c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140028190
call fcn.140028d50
mov rbx, rax
test rax, rax
jne 0x140029faf
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 0x14002a03a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140028190
call fcn.140029eb0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14002a0c0
call fcn.140027c70
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14002a0f8
call fcn.140028ca0
mov ecx, dword [0x1400c8368]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002a150
test esi, esi
je 0x14002a0d6
call fcn.140029f90
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14002a130
mov edx, edi
call fcn.140027d20
call fcn.140029f90
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140028ca0
mov ecx, dword [0x1400c8368]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14002a140
call fcn.140029f90
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140029f90
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140028ca0
mov ecx, dword [0x1400c8368]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14002a095
call fcn.140028d50
mov rbx, rax
jmp 0x14002a095
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002a0ae
call fcn.140028d50
jmp 0x14002a0d6
call fcn.140028d50
mov rbx, rax
jmp 0x14002a091

Function at 0x14002a160
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140028ca0
mov ecx, dword [0x1400c8368]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14002a1d0
test esi, esi
je 0x14002a1b0
call fcn.140029f90
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14002a1e0
mov edx, esi
call fcn.140027d20
call fcn.140029f90
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140029f90
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140029f90
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140028d50
mov rbx, rax
jmp 0x14002a181
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002a19a
Function at 0x14008c330
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
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14008c378
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14008c34a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400c58a0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbx, rcx
call fcn.1400c4fe0
mov rax, qword [rbx - 0x10]
mov rcx, qword [rbx - 0x40]
mov rbp, qword [rbx - 0x18]
movsxd rsi, dword [rbx - 0x24]
mov qword [rsp + 0x30], rax
mov rdi, qword [rbx - 0x38]
call fcn.14002c740
mov rcx, rax
jmp 0x1400c5790
call fcn.1400c4fe0
call fcn.1400c5230
mov rbx, qword [rax]
test byte [rbx + 0x50], 1
je 0x1400c5817
mov rbx, qword [rbx]
lea r12, [rsp + 0x20]
mov rdx, rbp
xor ecx, ecx
mov r8, r12
call fcn.14002c310
mov rdx, qword [rbx - 0x90]
mov r9, rsi
mov r8, rbx
mov rcx, r12
call fcn.14002c400
test al, al
jne 0x1400c5835
lea rbx, [0x1400d3d70]
mov r9, rsi
xor r8d, r8d
mov rcx, r12
mov rdx, rbx
call fcn.14002c400
test al, al
je 0x1400c583a
mov ecx, 8
call fcn.1400c4f70
lea r8, [0x140092590]
mov rdx, rbx
mov rcx, rax
mov rax, qword [0x1400d1890]
add rax, 0x10
mov qword [rcx], rax
call fcn.1400c54f0
add rbx, 0x90
jmp 0x1400c57a6
call fcn.1400c54a0
mov rcx, rdi
call fcn.14002c720
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
call sub.msvcrt.dll_abort
mov rcx, rax
call fcn.1400c4fe0
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, 8
call fcn.1400c4f70
lea r8, [fcn.1400bd4e0]
lea rdx, [0x1400d49e0]
mov rcx, rax
mov rax, qword [0x1400d1b40]
add rax, 0x10
mov qword [rcx], rax
call fcn.1400c54f0
nop
nop
nop
mov rcx, rax
mov rax, rdx
sub rax, 1
jne 0x1400c591c
call fcn.1400c4fe0
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.1400c5110
call sub.msvcrt.dll_abort
mov rcx, rdi
call sub.msvcrt.dll_free
call fcn.1400c54a0
call fcn.1400c4fe0
call fcn.1400c5110
jmp 0x1400c590a