joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400012bc
Capabilities:
Terminate process

Disassembly:
jmp 0x140008210
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x14000135c
Capabilities:
Get common file path

Disassembly:
jmp 0x140001b00
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
lea rdi, [rsp + 0x30]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x190]
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x160], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1c
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x140001b91
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x190]
call fcn.140001244
mov eax, dword [rsp + 0x160]
or eax, 1
mov dword [rsp + 0x160], eax
mov rax, qword [rsp + 0x190]
jmp 0x140001bee
lea rdx, str.Failed_to_get_local_app_data_path.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000109b
mov qword [rsp + 0x168], rax
lea rdx, [0x14000101e]
mov rcx, qword [rsp + 0x168]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [0x14000fc03]
mov rcx, qword [rsp + 0x190]
call fcn.140001244
mov eax, dword [rsp + 0x160]
or eax, 1
mov dword [rsp + 0x160], eax
mov rax, qword [rsp + 0x190]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140010070]
call fcn.140001424
mov rax, rdi
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140001276
add rsp, 0x180
pop rdi
ret
Function at 0x140001375
Capabilities:
Check if file exists

Disassembly:
jmp 0x140001c90
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rcx, qword [rsp + 0x40]
call fcn.14000106e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x140001ccd
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x140001ccd
mov dword [rsp + 0x24], 1
jmp 0x140001cd5
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
add rsp, 0x30
pop rdi
ret

Function at 0x14000137a
Capabilities:
Parse pe header

Disassembly:
jmp 0x140009560
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140009580
xor al, al
jmp 0x140009601
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140009593
xor al, al
jmp 0x140009601
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400095bd
xor al, al
jmp 0x140009601
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400095d1
xor al, al
jmp 0x140009601
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400095e3
xor al, al
jmp 0x140009601
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400095ff
xor al, al
jmp 0x140009601
mov al, 1
add rsp, 0x38
ret
Function at 0x1400013e3
Capabilities:
Check if file exists

Disassembly:
jmp 0x140001c30
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rcx, qword [rsp + 0x40]
call fcn.14000106e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x140001c6d
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
jne 0x140001c6d
mov dword [rsp + 0x24], 1
jmp 0x140001c75
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
add rsp, 0x30
pop rdi
ret
Function at 0x140001b00
Capabilities:
Get common file path

Disassembly:
jmp 0x140001b00
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
lea rdi, [rsp + 0x30]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x190]
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x160], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1c
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x140001b91
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x190]
call fcn.140001244
mov eax, dword [rsp + 0x160]
or eax, 1
mov dword [rsp + 0x160], eax
mov rax, qword [rsp + 0x190]
jmp 0x140001bee
lea rdx, str.Failed_to_get_local_app_data_path.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000109b
mov qword [rsp + 0x168], rax
lea rdx, [0x14000101e]
mov rcx, qword [rsp + 0x168]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [0x14000fc03]
mov rcx, qword [rsp + 0x190]
call fcn.140001244
mov eax, dword [rsp + 0x160]
or eax, 1
mov dword [rsp + 0x160], eax
mov rax, qword [rsp + 0x190]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140010070]
call fcn.140001424
mov rax, rdi
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140001276
add rsp, 0x180
pop rdi
ret

Function at 0x140001c30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x140001c30
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rcx, qword [rsp + 0x40]
call fcn.14000106e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x140001c6d
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
jne 0x140001c6d
mov dword [rsp + 0x24], 1
jmp 0x140001c75
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
add rsp, 0x30
pop rdi
ret

Function at 0x140001c90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x140001c90
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rcx, qword [rsp + 0x40]
call fcn.14000106e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x140001ccd
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x140001ccd
mov dword [rsp + 0x24], 1
jmp 0x140001cd5
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
add rsp, 0x30
pop rdi
ret
Function at 0x1400023c0
Capabilities:
Open clipboard
Read clipboard data
Write clipboard data

Disassembly:
jmp 0x1400023c0
push rdi
sub rsp, 0xe0
lea rdi, [rsp + 0x20]
mov ecx, 0x30
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0xbc], 0
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140002624
mov ecx, 1
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14000261d
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140002613
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.140001244
nop
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
nop
lea rcx, [rsp + 0x38]
call fcn.14000145b
cmp rax, 0x3a
jne 0x1400024d4
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x38]
call fcn.140001294
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
mov eax, dword [rsp + 0xbc]
or eax, 1
mov dword [rsp + 0xbc], eax
lea rdx, [0x14000ff28]
mov rcx, qword [rsp + 0xc8]
call fcn.1400011fe
movzx eax, al
test eax, eax
je 0x1400024d4
mov dword [rsp + 0xd0], 1
jmp 0x1400024df
mov dword [rsp + 0xd0], 0
movzx eax, byte [rsp + 0xd0]
mov byte [rsp + 0xb8], al
mov eax, dword [rsp + 0xbc]
and eax, 1
test eax, eax
je 0x14000250f
and dword [rsp + 0xbc], 0xfffffffe
lea rcx, [rsp + 0x68]
call fcn.1400010f5
nop
movzx eax, byte [rsp + 0xb8]
test eax, eax
je 0x140002606
lea rax, str.NW7YE4NEE653UF5KKKBZIUL6XV25TS6ADEP57QXAOIWWHE66QKX6MMWNLE
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call sub.ucrtbased.dll_strlen
inc rax
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x98]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x1400025e3
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
je 0x1400025d4
mov r8, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0xa8]
call sub.VCRUNTIME140D.dll_memcpy
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, qword [rsp + 0xa0]
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
nop
jmp 0x1400025e3
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
nop
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
mov byte [rsp + 0xb9], 1
lea rcx, [rsp + 0x38]
call fcn.1400010f5
movzx eax, byte [rsp + 0xb9]
jmp 0x140002626
lea rcx, [rsp + 0x38]
call fcn.1400010f5
nop
jmp 0x14000261d
call qword [sym.imp.USER32.dll_CloseClipboard]
xor al, al
jmp 0x140002626
call qword [sym.imp.USER32.dll_CloseClipboard]
nop
xor al, al
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140010380]
call fcn.140001424
mov rax, rdi
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140001276
add rsp, 0xe0
pop rdi
ret
Function at 0x140007360
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140001532
movzx eax, al
test eax, eax
jne 0x140007380
mov ecx, 7
call fcn.140001433
nop
mov byte [rsp + 0x20], 0
call fcn.14000146a
mov byte [rsp + 0x21], al
cmp dword [0x140015b28], 1
jne 0x1400073a4
mov ecx, 7
call fcn.140001433
nop
jmp 0x1400073fc
cmp dword [0x140015b28], 0
jne 0x1400073f7
mov dword [0x140015b28], 1
lea rdx, [0x14000f660]
lea rcx, [0x14000f330]
call sub.ucrtbased.dll__initterm_e
test eax, eax
je 0x1400073d8
mov eax, 0xff
jmp 0x140007501
lea rdx, [0x14000f220]
lea rcx, [section..rdata]
call sub.ucrtbased.dll__initterm
mov dword [0x140015b28], 2
jmp 0x1400073fc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14000141f
call fcn.140001398
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140007459
mov rcx, qword [rsp + 0x30]
call fcn.1400011e5
movzx eax, al
test eax, eax
je 0x140007459
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14001a020]
nop
call fcn.1400013d4
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14000748d
mov rcx, qword [rsp + 0x38]
call fcn.1400011e5
movzx eax, al
test eax, eax
je 0x14000748d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call sub.ucrtbased.dll__register_thread_local_exe_atexit_callback
nop
call fcn.1400075b0
mov dword [rsp + 0x28], eax
call fcn.14000137a
movzx eax, al
test eax, eax
jne 0x1400074ac
mov ecx, dword [rsp + 0x28]
call sub.ucrtbased.dll_exit
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400074bb
call sub.ucrtbased.dll__cexit
nop
xor edx, edx
mov cl, 1
call fcn.1400011bd
mov eax, dword [rsp + 0x28]
jmp 0x140007501
add rsp, 0x68
ret
Function at 0x140023c4c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140023cd3
mov rsi, rbx
cmp word [rax], bp
je 0x140023c92
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140023c7c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140023c78
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001e664
mov rdi, rax
test rax, rax
je 0x140023cc0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002b040
mov rbp, rdi
xor ecx, ecx
call fcn.14001b404
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1400ca6e0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400ca6f0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x1400ca6f0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400ca6f0]
mov dword [rax], 1
mov rax, qword [0x1400ca750]
mov rdx, rax
mov rax, qword [0x1400ca740]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x1400f6024], 1
mov rax, qword [0x1400ca6f0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400ca730]
mov rdx, rax
mov rax, qword [0x1400ca720]
mov rcx, rax
call sym._initterm
mov rax, qword [0x1400ca6f0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400ca6e0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1400ca620]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400ca620]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call sym._pei386_runtime_relocator
mov rax, qword [sym._gnu_exception_handler]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400ca6d0]
mov qword [rdx], rax
lea rax, [sym.__mingw_invalidParameterHandler]
mov rcx, rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov eax, dword [0x1400f6004]
lea rdx, [0x1400f6008]
mov ecx, eax
call sym.duplicate_ppstrings
call sym.__main
mov rax, qword [0x1400ca660]
mov rax, qword [rax]
mov rdx, qword [0x1400f6010]
mov qword [rax], rdx
mov rcx, qword [0x1400f6010]
mov rdx, qword [0x1400f6008]
mov eax, dword [0x1400f6004]
mov r8, rcx
mov ecx, eax
call dbg.main
mov dword [0x1400f601c], eax
mov eax, dword [0x1400f6020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x1400f601c]
mov ecx, eax
call sym.exit
mov eax, dword [0x1400f6024]
test eax, eax
jne 0x14000136c
call sym._cexit
mov eax, dword [0x1400f601c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400ca690]
mov dword [rax], 1
mov rax, qword [0x1400ca6a0]
mov dword [rax], 1
mov rax, qword [0x1400ca6b0]
mov dword [rax], 1
mov rax, qword [0x1400ca650]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14000ba30
Capabilities:
Write file on windows

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

Function at 0x14000c702
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400f6168]
test eax, eax
je 0x14000c79a
lea rax, [0x1400f6140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400f6170]
mov qword [rbp - 8], rax
jmp 0x14000c77e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14000c772
cmp qword [rbp - 0x10], 0
je 0x14000c772
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000c738
lea rax, [0x1400f6140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000c79b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14000c8a0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14000c8c8
mov eax, 0
jmp 0x14000c916
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000c8f1
mov eax, 0
jmp 0x14000c916
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14000c911
mov eax, 0
jmp 0x14000c916
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14000c91c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000c99a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000c991
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14000c991
mov rax, qword [rbp - 8]
jmp 0x14000c9af
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14000c964
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14001a8f9
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x14001aa44
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.pthread_spin_destroy
cmp eax, 1
jne 0x14001aa37
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x15], 0
mov qword [rbp - 0xd], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x14001a9ed
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x14001aa03
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x14001a9e9
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x14001aa22
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sym.abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x14001aa45
nop
add rsp, 0x90
pop rbp
ret