joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003173c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400317b4
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400317b4
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1400317b4
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400317a8
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400317c6
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140031796
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1400317b6

Function at 0x140033300
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003334a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003334a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003334a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003334a
cmp dword [rcx + 0x84], 0xe
jbe 0x14003334a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003334c
xor al, al
add rsp, 0x28
ret

Function at 0x14003c094
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003bdf8

Function at 0x140045fb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140045fd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140045fd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x138e15c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x138e166
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x138e18f
pop rbp
sub rbp, 0x33
sub rbp, 0xf8e15c
sub rsp, 0x20
jmp 0x138e1ae
mov rax, 0xf8e15c
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffcfa84110
xor byte [rax], dl
inc rax
dec rcx
jne 0x138e1cd
jmp 0x138e1e4
pop rax
cdq
stc
wait
cdq
sub al, 0x10
adc byte [rax], dl
pop rax
xchg ecx, eax
rcr dword [rax], 1
adc dword [rax], edx
adc byte [rax + 0x11], bl
stc
pop rax
xlatb
rcr byte [rax + rdx], 1
adc byte [rax], dl
pop rax
xlatb
sar byte [rax], cl
adc byte [rax], dl
adc byte [rax - 0x19], bl
pop rax
adc ecx, edx
wait
xchg ecx, eax
sbb al, 0x10
adc byte [rax], dl
pop rax
adc eax, edi
pop rax
test al, 0xf4
invalid
Function at 0x140001cd0
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
mov rdi, rsp
mov ecx, 0x52
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x14005c008]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x14007000c]
call fcn.1400035b8
mov dword [rbp + 4], 0
lea r9, [rbp + 4]
xor r8d, r8d
xor edx, edx
mov ecx, 5
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0xc0000004
je 0x140001d49
xor al, al
jmp 0x140001ddb
mov eax, dword [rbp + 4]
mov r8d, 4
mov edx, eax
xor ecx, ecx
call fcn.140001c00
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x140001d6a
xor al, al
jmp 0x140001ddb
lea r9, [rbp + 4]
mov r8d, dword [rbp + 4]
mov rdx, qword [rbp + 0x48]
mov ecx, 5
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jge 0x140001d99
lfence
mov rcx, qword [rbp + 0x48]
call fcn.1400022c0
xor al, al
jmp 0x140001ddb
mov rdx, qword [rbp + 0x148]
mov rcx, qword [rbp + 0x48]
call qword [rbp + 0x140]
movzx eax, al
test eax, eax
jne 0x140001db3
jmp 0x140001dd0
mov rax, qword [rbp + 0x48]
mov eax, dword [rax]
mov rcx, qword [rbp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
cmp dword [rax], 0
jne 0x140001d99
mov rcx, qword [rbp + 0x48]
call fcn.1400022c0
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400134a0]
call fcn.140003544
mov rax, rdi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.1400032b0
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x140003cb0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003cfa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003cfa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003cfa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003cfa
cmp dword [rcx + 0x84], 0xe
jbe 0x140003cfa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003cfc
xor al, al
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x141130350]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x141130360]
mov dword [rax], 1
mov rax, qword [0x141130370]
mov dword [rax], 1
mov rax, qword [0x1411302b0]
cmp word [rax], 0x5a4d
jne 0x14000105e
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c8
mov rax, qword [0x141130340]
mov dword [0x14115600c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b8
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x141130430]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x141130410]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14112f710]
cmp dword [rax], 1
je 0x140001100
xor eax, eax
add rsp, 0x20
pop rbp
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x14000107b
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001118
cmp dx, 0x20b
jne 0x14000105e
cmp dword [rax + 0x84], 0xe
jbe 0x14000105e
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105e
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x20
pop rbp
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105e
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105e

Function at 0x1400014d5
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov rax, qword [rbp + 0x20]
mov qword [rbp - 8], rax
mov eax, dword [0x141126738]
mov edx, eax
mov rax, qword [rbp - 8]
mov r8d, 0x42
mov rcx, rax
call sym.xor_encrypt_decrypt_unsigned_char__unsigned_long_long__unsigned_char_
mov eax, dword [0x141126738]
mov ecx, eax
lea rdx, [rbp - 0xc]
mov rax, qword [rbp - 8]
mov r9, rdx
mov r8d, 0x40
mov rdx, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
setne al
test al, al
je 0x14000153f
mov rax, qword [rbp - 8]
call rax
jmp 0x140001580
lea rax, str.Failed_to_change_memory_protection._Error:
mov rdx, rax
mov rax, qword [0x14112fce0]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rcx, rbx
call method.std::ostream.operator___unsigned_long_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov eax, 0
add rsp, 0x38
pop rbx
pop rbp
ret
Function at 0x14000158c
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
call dbg.__main
mov eax, dword [0x141126738]
mov eax, eax
mov r9d, 4
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001617
lea rax, str.Memory_allocation_failed._Error:
mov rdx, rax
mov rax, qword [0x14112fce0]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rcx, rbx
call method.std::ostream.operator___unsigned_long_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov eax, 1
jmp 0x14000171a
mov eax, dword [0x141126738]
mov edx, eax
mov rax, qword [rbp - 8]
mov r8, rdx
lea rdx, section..data
mov rcx, rax
call sym.memcpy
mov rax, qword [rbp - 8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [sym.ExecuteShellcode_void_]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x1400016d5
lea rax, str.Thread_creation_failed._Error:
mov rdx, rax
mov rax, qword [0x14112fce0]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rcx, rbx
call method.std::ostream.operator___unsigned_long_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov rax, qword [rbp - 8]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov eax, 1
jmp 0x14000171a
mov rax, qword [rbp - 0x10]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov eax, 0
add rsp, 0x48
pop rbx
pop rbp
ret
Function at 0x14000b620
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, rcx
lea rax, [rbp + 0x28]
mov ecx, 2
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov qword [rbp - 8], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rbp - 8]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x14000b690
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
movsxd rsi, dword [0x1411560a4]
mov rbx, rcx
test esi, esi
jle 0x14000b7c0
mov rax, qword [0x1411560a8]
xor r9d, r9d
add rax, 0x18
nop dword [rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000b6db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000b763
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000b6c0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14000b7e2
mov rax, qword [0x1411560a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1411560a8]
lea rdx, [rbp - 0x30]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b7c7
mov eax, dword [rbp - 0xc]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000b75c
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000b770
add dword [0x1411560a4], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 2
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1411560a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b75c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop word [rax + rax]
xor esi, esi
jmp 0x14000b6e8
mov rax, qword [0x1411560a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14000bd70
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r13, [0x141156100]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1411560e0]
test rbx, rbx
je 0x14000bdd5
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [rbx]
call r12
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000bdcc
test eax, eax
jne 0x14000bdcc
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000bdb0
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000c010
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000c028
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000c030
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000c040
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000c08d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x14000c084
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000c08f
add rax, 0x28
cmp rax, r9
jne 0x14000c070
xor eax, eax
ret

Function at 0x14000c090
Capabilities:
Parse pe header

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14000c128
mov rdx, qword [0x1411302b0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000c116
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000c116
cmp word [rax + 0x18], 0x20b
jne 0x14000c116
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14000c128
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14000c101
add rbx, 0x28
cmp rbx, rdi
je 0x14000c128
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14000c0f8
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x14000c140
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1411302b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000c160
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000c168
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000c160
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000c1bd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000c1b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000c160
add rax, 0x28
cmp rax, r9
jne 0x14000c1a0
xor eax, eax
ret
Function at 0x14000c1c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1411302b0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000c1df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000c1e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000c1df
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000c200
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1411302b0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14000c220
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14000c228
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14000c220
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14000c270
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000c267
test rcx, rcx
je 0x14000c220
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x14000c258
xor eax, eax
ret

Function at 0x14000c280
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1411302b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000c29f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000c2a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14000c2c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1411302b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000c2e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000c2e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000c2e0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x14000c2e0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14000c334
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14000c340
add rdx, 0x28
cmp rdx, r9
jne 0x14000c320
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x14000c350
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1411302b0]
xor r8d, r8d
cmp word [r11], 0x5a4d
mov r10d, ecx
jne 0x14000c374
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
cmp dword [rcx], 0x4550
je 0x14000c380
mov rax, r8
ret
cmp word [rcx + 0x18], 0x20b
jne 0x14000c374
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x14000c374
movzx edx, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rdx, [rcx + rdx + 0x18]
test r9w, r9w
je 0x14000c374
lea ecx, [r9 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rdx + 0xc]
mov rcx, r8
cmp rax, r8
jb 0x14000c3cc
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x14000c3e0
add rdx, 0x28
cmp r9, rdx
jne 0x14000c3b8
xor r8d, r8d
mov rax, r8
ret
add rax, r11
jmp 0x14000c3f0
sub r10d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14000c3fe
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000c3d5
test r10d, r10d
jg 0x14000c3e8
mov r8d, dword [rax + 0xc]
add r8, r11
mov rax, r8
ret
Function at 0x14000c6c0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14000c6f0
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp dbg.__mingwthr_key_dtor
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x14000c730
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x14000c760
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000c778
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x14000cf90
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14112f700]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x14000cfc8
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14000d030
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x14000d040
mov esi, dword [0x141156188]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x14000d098
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x14000d0e0
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x14000cfb7
mov rcx, rbx
call fcn.14000cef0
mov qword [rsi + r12*8 + 8], rax
jmp 0x14000cfb7
call fcn.14000cef0
mov qword [rbx + 0x10], rax
jmp 0x14000cfb7
mov r10d, dword [rsi]
test r10d, r10d
je 0x14000d171
mov r9d, dword [0x141126770]
test r9d, r9d
je 0x14000d199
lea rcx, [0x1411561a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x14000d17e
mov eax, dword [rsi]
test eax, eax
je 0x14000cfd1
lea rcx, [0x1411561a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14000cfd1
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sym.calloc
mov rsi, rax
test rax, rax
je 0x14000d1d4
mov qword [rax], rdi
mov ecx, dword [0x141156188]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14000d00b
call r13
jmp 0x14000d00b
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sym.realloc
mov rsi, rax
test rax, rax
je 0x14000d1d4
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sym.memset
jmp 0x14000d0bb
lea rcx, [0x1411561a0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14000d1cc
lea rdx, [0x14000cea0]
mov ecx, eax
mov dword [0x141156188], eax
call dbg.__mingwthr_key_dtor
test eax, eax
jne 0x14000d1d4
mov dword [0x141126770], 1
mov edx, dword [rsi]
test edx, edx
jne 0x14000d05c
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x14000cfd1
mov rax, qword [0x141156180]
lea r12, [rax + 1]
mov qword [0x141156180], r12
mov qword [rbx + 0x10], r12
jmp 0x14000d076
lock add dword [0x141126774], 1
je 0x14000d129
mov r8d, dword [0x141126770]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x141126770]
test r8d, r8d
jne 0x14000d167
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x14000d1c0
jmp 0x14000d167
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000d159
call sym.abort
nop
nop word [rax + rax]