joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400250c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rbp, rdx
mov rdi, rcx
test r8d, r8d
je 0x1400251a9
mov eax, r8d
add qword [rcx + 0x268], rax
cmp byte [rcx + 0x288], 0
je 0x1400251bb
add rcx, 0x28
mov edx, 2
call fcn.140025da0
movzx ecx, byte [rdi + 0x289]
xor esi, esi
mov r9d, dword [rdi + 0x258]
mov rdx, rbp
mov r8, qword [rdi + 0x280]
mov byte [rsp + 0x40], cl
movzx ecx, byte [rdi + 0x28a]
mov byte [rsp + 0x38], cl
mov rcx, qword [rdi + 0x270]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], esi
call fcn.140026dd0
mov ecx, eax
shr ecx, 0x1f
test cl, cl
jne 0x1400251ab
mov ebx, dword [rdi + 0x290]
lea r9, [rsp + 0x98]
imul ebx, dword [rdi + 0x258]
mov rdx, qword [rdi + 0x270]
mov rcx, qword [rdi + 0x38]
mov dword [rsp + 0x98], esi
mov qword [rsp + 0x20], rsi
imul ebx, dword [rsp + 0x90]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002524f
cmp dword [rsp + 0x98], ebx
jne 0x14002524f
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
xor esi, esi
mov dword [rsp + 0x50], esi
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdi]
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x28], rcx
lea r8, [rsp + 0x54]
lea rcx, [rsp + 0x50]
mov r9, rbp
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [rax + 0x78]
mov ecx, eax
shr ecx, 0x1f
test cl, cl
jne 0x1400251ab
mov ebx, dword [rsp + 0x54]
test ebx, ebx
je 0x140025241
mov rdx, qword [rsp + 0x58]
lea r9, [rsp + 0x98]
mov rcx, qword [rdi + 0x38]
mov r8d, ebx
mov dword [rsp + 0x98], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002524f
cmp dword [rsp + 0x98], ebx
jne 0x14002524f
cmp dword [rsp + 0x90], esi
jne 0x1400251d0
jmp 0x1400251a9
mov rbx, qword [rsp + 0x80]
mov eax, 0x80040206
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140028c40
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push rdi
sub rsp, 0x270
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [rsp + 0x30]
mov ecx, 0x2e
test eax, eax
mov r9, rdi
cmove edx, ecx
xor r8d, r8d
mov dword [rsp + 0x30], edx
lea rcx, [rsp + 0x30]
lea rdx, [0x140131154]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x140028edf
mov qword [rsp + 0x280], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x268], rbp
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x260], rsi
mov rdx, rdi
mov qword [rsp + 0x258], r12
sub rdx, rax
mov qword [rsp + 0x250], r13
mov qword [rsp + 0x248], r14
mov qword [rsp + 0x240], r15
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140028ce0
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rdi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140028d00
lea rbx, [rdi + rax*2]
movzx eax, word [rdi + rax*2 - 2]
cmp ax, 0x5c
je 0x140028d2d
cmp ax, 0x2f
je 0x140028d2d
mov eax, 0x5c
mov word [rbx], ax
add rbx, 2
movups xmm0, xmmword [str.aw000000.tmp]
movups xmmword [rbx], xmm0
movsd xmm1, qword [0x140131170]
movsd qword [rbx + 0x10], xmm1
movzx eax, word [0x140131178]
mov word [rbx + 0x18], ax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [rsp + 0x24], eax
mov eax, 0xcccccccd
mul ecx
mov eax, 0xcccccccd
mov ebp, edx
shr ebp, 3
mul ebp
movzx ecx, bp
mov r14d, edx
shl cx, 2
shr r14d, 3
movzx eax, r14w
shl ax, 2
lea r8d, [rcx + rbp]
add r8w, r8w
mov word [rsp + 0x290], r8w
lea r9d, [rax + r14]
mov eax, 0xcccccccd
mul r14d
add r9w, r9w
mov r15d, edx
mov word [rsp + 0x298], r9w
shr r15d, 3
movzx eax, r15w
shl ax, 2
lea r10d, [rax + r15]
mov eax, 0xcccccccd
mul r15d
add r10w, r10w
mov r12d, edx
mov word [rsp + 0x20], r10w
shr r12d, 3
movzx eax, r12w
shl ax, 2
lea r11d, [rax + r12]
mov eax, 0xcccccccd
mul r12d
add r11w, r11w
mov r13d, edx
mov word [rsp + 0x22], r11w
shr r13d, 3
movzx ecx, r13w
shl cx, 2
lea eax, [rcx + r13]
add ax, ax
mov word [rsp + 0x288], ax
mov eax, 0xcccccccd
mul r13d
mov esi, edx
shr esi, 3
movzx eax, si
shl ax, 2
add si, ax
add si, si
movzx eax, word [rsp + 0x24]
mov rcx, rdi
sub ax, r8w
add word [rbx + 0xe], ax
movzx eax, bp
sub ax, r9w
add word [rbx + 0xc], ax
movzx eax, r14w
sub ax, r10w
add word [rbx + 0xa], ax
movzx eax, r15w
sub ax, r11w
add word [rbx + 8], ax
movzx eax, r12w
sub ax, word [rsp + 0x288]
add word [rbx + 6], ax
movzx eax, r13w
sub ax, si
add word [rbx + 4], ax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
movzx r8d, word [rsp + 0x290]
movzx r9d, word [rsp + 0x298]
movzx r10d, word [rsp + 0x20]
movzx r11d, word [rsp + 0x22]
cmp eax, 0xffffffff
jne 0x140028e30
mov r15, qword [rsp + 0x240]
mov r14, qword [rsp + 0x248]
mov r13, qword [rsp + 0x250]
mov r12, qword [rsp + 0x258]
mov rsi, qword [rsp + 0x260]
mov rbp, qword [rsp + 0x268]
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
Function at 0x14002c0e0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp qword [0x140194d18], 0
jne 0x14002c1fa
lea rcx, str.msacm32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140194d18], rax
test rax, rax
jne 0x14002c110
add rsp, 0x28
ret
lea rdx, str.acmStreamOpen
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140194d18]
lea rdx, str.acmStreamClose
mov qword [0x140194ce8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140194d18]
lea rdx, str.acmStreamSize
mov qword [0x140194cf0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140194d18]
lea rdx, str.acmStreamConvert
mov qword [0x140194cf8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140194d18]
lea rdx, str.acmStreamPrepareHeader
mov qword [0x140194d00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140194d18]
lea rdx, str.acmStreamUnprepareHeader
mov qword [0x140194d08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140194ce8], 0
mov qword [0x140194d10], rax
je 0x14002c1e5
cmp qword [0x140194cf0], 0
je 0x14002c1e5
cmp qword [0x140194cf8], 0
je 0x14002c1e5
cmp qword [0x140194d00], 0
je 0x14002c1e5
cmp qword [0x140194d08], 0
je 0x14002c1e5
test rax, rax
jne 0x14002c1fa
xor eax, eax
mov qword [0x140194ce8], rax
mov qword [0x140194d18], rax
add rsp, 0x28
ret
mov al, 1
add rsp, 0x28
ret
Function at 0x140044da0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
sub rsp, 0x38
mov eax, dword [rcx + 0x54]
mov rbp, rdx
add rax, qword [rcx + 0x48]
mov rdi, rcx
mov rdx, qword [rcx + 0x38]
sar rax, 3
mov eax, eax
sub rdx, rax
mov r14d, r8d
add rdx, r14
mov esi, r9d
cmp rdx, qword [rcx + 0x20]
jb 0x140044df4
lea rax, [rsi + rdx]
mov r8d, esi
cmp rax, qword [rcx + 0x28]
ja 0x140044df4
mov rcx, rbp
call fcn.1400b9e30
mov al, 1
add rsp, 0x38
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rcx + 8]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x68], rbx
xor ebx, ebx
mov edx, ebx
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x60], rbx
mov rcx, qword [rcx]
lea r9d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, qword [rdi + 8]
mov r15, 0xffffffffffffffff
mov rdx, qword [rdi + 0x10]
test eax, eax
cmovne r15, qword [rsp + 0x60]
add rdx, r14
mov rcx, qword [rcx]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x70]
mov r8d, esi
mov dword [rsp + 0x70], ebx
mov rdx, rbp
mov qword [rsp + 0x20], rbx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140044e73
cmp dword [rsp + 0x70], esi
jne 0x140044e73
mov bl, 1
mov rcx, qword [rdi + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov r15, qword [rsp + 0x30]
movzx eax, bl
mov rbx, qword [rsp + 0x68]
add rsp, 0x38
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140044fd0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
inc qword [rcx + 0x48]
mov rbx, rcx
mov rax, qword [rcx + 0x48]
cmp rax, qword [rcx + 0x40]
jg 0x140045092
mov ecx, dword [rcx + 0x54]
test ecx, ecx
jne 0x14004506b
mov rdx, qword [rbx + 0x38]
xor r8d, r8d
mov rdi, qword [rbx + 0x28]
cmp rdx, rdi
jne 0x140045051
mov rdx, qword [rbx + 0x20]
mov rax, rdi
mov rcx, qword [rbx + 0x30]
sub edi, edx
sub rax, rdx
cmp rcx, rax
cmovl edi, ecx
test edi, edi
je 0x140045092
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x40]
mov qword [rbx + 0x38], rdx
mov dword [rsp + 0x40], r8d
mov qword [rsp + 0x20], r8
mov r8d, edi
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rdx, qword [rbx + 0x38]
mov r8d, dword [rbx + 0x54]
mov eax, edi
sub qword [rbx + 0x30], rax
movzx eax, byte [rdx]
mov ecx, dword [rbx + 0x50]
shl ecx, 8
or ecx, eax
lea rax, [rdx + 1]
mov dword [rbx + 0x50], ecx
lea ecx, [r8 + 8]
mov qword [rbx + 0x38], rax
mov eax, dword [rbx + 0x50]
lea r8, [0x140139730]
dec ecx
mov dword [rbx + 0x54], ecx
mov r8d, dword [r8 + rcx*4]
and r8d, eax
mov dword [rbx + 0x50], r8d
shr eax, cl
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x1400451d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov esi, edx
mov rbx, rcx
add qword [rcx + 0x48], rsi
mov rax, qword [rcx + 0x48]
cmp rax, qword [rcx + 0x40]
jg 0x14004529c
mov eax, dword [rcx + 0x54]
cmp esi, eax
jbe 0x14004527f
mov rdx, qword [rcx + 0x38]
xor ebp, ebp
nop dword [rax + rax]
mov rdi, qword [rbx + 0x28]
cmp rdx, rdi
jne 0x14004525f
mov rdx, qword [rbx + 0x20]
mov rax, rdi
mov rcx, qword [rbx + 0x30]
sub edi, edx
sub rax, rdx
cmp rcx, rax
cmovl edi, ecx
test edi, edi
je 0x14004529c
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x48]
mov qword [rbx + 0x38], rdx
mov r8d, edi
mov dword [rsp + 0x48], ebp
mov qword [rsp + 0x20], rbp
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rdx, qword [rbx + 0x38]
mov eax, edi
sub qword [rbx + 0x30], rax
movzx eax, byte [rdx]
mov ecx, dword [rbx + 0x50]
add dword [rbx + 0x54], 8
shl ecx, 8
or ecx, eax
mov eax, dword [rbx + 0x54]
inc rdx
mov dword [rbx + 0x50], ecx
mov qword [rbx + 0x38], rdx
cmp esi, eax
ja 0x140045210
sub eax, esi
lea rdx, [0x140139730]
mov ecx, eax
mov eax, dword [rbx + 0x50]
mov dword [rbx + 0x54], ecx
mov edx, dword [rdx + rcx*4]
and edx, eax
mov dword [rbx + 0x50], edx
shr eax, cl
jmp 0x14004529e
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140045d40
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x30]
mov rbx, rcx
cmp qword [rcx + 0x38], rax
jb 0x140045db0
mov eax, 0x1000
mov qword [rsp + 0x48], rdi
mov rdi, qword [rcx + 0x20]
lea r9, [rsp + 0x40]
cmp rdi, rax
cmovg edi, eax
sub eax, edi
mov r8d, edi
mov edx, eax
xor eax, eax
add rdx, qword [rcx + 0x28]
mov qword [rcx + 0x38], rdx
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140045d9d
cmp dword [rsp + 0x40], edi
je 0x140045da5
mov rcx, rbx
call fcn.140045b80
mov eax, edi
sub qword [rbx + 0x20], rax
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
Function at 0x140045de0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x830
mov rbp, rdx
mov rsi, rcx
mov rcx, qword [rcx]
lea rdx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor edi, edi
mov ebx, 0x800
test eax, eax
mov r8d, edi
cmovne r8d, dword [rsp + 0x840]
sub r8d, ebp
cmp r8d, ebx
jg 0x140045e52
mov rcx, qword [rsi]
lea rdx, [rsp + 0x840]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
mov ebx, edi
cmovne ebx, dword [rsp + 0x840]
sub ebx, ebp
cmp ebx, 0x80
jle 0x140045ed7
mov rcx, qword [rsi]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, qword [rsi]
lea r9, [rsp + 0x840]
mov r8d, ebx
mov dword [rsp + 0x840], edi
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, ebx
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x30]
lea r9, [rsp + rax - 0x50]
movzx eax, di
cmp rcx, r9
jae 0x140045ed7
mov r11d, 0xffff
lea r10d, [r11 - 0x1f]
nop dword [rax]
movzx r8d, byte [rdx]
shl ax, 8
or ax, r8w
cmp ax, r11w
je 0x140045ecf
movzx ecx, ax
and cx, r10w
cmp cx, r10w
je 0x140045ef2
inc rdx
cmp rdx, r9
jb 0x140045eb0
xor eax, eax
lea r11, [rsp + 0x830]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
dec rdx
cmp rdx, r9
jae 0x140045ed7
movzx ecx, byte [rdx + 3]
and r8b, 0x18
shr ecx, 6
cmp r8b, 0x18
jne 0x140045f16
mov eax, 0x24
lea r8d, [rax - 0xf]
jmp 0x140045f21
mov eax, socket
mov r8d, recv
cmp ecx, 3
cmove rax, r8
cmp dword [rax + rdx], 0x676e6958
lea r8, [rax + rdx]
je 0x140045f3e
cmp dword [r8], 0x6f666e49
jne 0x140045ed7
mov edx, dword [r8 + 4]
mov r9d, 4
bswap edx
mov ecx, edx
mov eax, 8
and ecx, 1
test dl, 2
cmove eax, r9d
add rax, r9
add rax, r8
test r9b, dl
lea rcx, [rax + rcx*4]
lea rax, [rcx + 0x64]
cmove rax, rcx
test dl, 8
lea r9, [rax + 4]
cmove r9, rax
movzx edx, byte [r9 + 0x16]
movzx r8d, byte [r9 + 0x15]
mov eax, edx
movzx ecx, byte [r9 + 0x17]
and edx, 0xf
shr eax, 4
shl edx, 8
shl r8d, 4
add ecx, edx
add r8d, eax
mov eax, edi
cmp ecx, 0xbb8
cmovbe eax, ecx
cmp r8d, 0xbb8
cmovbe edi, r8d
add eax, edi
jmp 0x140045ed9
Function at 0x140046fe0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x60
mov r14, r8
mov rdi, rdx
mov r15, rcx
lea r8, str.ov_open_callbacks
lea rdx, [0x1401a8f30]
mov r12, r9
lea rcx, str.libvorbisfile.dll
call fcn.140028a70
test al, al
jne 0x140047031
mov eax, 0x80040210
mov rdi, qword [rsp + 0x98]
add rsp, 0x60
pop r15
pop r14
pop r12
ret
mov qword [rsp + 0x80], rbx
xor ebx, ebx
mov qword [r15 + 8], rdi
cmp qword [r15 + 0x368], rbx
jne 0x140047067
mov rcx, qword [rdi]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
mov ecx, ebx
cmovne rcx, qword [rsp + 0x30]
mov qword [r15 + 0x368], rcx
mov rdx, qword [r15 + 0x360]
xor r9d, r9d
mov qword [r15 + 0x358], rdx
xor r8d, r8d
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
movups xmm0, xmmword [0x14013e900]
lea rax, [rsp + 0x40]
xor r9d, r9d
movups xmm1, xmmword [0x14013e910]
xor r8d, r8d
lea rdx, [r15 + 0x10]
mov rcx, r15
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x50], xmm1
mov qword [rsp + 0x20], rax
call qword [0x1401a8f30]
test eax, eax
je 0x1400470c7
mov eax, 0x8004020d
jmp 0x1400471d0
mov edx, 0xffffffff
mov qword [rsp + 0x90], rsi
lea rcx, [r15 + 0x10]
call qword [0x1401a8f48]
lea rcx, [r15 + 0x10]
mov rsi, rax
test rax, rax
jne 0x1400470fa
call qword [0x1401a8f38]
mov eax, 0x80040200
jmp 0x1400471c8
mov edx, 0xffffffff
mov qword [rsp + 0x88], rbp
call qword [0x1401a8f40]
mov rbp, qword [rsp + 0xa8]
movabs rcx, 0x7fffffffffffffff
test rax, rax
cmovle rax, rcx
mov qword [r14], rax
mov eax, dword [rsi + 4]
mov dword [r12], eax
mov rax, qword [rsp + 0xa0]
mov ecx, dword [rsi + 8]
mov dword [rax], ecx
test rbp, rbp
je 0x1400471a0
mov edx, 0xffffffff
lea rcx, [r15 + 0x10]
call qword [0x1401a8f50]
mov rdi, rax
test rax, rax
je 0x1400471a0
cmp dword [rax + 0x10], ebx
jle 0x1400471a0
mov r14, rbx
mov rsi, rbx
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rdi + 8]
mov r8d, dword [rsi + rax]
test r8d, r8d
je 0x140047191
mov rax, qword [rdi]
mov rdx, qword [r14 + rax]
test rdx, rdx
je 0x140047191
mov rcx, rbp
call fcn.1400482e0
inc ebx
add rsi, 4
add r14, 8
cmp ebx, dword [rdi + 0x10]
jl 0x140047170
mov eax, dword [r12]
mov rbp, qword [rsp + 0x88]
mov dword [r15 + 4], eax
mov dword [r15 + 0x374], eax
xor eax, eax
mov dword [r15 + 0x370], 0xffffffff
mov byte [r15], 1
mov rsi, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x98]
add rsp, 0x60
pop r15
pop r14
pop r12
ret
Function at 0x140047f90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
lea rbx, [rcx + 0x250]
mov r14, rcx
mov rdx, rbx
add rcx, 0x1d0
xor r15d, r15d
call qword [0x1401a8ef8]
cmp eax, 1
jne 0x14004811d
xor edx, edx
mov rcx, rbx
call qword [0x1401a8f00]
mov rcx, rbx
call qword [0x1401a8f08]
lea rdx, [r14 + 0x1a8]
lea rcx, [r14 + 0x1d0]
call qword [0x1401a8f10]
test eax, eax
je 0x140048104
lea rdx, [r14 + 0x1a8]
lea rcx, [r14 + 0x10]
call qword [0x1401a8e58]
test r15d, r15d
jne 0x1400480e1
nop dword [rax]
lea rdx, [r14 + 0x188]
lea rcx, [r14 + 0x10]
call qword [0x1401a8e68]
test eax, eax
je 0x1400480e1
mov rcx, qword [r14]
lea r9, [rsp + 0x60]
mov ebx, dword [r14 + 0x190]
mov r8d, ebx
mov rdx, qword [r14 + 0x188]
mov dword [rsp + 0x60], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14004807d
cmp dword [rsp + 0x60], ebx
jne 0x14004807d
mov ebx, 1
jmp 0x14004807f
xor ebx, ebx
mov rcx, qword [r14]
lea r9, [rsp + 0x60]
mov edi, dword [r14 + 0x1a0]
xor eax, eax
mov rdx, qword [r14 + 0x198]
mov r8d, edi
mov dword [rsp + 0x60], eax
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400480bd
cmp dword [rsp + 0x60], edi
jne 0x1400480bd
mov eax, 1
jmp 0x1400480bf
xor eax, eax
lea ecx, [rax + rbx]
test ecx, ecx
je 0x14004813c
lea rcx, [r14 + 0x188]
call qword [0x1401a8e50]
test eax, eax
je 0x140048020
mov r15d, 1
lea rdx, [r14 + 0x1a8]
lea rcx, [r14 + 0x1d0]
call qword [0x1401a8f10]
test eax, eax
jne 0x140048002
lea rbx, [r14 + 0x250]
mov rdx, rbx
lea rcx, [r14 + 0x1d0]
call qword [0x1401a8ef8]
cmp eax, 1
je 0x140047fd2
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 0x80040206
jmp 0x14004811f
Function at 0x140048430
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push r14
push r15
sub rsp, 0x40
mov r15, r8
mov r14, rdx
mov rbx, rcx
lea r8, str.op_test
lea rdx, [0x1401a8f70]
mov rsi, r9
lea rcx, str.opusfile.dll
call fcn.140028a70
test al, al
jne 0x14004847c
mov eax, 0x80040210
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
mov qword [rsp + 0x68], rdi
xor edi, edi
mov qword [rbx + 0x10], r14
cmp qword [rbx + 0x30], rdi
jne 0x1400484a9
mov rcx, qword [r14]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
mov ecx, edi
cmovne rcx, qword [rsp + 0x38]
mov qword [rbx + 0x30], rcx
mov rdx, qword [rbx + 0x28]
xor r9d, r9d
mov qword [rbx + 0x20], rdx
xor r8d, r8d
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x14013eb30]
mov rcx, rbx
call qword [0x1401a8f78]
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x1400484f3
mov eax, 0x8004020d
jmp 0x14004860a
mov rax, qword [rsp + 0x80]
mov edx, 0xffffffff
mov dword [rax], 0xbb80
mov dword [rsi], 2
mov rcx, qword [rbx + 0x18]
call qword [0x1401a8f88]
test rax, rax
je 0x140048536
mov ecx, dword [rax + 8]
mov dword [rbx + 8], ecx
mov ecx, dword [rax + 4]
mov dword [rsi], ecx
mov ecx, dword [rax + 0x14]
mov dword [rbx + 0x44], ecx
mov edx, dword [rsi]
call fcn.140048f40
mov dword [rbx + 0xc], eax
mov eax, dword [rsi]
mov edx, 0xffffffff
mov rcx, qword [rbx + 0x18]
mov dword [rbx + 4], eax
mov dword [rbx + 0x4c], eax
mov dword [rbx + 0x48], 0xffffffff
call qword [0x1401a8f90]
mov qword [r15], rax
test rax, rax
jg 0x140048566
mov eax, 0x8004020e
jmp 0x14004860a
mov rcx, qword [rbx + 0x38]
mov qword [rsp + 0x60], rbp
test rcx, rcx
je 0x140048582
cmp dword [rbx + 0x40], 0x1e00
jle 0x140048597
call fcn.1400b60a4
mov ecx, 0x7800
call fcn.1400b609c
mov qword [rbx + 0x38], rax
mov dword [rbx + 0x40], 0x1e00
mov rbp, qword [rsp + 0x88]
test rbp, rbp
je 0x140048600
mov rcx, qword [rbx + 0x18]
mov edx, 0xffffffff
call qword [0x1401a8f98]
mov rsi, rax
test rax, rax
je 0x140048600
cmp dword [rax + 0x10], edi
jle 0x140048600
mov r15, rdi
mov r14, rdi
nop word [rax + rax]
mov rax, qword [rsi + 8]
mov r8d, dword [r14 + rax]
test r8d, r8d
je 0x1400485f1
mov rax, qword [rsi]
mov rdx, qword [r15 + rax]
test rdx, rdx
je 0x1400485f1
mov rcx, rbp
call fcn.1400482e0
inc edi
add r14, 4
add r15, 8
cmp edi, dword [rsi + 0x10]
jl 0x1400485d0
mov rbp, qword [rsp + 0x60]
xor eax, eax
mov byte [rbx], 1
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
Function at 0x140049b80
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rax, rcx
mov ecx, 4
lea rax, [rax + 0x80]
movups xmm0, xmmword [rdx]
lea rdx, [rdx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm1, xmmword [rdx - 0x70]
movups xmmword [rax - 0x70], xmm1
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rax - 0x60], xmm0
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rax - 0x50], xmm1
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rax - 0x40], xmm0
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rax - 0x30], xmm1
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rax - 0x20], xmm0
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rax - 0x10], xmm1
sub rcx, 1
jne 0x140049b95
movups xmm0, xmmword [rdx]
xor edi, edi
movups xmmword [rax], xmm0
mov rcx, qword [rdx + 0x10]
lea rdx, [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov eax, 0x10000
mov rcx, qword [rbx]
cmp r8d, eax
mov qword [rbx + 0x218], rdi
cmova eax, r8d
mov qword [rbx + 0x220], rdi
mov dword [rbx + 0x234], eax
mov qword [rbx + 0x228], rdi
mov dword [rbx + 0x230], edi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
movsxd rcx, dword [rbx + 0x234]
test eax, eax
cmovne rdi, qword [rsp + 0x30]
mov qword [rbx + 0x228], rdi
cmp rcx, rdi
jle 0x140049c56
mov dword [rbx + 0x234], edi
mov ecx, edi
mov rdi, qword [rbx + 0x218]
movsxd rcx, ecx
call fcn.1400b609c
mov qword [rbx + 0x218], rax
test rdi, rdi
je 0x140049c79
mov rcx, rdi
call fcn.1400b60a4
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14004a010
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
lea r8, [rsp + 0x50]
add rcx, 0x298
lea rdx, [rsp + 0x60]
call fcn.14003eb10
mov edx, eax
mov r8d, eax
shr edx, 0x1f
test dl, dl
jne 0x14004a08d
xor esi, esi
nop
cmp r8d, 1
je 0x14004a098
mov r8d, dword [rsp + 0x50]
test r8d, r8d
je 0x14004a06d
mov rdx, qword [rsp + 0x60]
lea r9, [rsp + 0x58]
mov rcx, qword [rbx + 0x38]
mov dword [rsp + 0x58], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
lea rcx, [rbx + 0x298]
call fcn.14003eb10
mov r8d, eax
shr eax, 0x1f
test al, al
je 0x14004a040
mov eax, r8d
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rbx + 0x2f0]
test rcx, rcx
je 0x14004a0b5
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 0x2f0], rsi
xor eax, eax
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret