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

Disassembly:
push rbx
push rdi
mov eax, 0x1048
call fcn.1401ec770
sub rsp, rax
mov rax, qword [0x1402b0310]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x1000
call fcn.1401ec560
cmp qword [rdi + 0x18], 0x10
jb 0x1400c82e4
mov rdi, qword [rdi]
lea rdx, [0x14022c33c]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
jne 0x1400c8306
mov eax, 0xfffffbda
jmp 0x1400c83f8
cmp qword [rbx + 0x18], 0x10
mov qword [rsp + 0x1070], rbp
jb 0x1400c8318
mov rbx, qword [rbx]
lea rdx, [0x14022c340]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbp, rax
test rax, rax
jne 0x1400c833a
mov ebx, 0xfffffbda
jmp 0x1400c83d7
mov qword [rsp + 0x1040], rsi
mov r9, rdi
lea rcx, [rsp + 0x30]
mov edx, 1
mov r8d, 0x1000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rbx, rax
cmp rax, 0x1000
jae 0x1400c8384
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x1400c8384
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
jne 0x1400c8412
test rbx, rbx
je 0x1400c83bc
mov r9, rbp
lea rcx, [rsp + 0x30]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbp
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
test eax, eax
jne 0x1400c844f
cmp rsi, rbx
jne 0x1400c844f
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x1400c8342
xor ebx, ebx
mov rsi, qword [rsp + 0x1040]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rbp, rbp
je 0x1400c83ee
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbp, qword [rsp + 0x1070]
mov eax, ebx
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.1401eb080
add rsp, 0x1048
pop rdi
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r9d, 0xbd
mov ecx, dword [rax]
lea rax, str.Copy_the_file_error:_d
mov dword [rsp + 0x28], ecx
lea r8, str.DistributedDB::DBCommon::CopyFile
mov ecx, 3
mov qword [rsp + 0x20], rax
lea rdx, [0x1402bf080]
call fcn.1400cc1d0
mov ebx, 0xfffffbed
jmp 0x1400c83cf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r9d, 0xc6
mov ecx, dword [rax]
lea rax, str.Write_the_data_while_copy:_d
jmp 0x1400c8427
Function at 0x1400c8470
Capabilities:
Delete directory

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [r11 - 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x1402b0310]
xor rax, rsp
mov qword [rsp + 0x60], rax
movzx esi, dl
mov rbx, rcx
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov qword [r11 - 0x58], rbp
mov qword [r11 - 0x50], rbp
xor r8d, r8d
xor edx, edx
call fcn.140060bb0
mov rdi, rax
mov qword [rsp + 0x20], rax
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400c84ce
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
test eax, eax
js 0x1400c85c0
mov r8b, 1
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400cba10
mov edi, eax
test eax, eax
jne 0x1400c85b9
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.1400c8630
lea edx, [rdi + 1]
lea rcx, [rsp + 0x20]
call fcn.1400c8630
test sil, sil
je 0x1400c85b9
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400c8527
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
test eax, eax
js 0x1400c859d
cmp qword [rbx + 0x18], 0x10
jb 0x1400c853d
mov rbx, qword [rbx]
movdqa xmm0, xmmword [0x140247490]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x1400c8560
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.14001cb70
mov ebp, 1
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__rmdir]
test eax, eax
je 0x1400c859d
movzx ebx, bpl
jmp 0x1400c859f
xor bl, bl
test bpl, 1
je 0x1400c85af
lea rcx, [rsp + 0x40]
call fcn.14001cb10
mov eax, 0xfffffbed
test bl, bl
cmovne edi, eax
mov ebp, edi
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rdi]
mov qword [rdi], rdi
mov qword [rdi + 8], rdi
cmp rsi, rdi
je 0x1400c85f1
nop
mov rbx, qword [rsi]
lea rcx, [rsi + 0x10]
call fcn.14001cb10
mov edx, 0x40
mov rcx, rsi
call fcn.1401eb394
mov rsi, rbx
cmp rbx, rdi
jne 0x1400c85d0
mov edx, 0x40
mov rcx, rdi
call fcn.1401eb394
mov eax, ebp
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401eb080
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400c8630
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx]
mov esi, edx
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x1400c86b9
mov qword [rsp + 0x40], rbp
lea rbp, str.Remove_file_failed:_d
nop dword [rax + rax]
cmp dword [rbx + 0x30], esi
lea rcx, [rbx + 0x10]
jne 0x1400c86ac
cmp qword [rcx + 0x18], 0x10
jb 0x1400c8673
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
test eax, eax
je 0x1400c86ac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r9d, 0xfe
lea r8, str.DistributedDB::DBCommon::RemoveFiles
lea rdx, [0x1402bf080]
mov ecx, dword [rax]
mov dword [rsp + 0x28], ecx
mov ecx, 3
mov qword [rsp + 0x20], rbp
call fcn.1400cc1d0
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x1400c8660
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400dba10
Capabilities:
Move file

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x90
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0xd8], rbx
mov rax, qword [0x1402b0310]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r14, r8
mov rdi, rdx
mov rbp, rcx
mov dword [rsp + 0x30], 0
lea rbx, [rdx + 0x40]
xor edx, edx
mov rcx, rbx
call fcn.1400c8470
test eax, eax
jne 0x1400dbc5a
mov r8, r14
lea rdx, [rdi + 0x20]
mov rcx, rbp
call fcn.1400dbc90
mov r14d, eax
movdqa xmm0, xmmword [0x140247490]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov dword [rsp + 0x30], 1
lea r15, [rbx + 0x10]
mov rdx, qword [r15]
add rdx, 8
lea rcx, [rsp + 0x60]
call fcn.14002ff60
cmp qword [rbx + 0x18], 0x10
jb 0x1400dbab5
mov rbx, qword [rbx]
mov r8, qword [r15]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14001eac0
mov r8d, 8
lea rdx, str._version
lea rcx, [rsp + 0x60]
call fcn.14001eac0
nop
movdqa xmm0, xmmword [0x140247490]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x30], 3
mov rdx, qword [rdi + 0x30]
add rdx, 8
lea rcx, [rsp + 0x40]
call fcn.14002ff60
lea rdx, [rdi + 0x20]
cmp qword [rdi + 0x38], 0x10
jb 0x1400dbb19
mov rdx, qword [rdi + 0x20]
mov r8, qword [rdi + 0x30]
lea rcx, [rsp + 0x40]
call fcn.14001eac0
mov r8d, 8
lea rdx, str._version
lea rcx, [rsp + 0x40]
call fcn.14001eac0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1400c82a0
nop
lea rcx, [rsp + 0x40]
call fcn.14001cb10
nop
lea rcx, [rsp + 0x60]
call fcn.14001cb10
mov dl, 1
lea rcx, [rdi + 0x20]
call fcn.1400c8470
test r14d, r14d
je 0x1400dbbac
mov dword [rsp + 0x28], r14d
lea rax, str.export_the_unpacked_database_to_current_error:_d
mov qword [rsp + 0x20], rax
mov r9d, 0x410
lea r8, str.DistributedDB::MultiVerNaturalStore::ImportUnpackedDatabase
lea rdx, [0x1402bf768]
mov ecx, 3
call fcn.1400cc1d0
mov eax, 0xfffffbda
jmp 0x1400dbc5a
lea rdx, [rbp + 0xa8]
mov r8b, 1
mov rcx, rbp
call fcn.1400d66b0
mov ebx, eax
test eax, eax
je 0x1400dbbf4
mov dword [rsp + 0x28], eax
lea rax, str.InitStorages_error:_d
mov qword [rsp + 0x20], rax
mov r9d, 0x418
lea r8, str.DistributedDB::MultiVerNaturalStore::ImportUnpackedDatabase
lea rdx, [0x1402bf768]
mov ecx, 3
call fcn.1400cc1d0
jmp 0x1400dbc58
lea rdx, [rdi + 0x60]
cmp qword [rdx + 0x18], 0x10
jb 0x1400dbc02
mov rdx, qword [rdx]
lea rcx, [rdi + 0x80]
cmp qword [rcx + 0x18], 0x10
jb 0x1400dbc13
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
test eax, eax
je 0x1400dbc58
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
mov dword [rsp + 0x28], ecx
lea rax, str.Failed_to_rename_after_the_import_operation:_d
mov qword [rsp + 0x20], rax
mov r9d, 0x41f
lea r8, str.DistributedDB::MultiVerNaturalStore::ImportUnpackedDatabase
lea rdx, [0x1402bf768]
mov ecx, 3
call fcn.1400cc1d0
mov ebx, 0xfffffbed
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401eb080
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140106980
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rdx + 0x18], 0x10
mov rbx, rdx
mov rcx, rdx
jb 0x140106996
mov rcx, qword [rdx]
xor edx, edx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
test eax, eax
js 0x1401069fa
cmp qword [rbx + 0x18], 0x10
jb 0x1401069ac
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
test eax, eax
je 0x1401069fa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r9d, 0x13c
lea r8, str.DistributedDB::GenericKvDB::RemoveFile
lea rdx, [0x1402c0bc8]
mov ecx, dword [rax]
lea rax, str.Remove_file_failed:_d
mov dword [rsp + 0x28], ecx
mov ecx, 3
mov qword [rsp + 0x20], rax
call fcn.1400cc1d0
mov eax, 0xfffffbe4
add rsp, 0x30
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x14011bc30
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1402b0310]
xor rax, rsp
mov qword [rbp - 8], rax
test rcx, rcx
je 0x14011bdbf
mov r8, qword [rcx]
test r8, r8
je 0x14011bdbf
cmp dword [rcx + 0x14], 0x48
jne 0x14011bdbf
mov eax, dword [rcx + 0x18]
xor ecx, ecx
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x30], ecx
mov rcx, qword [rdx]
lea rdx, [rbp - 0x30]
movzx eax, byte [rcx]
mov byte [rbp - 0x28], al
movzx eax, byte [rcx + 1]
mov byte [rbp - 0x27], al
movzx eax, byte [rcx + 2]
mov byte [rbp - 0x26], al
movzx eax, byte [rcx + 3]
mov byte [rbp - 0x25], al
movzx eax, byte [rcx + 4]
mov byte [rbp - 0x24], al
movzx eax, byte [rcx + 5]
mov byte [rbp - 0x23], al
movzx eax, byte [rcx + 6]
mov byte [rbp - 0x22], al
movzx eax, byte [rcx + 7]
mov byte [rbp - 0x21], al
movzx eax, byte [rcx + 8]
mov byte [rbp - 0x20], al
movzx eax, byte [rcx + 9]
mov byte [rbp - 0x1f], al
movzx eax, byte [rcx + 0xa]
mov byte [rbp - 0x1e], al
movzx eax, byte [rcx + 0xb]
mov byte [rbp - 0x1d], al
movzx eax, byte [rcx + 0xc]
mov byte [rbp - 0x1c], al
movzx eax, byte [rcx + 0xd]
mov byte [rbp - 0x1b], al
movzx eax, byte [rcx + 0xe]
mov byte [rbp - 0x1a], al
movzx eax, byte [rcx + 0xf]
mov byte [rbp - 0x19], al
movzx eax, byte [rcx + 0x10]
mov byte [rbp - 0x18], al
movzx eax, byte [rcx + 0x11]
mov byte [rbp - 0x17], al
movzx eax, byte [rcx + 0x12]
mov byte [rbp - 0x16], al
movzx eax, byte [rcx + 0x13]
mov byte [rbp - 0x15], al
movzx eax, byte [rcx + 0x14]
mov byte [rbp - 0x14], al
movzx eax, byte [rcx + 0x15]
mov byte [rbp - 0x13], al
movzx eax, byte [rcx + 0x16]
mov byte [rbp - 0x12], al
movzx eax, byte [rcx + 0x17]
mov byte [rbp - 0x11], al
movzx eax, byte [rcx + 0x18]
mov byte [rbp - 0x10], al
movzx eax, byte [rcx + 0x19]
mov byte [rbp - 0xf], al
movzx eax, byte [rcx + 0x1a]
mov byte [rbp - 0xe], al
movzx eax, byte [rcx + 0x1b]
mov byte [rbp - 0xd], al
movzx eax, byte [rcx + 0x1c]
mov byte [rbp - 0xc], al
movzx eax, byte [rcx + 0x1d]
mov byte [rbp - 0xb], al
movzx eax, byte [rcx + 0x1e]
mov byte [rbp - 0xa], al
movzx eax, byte [rcx + 0x1f]
lea rcx, [rbp - 0x30]
mov byte [rbp - 9], al
call fcn.1401306f0
lea rcx, [r8 + 0x20]
test rcx, rcx
jne 0x14011bd92
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov eax, 0xfffffc0e
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401eb080
add rsp, 0x50
pop rbp
ret
movups xmm0, xmmword [rbp - 0x30]
xor eax, eax
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [rcx], xmm0
movsd xmm0, qword [rbp - 0x10]
movups xmmword [rcx + 0x10], xmm1
movsd qword [rcx + 0x20], xmm0
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401eb080
add rsp, 0x50
pop rbp
ret
mov eax, 0xfffffc11
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401eb080
add rsp, 0x50
pop rbp
ret
Function at 0x14011c3b0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x38
mov r9, rcx
test dl, 7
je 0x14011c3f4
mov dword [rsp + 0x28], edx
lea rax, str._Proto__CalcuXorSum__Length_d_not_multiple_of_eight.
lea rdx, [0x1402c1590]
mov qword [rsp + 0x20], rax
mov r9d, 0x1f5
lea r8, str.DistributedDB::ProtocolProto::CalculateXorSum
mov ecx, 3
call fcn.1400cc1d0
mov eax, 0xfffffbfe
add rsp, 0x38
ret
xor eax, eax
mov edx, edx
shr rdx, 3
mov qword [r8], rax
test rdx, rdx
je 0x14011c41f
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [r9 + rax*8]
inc rax
xor qword [r8], rcx
cmp rax, rdx
jl 0x14011c410
xor eax, eax
add rsp, 0x38
ret
Function at 0x14012b270
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rax, qword [0x1402b0310]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rdx
cmp qword [rcx + 0x88], 0
je 0x14012b2cd
add rcx, 8
call fcn.14002f1d0
test rax, rax
jne 0x14012b2cd
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14012b2da
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
test eax, eax
je 0x14012b30e
lea rax, str.Remove_file_failed.
mov qword [rsp + 0x20], rax
mov r9d, 0x38
lea r8, str.DistributedDB::Clear
lea rdx, [0x1402c1930]
lea ecx, [r9 - 0x35]
call fcn.1400cc1d0
nop
mov rcx, rbx
call fcn.14001cb10
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401eb080
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1401917d0
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
mov r14d, dword [rsp + 0x70]
mov ebx, r8d
mov dword [rax - 0x18], r14d
mov rbp, r9
mov qword [rax - 0x20], r9
mov rdi, rdx
mov r9, rdx
mov byte [rcx + 0x1c], 1
mov r8, rdx
mov dword [rax - 0x28], ebx
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov rsi, rcx
call fcn.1401993f0
test ebx, ebx
jne 0x140191839
mov r9, rbp
mov dword [rsp + 0x20], r14d
mov r8, rdi
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
mov rcx, rsi
call fcn.1401993f0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14002c060]
mov dword [rax], 1
mov rax, qword [0x14002c070]
mov dword [rax], 1
mov rax, qword [0x14002c080]
mov dword [rax], 1
mov rax, qword [0x14002c050]
mov dword [rax], 1
mov rax, qword [0x14002bee0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
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 0x14000150a
mov eax, 0
jmp 0x14000158b
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 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140002d40
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x140002d61
mov rcx, rdx
call sym.strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sym.fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp sym.fflush

Function at 0x14000aca0
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.unk_242
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.unk_242
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop
Function at 0x1400134b4
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 0x1400135fe
mov rcx, qword [rbp + 0x10]
call sym.unk_374
cmp eax, 1
jne 0x1400135f1
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 - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 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.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x1400135a7
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x1400135bd
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x1400135a3
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x1400135dc
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 0x1400135ff
nop
add rsp, 0x90
pop rbp
ret
Function at 0x14001461b
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [sym.imp.KERNEL32.dll_TlsAlloc]
call rax
mov dword [0x14002af50], eax
mov eax, dword [0x14002af50]
cmp eax, 0xffffffff
jne 0x140014642
call sym.abort
nop
add rsp, 0x20
pop rbp
ret

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [sym.unk_302]
mov rdx, rax
lea rax, [0x140033cd0]
mov rcx, rax
call sym.unk_290
mov eax, dword [0x14002af50]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140014848
mov rax, qword [rbp - 0x10]
jmp 0x1400149a8
call sym.unk_281
mov qword [rbp - 0x10], rax
mov rax, qword [sym.unk_284]
test rax, rax
je 0x140014864
cmp qword [rbp - 0x10], 0
jne 0x14001486e
mov eax, 0
jmp 0x1400149a8
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call sym.unk_283
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x140014949
call sym.abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x14002af50]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x1400149a4
call sym.abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret