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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xa0]
mov rbx, rax
mov qword [rsp + 0x80], rcx
mov rdi, r9
mov dword [rsp + 0x88], edx
test r9, r9
je 0x70d500
and edx, 4
je 0x70d3c8
cmp r8d, 1
ja 0x70d535
cmp dword [r9], 0xd
jne 0x70d535
mov r10d, dword [rsp + 0xb0]
test r10d, r10d
jne 0x70d508
mov qword [rsp + 0x28], rax
mov edx, dword [rsp + 0x88]
mov r8, rdi
mov r9d, 1
mov qword [rsp + 0x20], rsi
mov rcx, qword [rsp + 0x80]
call fcn.0070d140
test eax, eax
js 0x70d52a
add eax, dword [rsp + 0xb0]
mov r12d, eax
mov eax, r12d
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r14, qword [sym.imp.msvcrt.dll__assert]
xor r12d, r12d
lea r13, str.topology_synthetic.c
nop dword [rax]
mov r15, rdi
lea rbp, str.numanode__arity__1
nop word [rax + rax]
cmp dword [r15], 0xd
je 0x70d42e
cmp dword [r15 + 0x68], 1
je 0x70d40c
mov r8d, 0x559
mov rdx, r13
mov rcx, rbp
call r14
mov r15, qword [r15 + 0x90]
test r15, r15
jne 0x70d3f0
mov r8d, 0x55c
mov rdx, r13
lea rcx, str.numanode
call qword [sym.imp.msvcrt.dll__assert]
mov r8d, dword [rsp + 0xb0]
test r8d, r8d
jne 0x70d4e0
cmp rbx, 1
jle 0x70d456
mov edx, 0x5b
add rsi, 1
sub rbx, 1
mov word [rsi - 1], dx
mov qword [rsp + 0x28], rbx
mov r8, r15
add r12d, 1
mov edx, dword [rsp + 0x88]
mov qword [rsp + 0x20], rsi
mov rcx, qword [rsp + 0x80]
mov r9d, 0xffffffff
call fcn.0070d140
test eax, eax
js 0x70d52a
add r12d, eax
cdqe
cmp rax, rbx
jl 0x70d49d
test rbx, rbx
jle 0x70d4a3
lea eax, [rbx - 1]
cdqe
add rsi, rax
sub rbx, rax
cmp rbx, 1
jle 0x70d4ba
mov eax, 0x5d
add rsi, 1
sub rbx, 1
mov word [rsi - 1], ax
mov rdi, qword [rdi + 0x58]
add r12d, 1
mov dword [rsp + 0xb0], 1
test rdi, rdi
jne 0x70d3e0
jmp 0x70d3b1
cmp rbx, 1
jle 0x70d4f7
mov ecx, 0x20
add rsi, 1
sub rbx, 1
mov word [rsi - 1], cx
add r12d, 1
jmp 0x70d43f
xor r12d, r12d
jmp 0x70d3b1
cmp rax, 1
jle 0x70d378
mov r9d, 0x20
add rsi, 1
sub rax, 1
mov word [rsi - 1], r9w
jmp 0x70d378
mov r12d, 0xffffffff
jmp 0x70d3b1
mov r11d, dword [rsp + 0xb8]
test r11d, r11d
jne 0x70d559
call qword [sym.imp.msvcrt.dll__errno]
mov r12d, 0xffffffff
mov dword [rax], 0x16
jmp 0x70d3b1
mov ecx, 2
call qword [fcn.00745b20]
mov r8d, 0x5d
mov edx, 1
lea rcx, str.Cannot_export_to_synthetic_v1_if_multiple_memory_children_are_attached_to_the_same_location._n
mov r9, rax
call sub.msvcrt.dll_fwrite
jmp 0x70d542

Function at 0x70db20
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov eax, dword [0x00c814d8]
test eax, eax
je 0x70db40
mov eax, dword [0x00c814d4]
add rsp, 0x28
ret
lea rcx, str.HWLOC_LIBXML
call sub.msvcrt.dll_getenv
mov rcx, rax
test rax, rax
je 0x70db80
call sub.msvcrt.dll_atoi
test eax, eax
sete al
movzx eax, al
mov dword [0x00c814d4], eax
mov dword [0x00c814d8], 1
add rsp, 0x28
ret
lea rcx, str.HWLOC_LIBXML_IMPORT
call sub.msvcrt.dll_getenv
mov rcx, rax
mov eax, dword [0x00c814d4]
test rcx, rcx
jne 0x70db54
jmp 0x70db67
Function at 0x70dba0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov eax, dword [0x00c814d0]
test eax, eax
je 0x70dbc0
mov eax, dword [0x00c814cc]
add rsp, 0x28
ret
lea rcx, str.HWLOC_LIBXML
call sub.msvcrt.dll_getenv
mov rcx, rax
test rax, rax
je 0x70dc00
call sub.msvcrt.dll_atoi
test eax, eax
sete al
movzx eax, al
mov dword [0x00c814cc], eax
mov dword [0x00c814d0], 1
add rsp, 0x28
ret
lea rcx, str.HWLOC_LIBXML_EXPORT
call sub.msvcrt.dll_getenv
mov rcx, rax
mov eax, dword [0x00c814cc]
test rcx, rcx
jne 0x70dbd4
jmp 0x70dbe7
Function at 0x70ff00
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
mov eax, dword [0x00c814e0]
test eax, eax
je 0x70ff20
mov eax, dword [0x00c814dc]
add rsp, 0x28
ret
lea rcx, str.HWLOC_XML_VERBOSE
call sub.msvcrt.dll_getenv
mov rcx, rax
mov eax, dword [0x00c814dc]
test rcx, rcx
je 0x70ff45
call sub.msvcrt.dll_atoi
mov dword [0x00c814dc], eax
mov dword [0x00c814e0], 1
add rsp, 0x28
ret
Function at 0x716c20
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
cmp byte [rcx], 0x2d
mov qword [rsp + 0xb0], r8
mov r14, rcx
mov r13, rdx
jne 0x716c52
cmp byte [rcx + 1], 0
lea rax, str._dev_stdin
cmove r14, rax
lea rdx, [0x009619aa]
mov rcx, r14
call sub.msvcrt.dll_fopen
mov r12, rax
test rax, rax
je 0x716d5a
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.0073b9c0
test eax, eax
je 0x716d28
mov ecx, 0x1001
mov r15d, 0x1000
call sub.msvcrt.dll_malloc
mov r14, rax
test rax, rax
je 0x716d69
movabs rdi, 0x7fffffffffffffff
mov rsi, r15
xor ebx, ebx
jmp 0x716cd5
lea rbp, [rsi + rsi]
mov rcx, r14
lea rdx, [rbp + 1]
call sub.msvcrt.dll_realloc
test rax, rax
je 0x716d61
and rsi, rdi
mov r14, rax
mov r15, rsi
mov rsi, rbp
lea rcx, [r14 + rbx]
mov r9, r12
mov r8, r15
mov edx, 1
call sub.msvcrt.dll_fread
add rbx, rax
mov byte [r14 + rbx], 0
cmp r15, rax
je 0x716cb0
mov rcx, r12
add rbx, 1
call fcn.007453d8
mov rax, qword [rsp + 0xb0]
mov qword [r13], r14
mov qword [rax], rbx
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, word [rsp + 0x26]
mov ecx, 0x1001
mov r15d, 0x1000
and ax, 0xf000
cmp ax, 0x8000
jne 0x716c8d
mov eax, dword [rsp + 0x34]
lea r15d, [rax + 1]
movsxd r15, r15d
lea rcx, [r15 + 1]
jmp 0x716c8d
mov eax, 0xffffffff
jmp 0x716d13
mov rcx, r14
call fcn.00745380
mov rcx, r12
call fcn.007453d8
mov eax, 0xffffffff
jmp 0x716d13

Function at 0x719af0
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x50
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [0x008b9068]
mov eax, dword [rsp + 0x40]
cmp ebx, 1
jbe 0x719b33
mov rdx, qword [0x00c81558]
mov eax, ebx
shl eax, 6
test rdx, rdx
je 0x719b33
lea ecx, [rbx - 1]
sub ebx, 1
movzx ecx, cx
shl ebx, 6
call rdx
movzx eax, ax
add eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x71d1c0
Capabilities:
Encode data using base64

Disassembly:
push rbp
push rdi
push rsi
push rbx
mov r11, rdx
cmp rdx, 2
jbe 0x71d355
movzx ebx, byte [rcx]
movzx esi, byte [rcx + 2]
lea r10, [rcx + 3]
sub r11, 3
movzx eax, byte [rcx + 1]
mov edi, ebx
mov edx, esi
shl ebx, 4
and esi, 0x3f
shr dl, 6
mov ecx, eax
shl eax, 2
and ebx, 0x30
shr cl, 4
and eax, 0x3c
shr dil, 2
add ecx, ebx
add edx, eax
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov eax, 4
cmp r9, 3
ja 0x71d268
jmp 0x71d340
movzx ecx, byte [r10]
add r10, 3
add rax, 4
sub r11, 3
movzx edx, byte [r10 - 2]
movzx esi, byte [r10 - 1]
mov edi, ecx
shl ecx, 4
mov ebp, edx
and ecx, 0x30
shl edx, 2
shr bpl, 4
and edx, 0x3c
shr dil, 2
add ecx, ebp
mov ebp, esi
and esi, 0x3f
shr bpl, 6
add edx, ebp
cmp r9, rax
jb 0x71d340
and ecx, 0x7f
and edx, 0x7f
and edi, 0x3f
movzx ecx, byte [rbx + rcx]
movzx edi, byte [rbx + rdi]
mov byte [r8 + rax - 3], cl
movzx ecx, byte [rbx + rdx]
mov rdx, rsi
and edx, 0x3f
mov byte [r8 + rax - 4], dil
movzx edx, byte [rbx + rdx]
mov byte [r8 + rax - 2], cl
mov byte [r8 + rax - 1], dl
cmp r11, 2
ja 0x71d220
test r11, r11
jne 0x71d2c0
cmp rax, r9
jae 0x71d340
mov byte [r8 + rax], 0
pop rbx
pop rsi
pop rdi
pop rbp
ret
movzx edx, byte [r10]
cmp r11, 2
jne 0x71d34a
movzx ecx, byte [r10 + 1]
mov ebx, ecx
shl ecx, 2
shr bl, 4
and ecx, 0x3c
mov r10d, edx
shl edx, 4
lea rsi, [rax + 4]
and edx, 0x30
shr r10b, 2
add edx, ebx
cmp rsi, r9
ja 0x71d340
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
and r10d, 0x3f
and edx, 0x7f
movzx edx, byte [rbx + rdx]
movzx r10d, byte [rbx + r10]
mov byte [r8 + rax + 1], dl
lea rdx, [r8 + rax + 2]
mov byte [r8 + rax], r10b
add rax, 3
cmp r11, 1
je 0x71d350
movzx ecx, cl
movzx ecx, byte [rbx + rcx]
mov byte [rdx], cl
mov byte [r8 + rax], 0x3d
mov rax, rsi
jmp 0x71d2aa
mov eax, 0xffffffff
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ecx, ecx
xor ebx, ebx
jmp 0x71d2de
mov byte [rdx], 0x3d
jmp 0x71d32e
mov r10, rcx
xor eax, eax
jmp 0x71d2a5
Function at 0x720460
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x820
mov r12, rcx
mov rbx, rdx
test rcx, rcx
je 0x72061d
test rdx, rdx
je 0x72061d
mov r10, qword [rcx]
test r10, r10
je 0x72061d
mov r9d, dword [rdx + 0x18]
mov r11, qword [rdx]
lea r13, [rsp + 0x20]
mov ecx, pe_nt_image_headers64
mov rdi, r13
mov eax, r9d
shl rax, 0xa
lea rsi, [r11 + rax - 0x400]
rep movsq qword [rdi], qword [rsi]
mov ecx, dword [rdx + 0x1c]
cmp ecx, 1
jbe 0x720569
cmp ecx, 3
jbe 0x720630
lea eax, [rcx - 4]
lea r14d, [r9 + r9 - 1]
mov edi, 3
and eax, 0xfffffffe
lea r15d, [rax + 5]
mov esi, r14d
add r14d, r9d
mov rax, r13
xor edx, edx
mov r8d, r14d
shl rsi, 0xa
shl r8, 0xa
add rsi, r11
add r8, r11
nop dword [rax]
movdqu xmm0, xmmword [rsi + rdx]
movdqu xmm1, xmmword [rsi + rdx + 0x10]
add rax, 0x20
pxor xmm0, xmmword [rax - 0x20]
pxor xmm1, xmmword [rax - 0x10]
movaps xmmword [rax - 0x20], xmm0
movaps xmmword [rax - 0x10], xmm1
movdqu xmm2, xmmword [r8 + rdx + 0x10]
movdqu xmm3, xmmword [r8 + rdx]
add rdx, 0x20
pxor xmm1, xmm2
pxor xmm0, xmm3
movaps xmmword [rax - 0x20], xmm0
movaps xmmword [rax - 0x10], xmm1
cmp rdx, 0x400
jne 0x720508
lea eax, [rdi + 2]
add r14d, r9d
cmp eax, r15d
je 0x720635
mov edi, eax
jmp 0x7204e5
lea r8, [rsp + 0x420]
mov rdi, r8
mov ecx, pe_nt_image_headers64
mov rsi, r13
mov edx, dword [r12 + 8]
rep movsq qword [rdi], qword [rsi]
mov r9d, 0x400
mov rcx, r10
lea r14, [rsp + 0x420]
mov r8, r14
call fcn.00723ce0
mov r9d, dword [0x00c81570]
test r9d, r9d
je 0x7205cf
mov edx, 0x400
mov rcx, r13
call fcn.00720410
mov r8d, dword [0x00c81570]
test r8d, r8d
je 0x7205cf
mov edx, 0x400
mov rcx, r14
call fcn.00720410
mov ecx, dword [rbx + 0x28]
test ecx, ecx
jne 0x720681
mov r13d, dword [rbx + 0x10]
mov edx, dword [0x00c81570]
mov rcx, qword [rbx]
shl r13d, 0xa
mov r13d, r13d
test edx, edx
je 0x7205ff
test rcx, rcx
je 0x7205ff
mov rdx, r13
call fcn.00720410
mov eax, dword [rbx + 0x2c]
test eax, eax
jne 0x72061d
mov rax, qword [r12 + 0x68]
mov rcx, qword [rbx]
test rax, rax
je 0x720694
mov rdx, r13
call rax
nop
add rsp, 0x820
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
mov edi, 1
add edi, 1
lea r8, [rsp + 0x420]
mov esi, edi
imul esi, r9d
sub esi, 1
mov edx, esi
mov rax, r13
shl rdx, 0xa
add rdx, r11
nop dword [rax]
movdqu xmm0, xmmword [rdx]
pxor xmm0, xmmword [rax]
add rax, 0x10
add rdx, 0x10
movaps xmmword [rax - 0x10], xmm0
cmp r8, rax
jne 0x720658
add esi, r9d
cmp ecx, edi
jbe 0x720571
add edi, 1
jmp 0x720649
mov edx, dword [r12 + 8]
mov rcx, qword [r12]
call fcn.007220c0
jmp 0x7205da
call fcn.00745380
jmp 0x72061d

Function at 0x720fc0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
nop word [rax + rax]
movdqu xmm0, xmmword [rcx + rax]
movdqu xmm1, xmmword [rdx + rax]
pxor xmm0, xmm1
movups xmmword [rcx + rax], xmm0
add rax, 0x10
cmp rax, 0x400
jne 0x720fc8
ret
Function at 0x737870
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.00745b20
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00745b20
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x7378e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00d01b54]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x737a88
mov rax, qword [0x00d01b58]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x73792c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x7379b7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x737910
mov rcx, r12
call fcn.00738640
mov rbp, rax
test rax, rax
je 0x737ac2
mov rax, qword [0x00d01b58]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.00738770
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00d01b58]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x737ad1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x7379b0
sub eax, 4
and eax, 0xfffffffb
jne 0x737a40
add dword [0x00d01b54], 1
cmp ebx, 8
jae 0x7379e8
test bl, 4
jne 0x737a90
test ebx, ebx
je 0x7379d9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x737ab0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x7379d9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x737a1a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00d01b58]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x7379b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00737870
nop dword [rax]
xor edi, edi
jmp 0x737937
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x7379d9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x7379d9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00737870
mov rax, qword [0x00d01b58]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.00737870
nop
nop dword [rax]
Function at 0x7382b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00d01e40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00d01e20]
test rbx, rbx
je 0x738304
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x7382fb
test r12, r12
je 0x7382fb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x7382e0
lea rcx, [0x00d01e40]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x738640
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x009696d0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x7386b9
mov rcx, r10
call fcn.00738510
test eax, eax
je 0x7386b9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x7386b6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x7386ad
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x7386b9
add r8, 0x28
cmp r8, r9
jne 0x738698
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x7397d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x138
mov r12, rcx
call sub.msvcrt.dll__errno
mov dword [rax], 0
test r12, r12
je 0x7399c0
cmp byte [r12], 0
je 0x7399a0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x7399d0
test al, 0x10
je 0x7399a0
lea rsi, [rsp + 0x20]
mov r8d, 0x104
mov rdx, r12
mov rcx, rsi
mov rbx, rsi
call sub.msvcrt.dll__fullpath
mov edx, dword [rbx]
add rbx, 4
lea eax, [rdx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x739831
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea rdx, [rbx + 2]
cmove rbx, rdx
mov edi, eax
add dil, al
sbb rbx, 3
sub rbx, rsi
lea rcx, [rbx + 0x24b]
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x7399fd
lea rdx, [rax + 0x244]
lea rax, [rbx + 1]
cmp eax, 8
jb 0x739938
mov rcx, qword [rsp + 0x20]
lea rdi, [r12 + 0x24c]
and rdi, 0xfffffffffffffff8
mov qword [r12 + 0x244], rcx
mov ecx, eax
mov r8, qword [rsi + rcx - 8]
mov qword [rdx + rcx - 8], r8
mov rcx, rdx
sub rcx, rdi
sub rsi, rcx
add ecx, eax
shr ecx, 3
rep movsq qword [rdi], qword [rsi]
cmp byte [r12 + 0x244], 0
jne 0x739968
add rbx, rdx
mov eax, 0x2a
lea rdx, [r12 + 0x130]
mov ecx, 0x20
mov word [rbx], ax
mov rdi, rdx
xor eax, eax
mov qword [r12 + 0x238], 0xffffffffffffffff
mov dword [r12 + 0x240], 0
mov qword [r12 + 0x128], 0
rep stosq qword [rdi], rax
mov dword [rdi], 0
mov rax, r12
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop r12
ret
test al, 4
jne 0x7399e8
test eax, eax
je 0x7398cb
movzx ecx, byte [rsi]
mov byte [rdx], cl
test al, 2
je 0x7398cb
mov ecx, eax
movzx r8d, word [rsi + rcx - 2]
mov word [rdx + rcx - 2], r8w
jmp 0x7398cb
movzx ecx, byte [r12 + rbx + 0x243]
add rbx, rdx
cmp cl, 0x5c
je 0x7398dd
cmp cl, 0x2f
je 0x7398dd
mov ecx, 0x5c
mov word [rbx], cx
lea rbx, [rdx + rax]
jmp 0x7398dd
call sub.msvcrt.dll__errno
xor r12d, r12d
mov dword [rax], 0x14
mov rax, r12
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop r12
ret
call sub.msvcrt.dll__errno
mov dword [rax], 0xe
jmp 0x739924
call sub.msvcrt.dll__errno
xor r12d, r12d
mov dword [rax], 2
jmp 0x739924
mov ecx, dword [rsi]
mov dword [rdx], ecx
mov ecx, eax
mov r8d, dword [rsi + rcx - 4]
mov dword [rdx + rcx - 4], r8d
jmp 0x7398cb
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
jmp 0x739924
Function at 0x747cb0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x008b92d8], eax
cmp eax, 0xffffffff
je 0x8b2380
add rsp, 0x28
ret
call sub.msvcrt.dll_abort
nop

Function at 0x748310
Capabilities:
Print debug messages

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, rcx
test rcx, rcx
je 0x748335
call fcn.00747b70
cmp eax, 1
je 0x748342
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
ret
lea r12, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
mov rdi, r12
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
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 0x7483c8
mov eax, 0x28
jmp 0x74839a
add rax, 1
cmp rax, 0x6b
je 0x7483ba
cmp byte [r12 + rax], 0
mov edx, eax
jne 0x748390
cmp eax, 0x6a
je 0x7483ba
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
jmp 0x7483a8

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

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x00d02940], 1
je 0x7483e7
call fcn.00748280
mov ecx, dword [0x008b92d8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x748410
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
call fcn.007481b0
cmp qword [0x00d08050], 0
mov rbx, rax
je 0x7483fb
test rax, rax
je 0x7483fb
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.00748310
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rdi
mov dword [rsp + 0x30], 2
mov r8, rsi
mov rdx, r12
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 0x8b2386
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x008b92d8]
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 0x8b2386
mov r12, rbx
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
call sub.msvcrt.dll_abort
nop
Function at 0x749af0
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
mov rbp, r9
call fcn.007481b0
mov r12, rax
test rax, rax
je 0x749d60
test rdi, rdi
je 0x749b2a
mov rax, qword [rax + 0x1d8]
mov qword [rdi], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [r12 + 8], rbp
mov dword [r12 + 0x44], 1
mov rbp, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [r12 + 0xbc], 0
mov r14, r13
mov qword [r12 + 0x28], 0xffffffffffffffff
mov qword [r12 + 0x10], rbx
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call rbp
mov qword [r12 + 0x30], rax
test rax, rax
jne 0x749ba0
test ebx, ebx
je 0x749b98
mov ecx, 0x14
call r14
cmp ebx, 4
je 0x749ba0
add ebx, 1
jmp 0x749b65
xor ecx, ecx
call r13
jmp 0x749b8f
mov qword [r12 + 0x38], 0xffffffffffffffff
lea r14, [r12 + 0x68]
mov rcx, r14
call fcn.00748310
cmp qword [r12 + 0x30], 0
mov dword [r12], 0xbab1f00d
mov dword [r12 + 0xc0], 0
mov dword [r12 + 0xb8], 0
je 0x749d0c
xor edx, edx
test rsi, rsi
je 0x749c06
mov eax, dword [rsi]
mov edx, dword [rsi + 0x10]
mov dword [r12 + 0x44], eax
test al, 8
jne 0x749d38
mov eax, dword [rsi + 0x18]
mov dword [r12 + 0xc0], eax
lea r8, [0x00748880]
mov r9, r12
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov r13, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x749cd8
mov eax, dword [r12 + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x749cb0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [r12 + 0x44], 4
jne 0x749c90
mov qword [r12 + 0x28], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov qword [r12 + 0x28], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x749c76
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x749c4c
mov edx, 0xf
cmp eax, 0xe
jg 0x749c4c
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x749c4c
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x749ce8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r12 + 0x38]
call fcn.007479f0
mov rcx, r14
call fcn.00748310
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
test rdi, rdi
je 0x749d18
mov qword [rdi], 0
mov rcx, r12
call fcn.00747f00
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov dword [rsp + 0x3c], edx
call fcn.007483d0
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [r12 + 0xc0], eax
jmp 0x749c06
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret