joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14011b788
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
jmp 0x140136a7c
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x1401ee6a8]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x140136aa3
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140136adb
and eax, 0x410
cmp eax, 0x410
jne 0x140136adb
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140163e00
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp 0x140136bce
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140136ae7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
jne 0x140136bb2
mov ecx, 2
call fcn.140038810
test al, al
je 0x140136bb0
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x94
mov r9d, 2
call fcn.140039550
lea rcx, [rsp + 0x60]
lea rdx, str.DeleteFile
mov r8d, 0xb
call fcn.140001e11
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.140044ab0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140136b89
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.140001e11
xor eax, eax
cmp byte [rsp + 0x4f], al
jns 0x140136ba6
mov rcx, qword [rsp + 0x38]
call fcn.140163a8c
lea rcx, [rsp + 0x50]
call fcn.140039620
xor edi, edi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140163e00
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x1401ee6a8]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x140136bf5
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dil, 1
test eax, eax
jne 0x140136cc0
mov ecx, 2
call fcn.140038810
test al, al
je 0x140136cbe
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x2f
mov r9d, 2
call fcn.140039550
lea rcx, [rsp + 0x60]
lea rdx, str.RemoveDirectory
mov r8d, 0x10
call fcn.140001e11
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.140044ab0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140136c97
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.140001e11
xor eax, eax
cmp byte [rsp + 0x4f], al
jns 0x140136cb4
mov rcx, qword [rsp + 0x38]
call fcn.140163a8c
lea rcx, [rsp + 0x50]
call fcn.140039620
xor edi, edi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140163e00
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
Function at 0x1401356bc
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
mov edx, 4
call sub.ADVAPI32.dll_SystemFunction036
test al, al
setne al
add rsp, 0x28
ret
Function at 0x140136a7c
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
jmp 0x140136a7c
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x1401ee6a8]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x140136aa3
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140136adb
and eax, 0x410
cmp eax, 0x410
jne 0x140136adb
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140163e00
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp 0x140136bce
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140136ae7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
jne 0x140136bb2
mov ecx, 2
call fcn.140038810
test al, al
je 0x140136bb0
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x94
mov r9d, 2
call fcn.140039550
lea rcx, [rsp + 0x60]
lea rdx, str.DeleteFile
mov r8d, 0xb
call fcn.140001e11
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.140044ab0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140136b89
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.140001e11
xor eax, eax
cmp byte [rsp + 0x4f], al
jns 0x140136ba6
mov rcx, qword [rsp + 0x38]
call fcn.140163a8c
lea rcx, [rsp + 0x50]
call fcn.140039620
xor edi, edi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140163e00
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x1401ee6a8]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x140136bf5
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dil, 1
test eax, eax
jne 0x140136cc0
mov ecx, 2
call fcn.140038810
test al, al
je 0x140136cbe
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x2f
mov r9d, 2
call fcn.140039550
lea rcx, [rsp + 0x60]
lea rdx, str.RemoveDirectory
mov r8d, 0x10
call fcn.140001e11
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.140044ab0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140136c97
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.140001e11
xor eax, eax
cmp byte [rsp + 0x4f], al
jns 0x140136cb4
mov rcx, qword [rsp + 0x38]
call fcn.140163a8c
lea rcx, [rsp + 0x50]
call fcn.140039620
xor edi, edi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140163e00
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
Function at 0x140136bce
Capabilities:
Delete directory

Disassembly:
jmp 0x140136a7c
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x1401ee6a8]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x140136aa3
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140136adb
and eax, 0x410
cmp eax, 0x410
jne 0x140136adb
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140163e00
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp 0x140136bce
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140136ae7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
jne 0x140136bb2
mov ecx, 2
call fcn.140038810
test al, al
je 0x140136bb0
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x94
mov r9d, 2
call fcn.140039550
lea rcx, [rsp + 0x60]
lea rdx, str.DeleteFile
mov r8d, 0xb
call fcn.140001e11
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.140044ab0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140136b89
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.140001e11
xor eax, eax
cmp byte [rsp + 0x4f], al
jns 0x140136ba6
mov rcx, qword [rsp + 0x38]
call fcn.140163a8c
lea rcx, [rsp + 0x50]
call fcn.140039620
xor edi, edi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140163e00
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x1401ee6a8]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x140136bf5
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dil, 1
test eax, eax
jne 0x140136cc0
mov ecx, 2
call fcn.140038810
test al, al
je 0x140136cbe
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x2f
mov r9d, 2
call fcn.140039550
lea rcx, [rsp + 0x60]
lea rdx, str.RemoveDirectory
mov r8d, 0x10
call fcn.140001e11
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.140044ab0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140136c97
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.140001e11
xor eax, eax
cmp byte [rsp + 0x4f], al
jns 0x140136cb4
mov rcx, qword [rsp + 0x38]
call fcn.140163a8c
lea rcx, [rsp + 0x50]
call fcn.140039620
xor edi, edi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140163e00
mov eax, edi
add rsp, 0x198
pop rdi
pop rsi
ret
Function at 0x14013acc8
Capabilities:
Parse pe header

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1a8
mov r14, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1401ee6a8]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
lea rdi, [rcx + 0x18]
mov rcx, rdi
call fcn.14013b728
lea r9, [rsp + 0x160]
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
call fcn.14014e38e
test al, al
je 0x14013ad7a
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x14013adc3
mov rcx, rdi
call fcn.14013b728
movsxd rdi, dword [rsp + 0x19c]
add rdi, rax
mov r8d, 0x108
mov rcx, rsi
mov rdx, rdi
mov r9, rbx
call fcn.14014e38e
test al, al
je 0x14013ae0c
cmp dword [rbx], 0x4550
jne 0x14013ae4f
mov sil, 1
test r14, r14
je 0x14013aeba
mov qword [r14], rdi
jmp 0x14013aeba
mov ecx, 1
call fcn.140038810
test al, al
je 0x14013aeb8
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.1400388b0
lea rcx, [rsp + 0x30]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
jmp 0x14013ae8f
mov ecx, 1
call fcn.140038810
test al, al
je 0x14013aeb8
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.1400388b0
lea rcx, [rsp + 0x30]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x14013ae8f
mov ecx, 1
call fcn.140038810
test al, al
je 0x14013aeb8
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.1400388b0
lea rcx, [rsp + 0x30]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x14013adb8
mov ecx, 1
call fcn.140038810
test al, al
je 0x14013aeb8
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.1400388b0
lea rcx, [rsp + 0x30]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
call fcn.140001e11
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14013aea5
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.140001e11
mov rcx, rdi
call fcn.140038d10
xor esi, esi
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140163e00
mov eax, esi
add rsp, 0x1a8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14013aeda
Capabilities:
Parse pe header

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1a8
mov r14, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1401ee6a8]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
lea rdi, [rcx + 0x18]
mov rcx, rdi
call fcn.14013b728
lea r9, [rsp + 0x160]
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
call fcn.14014e38e
test al, al
je 0x14013af8c
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x14013afd5
mov rcx, rdi
call fcn.14013b728
movsxd rdi, dword [rsp + 0x19c]
add rdi, rax
mov r8d, 0xf8
mov rcx, rsi
mov rdx, rdi
mov r9, rbx
call fcn.14014e38e
test al, al
je 0x14013b01e
cmp dword [rbx], 0x4550
jne 0x14013b061
mov sil, 1
test r14, r14
je 0x14013b0cc
mov qword [r14], rdi
jmp 0x14013b0cc
mov ecx, 1
call fcn.140038810
test al, al
je 0x14013b0ca
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.1400388b0
lea rcx, [rsp + 0x30]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
jmp 0x14013b0a1
mov ecx, 1
call fcn.140038810
test al, al
je 0x14013b0ca
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.1400388b0
lea rcx, [rsp + 0x30]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x14013b0a1
mov ecx, 1
call fcn.140038810
test al, al
je 0x14013b0ca
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.1400388b0
lea rcx, [rsp + 0x30]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x14013afca
mov ecx, 1
call fcn.140038810
test al, al
je 0x14013b0ca
lea rdx, str..._.._third_party_crashpad_crashpad_snapshot_win_pe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.1400388b0
lea rcx, [rsp + 0x30]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
call fcn.140001e11
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14013b0b7
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.140001e11
mov rcx, rdi
call fcn.140038d10
xor esi, esi
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140163e00
mov eax, esi
add rsp, 0x1a8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14013dbd0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov dword [rcx + 0x48], 0x1003f
mov eax, dword [rdx + 0x234]
mov dword [rcx + 0x4c], eax
mov eax, dword [rdx + 0x238]
mov dword [rcx + 0x50], eax
mov eax, dword [rdx + 0x23c]
mov dword [rcx + 0x54], eax
mov eax, dword [rdx + 0x240]
mov dword [rcx + 0x58], eax
mov eax, dword [rdx + 0x24c]
mov dword [rcx + 0x5c], eax
mov eax, dword [rdx + 0x250]
mov dword [rcx + 0x60], eax
lea rdx, [rcx + 0x64]
lea rbx, [rdi + 0x34]
mov rcx, rbx
call fcn.1401115f8
movzx eax, word [rdi + 0x30]
mov dword [rsi + 0xd4], eax
movzx eax, word [rdi + 0x2e]
mov dword [rsi + 0xd8], eax
movzx eax, word [rdi + 0x2c]
mov dword [rsi + 0xdc], eax
movzx eax, word [rdi + 0x2a]
mov dword [rsi + 0xe0], eax
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0xe4], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0xe8], eax
mov eax, dword [rdi + 4]
mov dword [rsi + 0xec], eax
mov eax, dword [rdi + 0xc]
mov dword [rsi + 0xf0], eax
mov eax, dword [rdi + 8]
mov dword [rsi + 0xf4], eax
mov eax, dword [rdi]
mov dword [rsi + 0xf8], eax
mov eax, dword [rdi + 0x18]
mov dword [rsi + 0xfc], eax
mov eax, dword [rdi + 0x20]
mov dword [rsi + 0x100], eax
movzx eax, word [rdi + 0x28]
mov dword [rsi + 0x104], eax
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x108], eax
mov eax, dword [rdi + 0x1c]
mov dword [rsi + 0x10c], eax
movzx eax, word [rdi + 0x32]
mov dword [rsi + 0x110], eax
add rsi, 0x114
mov r8d, 0x200
mov rcx, rsi
mov rdx, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1401667e0
Function at 0x14014a74e
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x308
mov r15, r9
mov rsi, r8
mov rdi, rdx
mov r13, rcx
mov r14, qword [rsp + 0x3a0]
mov r12, qword [rsp + 0x398]
mov rbx, qword [rsp + 0x390]
mov ebp, dword [rsp + 0x380]
mov rax, qword [0x1401ee6a8]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov qword [rsp + 0x88], r8
mov qword [rsp + 0x80], rdx
call fcn.1400525f0
test al, al
je 0x14014a81d
call fcn.140061230
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov rcx, rax
call fcn.14008c224
test al, al
je 0x14014a81d
mov rax, qword [rsp + 0x388]
mov ecx, dword [rsp + 0x378]
mov r9, qword [rsp + 0x370]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ecx
mov rcx, rdi
mov rdx, rsi
mov r8, r15
call r13
mov esi, 1
test eax, eax
jne 0x14014a973
call fcn.140061230
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov rcx, rax
call fcn.14008c214
xor esi, esi
test al, al
je 0x14014a973
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, 0x18
mov rcx, r14
mov r8d, 1
call fcn.1400f8a8e
test al, al
je 0x14014a969
call fcn.1400f89c4
test rax, rax
je 0x14014a969
mov rsi, rax
mov qword [rsp + 0x78], 0
lea rbx, [rsp + 0xf0]
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x102
ja 0x14014a89e
mov qword [rsp + 0x78], rbx
lea rbx, [rsp + 0x68]
mov rcx, rbx
mov rdx, rsi
call fcn.1400f996a
xorps xmm0, xmm0
lea rax, [rsp + 0x90]
movaps xmmword [rax + 0x40], xmm0
movaps xmmword [rax + 0x30], xmm0
movaps xmmword [rax + 0x20], xmm0
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax], xmm0
mov qword [rax + 0x50], 0
lea rcx, [rsp + 0x58]
mov dword [rcx], 0x18
mov qword [rcx + 8], r14
mov edx, dword [r12 + 0x3c]
lea rbp, [rsp + 0x54]
mov dword [rbp], edx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x380]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x390]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x80]
lea r9, [rsp + 0x88]
mov rcx, rbx
mov edx, 0xd
call fcn.14014a999
test eax, eax
je 0x14014a948
mov al, 1
jmp 0x14014a965
mov ecx, dword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
cmp dword [rsp + 0x98], 0
sete sil
xor eax, eax
test al, al
je 0x14014a973
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140163e00
mov eax, esi
add rsp, 0x308
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14014ceec
Capabilities:
Read file via mapping

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov edi, edx
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov dword [rsp + 0x20], edx
mov qword [rsp + 0x28], 0
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x8000004
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rsi
mov rdx, rax
call fcn.1400022d0
mov rcx, qword [rsi]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x14014cf56
mov eax, edi
mov qword [rsp + 0x20], rax
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 8], rax
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x140171410
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140171540
Function at 0x180004e90
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 0x180004eed
lea rbx, [0x1800b43a0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180004ed4
cmp r10, 2
jb 0x180004ed4
cmp byte [r9], r8b
jne 0x180004ed4
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 0x180004eb0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180004f2f
lea rbx, [0x1800b43a0]
cmp r8b, 0x23
jne 0x180004f13
cmp byte [r9], r8b
jne 0x180004f13
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 0x180004f00
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180005070
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x18000508a
mov qword [r8], 0
lea rdx, [0x1800b40f4]
call fcn.180004f40
mov rbx, rax
test rax, rax
jne 0x1800050aa
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 0x180005183
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180005183
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180005183
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 0x180005183
cmp rdi, 0xffffffffffffffff
je 0x180005183
mov rax, qword [0x18013a110]
test rax, rax
je 0x180005120
inc dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180005183
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 0x180005170
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x18013a110]
test rax, rax
je 0x180005165
dec dword [rax + 0x3b0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18000518c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x18000517e
mov qword [r14], rdi
mov rax, rsi
jmp 0x18000518e
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
Function at 0x180007410
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0xd0]
lea r8, [0x1800b43a0]
movsxd rcx, dword [rcx + 0xc8]
mov r11d, edx
shr r11d, 0x18
mov r9d, edx
shr r9d, 8
mov r10d, edx
shr r10d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r10b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov rax, qword [0x18013a110]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
shr ebx, 8
xor rcx, r11
xor ebx, dword [r8 + rcx*4]
not ebx
cmp dword [rax + 0x1c9c], ebx
jne 0x18000749c
mov dword [rax + 0x1ca0], ebx
cmp dword [rax + 0x1cd8], ebx
jne 0x1800074ab
mov byte [rax + 0x1cdc], 1
cmp dword [rax + 0x1c84], ebx
jne 0x1800074c2
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.180018350
mov eax, ebx
add rsp, 0x20
pop rbx
ret