joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140119280
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x180
mov rbx, rcx
mov dword [rsp + 0x30], 0
cmp qword [rcx + 0x18], 8
jb 0x14011929e
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14011939e
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1401192ba
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.14005cc60
mov rbx, rax
mov dword [rsp + 0x30], 1
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0x250
lea r8, str.E:.conan7ca4bd1_sourcesexternalcrashpadclientcrash_report_database_win.cc
lea rdx, str.bool___cdecl_crashpad::_anonymous_namespace::EnsureDirectory_const_class_base::FilePath__
lea rcx, [rsp + 0x70]
call fcn.14005b5a0
nop
mov dword [rsp + 0x30], 3
lea rdx, str.GetFileAttributes
mov rcx, rax
call fcn.140001300
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140119342
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.1400021e0
nop
lea rcx, [rsp + 0x70]
call fcn.14005b8e0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140119491
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14011948c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401194ad
jmp 0x14011948c
test al, 0x10
jne 0x14011949c
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1401193b3
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.14005cc60
mov rbx, rax
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x20], 2
mov r9d, 0x254
lea r8, str.E:.conan7ca4bd1_sourcesexternalcrashpadclientcrash_report_database_win.cc
lea rdx, str.bool___cdecl_crashpad::_anonymous_namespace::EnsureDirectory_const_class_base::FilePath__
lea rcx, [rsp + 0x70]
call fcn.14005b410
nop
mov dword [rsp + 0x30], 0xc
lea rdx, str.GetFileAttributes
mov rcx, rax
call fcn.140001300
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140119432
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.1400021e0
lea rdx, str.:_not_a_directory
mov rcx, rax
call fcn.140001300
nop
lea rcx, [rsp + 0x70]
call fcn.14005b620
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140119491
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14011948c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401194a7
call fcn.14009b94c
xor al, al
add rsp, 0x180
pop rbx
ret
mov al, 1
add rsp, 0x180
pop rbx
ret
call fcn.1400ad228
int3
call fcn.1400ad228
int3
Function at 0x140120b40
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x130
mov rdi, rcx
mov dword [rsp + 0x148], 0
mov rax, qword [0x14018ff78]
nop
mov ebx, 1
test rax, rax
jne 0x140120b85
nop dword [rax]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [0x14018ff78]
nop
test rax, rax
je 0x140120b70
cmp eax, 2
jne 0x140120bc9
mov dword [rsp + 0x20], eax
mov r9d, 0x90
lea r8, str.E:.conan7ca4bd1_sourcesexternalcrashpadclientcrashpad_client_win.cc
lea rdx, str.long___cdecl_crashpad::_anonymous_namespace::UnhandledExceptionHandler_struct__EXCEPTION_POINTERS__
lea rcx, [rsp + 0x30]
call fcn.14005b410
nop
mov dword [rsp + 0x148], ebx
lea rdx, str.crash_server_failed_to_launch__self_terminating
mov rcx, rax
call fcn.140001300
nop
jmp 0x140120c6f
mov rax, qword [0x14018ff60]
test rax, rax
je 0x140120be2
mov rcx, rdi
call rax
test al, al
jne 0x140120c8d
lock xadd qword [0x14018ffa8], rbx
lea rax, [rbx + 1]
cmp rax, 1
jle 0x140120c02
xor edx, edx
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_SleepEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x14018ff58], eax
mov qword [0x14018ff50], rdi
mov rcx, qword [0x14018ac80]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rsp + 0x20], 2
mov r9d, 0xc0
lea r8, str.E:.conan7ca4bd1_sourcesexternalcrashpadclientcrashpad_client_win.cc
lea rdx, str.long___cdecl_crashpad::_anonymous_namespace::UnhandledExceptionHandler_struct__EXCEPTION_POINTERS__
lea rcx, [rsp + 0x30]
call fcn.14005b410
nop
mov dword [rsp + 0x148], 2
lea rdx, str.crash_server_did_not_respond__self_terminating
mov rcx, rax
call fcn.140001300
nop
lea rcx, [rsp + 0x30]
call fcn.14005b620
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xffff7001
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rdi
ret
Function at 0x140127f00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x180
movzx edi, dl
mov rbx, rcx
mov dword [rsp + 0x30], 0
cmp qword [rcx + 0x18], 8
jb 0x140127f25
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14012802c
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140127f41
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.14005cc60
mov rbx, rax
mov dword [rsp + 0x30], 1
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0x82
lea r8, str.E:.conan7ca4bd1_sourcesexternalcrashpadutil_file_filesystem_win.cc
lea rdx, str.bool___cdecl_crashpad::IsDirectory_const_class_base::FilePath__bool_
lea rcx, [rsp + 0x70]
call fcn.14005b5a0
nop
mov dword [rsp + 0x30], 3
lea rdx, str.GetFileAttributes
mov rcx, rax
call fcn.140001300
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140127fc9
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.1400021e0
nop
lea rcx, [rsp + 0x70]
call fcn.14005b8e0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140128037
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140128014
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140128060
call fcn.14009b94c
xor al, al
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rdi
ret
test dil, dil
jne 0x14012804a
bt eax, 0xa
jae 0x14012804a
xor al, al
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rdi
ret
shr eax, 4
and al, 1
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rdi
ret
call fcn.1400ad228
int3
Function at 0x140128360
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x180
movzx edi, r8b
mov rbx, rcx
mov dword [rsp + 0x30], 0
cmp qword [rcx + 0x18], 8
jb 0x140128386
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1401285a2
test dil, dil
je 0x1401284aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1401284aa
mov dl, 1
mov rcx, rbx
call fcn.140127f00
test al, al
jne 0x1401285a2
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1401283cf
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.14005cc60
mov rbx, rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], 2
mov r9d, 0x5d
lea r8, str.E:.conan7ca4bd1_sourcesexternalcrashpadutil_file_filesystem_win.cc
lea rdx, str.bool___cdecl_crashpad::LoggingCreateDirectory_const_class_base::FilePath__enum_crashpad::FilePermissions_bool_
lea rcx, [rsp + 0x70]
call fcn.14005b410
nop
mov dword [rsp + 0x30], 3
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14012843f
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.1400021e0
lea rdx, str._not_a_directory
mov rcx, rax
call fcn.140001300
nop
lea rcx, [rsp + 0x70]
call fcn.14005b620
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14012858f
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14012858a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401285bb
jmp 0x14012858a
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1401284b7
mov rax, qword [rbx]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.14005cc60
mov rbx, rax
mov dword [rsp + 0x30], 4
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0x62
lea r8, str.E:.conan7ca4bd1_sourcesexternalcrashpadutil_file_filesystem_win.cc
lea rdx, str.bool___cdecl_crashpad::LoggingCreateDirectory_const_class_base::FilePath__enum_crashpad::FilePermissions_bool_
lea rcx, [rsp + 0x70]
call fcn.14005b5a0
nop
mov dword [rsp + 0x30], 0xc
lea rdx, str.CreateDirectory
mov rcx, rax
call fcn.140001300
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14012853f
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.1400021e0
nop
lea rcx, [rsp + 0x70]
call fcn.14005b8e0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14012858f
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14012858a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401285b5
call fcn.14009b94c
xor al, al
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rdi
ret
mov al, 1
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rdi
ret
call fcn.1400ad228
int3
call fcn.1400ad228
int3
Function at 0x1401290f0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x140
mov rbx, rcx
mov dword [rsp + 0x158], 0
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx edx, ax
shr dx, 8
cmp al, 6
jb 0x1401291c4
jne 0x140129128
cmp dx, 1
jbe 0x1401291c4
mov ecx, dword [0x14018e418]
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x140190010], eax
jg 0x1401291d8
xor edx, edx
mov r8d, 0x10000000
mov rcx, rbx
call qword [0x140190008]
test eax, eax
jne 0x1401291cd
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0x21
lea r8, str.E:.conan7ca4bd1_sourcesexternalcrashpadutilwincritical_section_with_debug_info.cc
lea rdx, str.bool___cdecl_crashpad::_anonymous_namespace::CrashpadInitializeCriticalSectionEx_struct__RTL_CRITICAL_SECTION__unsigned_long_unsigned_long_
lea rcx, [rsp + 0x30]
call fcn.14005b5a0
nop
mov dword [rsp + 0x158], 1
lea rdx, [0x1401534e0]
mov rcx, rax
call fcn.140001300
nop
lea rcx, [rsp + 0x30]
call fcn.14005b8e0
xor al, al
add rsp, 0x140
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov al, 1
add rsp, 0x140
pop rbx
ret
lea rcx, [0x140190010]
call fcn.14009bb9c
cmp dword [0x140190010], 0xffffffff
jne 0x14012914f
mov r8b, 1
lea rdx, str.::InitializeCriticalSectionEx
lea rcx, str.kernel32.dll
call fcn.140056e20
mov qword [0x140190008], rax
lea rcx, [0x140190010]
call fcn.14009bb3c
jmp 0x14012914f
Function at 0x140acdd5f
Capabilities:
Encode data using xor

Disassembly:
push qword [rsp + 0x18]
popfq
lea rsp, [rsp + 0x30]
call fcn.140d4c3d8
ror dword [rbp + 0x364d1b79], 0x27
insb byte [rdi], dx
movabs byte [0x81c38e626fb161d8], al
xchg dword [rbp + 0x1c1fc80f], edx
invalid
xchg bh, dh
invalid
push rsi
stosd dword [rdi], eax
add dword [rdx - 5], edi
jp 0x140acdd1e
mov edx, 0x4a94caa6
adc ah, byte [rcx - 0x61b2315e]
xchg ebp, eax
int1
add al, 0xba
fld dword [rsi + rax - 0x3be60581]
xor byte [rax + 0x54b40a3], dh
fsubr dword [rsp + rax*8 - 0x2f24c8e9]
jae 0x140acdd28
ret
js 0x140ab6ed4
mov edx, 0x7e2113b1
or ebp, dword [rdi - 0x6ea8a681]
int1
stosd dword [rdi], eax
test al, 0x1a
jle 0x140acdd21
int1
cdq
jbe 0x140acdd87
test eax, 0x6b49eb93
jae 0x140acdd0a
cld
mov cl, 0xfc
test eax, 0xe5ff6fb3
invalid
jmp rbp
Function at 0x140d4c838
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + rcx*2], 0xffffffff95354e13
jmp 0x140d1714c
Function at 0x14001ba44
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001ba5a
mov al, 1
jmp 0x14001baba
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001ba6b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001bab8
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019b98
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001bab8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001bab8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001bab8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001baba
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001fed0
Capabilities:
Parse pe header

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

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x1f656b0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1f656bd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1f656cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1f656b5
lea eax, [rcx + 1]
jmp 0x1f656db
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1f656ee
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1f656d4
sub eax, 3
jb 0x1f6570e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1f6575d
sar eax, 1
movsxd rbp, eax
jb 0x1f65744
jmp 0x1f6571c
add ebx, ebx
jne 0x1f6571a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1f65744
inc ecx
add ebx, ebx
jne 0x1f6572a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1f65744
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1f6573d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1f6572c
add ecx, 2
jmp 0x1f65749
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.01f65672
jmp 0x1f656bd
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1b45000]
mov eax, dword [rdi]
or eax, eax
je 0x1f657b9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1b6d760]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1f65769
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1f657b3
mov qword [rbx], rax
add rbx, 8
jmp 0x1f65789
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1f657fd
cmp al, 0xef
ja 0x1f657e5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1f657c5
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1f657d4
mov eax, dword [rdi]
add rdi, 4
jmp 0x1f657d4
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1f65851
sub rsp, 0xffffffffffffff80
jmp 0x4731e0
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005810]
mov dword [rax], 1
mov rax, qword [0x140005820]
mov dword [rax], 1
mov rax, qword [0x140005830]
mov dword [rax], 1
mov rax, qword [0x1400057c0]
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 0x140002040
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 0x140002d12
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140008108]
test eax, eax
je 0x140002daa
lea rax, [0x1400080e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140008110]
mov qword [rbp - 8], rax
jmp 0x140002d8e
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 0x140002d82
cmp qword [rbp - 0x10], 0
je 0x140002d82
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 0x140002d48
lea rax, [0x1400080e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002dab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002eb0
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 0x140002ed8
mov eax, 0
jmp 0x140002f26
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 0x140002f01
mov eax, 0
jmp 0x140002f26
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 0x140002f21
mov eax, 0
jmp 0x140002f26
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140002f2c
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 0x140002faa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002fa1
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 0x140002fa1
mov rax, qword [rbp - 8]
jmp 0x140002fbf
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 0x140002f74
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400077e0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000783d
lea rbx, [0x140057220]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140007824
cmp r10, 2
jb 0x140007824
cmp byte [r9], r8b
jne 0x140007824
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140007800
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000787f
lea rbx, [0x140057220]
cmp r8b, 0x23
jne 0x140007863
cmp byte [r9], r8b
jne 0x140007863
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140007850
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1400079c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x1400079da
mov qword [r8], 0
lea rdx, [0x140056c6c]
call fcn.140007890
mov rbx, rax
test rax, rax
jne 0x1400079fa
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140007ae5
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140007ae5
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140007ae5
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140007ae5
cmp rdi, 0xffffffffffffffff
je 0x140007ae5
mov rax, qword [0x1400694a0]
test rax, rax
je 0x140007a76
inc dword [rax + 0x3b0]
mov rdx, qword [0x140069490]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rax, rax
je 0x140007ae5
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140007ad2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400694a0]
test rax, rax
je 0x140007ac1
dec dword [rax + 0x3b0]
mov rdx, qword [0x140069490]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
jmp 0x140007aee
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140007ae0
mov qword [r14], rdi
mov rax, rsi
jmp 0x140007af0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret