joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18005f780
Capabilities:
Get file size

Disassembly:
push rbx
push rbp
push r12
sub rsp, 0x40
cmp word [rdx], 0
mov rbp, r9
mov r12, rdx
mov rbx, rcx
je 0x18005f97d
test r9, r9
je 0x18005f97d
mov ecx, dword [rsp + 0x90]
cmp ecx, 5
je 0x18005f7ba
cmp ecx, 6
jne 0x18005f97d
mov eax, dword [rsp + 0x80]
mov qword [rsp + 0x60], rsi
mov dword [rbx + 0x40], ecx
mov dword [rbx + 0x48], eax
mov eax, dword [rsp + 0x88]
mov dword [rbx + 0x4c], eax
test r8d, r8d
je 0x18005f81a
xor esi, esi
xor r9d, r9d
mov edx, 0x80000000
mov qword [rsp + 0x30], rsi
lea r8d, [rsi + 1]
mov rcx, r12
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [rbp], 1
mov dword [rbx + 0x44], 1
mov qword [rbx + 0x10], rax
jmp 0x18005f8f3
xor esi, esi
xor r9d, r9d
mov edx, 0xc0000000
mov qword [rsp + 0x30], rsi
lea r8d, [rsi + 1]
mov rcx, r12
mov dword [rsp + 0x28], 0x20000000
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
or rcx, 0xffffffffffffffff
mov dword [rbx + 0x44], esi
mov qword [rbx + 0x10], rax
xor eax, eax
mov rdi, r12
repne scasw ax, word [rdi]
mov rdx, r12
mov dword [rbp], esi
not rcx
lea r8, [rcx - 1]
lea rcx, [rbx + 0x18]
call fcn.1800027f0
cmp qword [rbx + 0x10], 0xffffffffffffffff
mov rdi, qword [rsp + 0x70]
jne 0x18005f8f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x18005f8bb
cmp eax, 0x20
je 0x18005f8bb
cmp eax, 0xa7
je 0x18005f8bb
cmp eax, 0x21
je 0x18005f8bb
cmp eax, 0x13
je 0x18005f8bb
test eax, eax
jle 0x18005f8ad
movzx eax, ax
or eax, 0x80070000
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rbp
pop rbx
ret
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, r12
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [rbp], 1
mov qword [rbx + 0x10], rax
mov dword [rbx + 0x44], 1
mov rcx, qword [rbx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x18005f911
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x68], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x18005f924
call fcn.180003180
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rbp
pop rbx
ret
mov rax, qword [rsp + 0x68]
cqo
and edx, 0x1ff
add rax, rdx
and eax, 0x1ff
cmp rax, rdx
je 0x18005f951
mov eax, 0xe003300c
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rbp
pop rbx
ret
cmp dword [rbx + 0x40], 5
jne 0x18005f96d
mov rcx, rbx
call fcn.18005f990
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rbp
pop rbx
ret
xor eax, eax
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rbp
pop rbx
ret
mov eax, 0x80070057
add rsp, 0x40
pop r12
pop rbp
pop rbx
ret
Function at 0x18005f990
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1800ff050]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x1ff
mov byte [rsp + 0x40], 0
call fcn.18006cf60
mov rsi, qword [rdi + 0x10]
cmp rsi, 0xffffffffffffffff
je 0x18005fb44
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18005fa97
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 0x200
mov rcx, rsi
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18005faad
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x18005fa44
cmp eax, 0x3e6
je 0x18005fa44
test eax, eax
jle 0x18005fa9e
movzx eax, ax
or eax, 0x80070000
jmp 0x18005fa9c
mov edx, 0x200
mov rcx, rdi
call fcn.180003da0
test eax, eax
js 0x18005fb49
cmp eax, 1
je 0x18005fa9c
mov rdx, qword [rdi]
lea r9, [rsp + 0x30]
mov r8d, 0x200
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18005fa97
mov rdx, qword [rdi]
lea rcx, [rsp + 0x40]
mov r8d, 0x200
call fcn.18006c2d0
jmp 0x18005faad
call fcn.180003180
test eax, eax
js 0x18005fb49
cmp eax, 1
je 0x18005fb49
mov eax, dword [rsp + 0x40]
cmp eax, 0x44574f43
jne 0x18005fac2
mov eax, 0xe0033001
jmp 0x18005fb49
cmp eax, 0x564d444b
je 0x18005fad0
mov eax, 0xe00e1001
jmp 0x18005fb49
cmp dword [rsp + 0x89], 0xa0d200a
je 0x18005fae4
mov eax, 0xe003300c
jmp 0x18005fb49
cmp word [rsp + 0x8d], 0
je 0x18005faf6
mov eax, 0xe0033003
jmp 0x18005fb49
mov eax, dword [rdi + 0x4c]
cmp qword [rsp + 0x4c], rax
je 0x18005fb07
mov eax, 0xe003300b
jmp 0x18005fb49
mov eax, dword [rsp + 0x54]
mov r8d, dword [rsp + 0x6c]
mov rdx, qword [rsp + 0x78]
mov dword [rdi + 0x50], eax
mov eax, dword [rsp + 0x78]
mov rcx, rdi
mov dword [rdi + 0x54], eax
mov eax, dword [rsp + 0x70]
mov dword [rdi + 0x58], eax
mov eax, dword [rsp + 0x5c]
shl eax, 9
mov dword [rdi + 0x5c], eax
mov eax, dword [rsp + 0x64]
shl eax, 9
mov dword [rdi + 0x60], eax
call fcn.18005fb70
jmp 0x18005fb49
mov eax, 0x80070057
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18006a4f0
mov rsi, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x18005fcf0
Capabilities:
Read file on windows

Disassembly:
push rdi
sub rsp, 0x50
cmp dword [rcx + 0x40], 6
mov r10d, r8d
mov r9d, edx
mov rdi, rcx
jne 0x18005fd0d
xor eax, eax
add rsp, 0x50
pop rdi
ret
mov r8d, dword [rcx + 0x4c]
mov edx, dword [rcx + 0x48]
lea eax, [rdx + r8]
cmp r9d, eax
jae 0x18005fd05
lea ecx, [r9 + r10]
cmp ecx, edx
jbe 0x18005fd05
cmp r9d, edx
mov qword [rsp + 0x68], rbx
mov ebx, edx
cmova ebx, r9d
mov eax, r8d
mov qword [rsp + 0x40], rsi
sub ebx, edx
xor edx, edx
mov qword [rsp + 0x30], r13
div dword [rdi + 0x50]
lea rsi, [rax*4 + 0x1ff]
mov eax, 4
shr rsi, 9
inc esi
shl esi, 9
mov ecx, esi
mov r13d, esi
shr rcx, 2
mul rcx
mov rcx, 0xffffffffffffffff
lea rdx, [0x180106f48]
cmovo rax, rcx
mov rcx, rax
call fcn.18006aaa4
mov qword [rdi + 0x68], rax
test rax, rax
jne 0x18005fd96
mov eax, 0x8007000e
jmp 0x18005ff13
mov r8, r13
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x38], r12
call fcn.18006cf60
mov r12, qword [rdi + 0x68]
mov rbp, qword [rdi + 0x10]
xor edx, edx
mov eax, ebx
div dword [rdi + 0x50]
mov ecx, eax
mov eax, esi
shl rcx, 2
shr eax, 2
and rcx, 0xfffffffffffffe00
shr rcx, 2
mov dword [rdi + 0x70], ecx
lea eax, [rax + rcx - 1]
mov ecx, ecx
mov dword [rdi + 0x74], eax
mov eax, dword [rdi + 0x54]
lea rcx, [rax + rcx*4]
mov qword [rsp + 0x78], rcx
test esi, esi
jne 0x18005fdf5
xor ebx, ebx
jmp 0x18005ff07
cmp rbp, 0xffffffffffffffff
je 0x18005ff02
test r12, r12
je 0x18005ff02
mov rax, rcx
cqo
and edx, 0x1ff
add rax, rdx
and eax, 0x1ff
cmp rax, rdx
jne 0x18005fee0
test esi, 0x1ff
jne 0x18005fee0
mov rdx, rcx
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x18005fe52
call fcn.180003180
mov ebx, eax
jmp 0x18005ff07
xor ebx, ebx
lea r9, [rsp + 0x60]
mov r8d, esi
mov rdx, r12
mov rcx, rbp
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18005ff07
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x18005fe9c
cmp eax, 0x3e6
je 0x18005fe9c
test eax, eax
jle 0x18005fefe
movzx ebx, ax
or ebx, 0x80070000
jmp 0x18005ff07
mov edx, esi
mov rcx, rdi
call fcn.180003da0
test eax, eax
js 0x18005fefe
cmp eax, 1
je 0x18005fefe
mov rdx, qword [rdi]
lea r9, [rsp + 0x60]
mov r8d, esi
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18005fe46
mov rdx, qword [rdi]
mov r8, r13
mov rcx, r12
call fcn.18006c2d0
jmp 0x18005ff07
xor ebx, ebx
lea r8, [rsp + 0x78]
mov r9, r12
mov rdx, rbp
mov rcx, rdi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], esi
call fcn.180003e10
mov ebx, eax
jmp 0x18005ff07
mov ebx, 0x80070057
mov r12, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x68]
mov r13, qword [rsp + 0x30]
add rsp, 0x50
pop rdi
ret
Function at 0x1800604d0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x268
mov rax, qword [0x1800ff050]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [r9]
mov r12d, edx
mov rdi, rcx
cqo
mov rbp, r8
lea rcx, [rsp + 0x51]
and edx, 0x1ff
mov rsi, r9
mov byte [rsp + 0x50], 0
add rax, rdx
xor edx, edx
sar rax, 9
mov dword [r8], eax
mov r8d, 0x1ff
mov rbx, rax
call fcn.18006cf60
mov r11d, dword [rdi + 0x50]
lea ecx, [r11 + rbx - 1]
shl rcx, 9
mov qword [rsi], rcx
mov rbx, qword [rdi + 0x10]
cmp rbx, 0xffffffffffffffff
je 0x1800606ff
mov rax, rcx
xor r13d, r13d
cqo
and edx, 0x1ff
add rax, rdx
and eax, 0x1ff
cmp rax, rdx
je 0x180060590
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x50]
mov r8, rsi
mov qword [rsp + 0x28], rax
mov rdx, rbx
mov rcx, rdi
mov dword [rsp + 0x20], 0x200
call fcn.180003f70
jmp 0x180060649
mov rdx, rcx
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180060644
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, 0x200
mov rcx, rbx
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18006065a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x1800605f7
cmp eax, 0x3e6
je 0x1800605f7
test eax, eax
jle 0x18006064b
movzx eax, ax
or eax, 0x80070000
jmp 0x180060649
mov edx, 0x200
mov rcx, rdi
call fcn.180003da0
test eax, eax
js 0x180060704
cmp eax, 1
je 0x180060649
mov rcx, qword [rdi]
lea rdx, [rsp + 0x50]
mov r8d, 0x200
call fcn.18006c2d0
mov rdx, qword [rdi]
lea r9, [rsp + 0x40]
mov r8d, 0x200
mov rcx, rbx
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18006065a
call fcn.180003180
test eax, eax
js 0x180060704
cmp eax, 1
je 0x180060704
mov eax, dword [rbp]
mov rcx, qword [rdi + 0x68]
mov edx, r12d
sub edx, dword [rdi + 0x70]
mov rbx, r12
mov qword [rsp + 0x30], r13
mov dword [rcx + rdx*4], eax
mov eax, dword [rdi + 0x54]
sub r12d, dword [rdi + 0x70]
shl rbx, 2
mov ebp, r12d
mov r9, rsi
shl rbp, 2
and ebx, 0xfffffe00
mov r8d, 1
add eax, ebx
and ebp, 0xfffffe00
mov qword [rsi], rax
mov rcx, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x10]
add rcx, rbp
mov qword [rsp + 0x28], rcx
mov rcx, rdi
mov dword [rsp + 0x20], 0x200
call fcn.180003c30
test eax, eax
js 0x180060704
cmp eax, 1
je 0x180060704
mov eax, dword [rdi + 0x58]
mov qword [rsp + 0x30], r13
mov r9, rsi
add eax, ebx
mov r8d, 1
mov rcx, rdi
mov qword [rsi], rax
mov r10, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x10]
add r10, rbp
mov qword [rsp + 0x28], r10
mov dword [rsp + 0x20], 0x200
call fcn.180003c30
jmp 0x180060704
mov eax, 0x80070057
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18006a4f0
add rsp, 0x268
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180060850
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push r12
sub rsp, 0x30
mov r12, qword [rcx + 0x10]
mov rbp, rdx
mov rdi, rcx
cmp r12, 0xffffffffffffffff
jne 0x180060877
mov eax, 0x80004005
add rsp, 0x30
pop r12
pop rdi
pop rbp
ret
test rdx, rdx
jne 0x18006088d
mov eax, dword [rcx + 0x60]
mov dword [r8], eax
xor eax, eax
add rsp, 0x30
pop r12
pop rdi
pop rbp
ret
mov qword [rsp + 0x60], rsi
mov esi, dword [rcx + 0x60]
cmp dword [r8], esi
jae 0x1800608ad
mov eax, 0x80004005
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rbp
ret
mov ecx, dword [rcx + 0x5c]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x68], rcx
test esi, esi
jne 0x1800608c5
xor ebx, ebx
jmp 0x1800609bb
mov rax, rcx
cqo
and edx, 0x1ff
add rax, rdx
and eax, 0x1ff
cmp rax, rdx
jne 0x18006099b
test esi, 0x1ff
jne 0x18006099b
mov rdx, rcx
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x18006090d
call fcn.180003180
jmp 0x1800609b9
xor ebx, ebx
lea r9, [rsp + 0x50]
mov r8d, esi
mov rdx, rbp
mov rcx, r12
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800609bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x180060957
cmp eax, 0x3e6
je 0x180060957
test eax, eax
jle 0x1800609b9
movzx ebx, ax
or ebx, 0x80070000
jmp 0x1800609bb
mov edx, esi
mov rcx, rdi
call fcn.180003da0
test eax, eax
js 0x1800609b9
cmp eax, 1
je 0x1800609b9
mov rdx, qword [rdi]
lea r9, [rsp + 0x50]
mov r8d, esi
mov rcx, r12
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180060903
mov rdx, qword [rdi]
mov r8, rsi
mov rcx, rbp
call fcn.18006c2d0
jmp 0x1800609bb
xor ebx, ebx
lea r8, [rsp + 0x68]
mov r9, rbp
mov rdx, r12
mov rcx, rdi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], esi
call fcn.180003e10
mov ebx, eax
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rdi
pop rbp
ret
Function at 0x1800616a0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1800ff050]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x180061791
cmp word [rdx], 0
je 0x180061791
mov rcx, qword [rcx + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x1800616e8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rbx
mov dword [rsp + 0x28], 0x20000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x180061726
call fcn.180003180
jmp 0x180061796
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18006171f
mov rax, qword [rsp + 0x40]
cqo
and edx, 0x1ff
add rax, rdx
mov rcx, rax
and eax, 0x1ff
sar rcx, 9
cmp rax, rdx
je 0x180061760
mov eax, 0xe00e1001
jmp 0x180061796
mov qword [rsp + 0x40], rcx
mov dword [rdi + 0x80], ecx
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0x1ff
mov byte [rsp + 0x50], 0
call fcn.18006cf60
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1800617c0
jmp 0x180061796
mov eax, 0x80070057
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18006a4f0
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret

Function at 0x1800617c0
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, 0x30
mov rbp, qword [rcx + 0x70]
xor ebx, ebx
mov rdi, rdx
lea rsi, [rcx + 0x10]
cmp rbp, 0xffffffffffffffff
je 0x1800618f4
test rdx, rdx
je 0x1800618f4
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800618a1
lea r9, [rsp + 0x40]
mov r8d, 0x200
mov rdx, rdi
mov rcx, rbp
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800618af
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x180061854
cmp eax, 0x3e6
je 0x180061854
test eax, eax
jle 0x1800618a8
movzx eax, ax
or eax, 0x80070000
jmp 0x1800618a6
mov edx, 0x200
mov rcx, rsi
call fcn.180003da0
test eax, eax
js 0x1800618f9
cmp eax, 1
je 0x1800618a6
mov rdx, qword [rsi]
lea r9, [rsp + 0x40]
mov r8d, 0x200
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800618a1
mov rdx, qword [rsi]
mov r8d, 0x200
mov rcx, rdi
call fcn.18006c2d0
jmp 0x1800618af
call fcn.180003180
test eax, eax
js 0x1800618f9
cmp eax, 1
je 0x1800618f9
cmp dword [rdi], 0x5120372
je 0x1800618be
mov eax, 0xe00e1001
jmp 0x1800618f9
cmp dword [rdi + 4], 2
jne 0x1800618ed
test byte [rdi + 8], 1
je 0x1800618ed
mov r11d, dword [rdi + 0xc]
mov edx, 0x200
mov rcx, rdi
mov dword [rdi + 0xc], ebx
call fcn.1800658c0
mov ecx, 0xe0037001
cmp r11d, eax
cmovne ebx, ecx
mov eax, ebx
jmp 0x1800618f9
mov eax, 0xe0037003
jmp 0x1800618f9
mov eax, 0x80070057
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800644b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
push r14
push r15
sub rsp, 0x38
mov rax, qword [rcx + 0x380]
mov r14d, edx
mov ebx, r9d
mov r9d, dword [rax + r14*4]
mov r15d, r8d
mov rdi, rcx
cmp r9d, 0xffffffff
jne 0x1800644fa
mov rcx, qword [rsp + 0x80]
shl ebx, 9
xor edx, edx
mov r8d, ebx
call fcn.18006cf60
xor eax, eax
add rsp, 0x38
pop r15
pop r14
pop rdi
pop rbx
ret
mov qword [rsp + 0x70], rbp
mov rbp, qword [rsp + 0x80]
mov qword [rsp + 0x78], rsi
mov rsi, qword [rdi + 0x70]
lea ecx, [r9 + r8]
shl ebx, 9
shl rcx, 9
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x60], rcx
test ebx, ebx
je 0x18006462e
cmp rsi, 0xffffffffffffffff
je 0x18006469f
test rbp, rbp
je 0x18006469f
mov rax, rcx
cqo
and edx, 0x1ff
add rax, rdx
and eax, 0x1ff
cmp rax, rdx
jne 0x180064673
test ebx, 0x1ff
jne 0x180064673
mov rdx, rcx
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x180064588
call fcn.180003180
jmp 0x180064694
lea r9, [rsp + 0x68]
mov r8d, ebx
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18006462e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x1800645da
cmp eax, 0x3e6
je 0x1800645da
test eax, eax
jle 0x180064694
movzx eax, ax
or eax, 0x80070000
jmp 0x180064694
lea rcx, [rdi + 0x10]
mov edx, ebx
call fcn.180003da0
test eax, eax
js 0x180064694
cmp eax, 1
je 0x180064694
mov rdx, qword [rdi + 0x10]
lea r9, [rsp + 0x68]
mov r8d, ebx
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18006461f
call fcn.180003180
jmp 0x180064694
mov rdx, qword [rdi + 0x10]
mov r8d, ebx
mov rcx, rbp
call fcn.18006c2d0
cmp dword [rdi + 0x88], 0
je 0x180064657
mov r9d, dword [rdi + 0x374]
lea rcx, [rdi + 0x8c]
mov r8d, ebx
mov rdx, rbp
imul r9d, r14d
add r9d, r15d
call fcn.180065700
xor eax, eax
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
mov r13, qword [rsp + 0x30]
add rsp, 0x38
pop r15
pop r14
pop rdi
pop rbx
ret
lea r8, [rsp + 0x60]
lea rcx, [rdi + 0x10]
mov r9, rbp
mov rdx, rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], ebx
call fcn.180003e10
test eax, eax
js 0x180064659
cmp eax, 1
je 0x180064659
jmp 0x18006462e
mov eax, 0x80070057
jmp 0x180064659
Function at 0x180064950
Capabilities:
Write file on windows

Disassembly:
push rbp
push r12
sub rsp, 0x278
mov rax, qword [0x1800ff050]
xor rax, rsp
mov qword [rsp + 0x250], rax
cmp dword [rcx + 0x88], 0
mov r12d, r8d
mov rbp, rcx
mov dword [rsp + 0x34], r8d
jne 0x1800649e4
mov r8d, dword [rcx + 0x378]
mov eax, edx
add rcx, 0x10
lea rdx, [r8 + rax*4]
mov qword [rsp + 0x38], rdx
mov rdx, qword [rcx + 0x60]
cmp rdx, 0xffffffffffffffff
je 0x1800649da
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call fcn.180003f70
test eax, eax
js 0x180064b9d
cmp eax, 1
je 0x180064b9d
xor eax, eax
jmp 0x180064b9d
mov eax, 0x80070057
jmp 0x180064b9d
mov qword [rsp + 0x270], rbx
mov qword [rsp + 0x268], rsi
mov qword [rsp + 0x260], rdi
mov edi, edx
mov rdx, qword [rcx + 0x380]
lea rcx, [rsp + 0x50]
shl rdi, 2
mov r8d, 0x200
mov rsi, rdi
and esi, 0xfffffe00
mov ebx, esi
add rdx, rbx
call fcn.18006c2d0
sub rdi, rbx
shr rbx, 9
mov dword [rsp + rdi + 0x50], r12d
add rbx, qword [rbp + 0x368]
lea rcx, [rbp + 0x8c]
lea rdx, [rsp + 0x50]
mov r8d, 0x200
mov r9, rbx
call fcn.180065540
mov r10d, dword [rbp + 0x378]
mov rdi, qword [rbp + 0x70]
add r10d, esi
mov rsi, qword [rsp + 0x268]
mov qword [rsp + 0x40], r10
cmp rdi, 0xffffffffffffffff
je 0x180064b86
mov rax, r10
cqo
and edx, 0x1ff
add rax, rdx
and eax, 0x1ff
cmp rax, rdx
je 0x180064ac0
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rcx, [rbp + 0x10]
mov rdx, rdi
mov dword [rsp + 0x20], 0x200
call fcn.180003f70
mov ebx, eax
jmp 0x180064b8b
xor r9d, r9d
xor r8d, r8d
mov rdx, r10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180064b7d
xor ebx, ebx
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov r8d, 0x200
mov rcx, rdi
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180064b8b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x180064b29
cmp eax, 0x3e6
je 0x180064b29
test eax, eax
jle 0x180064ab9
movzx ebx, ax
or ebx, 0x80070000
jmp 0x180064b8b
lea rcx, [rbp + 0x10]
mov edx, 0x200
call fcn.180003da0
test eax, eax
js 0x180064ab9
cmp eax, 1
je 0x180064ab9
mov rcx, qword [rbp + 0x10]
lea rdx, [rsp + 0x50]
mov r8d, 0x200
call fcn.18006c2d0
mov rdx, qword [rbp + 0x10]
lea r9, [rsp + 0x30]
mov r8d, 0x200
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180064b8b
call fcn.180003180
mov ebx, eax
jmp 0x180064b8b
mov ebx, 0x80070057
mov rdi, qword [rsp + 0x260]
mov eax, ebx
mov rbx, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18006a4f0
add rsp, 0x278
pop r12
pop rbp
ret
Function at 0x180064bc0
Capabilities:
Read file on windows

Disassembly:
push rdi
sub rsp, 0x50
mov rdi, r9
mov rax, rdx
test r9, r9
je 0x180064d04
mov qword [rsp + 0x68], rsi
xor esi, esi
mov dword [r9], esi
test r8d, r8d
jne 0x180064c26
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test rax, rax
je 0x180064c16
lea rdx, str..wmt
mov rcx, rax
call fcn.18006be10
test eax, eax
jne 0x180064c16
mov dword [rdi], 8
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov eax, 0xe00e1001
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180064c6f
call fcn.180003180
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x78]
mov r8d, 4
mov rcx, rax
mov dword [rsp + 0x78], esi
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180064cbb
call fcn.180003180
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x50
pop rdi
ret
cmp dword [rsp + 0x78], 0x5120372
jne 0x180064ce6
mov rcx, rbx
mov dword [rdi], 8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
xor eax, eax
add rsp, 0x50
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov eax, 0xe00e1001
add rsp, 0x50
pop rdi
ret
mov eax, 0x80070057
add rsp, 0x50
pop rdi
ret

Function at 0x1800658c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or r9d, 0xffffffff
lea r10, [0x1801042e0]
nop dword [rax + rax]
movzx r8d, byte [rcx]
mov eax, r9d
inc rcx
xor r8, rax
movzx eax, r8b
mov r8d, r9d
mov r9d, dword [r10 + rax*4]
shr r8d, 8
xor r9d, r8d
sub edx, 1
jne 0x1800658d0
not r9d
mov eax, r9d
ret