joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140083630
Capabilities:
Create directory

Disassembly:
push rbp
mov rbp, rsp
cmp byte [rcx], 0
je 0x140083645
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.140083660
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.14008f110

Function at 0x14008ad80
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10c8
call fcn.1400a99c0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1030], xmm6
mov qword [rbp + 0x1028], 0xfffffffffffffffe
mov rsi, rdx
mov qword [rbp + 0x1020], rcx
mov qword [rbp + 0xfd8], rcx
mov qword [rbp + 0xfe0], rdx
lea rcx, [rbp - 0x50]
mov r8d, 0x1000
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xorps xmm6, xmm6
lea rbx, [0x140091910]
lea r12, [rbp + 0xfb0]
mov rdi, qword [sym.imp.kernel32.dll_WriteFileEx]
mov r15, qword [sym.imp.kernel32.dll_SleepEx]
mov qword [rbp + 0x1018], rsi
mov rax, qword [rbp + 0x1020]
mov qword [rbp + 0x1010], rax
mov r8d, 0x1000
lea rcx, [rbp + 0xfd8]
lea rdx, [rbp - 0x50]
call fcn.140091830
mov r14, rdx
test rax, rax
jne 0x14008af1c
test r14, r14
je 0x14008aeec
cmp r14, 0x1000
ja 0x14008afc0
xor r13d, r13d
nop dword [rax + rax]
cmp r13, r14
ja 0x14008af97
mov r8d, r14d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xff4], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea rax, [rbp + 0xff4]
mov qword [rbp + 0xfc8], rax
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov r9, r12
call rdi
test eax, eax
je 0x14008aee6
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r15
cmp dword [rbp + 0xff4], 1
jne 0x14008aeb0
cmp dword [rbp + 0xff8], 0
jne 0x14008aeec
mov eax, dword [rbp + 0xffc]
add r13, rax
cmp r13, r14
jne 0x14008ae50
jmp 0x14008adfb
call qword [sym.imp.kernel32.dll_GetLastError]
mov rdi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1020]
call rdi
mov rcx, rsi
call rdi
movaps xmm6, xmmword [rbp + 0x1030]
add rsp, 0x10c8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, r14d
and eax, 3
cmp eax, 1
jne 0x14008aeec
mov rax, r14
dec rax
mov qword [rbp + 0xfe8], rax
mov rax, qword [r14 - 1]
mov qword [rbp + 0x1000], rax
mov rax, qword [r14 + 7]
mov qword [rbp + 0x1008], rax
mov rax, qword [rax]
test rax, rax
je 0x14008af5b
mov rcx, qword [rbp + 0x1000]
call rax
mov rcx, qword [rbp + 0x1000]
mov rax, qword [rbp + 0x1008]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14008af7b
mov r8, qword [rax + 0x10]
call fcn.140018860
mov edx, 0x18
mov r8d, 8
mov rcx, qword [rbp + 0xfe8]
call fcn.140018860
jmp 0x14008aeec
mov qword [rbp + 0x1018], rsi
mov rax, qword [rbp + 0x1020]
mov qword [rbp + 0x1010], rax
lea r8, str.std_src_syspalwindowspipe.rs
mov rcx, r13
mov rdx, r14
call fcn.1400acbd0
jmp 0x14008afe9
mov qword [rbp + 0x1018], rsi
mov rax, qword [rbp + 0x1020]
mov qword [rbp + 0x1010], rax
lea r8, str.std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r14
call fcn.1400acb60
ud2
Function at 0x14008f110
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x18]
call fcn.140098860
mov rax, qword [rbp - 0x18]
mov rsi, qword [rbp - 0x10]
mov rcx, rax
neg rcx
jo 0x14008f16b
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x30]
mov r8b, 1
call fcn.14009a4e0
mov rdi, qword [rbp - 0x48]
mov rsi, qword [rbp - 0x40]
mov rax, rdi
neg rax
jno 0x14008f176
mov rax, rsi
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
xor edx, edx
call qword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x14008f1a2
test rdi, rdi
je 0x14008f1ce
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140018860
xor eax, eax
jmp 0x14008f16e
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x14008f16e
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.140018860
jmp 0x14008f16b
xor eax, eax
jmp 0x14008f16e

Function at 0x14008fcc0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x1400bf310]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14008fd4f
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0xc0000011
jne 0x14008fd5c
xor edx, edx
xor eax, eax
jmp 0x14008fd86
cmp eax, 0x103
je 0x14008fd90
test eax, eax
js 0x14008fd6f
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x14008fd86
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.140086ca0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.14007c9e0
mov ecx, 7
int 0x29
ud2
Function at 0x14008fde0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x1400bf310]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14008fe76
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x14008fea3
test eax, eax
js 0x14008fe82
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x14008fe99
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.140086ca0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.14007c9e0
mov ecx, 7
int 0x29
ud2
Function at 0x1400909d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, rdx
mov qword [rbp - 8], rcx
movzx r15d, byte [rdx + 0x18]
mov byte [rdx + 0x18], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 2
mov qword [rbp - 0x10], 0
mov r12, qword [rdx + 8]
movzx esi, word [rdx + 0x10]
mov eax, 2
xor edi, edi
xor r13d, r13d
jmp 0x140090a3c
mov word [rax + rdi*2], r14w
inc rdi
mov qword [rbp - 0x10], rdi
mov rdx, qword [rbx]
mov r14d, esi
test si, si
jne 0x140090ae0
nop dword [rax + rax]
cmp rdx, r12
je 0x140090b9f
lea rcx, [rdx + 1]
mov qword [rbx], rcx
movzx r9d, byte [rdx]
movzx r14d, r9b
test r14b, r14b
jns 0x140090b0a
mov r8d, r14d
and r8d, 0x1f
lea rcx, [rdx + 2]
mov qword [rbx], rcx
movzx r10d, byte [rdx + 1]
and r10d, 0x3f
cmp r14b, 0xdf
jbe 0x140090b00
lea rcx, [rdx + 3]
mov qword [rbx], rcx
movzx r14d, byte [rdx + 2]
shl r10d, 6
and r14d, 0x3f
or r14d, r10d
cmp r9b, 0xf0
jb 0x140090b28
lea rcx, [rdx + 4]
mov qword [rbx], rcx
movzx edx, byte [rdx + 3]
and r8d, 7
shl r8d, 0x12
shl r14d, 6
and edx, 0x3f
or edx, r14d
or edx, r8d
mov r14d, edx
cmp r14d, 0xffff
jbe 0x140090b0a
jmp 0x140090b38
mov word [rbx + 0x10], 0
xor esi, esi
cmp r14w, 0x22
je 0x140090b16
jmp 0x140090b70
shl r8d, 6
or r8d, r10d
mov r14d, r8d
xor esi, esi
mov rdx, rcx
cmp r14w, 0x22
jne 0x140090b70
xor r13b, 1
mov r14d, esi
test si, si
je 0x140090a50
jmp 0x140090ae0
shl r8d, 0xc
or r14d, r8d
cmp r14d, 0xffff
jbe 0x140090b0a
lea r8d, [r14 + 0xff0000]
shr r8d, 0xa
or r8d, 0xd800
and r14d, 0x3ff
or r14d, 0xdc00
mov word [rbx + 0x10], r14w
mov rdx, rcx
mov esi, r14d
mov r14d, r8d
cmp r14w, 0x22
je 0x140090b16
nop dword [rax]
movzx ecx, r14w
cmp ecx, 0x3b
jne 0x140090b7f
test r13b, 1
je 0x140090b9b
cmp rdi, qword [rbp - 0x20]
jne 0x140090a30
lea rcx, [rbp - 0x20]
call fcn.140081120
mov rax, qword [rbp - 0x18]
jmp 0x140090a30
mov byte [rbx + 0x18], 1
test rdi, rdi
setne al
or r15b, al
je 0x140090bd8
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x40]
mov r8, rdi
call fcn.1400870a0
movups xmm0, xmmword [rbp - 0x40]
movups xmm1, xmmword [rbp - 0x30]
mov rax, qword [rbp - 8]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov rdx, qword [rbp - 0x20]
test rdx, rdx
jne 0x140090bf2
jmp 0x140090c04
movabs rax, 0x8000000000000000
mov rcx, qword [rbp - 8]
mov qword [rcx], rax
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x140090c04
mov rcx, qword [rbp - 0x18]
add rdx, rdx
mov r8d, 2
call fcn.140018860
mov rax, qword [rbp - 8]
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140091830
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov dword [rbp - 4], 0
xorps xmm0, xmm0
movaps xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
lea rax, [rbp - 4]
mov qword [rbp - 0x18], rax
mov rcx, qword [rcx]
lea rax, [0x140091910]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x1400918bf
mov rsi, qword [sym.imp.kernel32.dll_SleepEx]
nop dword [rax]
mov ecx, 0xffffffff
mov edx, 1
call rsi
cmp dword [rbp - 4], 1
jne 0x140091890
mov eax, dword [rbp]
mov esi, dword [rbp + 4]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
test eax, eax
cmovne rsi, rcx
jne 0x1400918d2
xor eax, eax
jmp 0x140091902
call qword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
mov eax, ecx
and eax, 3
shr rcx, 0x20
cmp eax, 2
jne 0x1400918f2
call fcn.1400986a0
xor ecx, ecx
cmp al, 0xb
setne al
cmove rsi, rcx
jmp 0x140091902
cmp rcx, 0xb
setne al
xor edx, edx
cmp ecx, 0xb
cmove rsi, rdx
movzx eax, al
mov rdx, rsi
add rsp, 0x68
pop rsi
pop rbp
ret

Function at 0x140091da0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140091e94
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp r8, rdx
je 0x140091e5a
sub r8, rdx
add rdx, qword [rbx + 8]
mov rax, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp r8, rcx
cmovae r8, rcx
mov dword [rbp - 0x28], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x28]
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x140091e15
mov eax, dword [rbp - 0x28]
mov ecx, 2
test rax, rax
jne 0x140091e2c
jmp 0x140091e39
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x6d
je 0x140091e39
cmp eax, 0x3e5
jne 0x140091e4a
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x140091e3d
mov byte [rsi + 1], 0
xor eax, eax
mov byte [rsi], al
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop rbp
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x140091e3f
test r8, r8
mov ecx, 0x10
mov eax, 1
cmove rax, rcx
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rbx
mov rdx, r8
mov r8, rax
call fcn.1400ab4a0
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x140091dd1
mov qword [rbp - 0x28], 0
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.1400ab450
int3
Function at 0x140096bc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
nop
add byte [rax], al
add byte [rax], al

Function at 0x1400982d0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
in al, dx
push rax

Function at 0x1400998f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, r8
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov rbx, qword [rsi + 0x10]
xor r14d, r14d
mov eax, 0
cmp rbx, 3
jb 0x14009995c
movzx r8d, byte [rbx + rcx - 2]
mov r9d, r8d
and r9b, 0xf0
xor r14d, r14d
cmp r9b, 0xa0
jne 0x14009995c
xor r14d, r14d
cmp byte [rbx + rcx - 3], 0xed
jne 0x14009995c
movzx r14d, byte [rbx + rcx - 1]
and r8d, 0xf
and r14d, 0x3f
shl r8d, 0x10
shl r14d, 0xa
or r14d, r8d
mov al, 1
cmp rdi, 3
jb 0x140099a08
cmp byte [rdx], 0xed
jne 0x140099a11
movzx r12d, byte [rdx + 1]
mov r8d, r12d
and r8b, 0xf0
cmp r8b, 0xb0
setne r8b
xor al, 1
or al, r8b
jne 0x140099a11
movzx r13d, byte [rdx + 2]
cmp rbx, 3
jb 0x1400999a1
add rbx, 0xfffffffffffffffd
mov qword [rsi + 0x10], rbx
and r13d, 0x3f
shl r12d, 6
lea r8, [rdi + 1]
mov rax, qword [rsi]
sub rax, rbx
cmp rax, r8
jb 0x140099afb
add rdx, 3
mov r15, rdx
and r12d, 0x3c0
or r14d, r13d
or r14d, r12d
add r14d, 0x10000
mov rcx, rsi
mov edx, r14d
call fcn.14008b300
add rdi, 0xfffffffffffffffd
mov rax, qword [rsi]
mov rbx, qword [rsi + 0x10]
sub rax, rbx
cmp rax, rdi
jb 0x140099b20
mov rcx, qword [rsi + 8]
add rcx, rbx
mov rdx, r15
jmp 0x140099aae
test rdi, rdi
je 0x140099aa0
lea rax, [rdx + rdi]
mov r9, rdx
jmp 0x140099a38
add r9, 2
cmp r8, rax
cmovne r8, r9
nop word cs:[rax + rax]
mov r9, r8
cmp r8, rax
je 0x140099aa0
lea r8, [r9 + 1]
movzx r10d, byte [r9]
test r10b, r10b
jns 0x140099a30
cmp r10b, 0xe0
jb 0x140099a1a
cmp r10b, 0xed
jne 0x140099a6f
cmp r8, rax
je 0x140099aa0
lea r8, [r9 + 2]
cmp r8, rax
je 0x140099aa0
cmp byte [r9 + 1], 0x9f
ja 0x140099a9c
add r9, 3
mov r8, r9
jmp 0x140099a30
add r9, 2
cmp r8, rax
cmove r9, r8
xor r8d, r8d
cmp r9, rax
setne r8b
add r8, r9
cmp r10b, 0xf0
jb 0x140099a30
xor r9d, r9d
cmp r8, rax
setne r9b
add r8, r9
jmp 0x140099a30
mov byte [rsi + 0x18], 0
mov rax, qword [rsi]
sub rax, rbx
cmp rax, rdi
jb 0x140099ace
add rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
add rbx, rdi
mov qword [rsi + 0x10], rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r14, rdx
mov rdx, rbx
mov r8, rdi
call fcn.1400ab4a0
mov rdx, r14
mov rcx, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
jmp 0x140099aab
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov r15, rdx
mov rdx, rbx
call fcn.1400ab4a0
mov rdx, r15
jmp 0x1400999bc
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.1400ab4a0
mov rbx, qword [rsi + 0x10]
jmp 0x1400999f9
Function at 0x1400a9ed0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a9f1a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a9f1a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a9f1a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a9f1a
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a9f1a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400a9f1c
xor al, al
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000e140]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000e150]
mov dword [rax], 1
mov rax, qword [0x14000e160]
mov dword [rax], 1
mov rax, qword [0x14000e0e0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000e130]
mov dword [0x140011020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000e210]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000e1f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000e090]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140002820
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rsi, qword [dbg.__acrt_iob_func]
mov r13d, 1
mov rdi, rdx
mov ebp, ecx
xor ecx, ecx
call rsi
mov r12, qword [sym.imp.msvcrt.dll__fileno]
mov rcx, rax
call r12
mov edx, 0x8000
mov rbx, qword [sym.imp.msvcrt.dll__setmode]
mov ecx, eax
call rbx
mov ecx, 1
call rsi
mov rcx, rax
call r12
mov edx, 0x8000
lea r12, [0x14000d1f0]
mov ecx, eax
call rbx
mov rax, qword [0x14000e250]
xor ebx, ebx
mov dword [rax], 1
jmp 0x14000289f
cmp eax, 0x65
cmove ebx, r13d
mov r8, r12
mov rdx, rdi
mov ecx, ebp
call sym.getopt
cmp eax, 0xffffffff
je 0x1400028e8
cmp eax, 0x3f
jne 0x140002898
mov ecx, 2
call rsi
lea rdx, str.Usage_:_lifutils_sdatabar___e__n
mov rcx, rax
call sym.fprintf_1
mov eax, 1
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ebp, 1
lea rdi, [rsp + 0x28]
lea r12, [rsp + 0x21]
lea r14, str.sdatabar_:_unknown_register_contents_n
lea r13, str.___________..._skipping_n
nop dword [rax]
xor ecx, ecx
call rsi
mov r8d, 8
mov edx, 1
mov rcx, rdi
mov r9, rax
call sym.fread
cmp rax, 8
jne 0x1400029c0
mov rdx, r12
mov rcx, rdi
call sym.descramble
movzx eax, byte [rsp + 0x21]
shr al, 4
cmp al, 1
je 0x140002980
mov rdx, 0xfffffffffffffdfe
bt rdx, rax
setb al
test al, al
je 0x1400029a0
mov ecx, 2
call rsi
mov rdx, r14
mov rcx, rax
call sym.fprintf_1
mov ecx, 2
call rsi
mov rdx, r13
mov rcx, rax
call sym.fprintf_1
jmp 0x140002908
mov edx, ebp
lea r15d, [rbp + 1]
mov rcx, r12
call sym.alpha_barcode
mov ebp, r15d
jmp 0x140002908
mov edx, ebp
lea r15d, [rbp + 1]
mov r8d, ebx
mov rcx, r12
call sym.numeric_barcode
mov ebp, r15d
jmp 0x140002908
xor eax, eax
jmp 0x1400028d1
Function at 0x140002d50
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov r13, qword [dbg.__acrt_iob_func]
xor edi, edi
mov esi, 1
mov r14d, 0xf0f0f0f1
mov qword [rsp + 0x80], rcx
jmp 0x140002da2
mov r9d, r15d
mov r8d, esi
mov edx, ebx
mov rcx, rdi
call sym.barcode_row
cmp r15d, 0x10
je 0x140002e70
mov edi, 1
mov esi, r12d
call sym.getchar
mov ebx, eax
cmp eax, 0xffffffff
je 0x140002e88
lea r10d, [rsi - 1]
and ebx, 0xf
lea rdi, [rsp + 0x20]
xor ecx, ecx
mov rdx, r10
imul r10, r14
add ebx, 1
movsxd r12, ebx
mov rbp, r10
shr r10, 0x24
mov eax, r10d
shr rbp, 0x20
shl eax, 4
add eax, r10d
sub edx, eax
mov r15d, edx
call r13
mov r8, r12
mov edx, 1
mov rcx, rdi
mov r9, rax
call sym.fread
cmp r12, rax
jne 0x140002ea0
lea r12d, [rsi + 1]
test r15d, r15d
jne 0x140002d80
shr ebp, 4
lea rcx, str._n___page__d_n
add ebp, 1
mov edx, ebp
call sym.printf
mov r8d, 0x2f4
mov r9, qword [rsp + 0x80]
mov edx, 0x24
lea rcx, str._d__d_moveto_tf____s___show_n
call sym.printf
mov edx, ebp
lea rcx, str.pf___page__d___show_rf_n
call sym.printf
xor r9d, r9d
mov r8d, esi
mov edx, ebx
mov rcx, rdi
call sym.barcode_row
jmp 0x140002d9a
lea rcx, str._nshowpage_n
xor edi, edi
call sym.printf
jmp 0x140002d9f
test edi, edi
jne 0x140002ec0
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 2
call r13
lea rdx, str.Unexpected_EOF_reading_barcode_data_n
mov rcx, rax
call sym.fprintf_2
mov eax, 1
jmp 0x140002e8e
lea rcx, str._nshowpage_n
call sym.printf
jmp 0x140002e8c

Function at 0x140002f00
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, qword [dbg.__acrt_iob_func]
mov rsi, rdx
mov ebx, ecx
xor ecx, ecx
call rdi
mov rcx, rax
call qword [sym.imp.msvcrt.dll__fileno]
mov edx, 0x8000
mov ecx, eax
call qword [sym.imp.msvcrt.dll__setmode]
cmp ebx, 2
jg 0x140002f58
lea rbx, str.HP41_Barcode
jne 0x140002f3f
mov rbx, qword [rsi + 8]
call sym.function_def
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.print_barcode
mov ecx, 2
call rdi
lea rdx, str.usage_:_lifutils_barps__title__n
mov rcx, rax
call sym.fprintf_2
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x140003190
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
xor ecx, ecx
mov r13, qword [dbg.__acrt_iob_func]
xor r12d, r12d
lea r15, str.Row_:__2d____2d_bytes_n
lea rbp, str.___02x
call r13
mov rcx, rax
call qword [sym.imp.msvcrt.dll__fileno]
mov edx, 0x8000
mov ecx, eax
call qword [sym.imp.msvcrt.dll__setmode]
call sym.getchar
cmp eax, 0xffffffff
je 0x14000329e
nop dword [rax]
and eax, 0xf
xor ecx, ecx
lea rbx, [rsp + 0x20]
lea edi, [rax + 1]
mov esi, eax
call r13
movsxd r14, edi
mov edx, 1
mov rcx, rbx
mov r9, rax
mov r8, r14
call sym.fread
cmp r14, rax
jne 0x1400032b1
add r12d, 1
mov r8d, edi
mov rcx, r15
mov edx, r12d
call sym.printf.constprop.5
lea rcx, str.HEX_:
call sym.printf.constprop.4
movsxd rax, esi
mov rsi, rbx
lea rdi, [rsp + rax + 0x21]
nop word [rax + rax]
movzx edx, byte [rsi]
mov rcx, rbp
add rsi, 1
call sym.printf.constprop.3
cmp rsi, rdi
jne 0x140003248
lea rcx, str._nDEC_:
lea rsi, str.__3d
call sym.printf.constprop.2
nop
movzx edx, byte [rbx]
mov rcx, rsi
add rbx, 1
call sym.printf.constprop.1
cmp rbx, rdi
jne 0x140003270
lea rcx, [0x14000d490]
call sym.printf.constprop.0_1
call sym.getchar
cmp eax, 0xffffffff
jne 0x1400031e8
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 2
call r13
lea rdx, str.Unexpected_end_of_file_reading_barcode_n
mov rcx, rax
call sym.fprintf.constprop.0
mov ecx, 1
call sym.exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1400033c0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbp, qword [dbg.__acrt_iob_func]
xor ebx, ebx
mov rsi, rcx
lea rdi, [rsp + 0x28]
jmp 0x1400033f8
cmp rax, 8
jne 0x14000341a
mov rdx, rsi
mov rcx, rdi
add ebx, 7
add rsi, 7
call sym.descramble
xor ecx, ecx
call rbp
mov r8d, 8
mov edx, 1
mov rcx, rdi
mov r9, rax
call sym.fread
cmp ebx, 0xfff
jle 0x1400033e0
mov eax, ebx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret