joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa4c020
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xa4c02d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xa4c03d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xa4c025
lea eax, [rcx + 1]
jmp 0xa4c04b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xa4c05e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xa4c044
sub eax, 3
jb 0xa4c07e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xa4c0cd
sar eax, 1
movsxd rbp, eax
jb 0xa4c0b4
jmp 0xa4c08c
add ebx, ebx
jne 0xa4c08a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xa4c0b4
inc ecx
add ebx, ebx
jne 0xa4c09a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xa4c0b4
call r11
adc ecx, ecx
add ebx, ebx
jne 0xa4c0ad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xa4c09c
add ecx, 2
jmp 0xa4c0b9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00a4bfe2
jmp 0xa4c02d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x307400
mov dl, 0x96
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xa4c119
cmp rsi, rcx
jae 0xa4c121
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xa4c100
cmp al, 0x8f
ja 0xa4c100
cmp byte [rsi - 2], 0xf
je 0xa4c106
sub al, 0xe8
cmp al, 1
ja 0xa4c0ea
cmp rsi, rcx
jae 0xa4c121
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xa4c0f0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xa4c121
lodsb al, byte [rsi]
jmp 0xa4c100
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x644000]
mov eax, dword [rdi]
or eax, eax
je 0xa4c17e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x677c0c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xa4c12e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xa4c178
mov qword [rbx], rax
add rbx, 8
jmp 0xa4c14e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xa4c1c2
cmp al, 0xef
ja 0xa4c1aa
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xa4c18a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xa4c199
mov eax, dword [rdi]
add rdi, 4
jmp 0xa4c199
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xa4c216
sub rsp, 0xffffffffffffff80
jmp 0x4683c0
Function at 0x1405ae058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1405ae1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1405ae089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405ae06f
add dl, dl
jne 0x1405ae096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405ae0f6
xor eax, eax
add dl, dl
jne 0x1405ae0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405ae1ad
add dl, dl
jne 0x1405ae0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405ae0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405ae0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405ae0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405ae0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405ae07e
mov eax, 1
add dl, dl
jne 0x1405ae106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405ae113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405ae0fb
sub eax, ebx
mov ebx, 1
jne 0x1405ae14c
mov ecx, 1
add dl, dl
jne 0x1405ae12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405ae13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405ae123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405ae07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405ae168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405ae175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405ae15d
cmp eax, 0x7d00
jae 0x1405ae19b
cmp eax, 0x500
jb 0x1405ae196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405ae07e
cmp eax, 0x7f
ja 0x1405ae19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405ae07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405ae1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1405ae07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1800014ca
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
push rbp
push r15
push r14
mov rax, 7
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x1800014e5
sub rsp, 0x28
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
push qword [rcx]
pop rcx
call fcn.180003d34
mov qword [rsp + 0x50], rax
mov r15, qword [rsp + 0x50]
mov rax, r15
mov rcx, 2
cqo
idiv rcx
mov r15, rdx
and r15, r15
jne 0x18000153d
xor rax, rax
jmp 0x180001665
push qword [rsp + 0x80]
pop rax
mov qword [rsp + 0x38], rax
push qword [rsp + 0x88]
pop rax
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x18000162d
mov qword [rsp + 0x48], 0
jmp 0x18000156e
mov rax, qword [rsp + 0x50]
cmp rax, qword [rsp + 0x48]
jl 0x18000160c
mov rbp, qword [rsp + 0x38]
mov r15, qword [rbp]
mov r14, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
mov rbp, qword [rcx]
shl r14, 3
cmp r15, qword [r14 + rbp]
jne 0x180001600
mov r15, qword [rsp + 0x40]
and r15, r15
jne 0x1800015cf
lea rax, [rsp + 0x40]
mov rax, rax
push rax
push 4
push qword [rsp + 0x98]
push qword [rsp + 0x98]
pop rcx
pop rdx
pop r8
pop r9
call sub.KERNEL32.dll_VirtualProtect
mov r15, qword [rsp + 0x48]
inc r15
mov rcx, qword [rsp + 0x28]
mov rbp, qword [rcx]
shl r15, 3
push qword [r15 + rbp]
mov rbp, qword [rsp + 0x40]
pop rax
mov qword [rbp], rax
mov r15, qword [rsp + 0x30]
inc r15
mov qword [rsp + 0x30], r15
jmp 0x18000160c
add qword [rsp + 0x48], 2
jno 0x18000156e
mov r15, qword [rsp + 0x38]
add r15, 8
mov qword [rsp + 0x38], r15
mov r15, qword [rsp + 0x58]
add r15, 0xfffffffffffffff8
mov qword [rsp + 0x58], r15
jmp 0x180001557
cmp qword [rsp + 0x40], 0
je 0x18000165b
lea rax, [rsp + 0x40]
mov rax, rax
push rax
push qword [rsp + 0x48]
push qword [rsp + 0x98]
push qword [rsp + 0x98]
pop rcx
pop rdx
pop r8
pop r9
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x30]
jmp 0x180001665
add rsp, 0x60
pop r14
pop r15
pop rbp
ret
Function at 0x180001d8d
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
mov rax, 0x48
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x180001d97
sub rsp, 0x28
push qword [0x1800096b0]
sub rsp, 8
push qword [0x1800096b0]
sub rsp, 8
push qword [0x1800096b0]
pop rcx
sub rsp, 0x20
call main
add rsp, 0x28
mov rdx, qword [0x1800096c0]
add qword [rsp], rdx
pop rcx
sub rsp, 0x20
call sub.KERNEL32.dll_GetModuleHandleW
add rsp, 0x28
pop qword [0x1800096b0]
mov qword [rsp + 0x248], rax
mov r15, qword [rsp + 0x248]
mov rbp, qword [rsp + 0x248]
movsxd rax, dword [rbp + 0x3c]
add r15, rax
mov qword [rsp + 0x250], r15
mov r15, qword [rsp + 0x248]
mov rbp, qword [rsp + 0x250]
push rbp
pop rbp
movsxd rax, dword [rbp + 0x88]
add r15, rax
mov qword [rsp + 0x258], r15
push qword [0x1800096b0]
sub rsp, 8
push qword [0x1800096b0]
push 0x18
push 0xffffffffffffffff
mov r15, qword [rsp + 0x270]
mov rbp, qword [rsp + 0x280]
movsxd rax, dword [rbp + 0xc]
add r15, rax
mov rax, r15
push rax
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.1800029f0
add rsp, 0x28
lea rcx, [rsp + 0x248]
pop rdx
call fcn.180004090
push 0x104
lea rax, [rsp + 0x38]
mov rax, rax
push rax
pop rcx
pop rdx
call sub.KERNEL32.dll_GetSystemDirectoryW
and rax, rax
je 0x180001f55
push qword [0x1800096b0]
sub rsp, 8
lea rcx, [rsp + 0x40]
push qword [0x1800096b0]
mov rdx, 0x104
sub rsp, 0x28
call fcn.180004260
add rsp, 0x28
lea rcx, [0x18000804c]
sub rsp, 0x28
call fcn.180003f30
add rsp, 0x28
mov rcx, qword [rsp + 0x258]
sub rsp, 0x28
call fcn.180003f30
add rsp, 0x28
add qword [0x1800096b0], 2
push 0xffffffffffffffff
mov rdx, qword [0x1800096c0]
add qword [rsp + 8], rdx
pop rcx
pop rdx
sub rsp, 0x20
call fcn.180002e6c
add rsp, 0x28
pop qword [0x1800096b0]
mov qword [rsp + 0x238], rax
push qword [rsp + 0x238]
pop rcx
call fcn.180001366
and rax, rax
je 0x180001f55
mov qword [rsp + 0x28], 1
mov rax, qword [rsp + 0x28]
jmp 0x180001f5f
push rax
mov rcx, qword [rsp + 0x248]
sub rsp, 0x28
call fcn.1800041c0
add rsp, 0x28
pop rax
add rsp, 0x268
pop r15
pop rbp
ret
Function at 0x180002410
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x1800024d6
lea rcx, [0x1800096e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x180008c28]
jmp 0x18000249a
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x180002497
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x180008c28]
mov rdx, rsi
call fcn.180003a38
jmp 0x18000249a
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180002467
mov rdx, qword [0x180008458]
lea rcx, [0x180008c28]
mov rdi, rdx
inc rdx
mov qword [0x180008458], rdx
lea edx, [rbx + 0x20]
call fcn.180003a80
lea rcx, [0x1800096e0]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x180002f38
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [0x180008c30]
xor edi, edi
call fcn.18000379c
mov rcx, qword [0x180009780]
mov rdx, rbx
mov r15, rax
call fcn.18000381c
mov rbp, rax
test rax, rax
je 0x18000310b
mov rcx, r15
call fcn.180002de4
mov rbp, qword [rbp]
mov eax, 0x5a4d
cmp word [rbp], ax
jne 0x18000310b
movsxd rcx, dword [rbp + 0x3c]
add rcx, rbp
cmp dword [rcx], 0x4550
jne 0x18000310b
movzx eax, word [rcx + 0x14]
mov r9d, dword [rcx + 0x88]
movzx r10d, word [rcx + 6]
lea rdx, [rcx + 0x18]
lea rsi, [r9 + rbp]
mov r8d, edi
add rdx, rax
test r10d, r10d
jle 0x180002fe8
mov ecx, dword [rdx + 0xc]
cmp r9d, ecx
jb 0x180002fdc
add ecx, dword [rdx + 8]
cmp r9d, ecx
jb 0x180002feb
inc r8d
add rdx, 0x28
cmp r8d, r10d
jl 0x180002fcc
mov rdx, rdi
test rdx, rdx
je 0x18000310b
mov eax, dword [rsi + 0x20]
mov r14d, dword [rsi + 0x1c]
mov ebx, dword [rsi + 0x24]
add rax, rbp
add r14, rbp
add rbx, rbp
mov qword [rsp + 0x88], rax
mov eax, dword [rsi + 0x14]
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x20], rbx
test eax, eax
je 0x180003106
mov dword [r15 + 8], eax
mov r8d, dword [rsi + 0x14]
mov rcx, qword [0x180008bb0]
shl r8, 4
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13d, edi
mov qword [r15], rax
cmp dword [rsi + 0x14], edi
jbe 0x180003106
mov r12, rdi
mov ecx, dword [r14]
mov rax, qword [r15]
add rcx, rbp
mov qword [r12 + rax + 8], rcx
mov rax, qword [r15]
mov qword [r12 + rax], rdi
cmp dword [r14], edi
je 0x1800030e9
mov ecx, edi
mov dword [rsp + 0x78], ecx
cmp dword [rsi + 0x18], edi
jbe 0x1800030e9
mov r14, qword [rsp + 0x88]
mov rdi, rbx
movzx eax, word [rdi]
cmp eax, r13d
jne 0x1800030c7
mov ebx, dword [r14]
add rbx, rbp
mov rcx, rbx
call sub.msvcrt.dll_strlen
mov rcx, qword [0x180008bb0]
xor edx, edx
lea r8, [rax + 1]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [r15]
mov rdx, rbx
mov qword [r12 + rcx], rax
mov rcx, qword [r15]
mov rcx, qword [r12 + rcx]
call sub.msvcrt.dll_strcpy
mov ecx, dword [rsp + 0x78]
inc ecx
add rdi, 2
add r14, 4
mov dword [rsp + 0x78], ecx
cmp ecx, dword [rsi + 0x18]
jb 0x180003084
mov r14, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x20]
xor edi, edi
add r14, 4
inc r13d
add r12, 0x10
mov qword [rsp + 0x80], r14
cmp r13d, dword [rsi + 0x14]
jb 0x180003054
mov edi, 1
movsxd rax, edi
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180003330
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
or rbx, 0xffffffffffffffff
xor edi, edi
test rcx, rcx
je 0x180003492
cmp word [rcx], di
je 0x180003492
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call sub.msvcrt.dll_wcsncpy
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call sub.msvcrt.dll_wcslen
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x1800033cf
cmp word [rsp + 0x22], 0x3a
jne 0x1800033cf
cmp edx, 2
jne 0x1800033b6
lea rdx, [0x18000653c]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_wcscat
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x180003492
jmp 0x18000346a
cmp word [rcx], 0x5c
je 0x1800033db
cmp word [rcx], 0x2f
jne 0x1800033e4
mov word [rcx], di
sub rcx, 2
jmp 0x1800033cf
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x18000342b
test byte [rbp + 0x130], 0x10
je 0x180003410
mov rbx, 0xfffffffffffffffe
jmp 0x180003423
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x180003492
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x180003440
cmp ax, cx
je 0x180003456
cmp cx, 0x2f
jne 0x18000344b
cmp ax, cx
je 0x180003456
cmp cx, 0x2e
jne 0x180003492
cmp ax, cx
jne 0x180003492
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180003473
test al, 0x10
je 0x180003492
mov rbx, 0xfffffffffffffffe
jmp 0x180003492
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
lea r11, [rsp + 0x480]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x18000db00
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x18000db28
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x18000db4e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x18000db50
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x18000dba9
test ecx, ecx
jle 0x18000db89
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x18000dba9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18000dba9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x18000dbd0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x18000dbf2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x18000dc08
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x18000dc24
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18000dc26
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18000dc62
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x18000dcfe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18000dc9d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x18000dcde
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x18000dcfe
cmp rbx, rax
ja 0x18000dcb0
test rbx, rbx
je 0x18000dcfe
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x18000e160
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x18007b040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18000e18d
xor eax, eax
jmp 0x18000e2f9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x18000e1c7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x18000e1c7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x18000e2f9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18000e2ec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18000e20a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x18000e235
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18000e2f1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x18000e2a4
sub eax, 1
je 0x18000e2a4
cmp eax, 2
jne 0x18000e2ec
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18000e2f1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x18000e2d2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x18000e2ec
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x18000e2f1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180060fb0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x18000e730
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18007b040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18000e803
cmp byte [rcx + 0x71], 0
je 0x18000e803
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18000e7ff
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x18000e7c4
sub eax, 1
je 0x18000e7c8
cmp eax, 2
jne 0x18000e7ff
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180060fb0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18000e7f6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x18000e7ff
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18000e7ac
xor al, al
jmp 0x18000e7ac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180060fb0
add rsp, 0x60
pop rbx
ret

Function at 0x1800119e0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x180011a3d
lea rbx, [0x180068a00]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180011a24
cmp r10, 2
jb 0x180011a24
cmp byte [r9], r8b
jne 0x180011a24
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180011a00
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180011a7f
lea rbx, [0x180068a00]
cmp r8b, 0x23
jne 0x180011a63
cmp byte [r9], r8b
jne 0x180011a63
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180011a50
mov rbx, qword [rsp + 8]
not eax
ret