joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010c20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sub.msvcrt.dll__errno
mov dword [rax], 0
test rbx, rbx
je 0x140010dd0
cmp byte [rbx], 0
je 0x140010d98
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140010de0
test al, 0x10
je 0x140010d98
lea rsi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rsi
call sub.msvcrt.dll__fullpath
mov rcx, rsi
call sub.msvcrt.dll_strlen
lea rcx, [rax + 0x24b]
mov rbx, rax
mov rbp, rax
call sub.msvcrt.dll_malloc
mov rdx, rax
test rax, rax
je 0x140010e08
lea r8, [rax + 0x244]
lea rax, [rbx + 1]
cmp eax, 8
jb 0x140010d60
mov rcx, qword [rsp + 0x20]
lea rdi, [rdx + 0x24c]
and rdi, 0xfffffffffffffff8
mov qword [rdx + 0x244], rcx
mov ecx, eax
mov r9, qword [rsi + rcx - 8]
mov qword [r8 + rcx - 8], r9
mov rcx, r8
sub rcx, rdi
sub rsi, rcx
add ecx, eax
shr ecx, 3
rep movsq qword [rdi], qword [rsi]
cmp byte [rdx + 0x244], 0
je 0x140010d08
movzx ecx, byte [rdx + rbx + 0x243]
cmp cl, 0x5c
je 0x140010d08
cmp cl, 0x2f
jne 0x140010db8
mov eax, 0x2a
mov ecx, 0x20
mov word [r8 + rbp], ax
lea r8, [rdx + 0x130]
xor eax, eax
mov qword [rdx + 0x238], 0xffffffffffffffff
mov rdi, r8
mov dword [rdx + 0x240], 0
mov qword [rdx + 0x128], 0
rep stosq qword [rdi], rax
mov rax, rdx
mov dword [rdi], 0
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
test al, 4
jne 0x140010df0
test eax, eax
je 0x140010ce9
movzx ecx, byte [rsp + 0x20]
mov byte [r8], cl
test al, 2
je 0x140010ce9
mov ecx, eax
movzx r9d, word [rsi + rcx - 2]
mov word [r8 + rcx - 2], r9w
jmp 0x140010ce9
call sub.msvcrt.dll__errno
xor edx, edx
mov dword [rax], 0x14
mov rax, rdx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov ecx, 0x5c
mov rbp, rax
mov word [r8 + rbx], cx
jmp 0x140010d08
call sub.msvcrt.dll__errno
xor edx, edx
mov dword [rax], 0xe
jmp 0x140010da5
call sub.msvcrt.dll__errno
xor edx, edx
mov dword [rax], 2
jmp 0x140010da5
mov ecx, dword [rsp + 0x20]
mov dword [r8], ecx
mov ecx, eax
mov r9d, dword [rsi + rcx - 4]
mov dword [r8 + rcx - 4], r9d
jmp 0x140010ce9
call sub.msvcrt.dll__errno
xor edx, edx
mov dword [rax], 0xc
jmp 0x140010da5

Function at 0x1400112f0
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 0x140011320
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 0x1400173c0
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 0x1400174c2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14001749a
add rax, 1
cmp rax, 0x6b
je 0x1400174b7
cmp byte [rcx + rax], 0
jne 0x140017490
movsxd rdx, eax
cmp eax, 0x6a
je 0x1400174b7
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1400174ab

Function at 0x140017860
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140029c60], 1
je 0x1400178d8
lea rdi, [0x140029c60]
mov rcx, rdi
call fcn.140017140
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140016ac0
mov esi, dword [0x140029c60]
test esi, esi
jne 0x1400178e8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14001d1f8], eax
cmp eax, 0xffffffff
je 0x14001c2b6
mov dword [0x140029c60], 1
mov rcx, rbp
call fcn.140016db0
test rbx, rbx
je 0x1400178d8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400174e0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x1400178b8
mov ecx, 2
call qword [fcn.140016290]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400178b8
call sub.msvcrt.dll_abort
nop
Function at 0x140017910
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.1400175f0
cmp qword [0x14002c048], 0
mov rbx, rax
je 0x140017a28
test rax, rax
je 0x140017a28
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.14001ab90
cmp eax, 1
je 0x140017a36
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.14001c2bc
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x14001d1f8]
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 0x140017a3c
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.1400173c0
nop
jmp fcn.14001c2bc

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

Disassembly:
sub rsp, 0x28
call fcn.140017860
mov ecx, dword [0x14001d1f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140017a70
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140017910
Function at 0x1400181e0
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 0x140018308
cmp eax, 1
je 0x14001823b
call fcn.140017140
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.140016ac0
mov r12d, dword [rbx]
test r12d, r12d
je 0x140018250
cmp r12d, 1
jne 0x1400182e0
mov rcx, rbp
call fcn.140016db0
test rdi, rdi
je 0x14001823b
mov rcx, rdi
call fcn.1400174e0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x1400175c0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140017860
mov ecx, dword [0x14001d1f8]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x140018348
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140017860
mov ecx, dword [0x14001d1f8]
call r12
test rax, rax
je 0x140018330
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140017860
mov ecx, dword [0x14001d1f8]
call r12
test rax, rax
je 0x140018320
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x140018226
mov ecx, 2
call qword [fcn.140016290]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140018226
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140017910
test rax, rax
jne 0x1400182c9
jmp 0x14001c2d5
call fcn.140017910
test rax, rax
jne 0x1400182a5
jmp 0x14001c2ee
call fcn.140017910
test rax, rax
jne 0x14001827f
jmp 0x14001c2e4
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 0x1400185d0
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.140017860
mov ecx, dword [0x14001d1f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140018648
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.14001aba0
cmp esi, dword [rbx + 0x48]
jae 0x140018623
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140018623
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.14001abe0
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.140017910
mov rbx, rax
jmp 0x1400185fd
Function at 0x140018660
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.140017860
mov ecx, dword [0x14001d1f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140018760
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.14001aba0
cmp esi, dword [rbx + 0x48]
jae 0x1400186e0
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.14001abe0
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 0x14001876d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14001876d
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 0x1400186af
call fcn.140017910
mov rbx, rax
jmp 0x14001869a
mov rcx, r13
call fcn.14001abe0
mov eax, 0xc
jmp 0x1400186cd

Function at 0x1400187f0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140017860
mov ecx, dword [0x14001d1f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018818
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140017910
test rax, rax
jne 0x14001880a
add rsp, 0x28
ret

Function at 0x140018880
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140017860
mov ecx, dword [0x14001d1f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400188a8
add rax, 0x18
add rsp, 0x28
ret
call fcn.140017910
test rax, rax
jne 0x14001889a
jmp 0x14001889e

Function at 0x1400189c0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140029c68]
test eax, eax
jne 0x1400189d8
xor eax, eax
add rsp, 0x28
ret
call fcn.140017860
mov ecx, dword [0x14001d1f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018a08
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x1400189ce
test byte [rax + 0x40], 3
je 0x1400189ce
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x1400189d0
call fcn.140017910
test rax, rax
jne 0x1400189ee
jmp 0x1400189ce

Function at 0x140018a20
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140017860
mov ecx, dword [0x14001d1f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018a60
test ebx, ebx
jle 0x140018a50
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.140017910
test rax, rax
jne 0x140018a3d
add rsp, 0x20
pop rbx
ret
Function at 0x140018b50
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140017860
mov ecx, dword [0x14001d1f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140018bc8
test byte [rbx + 0x40], 0xc
jne 0x140018b7f
mov eax, dword [0x140029c68]
test eax, eax
jne 0x140018b90
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140016ac0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140018bb3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140018bb3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140018bdc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140016db0
call fcn.140017910
mov rbx, rax
test rax, rax
jne 0x140018b6f
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 0x140018bfa
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140016db0
call fcn.140018a70
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140018c80
call fcn.140019d30
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140018cb8
call fcn.140017860
mov ecx, dword [0x14001d1f8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140018d10
test esi, esi
je 0x140018c96
call fcn.140018b50
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140018cf0
mov edx, edi
call fcn.140019de0
call fcn.140018b50
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017860
mov ecx, dword [0x14001d1f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018d00
call fcn.140018b50
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018b50
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017860
mov ecx, dword [0x14001d1f8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140018c55
call fcn.140017910
mov rbx, rax
jmp 0x140018c55
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140018c6e
call fcn.140017910
jmp 0x140018c96
call fcn.140017910
mov rbx, rax
jmp 0x140018c51
Function at 0x140018c10
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140017860
mov ecx, dword [0x14001d1f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140018bc8
test byte [rbx + 0x40], 0xc
jne 0x140018b7f
mov eax, dword [0x140029c68]
test eax, eax
jne 0x140018b90
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140016ac0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140018bb3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140018bb3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140018bdc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140016db0
call fcn.140017910
mov rbx, rax
test rax, rax
jne 0x140018b6f
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 0x140018bfa
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140016db0
call fcn.140018a70
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140018c80
call fcn.140019d30
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140018cb8
call fcn.140017860
mov ecx, dword [0x14001d1f8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140018d10
test esi, esi
je 0x140018c96
call fcn.140018b50
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140018cf0
mov edx, edi
call fcn.140019de0
call fcn.140018b50
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017860
mov ecx, dword [0x14001d1f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140018d00
call fcn.140018b50
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018b50
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017860
mov ecx, dword [0x14001d1f8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140018c55
call fcn.140017910
mov rbx, rax
jmp 0x140018c55
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140018c6e
call fcn.140017910
jmp 0x140018c96
call fcn.140017910
mov rbx, rax
jmp 0x140018c51

Function at 0x140018d20
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140017860
mov ecx, dword [0x14001d1f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140018d90
test esi, esi
je 0x140018d70
call fcn.140018b50
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140018da0
mov edx, esi
call fcn.140019de0
call fcn.140018b50
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140018b50
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018b50
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140017910
mov rbx, rax
jmp 0x140018d41
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140018d5a
Function at 0x18000d6e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180008000
sub rsp, rax
mov rax, qword [0x18003a040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800178ec
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18000d72f
mov rax, rbp
jmp 0x18000d837
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x6c5680]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180017b7c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x6c5680]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18000d833
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000d833
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180017b7c
test rax, rax
js 0x18000d833
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18000d833
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18000d825
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18000d825
cmp byte [rcx], 0xd
jne 0x18000d80b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18000d81a
cmp byte [rcx + 1], 0xa
jne 0x18000d81a
inc rcx
jmp 0x18000d81a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3a420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18000d7ed
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18000d837
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800076d0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180016914
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180016983
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180016983
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180016983
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180016983
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180016983
cmp dword [rcx + 0x84], 0xe
jbe 0x180016983
cmp dword [rcx + 0xf8], 0
je 0x180016983
mov ecx, ebx
call fcn.180016a34
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180016810
nop
cmp dword [rbp + 0x20], 0
je 0x1800169d1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800169dc
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180016914
Function at 0x180019bc4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1806c5680]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180019c1b
cmp word [rdx], r13w
jne 0x180019c1b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180019c20
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180019d45
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180019d66
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180019c59
mov rdx, r9
mov word [rbx], cx
jmp 0x180019c80
cmp r9, r8
jae 0x180019c90
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x180019c3a
jmp 0x180019d45
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180019d3a
cmp dword [rsp + 0x80], esi
je 0x180019d3a
lea r8, [0x1806c5680]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180019d12
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180019ce2
mov word [rbx], r13w
jmp 0x180019d42
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x180019cef
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180019d42
cmp word [rsp + 0x70], r13w
jne 0x180019d1f
cmp rbx, r14
je 0x180019cdc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180017b84
cmp word [rsp + 0x70], r13w
je 0x180019d45
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1806c5680]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180019d3f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180019d45
Function at 0x18001d160
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18001d176
mov al, 1
jmp 0x18001d1d6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18001d187
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18001d1d4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800219c4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18001d1d4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18001d1d4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18001d1d4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18001d1d6
xor al, al
add rsp, 0x20
pop rbx
ret