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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
mov rbp, qword [0x1400f6e30]
mov rdi, rdx
mov rsi, r8
mov rdx, qword [rbp]
mov qword [rsp + 0x68], rdx
mov edx, dword [rcx + 8]
test edx, edx
je 0x14002e610
cmp edx, 1
jne 0x14002e717
movzx edx, byte [r8 + 2]
lea rbx, [rcx + 8]
cmp dl, 0x67
je 0x14002e680
cmp dl, 0x79
je 0x14002e630
movzx edx, byte [r8]
mov dword [rsp + 0x20], 0
mov r9, rbx
mov rcx, rdi
movzx r8d, byte [r8 + 1]
call fcn.14002d5a0
cmp byte [rsi], 0
jne 0x14002e6f0
nop dword [rax]
mov rax, qword [rsp + 0x68]
sub rax, qword [rbp]
jne 0x14002e712
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r9, rdi
mov r8d, 3
mov edx, 1
lea rcx, [0x1400c19fc]
call fcn.140092f48
movzx edx, byte [rsi]
mov r9, rbx
mov rcx, rdi
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
movzx r8d, byte [rsi + 1]
call fcn.14002da70
jmp 0x14002e610
cmp byte [r8], 0
lea r12, [rsp + 0x50]
mov r9, rbx
mov rcx, rdi
lea rax, [0x1400c19d8]
lea rdx, [0x1400c19dc]
mov qword [rsp + 0x40], r12
cmovne rdx, rax
lea rax, [rsp + 0x40]
mov byte [rsp + 0x54], 0
mov qword [rsp + 0x20], rax
movzx r8d, byte [r8 + 1]
mov dword [rsp + 0x50], 0x6e6f736a
mov qword [rsp + 0x48], 4
call fcn.14002e0f0
mov rcx, qword [rsp + 0x40]
cmp rcx, r12
je 0x14002e610
call fcn.1400a3f20
jmp 0x14002e610
mov rax, qword [rsp + 0x68]
sub rax, qword [rbp]
jne 0x14002e712
mov rdx, rdi
mov ecx, 0xa
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sub.msvcrt.dll_putc
call fcn.140082d70
lea rdx, str.m_root_node.type__nt_object
mov ecx, 0x2ca
call fcn.14002cb30
mov rcx, qword [rsp + 0x40]
mov rbx, rax
cmp rcx, r12
je 0x14002e73a
call fcn.1400a3f20
mov rcx, rbx
call fcn.1400848e0
nop
nop
nop word cs:[rax + rax]
nop

Function at 0x140058230
Capabilities:
Query environment variable

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [0x1400f6e30]
lea rcx, [0x1400efe45]
mov rax, qword [rsi]
mov qword [rsp + 0x38], rax
xor eax, eax
call sub.msvcrt.dll_getenv
mov rbx, rax
test rax, rax
je 0x1400582f8
movzx eax, byte [0x140127060]
test al, al
jne 0x140058282
lea rdi, [0x140127060]
mov rcx, rdi
call fcn.1400a4400
test eax, eax
jne 0x140058328
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
lea rcx, [0x1401270c0]
call fcn.140064460
or eax, dword [rsp + 0x30]
jne 0x1400582d0
mov rcx, rbx
call sub.msvcrt.dll_strlen
cmp dword [rsp + 0x34], eax
jne 0x1400582d0
mov rax, qword [rsp + 0x38]
sub rax, qword [rsi]
jne 0x14005831f
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
lea rcx, [0x1400efe4f]
call sub.msvcrt.dll__putenv
mov rax, qword [rsp + 0x38]
sub rax, qword [rsi]
jne 0x14005831f
add rsp, 0x40
pop rbx
pop rsi
pop rdi
jmp sub.msvcrt.dll__tzset
lea rcx, str.TZGMT
call sub.msvcrt.dll__putenv
call sub.msvcrt.dll__tzset
lea rcx, [0x1400efe4f]
call sub.msvcrt.dll__putenv
mov rax, qword [rsp + 0x38]
sub rax, qword [rsi]
je 0x1400582e6
call fcn.140082d70
nop dword [rax]
lea rdx, str._A_Z_3_____0_9___A_Z_3_4__
lea rcx, [0x140127080]
call fcn.1400580f0
lea rcx, [0x140057140]
call fcn.1400014f0
mov rcx, rdi
call fcn.1400a4500
jmp 0x140058282
Function at 0x140058370
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
mov r12, qword [0x1400f6e30]
mov rax, qword [r12]
mov qword [rsp + 0x98], rax
xor eax, eax
mov rbx, rdx
mov rdi, rcx
lea rbp, [rsp + 0x70]
call fcn.140058230
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140057200
mov edx, 0x20
mov rcx, rbp
mov rsi, rax
mov r8, rax
call qword [str.P_t_]
mov ebx, eax
test eax, eax
jne 0x14005850a
mov rcx, rbp
call sub.msvcrt.dll_strlen
mov edx, 0
sub eax, 1
cmovs eax, edx
cdqe
mov byte [rsp + rax + 0x70], 0
mov eax, dword [rsi + 0x20]
test eax, eax
jne 0x140058468
mov rax, qword [sym.imp.msvcrt.dll__tzname]
mov r15, qword [rax]
lea rcx, [0x1400efe45]
mov dword [rsp + 0x69], 0
mov dword [rsp + 0x6c], 0
call sub.msvcrt.dll_getenv
test rax, rax
je 0x140058480
mov qword [rsp + 0x20], r15
mov r9, rbp
mov edx, 0x40
mov rcx, rdi
lea r8, str._s__s
call fcn.140085d40
mov rax, qword [rsp + 0x98]
sub rax, qword [r12]
jne 0x140058505
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15, [0x1400efd7e]
jle 0x1400583fe
mov rax, qword [sym.imp.msvcrt.dll__tzname]
mov r15, qword [rax + 8]
jmp 0x1400583fe
mov dword [rsp + 0x3c], 0
mov r14, qword [sym.imp.msvcrt.dll__mbsinc]
cmp dword [rsp + 0x3c], 5
setle r13b
jmp 0x1400584b7
test r13b, r13b
je 0x1400584c2
mov rcx, rsi
add ebx, 1
call r14
sub rax, r15
cmp eax, ebx
jle 0x1400584e8
mov ebx, eax
movsxd rsi, ebx
add rsi, r15
cmp byte [rsi], 0
jne 0x1400584a0
mov eax, dword [rsp + 0x3c]
lea rdx, [rsp + 0x69]
mov r15, rdx
cmp eax, 1
jle 0x1400584d9
movsxd r15, eax
add r15, rdx
mov byte [r15], 0
mov r15, rdx
jmp 0x14005841f
movzx eax, byte [rsi]
lea ecx, [rax - 0x41]
cmp cl, 0x19
ja 0x14005848f
movsxd rcx, dword [rsp + 0x3c]
mov byte [rsp + rcx + 0x69], al
lea eax, [rcx + 1]
mov dword [rsp + 0x3c], eax
jmp 0x14005848f
call fcn.140082d70
mov ecx, 0x10
call fcn.1400a4030
lea rdx, str.asctime_s___failed
mov rcx, rax
mov rbx, rax
call fcn.14009cfd0
lea r8, [fcn.14009d1a0]
lea rdx, str.P__t_
mov rcx, rbx
call fcn.1400a45f0
mov rsi, rax
mov rcx, rbx
call fcn.1400a4350
mov rcx, rsi
call fcn.1400848e0
nop
Function at 0x140064970
Capabilities:
Check os version
Connect to wmi namespace via wbemlocator

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x108
mov rdi, qword [0x1400f6e30]
mov rax, qword [rdi]
mov qword [rsp + 0xf8], rax
xor eax, eax
cmp byte [0x140127120], 0
mov rsi, rcx
je 0x140064b10
mov eax, dword [0x1400a66f0]
xor ebx, ebx
cmp eax, 1
jbe 0x1400649d8
mov rax, qword [rsp + 0xf8]
sub rax, qword [rdi]
jne 0x140064b7e
mov eax, ebx
add rsp, 0x108
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [rsp + 0x50]
lea r9, [0x1400f0b40]
xor edx, edx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x20], rax
mov r8d, 1
lea rcx, [0x1400f0b50]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140064b48
mov dword [rsp + 0x60], 0x94
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ebx, eax
test eax, eax
je 0x140064a35
xor ebx, ebx
cmp dword [rsp + 0x70], 2
je 0x140064b50
mov r12, qword [rsp + 0x50]
mov rcx, qword [rsi]
mov rax, qword [r12]
mov r13, qword [rax + 0x18]
test rcx, rcx
je 0x140064a57
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsi], 0
lea rcx, [rsp + 0x58]
lea rdx, [0x1400f0b20]
call fcn.140064650
mov rbp, qword [rsp + 0x58]
mov qword [rsp + 0x40], rsi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x38], 0
mov rcx, r12
mov qword [rsp + 0x30], 0
mov rdx, rbp
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], 0
call r13
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.OLEAUT32.dll_SysFreeString]
test ebx, ebx
js 0x140064b48
mov rcx, qword [rsi]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xa
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov ebx, 1
test eax, eax
js 0x140064b30
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400649b0
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x1400649b0
mov byte [0x140127120], 1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov dword [0x1400a66f0], eax
jmp 0x1400649a9
mov rcx, qword [rsi]
test rcx, rcx
je 0x140064b48
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsi], 0
nop dword [rax]
xor ebx, ebx
jmp 0x140064af1
cmp dword [rsp + 0x64], 5
mov ebx, pe_nt_image_headers64
ja 0x140064a35
mov ebx, 0
jne 0x140064a35
mov eax, dword [rsp + 0x68]
xor ebx, ebx
test eax, eax
setne bl
shl ebx, 7
jmp 0x140064a35
call fcn.140082d70
mov rbx, rax
jmp 0x140064b94
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140064ba4
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rbx
call fcn.1400848e0
nop
nop
nop
Function at 0x140064fb0
Capabilities:
Get storage device properties

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rsi, qword [0x1400f6e30]
mov r9d, 0xc
mov rax, qword [rsi]
mov qword [rsp + 0x58], rax
xor eax, eax
lea rdi, [rdx + 8]
mov r10, rcx
mov rcx, rdx
and rdi, 0xfffffffffffffff8
mov byte [rsp + 0x50], 0
mov rbx, rdx
lea r8, [rsp + 0x48]
mov qword [rsp + 0x48], 0
sub rcx, rdi
add ecx, 0x100
mov qword [rdx], 0
mov qword [rdx + 0xf8], 0
shr ecx, 3
rep stosq qword [rdi], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rdx
mov rcx, r10
mov edx, 0x2d1400
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0x100
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rdx, qword [0x1400f6fb0]
test eax, eax
mov rax, qword [0x1400f6f00]
movzx eax, byte [rax]
je 0x1400650e0
or al, byte [rdx]
cmp al, 1
jbe 0x1400650c7
mov r9d, dword [rbx + 0x14]
cmp byte [rbx + 0xa], 0
lea rdx, [0x1400f0bd4]
lea rax, [0x1400f0bd8]
mov r8d, dword [rbx + 0x10]
cmovne rax, rdx
lea rcx, [0x1400f0bdb]
mov r11d, dword [rbx + 0x1c]
mov rdx, r9
add r9, rbx
test edx, edx
mov rdx, r8
cmove r9, rcx
add r8, rbx
test edx, edx
mov edx, dword [rbx + 0xc]
cmove r8, rcx
mov dword [rsp + 0x28], r11d
mov r10, rdx
mov qword [rsp + 0x20], rax
add rdx, rbx
test r10d, r10d
cmove rdx, rcx
lea rcx, str.__IOCTL_STORAGE_QUERY_PROPERTY_returns:_n____Vendor:_____s__n____Product:____s__n____Revision:___s__n____Removable:__s_n____BusType:___0x_02x_n
call fcn.140002a70
xor eax, eax
mov rdx, qword [rsp + 0x58]
sub rdx, qword [rsi]
jne 0x14006510d
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
or al, byte [rdx]
cmp al, 1
jbe 0x1400650fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__IOCTL_STORAGE_QUERY_PROPERTY_failed__Error_u_n
mov edx, eax
call fcn.140002a70
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x28
mov eax, 0xffffffff
jmp 0x1400650c9
call fcn.140082d70
nop
nop
nop word cs:[rax + rax]
nop
Function at 0x14006c010
Capabilities:
Check if file exists

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov rdi, qword [0x1400f6e30]
mov r8d, 5
lea rdx, str._dev_
mov rax, qword [rdi]
mov qword [rsp + 0x78], rax
xor eax, eax
mov rax, qword [rcx]
mov rbx, rcx
mov dword [rsp + 0x44], 0xffffffff
mov dword [rsp + 0x48], 0xffffffff
mov rax, qword [rax - 0x18]
mov dword [rsp + 0x4c], 0xffffffff
mov rsi, qword [rcx + rax + 0x10]
mov rcx, rsi
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x14006c07e
lea rbp, [rsi + 5]
mov rcx, rbp
call fcn.140064f40
test eax, eax
cmovs rsi, rbp
lea rax, [rsp + 0x4c]
lea r9, [rsp + 0x48]
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x44]
lea rdx, str.csmi_u__u_n
call fcn.1400934c0
test eax, eax
js 0x14006c0b3
mov rcx, rsi
call sub.msvcrt.dll_strlen
cmp dword [rsp + 0x4c], eax
je 0x14006c0e8
mov rax, qword [rbx]
mov edx, 0x16
add rbx, qword [rax - 0x18]
mov rcx, rbx
call fcn.140022610
mov rdx, qword [rsp + 0x78]
sub rdx, qword [rdi]
jne 0x14006c1f5
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r9d, dword [rsp + 0x44]
cmp r9d, 9
ja 0x14006c0b3
cmp dword [rsp + 0x48], 0x1f
ja 0x14006c0b3
lea rbp, [rsp + 0x50]
lea r8, str..Scsi_u:
mov edx, 0x1d
mov rcx, rbp
call fcn.140085d40
xor r9d, r9d
mov edx, 0xc0000000
mov rcx, rbp
mov qword [rsp + 0x30], 0
mov r8d, 3
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14006c17c
mov rax, qword [0x1400f6fb0]
cmp byte [rax], 1
jbe 0x14006c167
mov rdx, rbp
lea rcx, str.__s:_successfully_opened_n
call fcn.140002a70
mov eax, dword [rsp + 0x48]
mov qword [rbx + 8], rsi
mov dword [rbx + 0x10], eax
mov eax, 1
jmp 0x14006c0c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14006c1d0
mov rdx, qword [rbx]
add rbx, qword [rdx - 0x18]
mov rcx, rbx
cmp eax, 5
je 0x14006c1b5
mov dword [rsp + 0x20], eax
mov r9, rbp
mov edx, 5
lea r8, str._s:_Error_ld
call fcn.140022760
xor eax, eax
jmp 0x14006c0c7
mov r9, rbp
lea r8, str._s:_access_denied
mov edx, 0xd
call fcn.140022760
xor eax, eax
jmp 0x14006c0c7
mov rax, qword [rbx]
mov r9, rbp
mov edx, 2
lea r8, str._s:_not_found
add rbx, qword [rax - 0x18]
mov rcx, rbx
call fcn.140022760
xor eax, eax
jmp 0x14006c0c7
call fcn.140082d70
nop
nop
nop dword [rax]
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.14006c010
test al, al
jne 0x14006c218
xor eax, eax
jmp 0x14006c248
mov rax, qword [rbx]
mov r9d, dword [rbx + 0x10]
mov rcx, qword [rax - 0x38]
add rcx, rbx
cmp r9d, 0x1f
jbe 0x14006c250
mov rax, qword [rcx]
lea r8, str.Invalid_port_number__d
mov edx, 0x16
add rcx, qword [rax - 0x18]
call fcn.140022760
test al, al
je 0x14006c25c
add rsp, 0x20
pop rbx
ret
mov edx, r9d
call fcn.14006bc20
test al, al
jne 0x14006c248
mov rax, qword [rbx]
lea rdx, [0x140064ed0]
mov rax, qword [rax + 0x28]
cmp rax, rdx
jne 0x14006c290
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x14006c211
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
xor eax, eax
jmp 0x14006c248
mov rcx, rbx
call rax
xor eax, eax
jmp 0x14006c248
Function at 0x1400748a0
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 0x1400749a2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14007497a
add rax, 1
cmp rax, 0x6b
je 0x140074997
cmp byte [rcx + rax], 0
jne 0x140074970
movsxd rdx, eax
cmp eax, 0x6a
je 0x140074997
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 0x14007498b

Function at 0x140074d40
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140127230], 1
je 0x140074db8
lea rdi, [0x140127230]
mov rcx, rdi
call fcn.140074620
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140077460
mov esi, dword [0x140127230]
test esi, esi
jne 0x140074dc8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400a6738], eax
cmp eax, 0xffffffff
je 0x1400a4b26
mov dword [0x140127230], 1
mov rcx, rbp
call fcn.140077750
test rbx, rbx
je 0x140074db8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1400749c0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140074d98
mov ecx, 2
call qword [fcn.1400928f0]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140074d98
Function at 0x140074df0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.140074ad0
cmp qword [0x14012a048], 0
mov rbx, rax
je 0x140074f08
test rax, rax
je 0x140074f08
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.1400786d0
cmp eax, 1
je 0x140074f16
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.1400a4b2c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400a6738]
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 0x140074f1c
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.1400748a0
nop
jmp fcn.1400a4b2c

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

Disassembly:
sub rsp, 0x28
call fcn.140074d40
mov ecx, dword [0x1400a6738]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140074f50
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140074df0

Function at 0x140075cd0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140074d40
mov ecx, dword [0x1400a6738]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140075cf8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140074df0
test rax, rax
jne 0x140075cea
add rsp, 0x28
ret

Function at 0x140075ea0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140127238]
test eax, eax
jne 0x140075eb8
xor eax, eax
add rsp, 0x28
ret
call fcn.140074d40
mov ecx, dword [0x1400a6738]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140075ee8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x140075eae
test byte [rax + 0x40], 3
je 0x140075eae
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140075eb0
call fcn.140074df0
test rax, rax
jne 0x140075ece
jmp 0x140075eae

Function at 0x140075f00
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140074d40
mov ecx, dword [0x1400a6738]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140075f40
test ebx, ebx
jle 0x140075f30
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.140074df0
test rax, rax
jne 0x140075f1d
add rsp, 0x20
pop rbx
ret
Function at 0x140076030
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140074d40
mov ecx, dword [0x1400a6738]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400760a8
test byte [rbx + 0x40], 0xc
jne 0x14007605f
mov eax, dword [0x140127238]
test eax, eax
jne 0x140076070
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140077460
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140076093
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140076093
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400760bc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140077750
call fcn.140074df0
mov rbx, rax
test rax, rax
jne 0x14007604f
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 0x1400760da
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140077750
call fcn.140075f50
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140076160
call fcn.140077210
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140076198
call fcn.140074d40
mov ecx, dword [0x1400a6738]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400761f0
test esi, esi
je 0x140076176
call fcn.140076030
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400761d0
mov edx, edi
call fcn.1400772c0
call fcn.140076030
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140074d40
mov ecx, dword [0x1400a6738]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400761e0
call fcn.140076030
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140076030
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140074d40
mov ecx, dword [0x1400a6738]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140076135
call fcn.140074df0
mov rbx, rax
jmp 0x140076135
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14007614e
call fcn.140074df0
jmp 0x140076176
call fcn.140074df0
mov rbx, rax
jmp 0x140076131
Function at 0x140083c00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400f6d60]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140083c1f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140083c28
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140083c1f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1400a43a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400a6a20]
jmp 0x140084cd0
Function at 0x6da2d2b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6da4e5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6da2d438
mov rax, qword [0x6da4e5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6da2d2fc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6da2d385
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6da2d2e0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6da2d46d
mov rax, qword [0x6da4e5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6da4e5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6da2d450
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6da2d37e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6da2d3e0
add dword [0x6da4e5e4], 1
cmp edi, 8
jae 0x6da2d3b3
test dil, 4
jne 0x6da2d424
test edi, edi
je 0x6da2d3a8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6da2d43f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6da2d3a8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6da2d3cc
jmp 0x6da2d3a8
add rsi, qword [0x6da4e5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6da2d37e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6da2d3a8
xor esi, esi
jmp 0x6da2d307
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6da2d3a8
mov rax, qword [0x6da4e5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6da2dbc0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6da4e8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6da4e8a0]
test rbx, rbx
je 0x6da2dc14
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6da2dc0b
test rsi, rsi
je 0x6da2dc0b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6da2dbf0
lea rcx, [0x6da4e8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]