joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400030c2
Capabilities:
Enumerate disk properties

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
lea rcx, [0x1400c5b70]
xor r14d, r14d
xor edx, edx
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov rsi, rax
lea rdi, [rsp + 0x40]
mov dword [rdi], 0x20
mov rcx, rax
xor edx, edx
mov r8, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
lea r13, [rsp + 0x3c]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x28], 0
mov r12, qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
mov rcx, rsi
mov rdx, rdi
mov r8d, 0xc
xor r9d, r9d
call r12
mov r15, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call r15
mov r8d, dword [r13]
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
mov eax, dword [r13]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov rdx, rdi
mov r8d, 0xc
xor r9d, r9d
call r12
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharUpperW]
lea rdx, str.VBOX
mov rcx, rbx
call sub.msvcrt.dll_wcsstr
test rax, rax
sete dil
call r15
mov rcx, rax
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400031c6
Capabilities:
Get local ipv4 addresses

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
lea rbx, [rsp + 0x3c]
mov dword [rbx], 0
mov qword [rsp + 0x20], rbx
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, dword [rbx]
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov sil, 1
test rax, rax
je 0x140003277
mov rdi, rax
mov qword [rsp + 0x20], rbx
xor ecx, ecx
xor edx, edx
xor r8d, r8d
mov r9, rax
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp dword [rdi + 0x58], 6
jne 0x140003248
mov eax, dword [rdi + 0x50]
mov dword [rsp + 0x34], eax
movzx ecx, word [rdi + 0x54]
mov word [rsp + 0x38], cx
xor eax, 8
movzx ecx, byte [rsp + 0x36]
xor ecx, 0x27
or cx, ax
je 0x140003261
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x140003222
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
xor r8d, r8d
jmp 0x140003271
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor esi, esi
mov rcx, rax
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400032d3
Capabilities:
Enumerate processes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x258
mov edi, ecx
xor esi, esi
lea r14, [rsp + 0x20]
mov r8d, 0x238
mov rcx, r14
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [r14], 0x238
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
mov rcx, rax
mov rdx, r14
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14000333d
lea r14, [rsp + 0x20]
cmp dword [rsp + 0x28], edi
je 0x140003339
mov rcx, rbx
mov rdx, r14
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140003322
jmp 0x14000333d
mov esi, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
add rsp, 0x258
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400033d7
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rdi, [rsp + 0x28]
mov r8d, 0x238
mov rcx, rdi
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rdi], 0x238
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
mov rcx, rax
mov rdx, rdi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14000349e
lea rdi, [rsp + 0x260]
mov ecx, 0x104
lea r15, [rsp + 0x54]
mov r12, qword [sym.imp.USER32.dll_CharUpperW]
lea rbx, str.WIRESHARK.EXE
lea r14, [rsp + 0x28]
mov rdx, r15
mov r8, rdi
mov rax, r8
movzx r9d, word [rdx]
test r9w, r9w
je 0x140003469
add rdx, 2
lea r8, [rax + 2]
mov word [rax], r9w
dec rcx
jne 0x14000344b
mov word [rax], 0
mov rcx, rdi
call r12
mov rcx, rdi
mov rdx, rbx
call sub.msvcrt.dll_wcsstr
test rax, rax
jne 0x1400034b9
mov rcx, rsi
mov rdx, r14
call sub.KERNEL32.dll_Process32NextW
mov rdx, r15
mov ecx, 0x104
mov r8, rdi
test eax, eax
jne 0x14000344b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1400038c7
Capabilities:
Enumerate processes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x158
mov rsi, rcx
lea rbx, [rsp + 0x28]
mov r8d, 0x130
mov rcx, rbx
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rbx], 0x130
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
mov rcx, rax
mov rdx, rbx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x140003937
lea rbx, [rsp + 0x54]
lea r14, [rsp + 0x28]
mov rcx, rbx
mov rdx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x140003944
mov rcx, rdi
mov rdx, r14
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140003919
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140003946
mov al, 1
add rsp, 0x158
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14000f790
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 0x14000f892
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14000f86a
add rax, 1
cmp rax, 0x6b
je 0x14000f887
cmp byte [rcx + rax], 0
jne 0x14000f860
movsxd rdx, eax
cmp eax, 0x6a
je 0x14000f887
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 0x14000f87b

Function at 0x14000fc30
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400f0110], 1
je 0x14000fca8
lea rdi, [0x1400f0110]
mov rcx, rdi
call fcn.14000f510
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14000ee20
mov esi, dword [0x1400f0110]
test esi, esi
jne 0x14000fcb8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400bb038], eax
cmp eax, 0xffffffff
je 0x1400ba716
mov dword [0x1400f0110], 1
mov rcx, rbp
call fcn.14000f110
test rbx, rbx
je 0x14000fca8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14000f8b0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x14000fc88
mov ecx, 2
call qword [fcn.14001d4e0]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14000fc88
call sub.msvcrt.dll_abort
nop
Function at 0x14000fce0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14000f9c0
cmp qword [0x1400f3048], 0
mov rbx, rax
je 0x14000fdf8
test rax, rax
je 0x14000fdf8
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.14000f410
cmp eax, 1
je 0x14000fe06
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.1400ba71c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400bb038]
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 0x14000fe0c
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.14000f790
nop
jmp fcn.1400ba71c

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

Disassembly:
sub rsp, 0x28
call fcn.14000fc30
mov ecx, dword [0x1400bb038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14000fe40
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14000fce0
Function at 0x1400105b0
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 0x1400106d8
cmp eax, 1
je 0x14001060b
call fcn.14000f510
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.14000ee20
mov r12d, dword [rbx]
test r12d, r12d
je 0x140010620
cmp r12d, 1
jne 0x1400106b0
mov rcx, rbp
call fcn.14000f110
test rdi, rdi
je 0x14001060b
mov rcx, rdi
call fcn.14000f8b0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x14000f990]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14000fc30
mov ecx, dword [0x1400bb038]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x140010718
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.14000fc30
mov ecx, dword [0x1400bb038]
call r12
test rax, rax
je 0x140010700
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.14000fc30
mov ecx, dword [0x1400bb038]
call r12
test rax, rax
je 0x1400106f0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x1400105f6
mov ecx, 2
call qword [fcn.14001d4e0]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400105f6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14000fce0
test rax, rax
jne 0x140010699
jmp 0x1400ba735
call fcn.14000fce0
test rax, rax
jne 0x140010675
jmp 0x1400ba74e
call fcn.14000fce0
test rax, rax
jne 0x14001064f
jmp 0x1400ba744
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 0x1400109a0
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.14000fc30
mov ecx, dword [0x1400bb038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140010a18
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.14000f420
cmp esi, dword [rbx + 0x48]
jae 0x1400109f3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x1400109f3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.14000f460
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.14000fce0
mov rbx, rax
jmp 0x1400109cd
Function at 0x140010a30
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.14000fc30
mov ecx, dword [0x1400bb038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140010b30
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.14000f420
cmp esi, dword [rbx + 0x48]
jae 0x140010ab0
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.14000f460
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 0x140010b3d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x140010b3d
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 0x140010a7f
call fcn.14000fce0
mov rbx, rax
jmp 0x140010a6a
mov rcx, r13
call fcn.14000f460
mov eax, 0xc
jmp 0x140010a9d

Function at 0x140010bc0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14000fc30
mov ecx, dword [0x1400bb038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010be8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14000fce0
test rax, rax
jne 0x140010bda
add rsp, 0x28
ret

Function at 0x140010c50
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14000fc30
mov ecx, dword [0x1400bb038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010c78
add rax, 0x18
add rsp, 0x28
ret
call fcn.14000fce0
test rax, rax
jne 0x140010c6a
jmp 0x140010c6e

Function at 0x140010d90
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400f0118]
test eax, eax
jne 0x140010da8
xor eax, eax
add rsp, 0x28
ret
call fcn.14000fc30
mov ecx, dword [0x1400bb038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010dd8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x140010d9e
test byte [rax + 0x40], 3
je 0x140010d9e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140010da0
call fcn.14000fce0
test rax, rax
jne 0x140010dbe
jmp 0x140010d9e

Function at 0x140010df0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14000fc30
mov ecx, dword [0x1400bb038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010e30
test ebx, ebx
jle 0x140010e20
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.14000fce0
test rax, rax
jne 0x140010e0d
add rsp, 0x20
pop rbx
ret
Function at 0x140010f20
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14000fc30
mov ecx, dword [0x1400bb038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140010f98
test byte [rbx + 0x40], 0xc
jne 0x140010f4f
mov eax, dword [0x1400f0118]
test eax, eax
jne 0x140010f60
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14000ee20
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140010f83
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140010f83
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140010fac
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14000f110
call fcn.14000fce0
mov rbx, rax
test rax, rax
jne 0x140010f3f
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 0x140010fca
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14000f110
call fcn.140010e40
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140011050
call fcn.14000ebd0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140011088
call fcn.14000fc30
mov ecx, dword [0x1400bb038]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400110e0
test esi, esi
je 0x140011066
call fcn.140010f20
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400110c0
mov edx, edi
call fcn.14000ec80
call fcn.140010f20
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14000fc30
mov ecx, dword [0x1400bb038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400110d0
call fcn.140010f20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140010f20
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14000fc30
mov ecx, dword [0x1400bb038]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140011025
call fcn.14000fce0
mov rbx, rax
jmp 0x140011025
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001103e
call fcn.14000fce0
jmp 0x140011066
call fcn.14000fce0
mov rbx, rax
jmp 0x140011021
Function at 0x140010fe0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14000fc30
mov ecx, dword [0x1400bb038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140010f98
test byte [rbx + 0x40], 0xc
jne 0x140010f4f
mov eax, dword [0x1400f0118]
test eax, eax
jne 0x140010f60
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14000ee20
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140010f83
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140010f83
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140010fac
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14000f110
call fcn.14000fce0
mov rbx, rax
test rax, rax
jne 0x140010f3f
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 0x140010fca
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14000f110
call fcn.140010e40
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140011050
call fcn.14000ebd0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140011088
call fcn.14000fc30
mov ecx, dword [0x1400bb038]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400110e0
test esi, esi
je 0x140011066
call fcn.140010f20
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400110c0
mov edx, edi
call fcn.14000ec80
call fcn.140010f20
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14000fc30
mov ecx, dword [0x1400bb038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400110d0
call fcn.140010f20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140010f20
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14000fc30
mov ecx, dword [0x1400bb038]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140011025
call fcn.14000fce0
mov rbx, rax
jmp 0x140011025
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001103e
call fcn.14000fce0
jmp 0x140011066
call fcn.14000fce0
mov rbx, rax
jmp 0x140011021

Function at 0x1400110f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14000fc30
mov ecx, dword [0x1400bb038]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140011160
test esi, esi
je 0x140011140
call fcn.140010f20
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140011170
mov edx, esi
call fcn.14000ec80
call fcn.140010f20
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140010f20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140010f20
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14000fce0
mov rbx, rax
jmp 0x140011111
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001112a
Function at 0x140013370
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.14001d4e0
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.14001d4e0
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 0x1400133e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400f0194]
mov rbx, rcx
test esi, esi
jle 0x140013510
mov rax, qword [0x1400f0198]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001342b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400134b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140013410
mov rcx, rbx
call fcn.140013e30
mov rdi, rax
test rax, rax
je 0x140013532
mov rax, qword [0x1400f0198]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140013f70
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400f0198]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140013517
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400134ae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400134c0
add dword [0x1400f0194], 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 [0x1400f0198]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400134ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140013370
nop dword [rax]
xor esi, esi
jmp 0x140013438
mov rax, qword [0x1400f0198]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140013370
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140013370
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140013aa0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400f0200]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400f01e0]
test rbx, rbx
je 0x140013afc
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 eax, eax
jne 0x140013af3
test rsi, rsi
je 0x140013af3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140013ad8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]