joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400580f0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x70
xor edi, edi
lea r9, [rax + 8]
mov rbx, rcx
mov dword [rax + 8], edi
mov rcx, qword [rcx + 0x70]
lea rdx, [rax - 0x48]
mov qword [rax - 0x58], rdi
lea r8d, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea r9d, [rdi + 0x19]
lea r8, [rsp + 0x4b]
lea edx, [rdi + 3]
lea rcx, [rbx + 0x58]
call fcn.140025fb0
movzx edx, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x65]
mov eax, edx
and eax, 1
mov qword [rbx + 0x290], 0x40
inc eax
mov dword [rbx + 0x20], eax
sub ecx, 1
je 0x140058172
cmp ecx, 1
je 0x140058169
mov dword [rbx + 0x28], 0xbb80
jmp 0x140058179
mov dword [rbx + 0x28], 0x3e80
jmp 0x140058179
mov dword [rbx + 0x28], 0x7d00
mov ecx, edx
shr ecx, 3
test ecx, ecx
je 0x1400581c9
sub ecx, 2
je 0x1400581b6
cmp ecx, 1
je 0x1400581a3
mov eax, 0x8004020b
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov dword [rbx + 0x2c8], 4
lea r8, str.Digilink_4:1
jmp 0x1400581da
mov dword [rbx + 0x2c8], 2
lea r8, str.Digilink_2:1
jmp 0x1400581da
mov dword [rbx + 0x2c8], 1
lea r8, [0x14012f1c8]
mov edx, 2
lea rcx, [rbx + 0x58]
lea r9d, [rdx - 3]
call fcn.140025fb0
mov rcx, qword [rbx + 0x70]
xor edx, edx
mov eax, reloc.WSOCK32.dll_recv
div dword [rbx + 0x2c8]
lea rdx, [rsp + 0x80]
mov dword [rbx + 0x2ac], eax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [rbx + 0x20]
lea r11, [rsp + 0x70]
mov rsi, qword [r11 + 0x20]
test eax, eax
cmovne rdi, qword [rsp + 0x80]
sub rdi, qword [rbx + 0x290]
lea r8d, [rcx + rcx]
mov ecx, dword [rbx + 0x2c8]
mov rax, rdi
cqo
idiv r8
imul rax, rcx
mov qword [rbx + 0x18], rax
xor eax, eax
mov rbx, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140058260
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov eax, dword [rcx + 0x2c]
lea r9, [rsp + 0x40]
mov rsi, qword [rcx + 0x2b8]
mov rbx, rcx
cmp rsi, rax
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
cmovge esi, eax
xor edx, edx
lea eax, [rsi + rsi]
div dword [rcx + 0x2c8]
mov rdx, qword [rcx + 0x2a0]
mov edi, eax
imul edi, dword [rcx + 0x20]
mov rcx, qword [rcx + 0x70]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400583dd
cmp dword [rsp + 0x40], edi
jne 0x1400583dd
mov r9, qword [rbx + 0x2a0]
xor edi, edi
mov r11b, 1
test esi, esi
je 0x1400583c4
movss xmm3, dword [0x14012bff4]
xor r10d, r10d
nop
xor r8d, r8d
cmp dword [rbx + 0x20], r8d
jbe 0x1400583b6
nop dword [rax]
mov ecx, dword [rbx + 0x2c8]
sub ecx, 1
je 0x140058385
sub ecx, 1
je 0x140058363
cmp ecx, 2
jne 0x1400583a9
movzx edx, byte [r9]
mov ecx, edx
test r11b, r11b
je 0x140058344
and ecx, 7
shl ecx, 4
call fcn.1400580b0
movzx ecx, ax
neg cx
and dl, 8
cmove cx, ax
xor r11b, r11b
movsx eax, cx
jmp 0x14005838d
and ecx, 0x70
call fcn.1400580b0
movzx ecx, ax
mov r11b, 1
neg cx
test dl, dl
cmovns cx, ax
inc r9
movsx eax, cx
jmp 0x14005838d
movzx edx, byte [r9]
mov ecx, edx
and ecx, 0x7f
call fcn.1400580b0
movzx ecx, ax
inc r9
neg cx
test dl, dl
cmovns cx, ax
movsx eax, cx
jmp 0x14005838d
movsx eax, word [r9]
add r9, 2
movd xmm0, eax
mov rax, qword [rbx + 0x2b0]
cvtdq2ps xmm0, xmm0
mov rcx, qword [rax + r8*8]
mulss xmm0, xmm3
movss dword [r10 + rcx], xmm0
inc r8d
cmp r8d, dword [rbx + 0x20]
jb 0x140058300
inc edi
add r10, 4
cmp edi, esi
jb 0x1400582f0
mov edx, esi
mov rcx, rbx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.140025060
mov rbx, qword [rsp + 0x48]
mov eax, 0x80040205
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140058600
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x970
mov rsi, rcx
lea rcx, [rsp + 0x58]
call fcn.140044b90
mov rcx, qword [rsi + 0x70]
lea rax, [rsp + 0x58]
xor ebx, ebx
mov qword [rsp + 0x50], rax
mov edx, ebx
xor r9d, r9d
xor r8d, r8d
mov ebp, ebx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140058756
nop dword [rax]
mov rcx, qword [rsi + 0x70]
lea r9, [rsp + 0x980]
mov r8d, 0x100
mov dword [rsp + 0x980], ebx
lea rdx, [rsp + 0x90]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140058756
cmp dword [rsp + 0x980], 0x100
jne 0x140058756
mov r8d, 0x100
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x58]
call fcn.140045ba0
lea rcx, [rsp + 0x30]
call fcn.14002da80
mov edi, eax
test eax, eax
jne 0x140058758
mov r8d, dword [rsp + 0x34]
mov eax, dword [rsp + 0x30]
lea ecx, [r8 + rax]
cmp ecx, 0x100
jbe 0x14005870c
lea r8d, [rcx - 0x100]
mov dword [rsp + 0x980], ebx
mov rcx, qword [rsi + 0x70]
lea r9, [rsp + 0x980]
lea rdx, [rsp + 0x190]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, dword [rsp + 0x34]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsi + 0x10]
lea rdx, [rsp + 0x90]
mov r9d, dword [rsp + 0x38]
add rdx, rax
mov r10, qword [rcx]
call qword [r10 + 0x20]
mov edi, eax
shr eax, 0x1f
test al, al
jne 0x140058758
mov eax, dword [rsp + 0x34]
xor r9d, r9d
add eax, dword [rsp + 0x30]
xor r8d, r8d
mov rcx, qword [rsi + 0x70]
add rbp, rax
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140058650
mov edi, ebx
lea rcx, [rsp + 0x58]
call fcn.140044c60
lea r11, [rsp + 0x970]
mov eax, edi
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400587a0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rdi, rcx
lea rcx, [rsp + 0x58]
call fcn.140044b90
mov rcx, qword [rdi + 0x70]
lea rax, [rsp + 0x58]
xor ebx, ebx
mov qword [rsp + 0x50], rax
lea r9, [rbp + 0xa0]
mov dword [rbp + 0xa0], ebx
mov r8d, 0x100
mov qword [rsp + 0x20], rbx
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005893b
cmp dword [rbp + 0xa0], 0x100
jne 0x14005893b
mov r8d, 0x100
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x58]
call fcn.140045ba0
lea rcx, [rsp + 0x30]
call fcn.14002da80
test eax, eax
je 0x140058846
cmp eax, 1
jne 0x140058940
mov eax, 0x8004020c
jmp 0x140058940
mov r9d, 0xffffffff
lea rcx, [rdi + 0x58]
lea r8, [0x140140d9c]
lea edx, [r9 + 3]
call fcn.140025fb0
mov eax, dword [rsp + 0x3c]
xor r9d, r9d
mov edx, dword [rsp + 0x30]
xor r8d, r8d
add edx, dword [rsp + 0x34]
mov rcx, qword [rdi + 0x70]
mov dword [rdi + 0x28], eax
mov eax, dword [rsp + 0x44]
mov dword [rdi + 0x20], eax
mov eax, dword [rsp + 0x48]
mov dword [rdi + 0x24], eax
mov eax, dword [rsp + 0x38]
mov dword [rdi + 0x2c], eax
mov qword [rdi + 0x18], rax
mov eax, dword [rsp + 0x40]
mov dword [rdi + 0x2d0], eax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, qword [rdi + 0x70]
lea r9, [rbp + 0xa0]
mov r8d, 0x100
mov dword [rbp + 0xa0], ebx
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140058942
cmp dword [rbp + 0xa0], 0x100
jne 0x140058942
mov r8d, 0x100
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x58]
call fcn.140045ba0
lea rcx, [rsp + 0x30]
call fcn.14002da80
shr eax, 0x1f
not al
test al, 1
je 0x140058942
mov rcx, qword [rdi + 0x70]
lea rdx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [rsp + 0x34]
mov r8, rbx
test eax, eax
cmovne r8, qword [rbp + 0xa0]
add ecx, dword [rsp + 0x30]
mov rax, r8
cqo
idiv rcx
mov rcx, qword [rdi + 0x18]
imul rcx, rax
mov qword [rdi + 0x18], rcx
jmp 0x140058942
mov eax, 0x80040205
mov ebx, eax
lea rcx, [rsp + 0x58]
call fcn.140044c60
lea r11, [rsp + 0x190]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140058970
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x898]
sub rsp, 0x998
cmp qword [rcx + 0x2c8], 0
mov rbx, rcx
jne 0x14005899e
mov eax, 0x80040207
add rsp, 0x998
pop rbx
pop rbp
ret
mov qword [rsp + 0x990], rsi
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x988], rdi
mov qword [rsp + 0x980], r12
mov qword [rsp + 0x978], r14
mov qword [rsp + 0x970], r15
call fcn.140044b90
lea rax, [rsp + 0x58]
xor r12d, r12d
mov qword [rsp + 0x50], rax
mov r15d, r12d
mov rcx, qword [rbx + 0x70]
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
sete r14b
test eax, eax
je 0x140058a3c
mov rcx, qword [rbx + 0x70]
lea r9, [rbp + 0x8c0]
mov r8d, 0x100
mov dword [rbp + 0x8c0], r12d
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140058a39
cmp dword [rbp + 0x8c0], 0x100
jne 0x140058a39
xor r14b, r14b
jmp 0x140058a3c
mov r14b, 1
mov dword [rbp + 0x8b0], r12d
mov edi, r12d
test r14b, r14b
je 0x140058a5a
mov dword [rbp + 0x8b8], r12d
mov rax, r12
jmp 0x140058ae9
mov eax, dword [rsp + 0x30]
lea rcx, [rbp - 0x70]
add rcx, rax
lea rdx, [rbp - 0x70]
mov qword [rbp + 0x8c8], rcx
mov r8d, 0x100
lea rcx, [rsp + 0x58]
call fcn.140045ba0
lea rcx, [rsp + 0x30]
call fcn.14002da80
mov esi, eax
test eax, eax
jne 0x140058bb5
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
lea r8d, [rax + rcx]
cmp r8d, 0x100
jbe 0x140058adc
mov rcx, qword [rbx + 0x70]
lea r9, [rbp + 0x8c0]
add r8d, 0xffffff00
mov dword [rbp + 0x8c0], r12d
lea rdx, [rbp + 0x90]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
mov dword [rbp + 0x8b8], eax
mov eax, ecx
lea rax, [rbp + rax - 0x70]
mov qword [rbp + 0x8c8], rax
mov eax, dword [rbx + 0x2c]
lea r9, [rbp + 0x8c8]
mov rdx, qword [rbx + 0x2b0]
lea r8, [rbp + 0x8b0]
mov rcx, qword [rbx + 0x2c8]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x8b8]
mov qword [rsp + 0x20], rax
call fcn.14002bdd0
mov esi, eax
shr eax, 0x1f
test al, al
jne 0x140058bb5
mov r8d, dword [rbp + 0x8b0]
test r8d, r8d
je 0x140058b5f
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x2b0]
mov rax, qword [rcx]
call qword [rax + reloc.WSOCK32.dll_recv]
mov esi, eax
shr eax, 0x1f
test al, al
jne 0x140058bb5
add edi, dword [rbp + 0x8b0]
jmp 0x140058af0
cmp dword [rbp + 0x8b8], r12d
jne 0x140058af0
test r14b, r14b
je 0x140058b71
test edi, edi
je 0x140058b81
mov eax, dword [rsp + 0x34]
add eax, dword [rsp + 0x30]
add r15, rax
jmp 0x1400589e0
mov rdi, qword [rbx + 0x2c8]
test rdi, rdi
je 0x140058ba2
mov rcx, rdi
call fcn.14002bd40
mov edx, 0x50
mov rcx, rdi
call fcn.1400b6094
mov rcx, qword [rbx + 0x10]
mov qword [rbx + 0x2c8], r12
mov rax, qword [rcx]
call qword [rax + 0x18]
mov esi, eax
lea rcx, [rsp + 0x58]
call fcn.140044c60
mov r15, qword [rsp + 0x970]
mov eax, esi
mov rsi, qword [rsp + 0x990]
mov r14, qword [rsp + 0x978]
mov r12, qword [rsp + 0x980]
mov rdi, qword [rsp + 0x988]
add rsp, 0x998
pop rbx
pop rbp
ret
Function at 0x140058d30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x130
mov esi, r9d
mov ebx, r8d
mov rdi, rcx
test r8d, r8d
jne 0x140058d57
xor eax, eax
jmp 0x140058df0
mov rcx, qword [rcx + 0x38]
lea r9, [rsp + 0x150]
mov qword [rsp + 0x140], rbp
xor ebp, ebp
mov dword [rsp + 0x150], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140058de3
cmp dword [rsp + 0x150], ebx
jne 0x140058de3
cmp byte [rdi + 0x298], bpl
je 0x140058dd8
movzx eax, bl
test bl, bl
je 0x140058dd8
mov ebx, 0x100
lea rcx, [rsp + 0x30]
sub ebx, eax
xor edx, edx
mov r8d, ebx
call fcn.1400ba240
mov rcx, qword [rdi + 0x38]
lea r9, [rsp + 0x150]
mov r8d, ebx
mov dword [rsp + 0x150], ebp
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
add qword [rdi + 0x268], rsi
xor eax, eax
jmp 0x140058de8
mov eax, 0x80040206
mov rbp, qword [rsp + 0x140]
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140059060
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x70
xor eax, eax
lea r9, [r11 + 8]
mov rbx, rcx
mov dword [r11 + 8], eax
mov rcx, qword [rcx + 0x70]
lea rdx, [r11 - 0x48]
mov qword [r11 - 0x58], rax
lea r8d, [rax + 0x38]
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea rdx, str.DiamondWare_Digitized_n
lea rcx, [rsp + 0x30]
call fcn.140104fa4
test eax, eax
jne 0x140059114
cmp byte [rsp + 0x48], 1
ja 0x140059114
cmp byte [rsp + 0x4f], al
je 0x1400590b8
mov eax, 0x8004020b
add rsp, 0x70
pop rbx
ret
mov eax, dword [rsp + 0x5e]
lea r8, [0x14012f1f8]
cmp byte [rsp + 0x53], 0x10
lea rcx, [rbx + 0x58]
mov qword [rbx + 0x290], rax
mov edx, 2
mov eax, dword [rsp + 0x5a]
mov qword [rbx + 0x18], rax
movzx eax, byte [rsp + 0x52]
mov dword [rbx + 0x20], eax
lea r9d, [rdx - 3]
movzx eax, word [rsp + 0x50]
mov dword [rbx + 0x28], eax
lea rax, [0x14012f1c8]
cmove r8, rax
call fcn.140025fb0
mov rcx, rbx
call fcn.140023ca0
xor eax, eax
add rsp, 0x70
pop rbx
ret
mov eax, 0x8004020c
add rsp, 0x70
pop rbx
ret
Function at 0x140059120
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
lea rdx, [0x14012bb38]
mov rdi, rcx
call fcn.140024c30
mov edx, eax
shr edx, 0x1f
test dl, dl
jne 0x1400592a8
mov rcx, rdi
call fcn.140024080
mov ecx, eax
shr ecx, 0x1f
test cl, cl
jne 0x1400592a8
cmp dword [rdi + 0x258], 1
mov eax, dword [0x1401416b0]
movups xmm0, xmmword [str.DiamondWare_Digitized_n]
mov dword [rbp - 0x30], eax
movzx eax, word [0x1401416b4]
mov word [rbp - 0x2c], ax
movzx eax, byte [0x1401416b6]
mov byte [rbp - 0x2a], al
mov qword [rsp + 0x80], rbx
movups xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x29], 0x11a
jne 0x1400591aa
cmp dword [rdi + 0x290], 1
mov byte [rbp - 0x27], cl
je 0x1400591ae
mov byte [rbp - 0x27], 1
xor ecx, ecx
call fcn.1400ff6d8
mov rdx, qword [rdi + 0x250]
lea r9, [rbp + 0x18]
xor ebx, ebx
mov dword [rbp - 0x16], edx
mov rcx, rdx
mov word [rbp - 0x22], 0
shl rcx, 0x10
xor ecx, eax
mov qword [rbp - 0x12], 0x38
movzx eax, word [rdi + 0x260]
lea r8d, [rbx + 0x38]
mov word [rbp - 0x20], ax
movzx eax, byte [rdi + 0x258]
mov byte [rbp - 0x1e], al
movzx eax, byte [rdi + 0x290]
shl al, 3
mov dword [rbp - 0x26], ecx
movzx ecx, al
mov eax, 1
mov byte [rbp - 0x1d], cl
dec ecx
shl ax, cl
mov rcx, qword [rdi + 0x38]
mov word [rbp - 0x1c], ax
mov eax, edx
imul eax, dword [rdi + 0x290]
lea rdx, [rbp - 0x40]
mov word [rbp - 0xa], bx
mov dword [rbp + 0x18], ebx
mov qword [rsp + 0x20], rbx
imul eax, dword [rdi + 0x258]
mov dword [rbp - 0x1a], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call fcn.1400246e0
mov ecx, eax
shr ecx, 0x1f
test cl, cl
jne 0x1400592a0
mov rcx, qword [rdi + 0x38]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [rdi + 0x268]
lea r9, [rbp + 0x18]
mov rcx, qword [rdi + 0x38]
lea r8d, [rbx + 0x38]
mov dword [rbp - 0x16], eax
lea rdx, [rbp - 0x40]
imul eax, dword [rdi + 0x290]
mov dword [rbp + 0x18], ebx
mov qword [rsp + 0x20], rbx
imul eax, dword [rdi + 0x258]
mov dword [rbp - 0x1a], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
mov rbx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x90]
add rsp, 0x70
pop rbp
ret
Function at 0x140059490
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov rdi, rcx
lea r9, [rbp + 0x67]
mov rcx, qword [rcx + 0x70]
lea rdx, [rbp - 0x69]
xor r14d, r14d
mov r8d, 0xa8
mov dword [rbp + 0x67], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rbp - 0x59]
cmp eax, 0x6a1a
je 0x14005952d
cmp eax, 0x1a6a0000
je 0x1400594e8
mov eax, 0x8004020c
jmp 0x140059698
mov eax, dword [rbp - 0x61]
mov r15b, 1
bswap eax
mov dword [rbp - 0x61], eax
mov eax, dword [rbp - 0x5d]
bswap eax
mov dword [rbp - 0x5d], eax
mov eax, dword [rbp + 0x13]
bswap eax
mov dword [rbp + 0x13], eax
mov eax, dword [rbp + 0x1b]
bswap eax
mov dword [rbp + 0x1b], eax
mov eax, dword [rbp + 0x1f]
bswap eax
mov dword [rbp + 0x1f], eax
mov eax, dword [rbp + 0x23]
bswap eax
mov dword [rbp + 0x23], eax
mov eax, dword [rbp + 0x27]
bswap eax
mov dword [rbp + 0x27], eax
mov eax, dword [rbp + 0x2b]
bswap eax
mov dword [rbp + 0x2b], eax
jmp 0x140059530
xor r15b, r15b
mov r9d, 8
mov qword [rsp + 0x108], rbx
lea r8, [rbp + 0x37]
mov qword [rsp + 0x110], rsi
lea rcx, [rdi + 0x58]
lea edx, [r9 - 3]
call fcn.140025fb0
mov eax, dword [rbp - 0x61]
mov ebx, r14d
add eax, dword [rbp - 0x5d]
mov qword [rdi + 0x290], rax
mov eax, dword [rbp + 0x13]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x20], 1
mov dword [rdi + 0x28], 0xac44
cmp dword [rbp + 0x2b], ebx
je 0x14005959d
mov ebx, 1
lea r8, [0x14012f1f8]
lea rcx, [rdi + 0x58]
lea r9d, [rbx - 2]
lea edx, [rbx + 1]
call fcn.140025fb0
cmp dword [rbp + 0x27], r14d
je 0x1400595bf
mov r9d, 0xffffffff
lea r8, [0x14012f1c8]
inc ebx
lea rcx, [rdi + 0x58]
lea edx, [r9 + 3]
call fcn.140025fb0
cmp dword [rbp + 0x23], r14d
je 0x1400595e1
mov r9d, 0xffffffff
lea r8, [0x14012f1e8]
inc ebx
lea rcx, [rdi + 0x58]
lea edx, [r9 + 3]
call fcn.140025fb0
cmp dword [rbp + 0x1f], r14d
je 0x140059603
mov r9d, 0xffffffff
lea r8, [0x14012f260]
inc ebx
lea rcx, [rdi + 0x58]
lea edx, [r9 + 3]
call fcn.140025fb0
cmp dword [rbp + 0x1b], r14d
je 0x140059625
mov r9d, 0xffffffff
lea r8, [0x14012f270]
inc ebx
lea rcx, [rdi + 0x58]
lea edx, [r9 + 3]
call fcn.140025fb0
mov rsi, qword [rsp + 0x110]
cmp ebx, 1
mov rbx, qword [rsp + 0x108]
jbe 0x140059641
mov eax, 0x80040208
jmp 0x140059698
mov rcx, rdi
mov byte [rdi + 0x2c1], r15b
call fcn.140023ca0
mov rcx, qword [rdi + 0x70]
lea rdx, [rbp + 0x67]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
mov eax, dword [rdi + 0x2ac]
cmovne r14, qword [rbp + 0x67]
imul rax, qword [rdi + 0x18]
lea rcx, [r14 + 8]
cqo
and edx, 7
add rax, rdx
sar rax, 3
add rax, qword [rdi + 0x290]
cmp rax, rcx
jle 0x140059696
mov eax, dword [rbp - 0x61]
mov qword [rdi + 0x290], rax
xor eax, eax
mov rdi, qword [rsp + 0x118]
add rsp, 0xe0
pop r15
pop r14
pop rbp
ret
Function at 0x140059960
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
lea r8, [rsp + 0x30]
mov rsi, rcx
mov qword [rsp + 0x30], rbx
mov rcx, qword [rcx]
mov edx, ebx
lea r9d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, qword [rsi]
lea rdx, [rsp + 0x38]
test eax, eax
mov rdi, 0xffffffffffffffff
cmovne rdi, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rsi, qword [rsp + 0x48]
test eax, eax
cmovne rbx, qword [rsp + 0x38]
cmp rdi, rbx
mov rbx, qword [rsp + 0x40]
setge al
add rsp, 0x20
pop rdi
ret

Function at 0x14005b2f0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r8, qword [rcx + 0x68]
mov r9d, 0xffffffff
mov rdi, rcx
add rcx, 0x58
mov r8, qword [r8 + 0x30]
lea edx, [r9 + 3]
call fcn.140026280
mov rax, qword [rdi + 0x68]
mov edx, 8
mov rcx, qword [rax + 0x30]
add rcx, 0xc
call fcn.140028160
mov rcx, qword [rdi + 0x70]
lea rdx, [rsp + 0x30]
mov dword [rdi + 0x2ac], eax
xor ebx, ebx
movzx eax, byte [0x1401a9108]
mov byte [rdi + 0x400], al
mov qword [rdi + 0x290], rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [rdi + 0x2ac]
mov r8d, 1
test eax, eax
mov dword [rdi + 0x20], r8d
mov dword [rdi + 0x28], 0x3e80
cmovne rbx, qword [rsp + 0x30]
lea rax, [rbx*8]
cqo
idiv rcx
add rax, rax
mov qword [rdi + 0x18], rax
cmp ecx, 8
je 0x14005b3a6
cmp ecx, 7
jne 0x14005b39b
mov r8d, ecx
jmp 0x14005b3a6
cmp ecx, 6
jne 0x14005b3ed
mov r8d, 3
xor edx, edx
mov dword [rdi + 0x404], r8d
lea eax, [r8*8]
div ecx
xor edx, edx
mov dword [rdi + 0x408], eax
lea ecx, [rax + rax]
mov eax, dword [rdi + 0x2c]
div ecx
mov dword [rdi + 0x40c], ecx
imul ecx, eax
imul r8d, eax
xor eax, eax
mov dword [rdi + 0x2c], ecx
mov dword [rdi + 0x2a8], r8d
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
mov eax, 0x80040201
add rsp, 0x20
pop rdi
ret

Function at 0x14005b5b0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x2c8
mov edx, dword [rbx + 0x2ac]
call fcn.14002dca0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140024a80
Function at 0x14005bb70
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x68]
mov rdi, rcx
lea rcx, str.Panasonic_VM1_voice_file
mov rdx, qword [rax + 8]
call fcn.140028240
lea rcx, [rdi + 0x58]
mov r9d, 0xffffffff
lea edx, [r9 + 3]
test al, al
je 0x14005bbc2
lea r8, [0x140142408]
call fcn.140025fb0
mov dword [rdi + 0x2ac], 4
mov byte [rdi + 0x324], 1
jmp 0x14005bbf8
mov r8, qword [rdi + 0x68]
mov r8, qword [r8 + 0x30]
call fcn.140026280
mov rax, qword [rdi + 0x68]
mov edx, 4
mov rcx, qword [rax + 0x30]
add rcx, 0x18
call fcn.140028160
mov dword [rdi + 0x2ac], eax
movzx eax, byte [0x1401a9109]
mov byte [rdi + 0x324], al
mov rcx, qword [rdi + 0x70]
lea rdx, [rsp + 0x30]
xor ebx, ebx
mov qword [rdi + 0x290], rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [rdi + 0x2ac]
test eax, eax
mov dword [rdi + 0x20], 1
cmovne rbx, qword [rsp + 0x30]
mov dword [rdi + 0x28], 0x1f40
lea rax, [rbx*8]
cqo
idiv rcx
mov qword [rdi + 0x18], rax
call fcn.140024550
mov rbx, qword [rsp + 0x38]
mov dword [rdi + 0x320], eax
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x14005be40
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x2c8
mov edx, dword [rbx + 0x2ac]
call fcn.14002eb00
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140024a80

Function at 0x14005c540
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r8, qword [rcx + 0x68]
mov rbx, rcx
xor edi, edi
mov ecx, dword [r8 + 0x40]
and ecx, 0xf
cmp ecx, 1
jne 0x14005c567
mov byte [rbx + 0x1958], cl
jmp 0x14005c57a
movzx eax, byte [0x14018e4a8]
cmp ecx, 2
cmove eax, edi
mov byte [rbx + 0x1958], al
mov eax, dword [r8 + 0x40]
test al, 0x10
je 0x14005c586
mov cl, 1
jmp 0x14005c592
movzx ecx, byte [0x1401a910a]
test al, 0x20
cmovne ecx, edi
mov edx, reloc.WSOCK32.dll_recv
mov dword [rbx + 0x2ac], 2
test cl, cl
mov eax, 0xa
lea rcx, [rbx + 0x58]
cmovne eax, edx
lea r9d, [rdx - 0x11]
mov dword [rbx + 0x195c], eax
mov r8, qword [r8 + 0x30]
lea edx, [r9 + 3]
call fcn.140026280
mov rcx, qword [rbx + 0x70]
lea rdx, [rsp + 0x30]
mov qword [rbx + 0x290], rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [rbx + 0x195c]
test eax, eax
mov dword [rbx + 0x20], 1
cmovne rdi, qword [rsp + 0x30]
mov dword [rbx + 0x28], 0x1f40
lea rax, [rdi*8]
cqo
idiv rcx
lea rcx, [rax + rax*4]
mov eax, 0xcccccccd
mul dword [rbx + 0x2c]
mov qword [rbx + 0x18], rcx
shr edx, 2
lea eax, [rdx + rdx*4]
mov dword [rbx + 0x2c], eax
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret