joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a6a0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov rbp, 0xffffffffffffffff
mov rcx, qword [rcx + 0x258]
cmp rcx, rbp
je 0x14001a6e0
cmp byte [rbx + 0x468], 0
je 0x14001a6d9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x258], rbp
xor edi, edi
cmp word [rbx + 0x50], di
je 0x14001a6f6
lea rcx, [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov word [rbx + 0x50], di
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001a708
call fcn.1400b60a4
mov qword [rbx + 0x30], rdi
lea rcx, [rbx + 0x50]
call fcn.140028c40
mov rcx, qword [rbx + 0x258]
cmp rcx, rbp
je 0x14001a733
cmp byte [rbx + 0x468], dil
je 0x14001a72c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x258], rbp
mov byte [rbx + 0x468], 1
lea rdx, [rbx + 0x50]
nop
movzx eax, word [rdx]
mov word [rdx + 0x210], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x14001a740
mov qword [rsp + 0x30], rdi
lea rcx, [rbx + 0x50]
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 0x258], rax
cmp rax, rbp
jne 0x14001a793
mov eax, 0x80040204
jmp 0x14001a825
mov rcx, qword [rbx + 0x28]
lea rdx, [rbx + 0x4a0]
mov rax, qword [rcx]
call qword [rax + htons]
mov ecx, dword [rbx + 0x38]
mov eax, 8
imul ecx, dword [rbx + 0x4a8]
mul rcx
cmovo rax, rbp
mov rcx, rax
call fcn.1400b609c
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x14001a7d2
mov eax, 0x80040202
jmp 0x14001a825
mov qword [rbx + 0x3c], rdi
mov dword [rbx + 0x4b8], edi
mov dword [rbx + 0x4c0], edi
mov qword [rbx + 0x4c8], rdi
mov qword [rbx + 0x470], rdi
mov qword [rbx + 0x48], rax
cmp dword [rbx + 0x4a8], edi
jbe 0x14001a823
nop dword [rax]
mov rax, qword [rbx + 0x48]
mov ecx, edi
inc edi
mov dword [rax + rcx*8 + 4], 0x3f800000
mov rax, qword [rbx + 0x48]
mov dword [rax + rcx*8], 0xbf800000
cmp edi, dword [rbx + 0x4a8]
jb 0x14001a800
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14001a840
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x40], 0
mov rbx, rcx
jbe 0x14001a852
inc dword [rcx + 0x3c]
mov eax, dword [rcx + 0x3c]
test eax, eax
je 0x14001a892
mov r8d, dword [rbx + 0x4a8]
lea r9, [rsp + 0x40]
mov rdx, qword [rbx + 0x30]
xor ecx, ecx
imul r8d, eax
mov dword [rsp + 0x40], ecx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0x258]
shl r8d, 3
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x3c]
add dword [rbx + 0x4b8], eax
mov rcx, qword [rbx + 0x258]
cmp rcx, 0xffffffffffffffff
je 0x14001a8b9
cmp byte [rbx + 0x468], 0
je 0x14001a8ae
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x258], 0xffffffffffffffff
add rsp, 0x30
pop rbx
ret
Function at 0x14001c0c0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x140
mov rbx, rcx
mov qword [rax + 0x18], rdi
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x14001c1f7
mov edi, dword [rbx + 0x430]
cmp edi, dword [rbx + 0x428]
jge 0x14001c1db
mov qword [rax + 0x10], rsi
xor esi, esi
cmp edi, 0x40
jge 0x14001c109
movsxd rax, edi
add rax, 0x44
lea rax, [rbx + rax*8]
jmp 0x14001c148
mov rax, qword [rbx + 0x420]
test rax, rax
jne 0x14001c13d
mov ecx, 0x210
call fcn.1400b6058
test rax, rax
je 0x14001c133
mov qword [rax + 0x200], rsi
mov dword [rax + 0x208], esi
jmp 0x14001c136
mov rax, rsi
mov qword [rbx + 0x420], rax
lea edx, [rdi - 0x40]
mov rcx, rax
call fcn.14001c450
mov rdx, qword [rax]
lea rcx, [rsp + 0x30]
mov r9d, 0xffffffff
mov r8d, 0x104
call fcn.140028410
lea rax, [rsp + 0x30]
mov dword [rsp + 0x150], esi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], sil
jne 0x14001c174
mov rcx, qword [rbx]
lea r9, [rsp + 0x150]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbx]
lea r9, [rsp + 0x150]
mov r8d, 2
mov dword [rsp + 0x150], esi
lea rdx, [0x14012cec8]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc edi
cmp edi, dword [rbx + 0x428]
jl 0x14001c0f7
mov rcx, qword [rbx]
mov rsi, qword [rsp + 0x158]
cmp rcx, 0xffffffffffffffff
je 0x14001c1f7
cmp byte [rbx + 0x210], 0
je 0x14001c1f0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
mov eax, dword [rbx + 0x428]
test eax, eax
je 0x14001c228
lea edx, [rax - 1]
lea rcx, [rbx + 0x220]
mov dword [rbx + 0x428], edx
call fcn.14001c450
mov rcx, qword [rax]
call fcn.1400b60a4
mov eax, dword [rbx + 0x428]
test eax, eax
jne 0x14001c201
mov rdi, qword [rbx + 0x420]
test rdi, rdi
je 0x14001c249
mov rcx, rdi
call fcn.14001c080
mov edx, 0x210
mov rcx, rdi
call fcn.1400b6094
mov rcx, qword [rbx]
mov rdi, qword [rsp + 0x160]
cmp rcx, 0xffffffffffffffff
je 0x14001c270
cmp byte [rbx + 0x210], 0
je 0x14001c269
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x140
pop rbx
ret
Function at 0x14001d270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor r11d, r11d
movzx edi, r8b
lea eax, [rdx - 0x30]
mov rbx, rcx
cmp ax, 9
ja 0x14001d293
movzx r11d, dx
jmp 0x14001d2a4
lea eax, [rdx - 0x41]
cmp ax, 0x19
ja 0x14001d2a4
movzx r11d, dx
add r11d, 0x20
xor r9b, r9b
test r11d, r11d
jne 0x14001d2e5
xor r8d, r8d
lea r10, [0x14012f880]
xor ecx, ecx
mov eax, 8
nop dword [rax]
cmp dx, ax
je 0x14001d2d8
movzx eax, word [r10 + rcx*4 + 4]
inc rcx
inc r8d
test ax, ax
jne 0x14001d2c0
jmp 0x14001d2e5
movsxd rax, r8d
movzx r11d, dx
movzx r9d, byte [r10 + rax*4 + 2]
movzx ecx, dx
sub ecx, 0x10
je 0x14001d317
sub ecx, 1
je 0x14001d30e
sub ecx, 1
je 0x14001d305
cmp ecx, 0x49
jne 0x14001d31e
mov byte [rbx + 0xf2], dil
jmp 0x14001d31e
mov byte [rbx + 0xf1], dil
jmp 0x14001d31e
mov byte [rbx + 0xf3], dil
jmp 0x14001d31e
mov byte [rbx + 0xf0], dil
test r11d, r11d
jne 0x14001d32c
test r9b, r9b
je 0x14001d3ae
cmp byte [rbx + 0xf0], 0
mov r8d, r11d
mov r10, qword [rbx + 8]
setne dl
movzx r9d, r9b
movzx eax, dl
or al, 2
cmp byte [rbx + 0xf1], 0
movzx ecx, al
movzx eax, dl
cmove ecx, eax
movzx edx, cl
movzx eax, dl
or al, 4
cmp byte [rbx + 0xf2], 0
movzx ecx, al
cmove ecx, edx
movzx edx, cl
movzx eax, dl
or al, 8
cmp byte [rbx + 0xf3], 0
movzx ecx, al
cmove ecx, edx
mov edx, edi
movzx eax, cl
xor edx, 1
add edx, 0x3b
mov rcx, r10
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], 0
call qword [r10 + htons]
cmp rax, 1
je 0x14001d3bb
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rbx + 8]
xor r9d, r9d
xorps xmm0, xmm0
xor r8d, r8d
movss dword [rsp + 0x28], xmm0
mov rcx, rax
mov qword [rsp + 0x20], 0
lea edx, [r9 + 0x13]
call qword [rax + htons]
mov rbx, qword [rsp + 0x40]
mov al, 1
add rsp, 0x30
pop rdi
ret
Function at 0x14001e750
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, r8
lea rax, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14001e789
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x68], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001e826
mov eax, dword [rsp + 0x68]
cmp eax, 2
jbe 0x14001e826
mov ecx, eax
mov eax, 2
shr rcx, 1
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400b609c
mov rbx, rax
test rax, rax
je 0x14001e826
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14001e826
mov rcx, rbx
call fcn.1400b60a4
xor ebx, ebx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400233f0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp byte [rcx + 0x2c0], 0
mov rbx, rcx
jne 0x14002340d
mov eax, 0x80040207
add rsp, 0x50
pop rbx
ret
mov rdx, qword [rcx + 0x298]
xor r9d, r9d
add rdx, qword [rcx + 0x290]
xor r8d, r8d
mov rcx, qword [rcx + 0x70]
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x48], r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ebp, dword [rbx + 0x2ac]
mov r12d, dword [rbx + 0x20]
add ebp, 7
mov ecx, dword [rbx + 0x2c]
mov rdi, qword [rbx + 0x2a0]
shr ebp, 3
imul r12d, ebp
imul ecx, r12d
call fcn.1400b609c
mov qword [rbx + 0x2a0], rax
test rdi, rdi
je 0x140023475
mov rcx, rdi
call fcn.1400b60a4
cmp qword [rbx + 0x2a0], 0
jne 0x140023489
mov eax, 0x80040202
jmp 0x1400235d0
mov rax, qword [rbx + 0x18]
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x40], r13
xor r13d, r13d
mov esi, r13d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
movzx r15d, byte [rbx + 0x2c1]
mov qword [rbx + 0x2b8], rax
cmp byte [rbx + 0x2c2], sil
je 0x1400234d7
lea rcx, [rbx + 0x58]
lea edx, [r13 + 2]
call fcn.140025da0
cmp word [rax], 0x50
jne 0x1400234d7
mov r14b, 1
jmp 0x1400234da
xor r14b, r14b
mov rdi, qword [rbx + 0x2b8]
test rdi, rdi
je 0x1400235a2
nop word [rax + rax]
mov eax, dword [rbx + 0x2c]
lea r9, [rsp + 0x60]
mov rdx, qword [rbx + 0x2a0]
cmp rdi, rax
mov rcx, qword [rbx + 0x70]
cmovge edi, eax
mov dword [rsp + 0x60], r13d
mov esi, edi
mov qword [rsp + 0x20], r13
imul esi, r12d
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002359d
cmp dword [rsp + 0x60], esi
jne 0x14002359d
test r15b, r15b
je 0x140023546
mov edx, dword [rbx + 0x20]
mov r8d, ebp
mov rcx, qword [rbx + 0x2a0]
imul edx, edi
call fcn.140028930
test r14b, r14b
je 0x140023560
mov edx, dword [rbx + 0x20]
mov r8d, ebp
mov rcx, qword [rbx + 0x2a0]
imul edx, edi
call fcn.1400289d0
mov rcx, qword [rbx + 0x10]
mov r9d, edi
mov rdx, qword [rbx + 0x2a0]
mov r8d, esi
mov rax, qword [rcx]
call qword [rax + 0x20]
mov ecx, eax
mov esi, eax
shr ecx, 0x1f
test cl, cl
jne 0x1400235a2
mov ecx, edi
mov rdi, qword [rbx + 0x2b8]
sub rdi, rcx
mov qword [rbx + 0x2b8], rdi
jne 0x1400234f0
jmp 0x1400235a2
mov esi, 0x80040205
mov rcx, qword [rbx + 0x2a0]
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov qword [rbx + 0x2a0], r13
mov r13, qword [rsp + 0x40]
test rcx, rcx
je 0x1400235c9
call fcn.1400b60a4
mov eax, esi
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov r12, qword [rsp + 0x48]
add rsp, 0x50
pop rbx
ret
Function at 0x1400235f0
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 rax, rdx
mov edi, r9d
mov rsi, r8
lea r9, [rsp + 0x48]
mov rbx, rcx
xor ebp, ebp
mov r8d, edi
mov dword [rsp + 0x48], ebp
mov rcx, qword [rax]
mov rdx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002364c
cmp dword [rsp + 0x48], edi
jne 0x14002364c
lea rax, [rsi + rdi]
mov qword [rbx], rsi
mov qword [rbx + 8], rax
mov al, 1
mov qword [rbx + 0x10], rbp
jmp 0x14002364e
xor al, al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140023670
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1030
call fcn.1400b6710
sub rsp, rax
mov rdi, rcx
mov qword [rsp + 0x1088], 0
mov rcx, qword [rdx]
mov r15, r8
mov r14, rdx
cmp rcx, 0xffffffffffffffff
je 0x14002372e
lea rdx, [rsp + 0x1070]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, qword [r14]
xor esi, esi
test eax, eax
mov eax, 0x1000
cmovne rsi, qword [rsp + 0x1070]
cmp rsi, rax
cmova rsi, rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x1088], rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, qword [r14]
lea r9, [rsp + 0x1070]
mov r8d, esi
mov dword [rsp + 0x1070], 0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [r14]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], 0
jne 0x140023735
movsxd rsi, eax
dec rsi
lea rsi, [rdi + rsi*2]
cmp rsi, rdi
jb 0x14002375f
nop
cmp word [rsi], 0x2e
je 0x14002375f
sub rsi, 2
cmp rsi, rdi
jae 0x140023750
add rsi, 2
cmp rsi, rdi
jne 0x140023780
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rsi + rax*2], 0
jne 0x140023770
cdqe
lea rsi, [rsi + rax*2]
mov eax, dword [0x140194cc8]
xor ebp, ebp
xor r12d, r12d
lea r13d, [rbp - 1]
test eax, eax
jle 0x140023898
nop word [rax + rax]
mov edx, ebp
lea rcx, [0x140194cc8]
call fcn.140022280
cmp qword [rax + 0x18], 0
je 0x140023880
mov edx, ebp
lea rcx, [0x140194cc8]
call fcn.140022280
mov rcx, qword [rax]
cmp word [rcx], 0
jne 0x1400237d7
mov edi, 1
jmp 0x140023832
mov edx, ebp
lea rcx, [0x140194cc8]
mov r14, rsi
call fcn.140022280
mov r15, qword [rax]
nop dword [rax + rax]
movzx ecx, word [r15]
call fcn.1400fb718
movzx ecx, word [r14]
lea r15, [r15 + 2]
movzx edi, ax
call fcn.1400fb718
cmp di, 0x3f
lea r14, [r14 + 2]
cmove di, ax
cmp di, 0x2a
je 0x140023825
cmp di, ax
jne 0x14002386e
test di, di
jne 0x1400237f0
mov edi, 3
mov r14, qword [rsp + 0x1078]
mov edx, ebp
lea rcx, [0x140194cc8]
call fcn.140022280
cmp qword [rax + 0x10], 0
je 0x140023872
cmp qword [r14], 0xffffffffffffffff
je 0x140023872
mov edx, ebp
lea rcx, [0x140194cc8]
call fcn.140022280
mov edx, dword [rsp + 0x1088]
lea rcx, [rsp + 0x30]
call qword [rax + reloc.WSOCK32.dll_recv]
add edi, eax
jmp 0x140023875
xor edi, edi
jmp 0x14002382a
add edi, 2
cmp edi, r12d
jle 0x140023880
mov r12d, edi
mov r13d, ebp
mov eax, dword [0x140194cc8]
inc ebp
cmp ebp, eax
jl 0x1400237a0
mov r15, qword [rsp + 0x1080]
cmp r13d, eax
je 0x1400238c4
cmp r12d, 4
jl 0x1400238c4
test r15, r15
je 0x1400238bf
imul ecx, r12d, 0x64
mov eax, 0x38e38e39
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [r15], edx
mov eax, r13d
jmp 0x1400238d5
test r15, r15
je 0x1400238d0
mov dword [r15], 0
mov eax, 0xffffffff
add rsp, 0x1030
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140023bc0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [rcx + 0x24]
mov rbx, rcx
test eax, eax
je 0x140023be3
and eax, 7
mov r8d, 8
sub r8d, eax
xor edx, edx
call fcn.140024770
mov rax, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
cmp rax, rdx
jbe 0x140023c1b
mov rcx, qword [rbx]
lea r9, [rsp + 0x40]
xor r8d, r8d
sub eax, edx
mov dword [rsp + 0x40], r8d
mov qword [rsp + 0x20], r8
mov r8d, eax
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rbx + 8]
mov qword [rbx + 0x10], rax
add rsp, 0x30
pop rbx
ret

Function at 0x140023c30
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [rcx + 0x24]
mov rbx, rcx
test eax, eax
je 0x140023c53
and eax, 7
mov r8d, 8
sub r8d, eax
xor edx, edx
call fcn.140024810
mov rax, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
cmp rax, rdx
jbe 0x140023c8b
mov rcx, qword [rbx]
lea r9, [rsp + 0x40]
xor r8d, r8d
sub eax, edx
mov dword [rsp + 0x40], r8d
mov qword [rsp + 0x20], r8
mov r8d, eax
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rbx + 8]
mov qword [rbx + 0x10], rax
add rsp, 0x30
pop rbx
ret

Function at 0x140024770
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov ecx, r8d
mov eax, dword [rbx + 0x20]
add dword [rbx + 0x24], r8d
shl eax, cl
or eax, edx
mov dword [rbx + 0x20], eax
mov eax, dword [rbx + 0x24]
cmp eax, 8
jb 0x1400247fb
mov qword [rsp + 0x40], rdi
xor edi, edi
nop dword [rax]
mov edx, dword [rbx + 0x20]
lea ecx, [rax - 8]
mov rax, qword [rbx + 0x10]
shr edx, cl
mov dword [rbx + 0x24], ecx
mov byte [rax], dl
mov rax, qword [rbx + 0x10]
inc rax
mov qword [rbx + 0x10], rax
cmp rax, qword [rbx + 0x18]
jne 0x1400247ee
mov rcx, qword [rbx]
lea r9, [rsp + 0x48]
sub eax, dword [rbx + 8]
mov rdx, qword [rbx + 8]
mov r8d, eax
mov dword [rsp + 0x48], edi
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rbx + 8]
mov qword [rbx + 0x10], rax
mov eax, dword [rbx + 0x24]
cmp eax, 8
jae 0x1400247a0
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret

Function at 0x140024810
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov ecx, dword [rcx + 0x24]
shl edx, cl
or dword [rbx + 0x20], edx
lea eax, [rcx + r8]
mov dword [rbx + 0x24], eax
cmp eax, 8
jb 0x14002489a
mov qword [rsp + 0x40], rdi
xor edi, edi
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rbx + 0x20]
mov rcx, qword [rbx + 0x10]
mov byte [rcx], al
mov rax, qword [rbx + 0x10]
shr dword [rbx + 0x20], 8
inc rax
add dword [rbx + 0x24], 0xfffffff8
mov qword [rbx + 0x10], rax
cmp rax, qword [rbx + 0x18]
jne 0x14002488f
mov rcx, qword [rbx]
lea r9, [rsp + 0x48]
sub eax, dword [rbx + 8]
mov rdx, qword [rbx + 8]
mov r8d, eax
mov dword [rsp + 0x48], edi
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rbx + 8]
mov qword [rbx + 0x10], rax
cmp dword [rbx + 0x24], 8
jae 0x140024840
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
Function at 0x1400248c0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [rcx + 0x2c0], 0
mov rbx, rcx
jne 0x1400248dd
mov eax, 0x80040200
add rsp, 0x40
pop rbx
ret
mov rdx, qword [rcx + 0x2a0]
mov qword [rsp + 0x60], rdi
test rdx, rdx
je 0x1400249d7
cmp qword [rcx + 0x2b0], 0
je 0x1400249d7
mov eax, dword [rcx + 0x2c]
mov rdi, qword [rcx + 0x2b8]
cmp rdi, rax
cmovge edi, eax
test edi, edi
je 0x1400249d7
mov qword [rsp + 0x58], rsi
lea r9, [rsp + 0x50]
mov esi, dword [rcx + 0x2ac]
xor eax, eax
imul esi, edi
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x20], rax
add esi, 7
shr esi, 3
imul esi, dword [rcx + 0x20]
mov rcx, qword [rcx + 0x70]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400249c2
cmp dword [rsp + 0x50], esi
jne 0x1400249c2
lea rcx, [rbx + 0x58]
mov edx, 2
call fcn.140025da0
movzx ecx, byte [rbx + 0x2c1]
xor r9d, r9d
mov r8d, dword [rbx + 0x20]
mov rdx, qword [rbx + 0x2a0]
mov byte [rsp + 0x38], cl
movzx ecx, byte [rbx + 0x2c2]
mov byte [rsp + 0x30], cl
mov rcx, qword [rbx + 0x2b0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
call fcn.1400266e0
mov ecx, eax
shr ecx, 0x1f
test cl, cl
jne 0x1400249b2
mov rax, qword [rbx]
mov edx, edi
mov rcx, rbx
call qword [rax + 0x78]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov rsi, qword [rsp + 0x58]
mov eax, 0x80040205
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov rdi, qword [rsp + 0x60]
mov eax, 0x80040207
add rsp, 0x40
pop rbx
ret
Function at 0x140024a80
Capabilities:
Get file size

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
mov rdi, rcx
je 0x140024c16
cmp qword [rcx + 0x70], 0xffffffffffffffff
je 0x140024c16
cmp qword [rcx + 0x18], 0
je 0x140024c0b
cmp dword [rcx + 0x20], 0
je 0x140024c0b
mov rcx, qword [rcx + 0x2a0]
mov qword [rsp + 0x40], rbp
xor ebp, ebp
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x2a0], rbp
test rcx, rcx
je 0x140024ad8
call fcn.1400b60a4
lea rcx, [rdi + 0x2b0]
mov qword [rsp + 0x38], rbx
call fcn.140027db0
mov eax, dword [rdi + 0x2a8]
test eax, eax
jne 0x140024b17
mov ecx, dword [rdi + 0x2ac]
test ecx, ecx
je 0x140024b42
mov eax, dword [rdi + 0x2c]
imul eax, ecx
add eax, 7
shr eax, 3
imul eax, dword [rdi + 0x20]
mov dword [rdi + 0x2a8], eax
test eax, eax
je 0x140024b42
mov rbx, qword [rdi + 0x2a0]
mov ecx, eax
call fcn.1400b609c
mov qword [rdi + 0x2a0], rax
test rbx, rbx
je 0x140024b39
mov rcx, rbx
call fcn.1400b60a4
cmp qword [rdi + 0x2a0], rbp
je 0x140024b59
mov r8d, dword [rdi + 0x2c]
lea rcx, [rdi + 0x2b0]
mov edx, dword [rdi + 0x20]
call fcn.1400265b0
test al, al
jne 0x140024b73
mov eax, 0x80040202
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rdi + 0x290]
xor r9d, r9d
add rdx, qword [rdi + 0x298]
xor r8d, r8d
mov rcx, qword [rdi + 0x70]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
movabs rsi, 0x7fffffffffffffff
cmp byte [rdi + 0x2c0], bpl
je 0x140024bed
cmp qword [rdi + 0x18], rsi
jne 0x140024bed
mov ebx, dword [rdi + 0x2ac]
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 0x70]
add ebx, 7
shr ebx, 3
imul ebx, dword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
mov ecx, ebx
cmovne rbp, qword [rsp + 0x30]
sub rbp, qword [rdi + 0x290]
sub rbp, qword [rdi + 0x298]
mov rax, rbp
cqo
idiv rcx
mov qword [rdi + 0x18], rax
mov rax, qword [rdi + 0x18]
cmp rax, rsi
je 0x140024bfd
mov rsi, rax
sub rsi, qword [rdi + 0x30]
mov qword [rdi + 0x2b8], rsi
xor eax, eax
jmp 0x140024b5e
mov eax, 0x8004020e
add rsp, 0x20
pop rdi
ret
mov eax, 0x80040207
add rsp, 0x20
pop rdi
ret
Function at 0x140024f70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push r14
sub rsp, 0x30
mov esi, r9d
mov ebp, r8d
mov r14, rdx
mov rbx, rcx
test r8d, r8d
je 0x140025038
cmp byte [rcx + 0x288], 0
je 0x140025007
cmp byte [rcx + 0x28a], 0
mov qword [rsp + 0x50], rdi
je 0x140024fde
add rcx, 0x28
mov edx, 2
call fcn.140025da0
cmp word [rax], 0x50
jne 0x140024fde
mov edx, dword [rbx + 0x258]
mov rcx, r14
mov r8d, dword [rbx + 0x290]
movzx edi, byte [rbx + 0x289]
imul edx, esi
call fcn.1400289d0
jmp 0x140024fe5
movzx edi, byte [rbx + 0x289]
test dil, dil
mov rdi, qword [rsp + 0x50]
je 0x140025007
mov edx, dword [rbx + 0x258]
mov rcx, r14
mov r8d, dword [rbx + 0x290]
imul edx, esi
call fcn.140028930
mov rcx, qword [rbx + 0x38]
lea r9, [rsp + 0x60]
xor eax, eax
mov r8d, ebp
mov rdx, r14
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140025048
cmp dword [rsp + 0x60], ebp
jne 0x140025048
add qword [rbx + 0x268], rsi
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x58]
mov eax, 0x80040206
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret