joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00405730]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x00405740]
mov dword [rax], 1
mov rax, qword [0x00405750]
mov dword [rax], 1
mov rax, qword [0x00405720]
mov dword [rax], 1
mov rax, qword [0x00405610]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x00405710]
mov dword [0x0040800c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x004056d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004055c0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x4016e0
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov dword [rbp - 4], 0
lea rcx, str.DRIVER_IFID
call sym.getenv
test rax, rax
je 0x40171e
lea rcx, str.DRIVER_IFID
call sym.getenv
mov rcx, rax
call sym.atoi
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
cmp eax, dword [rbp + 0x10]
je 0x40172d
mov eax, 0
jmp 0x401799
mov rax, qword [0x00408030]
mov rdx, qword [rbp + 0x18]
lea rcx, [rbp - 0xc]
mov qword [rsp + 0x28], rcx
lea rcx, [0x00408038]
mov qword [rsp + 0x20], rcx
mov r9d, 1
mov r8d, 1
mov rcx, rax
call sym.SCardConnectA
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 0
je 0x401794
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov edx, dword [rbp - 8]
mov r8d, edx
lea rdx, str.SCardConnect___failed:__08X_n
mov rcx, rax
call sym.fprintf
mov eax, 0xffffffff
jmp 0x401799
mov eax, 1
add rsp, 0x40
pop rbp
ret
Function at 0x401a26
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0xa58
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x9f0], rcx
mov eax, edx
mov byte [rbp + 0x9f8], al
movzx eax, byte [rbp + 0x9f8]
shl eax, 0xb
mov r8d, 0
mov edx, eax
mov rcx, qword [rbp + 0x9f0]
call sym.fseek
test eax, eax
jns 0x401a72
mov eax, 0xffffffff
jmp 0x401ca8
lea rax, [rbp + 0x1c0]
mov r9, qword [rbp + 0x9f0]
mov r8d, 0x800
mov edx, 1
mov rcx, rax
call sym.fread
mov rcx, qword [rbp + 0x9f0]
call sym.feof
test eax, eax
je 0x401aad
mov eax, 1
jmp 0x401ca8
mov dword [rbp + 0x9cc], 0
jmp 0x401c96
lea rax, [rbp - 0x60]
mov r8d, 5
lea rdx, [0x004050b2]
mov rcx, rax
call sym.memcpy
mov eax, dword [rbp + 0x9cc]
shl eax, 7
cdqe
lea rdx, [rbp + 0x1c0]
add rdx, rax
lea rax, [rbp - 0x60]
add rax, 5
mov r8d, pe_nt_image_headers64
mov rcx, rax
call sym.memcpy
mov eax, dword [rbp + 0x9cc]
shl eax, 7
sar eax, 8
mov byte [rbp - 0x5e], al
mov eax, dword [rbp + 0x9cc]
shl eax, 7
mov byte [rbp - 0x5d], al
mov byte [rbp - 0x5c], pe_nt_image_headers64
mov dword [rbp + 0x1bc], 0x108
lea rax, [rbp + 0xb0]
mov r8d, 0x108
mov edx, 0
mov rcx, rax
call sym.memset
lea rcx, [rbp - 0x60]
lea rdx, [rbp + 0x1bc]
lea rax, [rbp + 0xb0]
mov r9d, 0x85
mov r8, rcx
mov rcx, rax
call sym.pcsc_transmit_lowlevel
movzx eax, byte [rbp + 0xb0]
cmp al, 0x90
je 0x401bab
movzx ebx, byte [rbp + 0x9f8]
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov edx, dword [rbp + 0x9cc]
mov r9d, edx
mov r8d, ebx
lea rdx, str.buffer_fill_failed:__u__u_n
mov rcx, rax
call sym.fprintf
mov eax, 0xffffffff
jmp 0x401ca8
lea rax, [rbp - 0x60]
mov r8d, 5
lea rdx, [0x004050d3]
mov rcx, rax
call sym.memcpy
mov eax, dword [rbp + 0x9cc]
shl eax, 7
sar eax, 8
mov byte [rbp - 0x5e], al
mov eax, dword [rbp + 0x9cc]
shl eax, 7
mov byte [rbp - 0x5d], al
mov byte [rbp - 0x5c], pe_nt_image_headers64
mov dword [rbp + 0x1bc], 0x108
lea rax, [rbp + 0xb0]
mov r8d, 0x108
mov edx, 0
mov rcx, rax
call sym.memset
lea rcx, [rbp - 0x60]
lea rdx, [rbp + 0x1bc]
lea rax, [rbp + 0xb0]
mov r9d, 5
mov r8, rcx
mov rcx, rax
call sym.pcsc_transmit_lowlevel
mov eax, dword [rbp + 0x9cc]
shl eax, 7
cdqe
lea rdx, [rbp + 0x1c0]
add rdx, rax
lea rax, [rbp + 0xb0]
mov r8d, pe_nt_image_headers64
mov rcx, rax
call sym.memcmp
test eax, eax
je 0x401c8f
movzx ebx, byte [rbp + 0x9f8]
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov edx, dword [rbp + 0x9cc]
mov r9d, edx
mov r8d, ebx
lea rdx, str.buffer_verify_failed:__u__u_n
mov rcx, rax
call sym.fprintf
sub dword [rbp + 0x9cc], 1
add dword [rbp + 0x9cc], 1
cmp dword [rbp + 0x9cc], 0xf
jle 0x401abc
mov eax, 0
add rsp, 0xa58
pop rbx
pop rbp
ret
Function at 0x401dc6
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
lea rdx, [0x00405102]
lea rcx, str.estk.pcscfwupd.bin
call sym.fopen
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x401e1e
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x2a
mov edx, 1
lea rcx, str.fw_file_estk.pcscfwupd.bin_fopen___failed_n
call sym.fwrite
mov eax, 0xffffffff
jmp 0x402096
call sym.card_poweron
call sym.card_poweroff
call sym.card_poweron
test eax, eax
jns 0x401e63
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x18
mov edx, 1
lea rcx, str.open_smartcard_1_failed_n
call sym.fwrite
mov eax, 0xffffffff
jmp 0x402096
call sym.send_magic
call sym.card_poweroff
call sym.card_poweron
call sym.card_poweroff
call sym.card_poweron
test eax, eax
jns 0x401eb2
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x18
mov edx, 1
lea rcx, str.open_smartcard_2_failed_n
call sym.fwrite
mov eax, 0xffffffff
jmp 0x402096
call sym.erase_flash
test eax, eax
jns 0x401eed
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x13
mov edx, 1
lea rcx, str.flash_erase_failed_n
call sym.fwrite
mov eax, 0xffffffff
jmp 0x402096
lea rcx, str.flash_erase_done
call sym.puts
mov dword [rbp - 4], 1
mov eax, dword [rbp - 4]
movzx edx, al
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.send_sector
mov dword [rbp - 0x14], eax
cmp dword [rbp - 0x14], 0xffffffff
jne 0x401f48
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov edx, dword [rbp - 4]
mov r8d, edx
lea rdx, str.sector__u_send_failed_n
mov rcx, rax
call sym.fprintf
mov eax, 0xffffffff
jmp 0x402096
cmp dword [rbp - 0x14], 1
je 0x401fad
mov eax, dword [rbp - 4]
mov edx, eax
lea rcx, str.sector__u_send_done_n
call sym.printf
mov eax, dword [rbp - 4]
movzx eax, al
mov ecx, eax
call sym.write_sector
test eax, eax
je 0x401f93
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov edx, dword [rbp - 4]
mov r8d, edx
lea rdx, str.sector__u_write_failed_n
mov rcx, rax
call sym.fprintf
mov eax, dword [rbp - 4]
mov edx, eax
lea rcx, str.sector__u_write_done_n
call sym.printf
add dword [rbp - 4], 1
jmp 0x401f00
nop
mov rax, qword [rbp - 0x10]
mov edx, 0
mov rcx, rax
call sym.send_sector
test eax, eax
jns 0x401ff5
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x15
mov edx, 1
lea rcx, str.sector_0_send_failed_n
call sym.fwrite
mov eax, 0xffffffff
jmp 0x402096
lea rcx, str.sector_0_send_done
call sym.puts
mov ecx, 0
call sym.write_sector
test eax, eax
je 0x402037
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x16
mov edx, 1
lea rcx, str.sector_0_write_failed_n
call sym.fwrite
lea rcx, str.sector_0_write_done
call sym.puts
call sym.boot_app
test eax, eax
jns 0x40207b
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x10
mov edx, 1
lea rcx, str.boot_app_failed_n
call sym.fwrite
mov eax, 0xffffffff
jmp 0x402096
lea rcx, str.boot_app_done
call sym.puts
mov ecx, 1
call dbg.sleep
call sym.pcsc_close
add rsp, 0x40
pop rbp
ret
Function at 0x4025d0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x402640
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00408634]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x4027e8
mov rax, qword [0x00408638]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x40268c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x402717
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x402670
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x402822
mov rax, qword [0x00408638]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408638]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402831
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x402710
sub eax, 4
and eax, 0xfffffffb
jne 0x4027a0
add dword [0x00408634], 1
cmp ebx, 8
jae 0x402748
test bl, 4
jne 0x4027f0
test ebx, ebx
je 0x402739
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x402810
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x402739
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x40277a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00408638]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x402710
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor edi, edi
jmp 0x402697
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x402739
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x402739
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x00408638]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x403010
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00408900]
test rbx, rbx
je 0x403064
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40305b
test r12, r12
je 0x40305b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x403040
lea rcx, [0x00408920]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x403290
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x4032a0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x4032b0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4032f5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x4032ec
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4032f7
add rax, 0x28
cmp rax, r9
jne 0x4032d8
xor eax, eax
ret

Function at 0x4033a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00405610]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x403419
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403419
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x403416
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x40340d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x403419
add r8, 0x28
cmp r8, r9
jne 0x4033f8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x403500
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00405610]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x40356f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40356f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x40356d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x403564
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403578
add rax, 0x28
cmp rax, r9
jne 0x403550
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x403590
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00405610]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x403608
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403608
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x403608
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x403608
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x4035fc
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x403610
add rdx, 0x28
cmp rdx, r10
jne 0x4035e8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x403620
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x40362e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x403605
test r8d, r8d
jg 0x403618
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140e63054
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140e6305e
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 0x140e63087
pop rbp
sub rbp, 0x33
sub rbp, 0xe63054
sub rsp, 0x20
jmp 0x140e630a6
mov rax, 0xe63054
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffff92d1d1ec
xor byte [rax], dl
inc rax
dec rcx
jne 0x140e630c5
jmp 0x140e630dc
movsb byte [rdi], byte [rsi]
add eax, 0xecd06567
in al, dx
in al, dx
movsb byte [rdi], byte [rsi]
insd dword [rdi], dx
sub eax, 0xececede4
movsb byte [rdi], byte [rsi]
in eax, dx
add eax, 0xeb2c2ba4
in al, dx
in al, dx
in al, dx
movsb byte [rdi], byte [rsi]
sub ebp, dword [rsi]
invalid
Function at 0x1400278b4
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b6bc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b6bc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027a04
cmp rax, 0xffffffffffffffff
je 0x140027a04
xor edi, edi
test rbp, rbp
jle 0x1400279af
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dce0
mov rbx, rax
test rax, rax
jne 0x14002793c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400279a5
mov edx, 0x8000
mov ecx, r14d
call fcn.140015290
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c3bc
cmp eax, 0xffffffff
je 0x140027985
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002794c
mov edx, r15d
mov ecx, r14d
call fcn.140015290
jmp 0x1400279a5
cmp byte [rsi + 0x38], dil
je 0x14002799c
cmp dword [rsi + 0x34], 5
jne 0x14002799c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400279a5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019d68
jmp 0x140027a18
jns 0x140027a18
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b6bc
cmp rax, 0xffffffffffffffff
jne 0x1400279d0
cmp byte [rsi + 0x30], dil
je 0x140027a18
mov edi, dword [rsi + 0x2c]
jmp 0x140027a18
mov ecx, r14d
call fcn.140016888
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027a18
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027a18
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027a11
mov eax, dword [rsi + 0x2c]
jmp 0x140027a16
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b6bc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400018e4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000192e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000192e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000192e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000192e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000192e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001930
xor al, al
add rsp, 0x28
ret
Function at 0x180004a90
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 0x180004aed
lea rbx, [0x180054780]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180004ad4
cmp r10, 2
jb 0x180004ad4
cmp byte [r9], r8b
jne 0x180004ad4
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 0x180004ab0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180004b2f
lea rbx, [0x180054780]
cmp r8b, 0x23
jne 0x180004b13
cmp byte [r9], r8b
jne 0x180004b13
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 0x180004b00
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180004da0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
test rcx, rcx
jne 0x180004dcf
mov r8d, 0x599
lea rdx, str.D:ProgCPayday3_internalImGui_DirectX_11_Kiero_Hookimguiimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
je 0x180004ddb
mov qword [rdi], 0
lea rdx, [0x180054438]
mov rcx, rbx
call fcn.180004b40
mov rbx, rax
test rax, rax
jne 0x180004dfd
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x180004ed4
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 0x180004ed4
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x180004ed4
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180004ed4
cmp rsi, 0xffffffffffffffff
je 0x180004ed4
mov rax, qword [0x1800661b8]
test rax, rax
je 0x180004e71
inc dword [rax + 0x3bc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x180004ed4
mov r9, rbx
mov r8, rsi
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, rsi
je 0x180004ec1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1800661b8]
test rax, rax
je 0x180004eb6
dec dword [rax + 0x3bc]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180004edd
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x180004ecf
mov qword [rdi], rsi
mov rax, rbp
jmp 0x180004edf
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180006f50
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xc0], 0
mov rbx, rcx
mov edi, edx
jg 0x180006f86
mov r8d, 0x502
lea rdx, str.D:ProgCPayday3_internalImGui_DirectX_11_Kiero_Hookimguiimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd r8, dword [rbx + 0xc0]
mov rax, qword [rbx + 0xc8]
mov edx, dword [rax + r8*4 - 4]
lea r8, [0x180054780]
not edx
movzx eax, dil
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x39]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x3a]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x3b]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov rax, qword [0x1800661b8]
xor edx, dword [r8 + rcx*4]
not edx
cmp dword [rax + 0x1a60], edx
jne 0x180007000
mov dword [rax + 0x1a64], edx
cmp dword [rax + 0x1a9c], edx
jne 0x18000700f
mov byte [rax + 0x1aa0], 1
mov rbx, qword [rsp + 0x30]
mov eax, edx
add rsp, 0x20
pop rdi
ret