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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov dword [rsp + 0x58], 0
mov rdx, rcx
mov rbx, r8
mov rcx, qword [0x1409d6800]
call fcn.14011afe0
test rax, rax
je 0x1400feb38
cmp qword [rax + 8], 0
mov rdx, rdi
je 0x1400feb1e
mov r8, rbx
mov rcx, rax
call fcn.1400ff4a0
cdqe
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x58]
mov r8d, ebx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400feb50
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
mov rcx, qword [0x1409d6800]
jne 0x1400feb70
add rsp, 0x30
pop rdi
jmp fcn.14011b21c
mov rdx, rdi
mov qword [rsp + 0x48], rbx
call fcn.14011afe0
mov rbx, rax
test rax, rax
je 0x1400febe5
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400febcd
xor eax, eax
mov dword [rsp + 0x40], eax
cmp dword [rbx + 0x1c], eax
jne 0x1400febba
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rbx + 0x14]
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
mov r8, qword [rbx + 8]
xor edx, edx
mov rcx, qword [0x140959128]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1409d6800]
mov rdx, rdi
call fcn.14011af74
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400febf0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x1400fec34
mov r8d, dword [rcx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
movsxd rax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret
Function at 0x1400fec80
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdx, rcx
xor edi, edi
mov rcx, qword [0x1409d6800]
mov dword [rsp + 0x50], edi
call fcn.14011afe0
mov rbx, rax
test rax, rax
je 0x1400fed25
cmp qword [rax + 8], rdi
je 0x1400fece7
lea r8d, [rdi + 1]
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.1400ff4a0
test rax, rax
je 0x1400fecd4
inc dword [rbx + 0x14]
movsxd rax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov edi, 1
movsxd rax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x58]
mov r8d, 1
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400fed35
cmp dword [rsp + 0x58], edi
je 0x1400fed35
mov rcx, qword [rbx]
mov r9d, 1
xor r8d, r8d
lea edx, [r9 - 2]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
movsxd rax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 0xffffffff
cdqe
add rsp, 0x30
pop rdi
ret

Function at 0x1400ff030
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rdx, rcx
mov rcx, qword [0x1409d6800]
call fcn.14011afe0
mov rbx, rax
test rax, rax
je 0x1400ff080
mov r8d, dword [rax + 0x20]
mov rdx, rdi
mov rcx, rax
call fcn.1400ff100
mov r8d, dword [rbx + 0x20]
lea rdx, [0x14023c8e0]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400ff100
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400ff090
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov edi, r8d
mov rdx, rcx
mov rcx, qword [0x1409d6800]
call fcn.14011afe0
mov rbx, rax
test rax, rax
je 0x1400ff0eb
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call fcn.1400ff100
mov r8d, edi
lea rdx, [0x14023c8e0]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400ff100
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ff100
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
xor esi, esi
mov rbx, rcx
mov dword [rsp + 0x48], esi
test rdx, rdx
je 0x1400ff1f7
cmp word [rdx], si
je 0x1400ff1f7
test r8d, r8d
jne 0x1400ff12e
mov r8d, dword [rcx + 0x20]
cmp r8d, 0x19
jne 0x1400ff18e
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rdx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x1400ff140
lea r8d, [rax + rax]
cmp qword [rcx + 8], rsi
je 0x1400ff16b
call fcn.1400ffbd0
mov dword [rsp + 0x48], eax
cdqe
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [rcx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp r8d, 2
mov qword [rsp + 0x40], rdi
mov ecx, 0xfde9
lea r8, [rsp + 0x58]
cmovne ecx, esi
call fcn.1400ffce0
mov rdi, rax
test rax, rax
je 0x1400ff1f2
mov rdx, rax
mov r8d, dword [rsp + 0x58]
cmp qword [rbx + 8], rsi
je 0x1400ff1cd
mov rcx, rbx
call fcn.1400ffbd0
mov dword [rsp + 0x48], eax
jmp 0x1400ff1e0
mov rcx, qword [rbx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x140959128]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdi, qword [rsp + 0x40]
movsxd rax, dword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret

Function at 0x1400ff250
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov ebx, r8d
mov rdx, rcx
mov rcx, qword [0x1409d6800]
call fcn.14011afe0
test rax, rax
je 0x1400ff28c
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400ff100
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400ff2a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov edi, r8d
mov dword [rsp + 0x48], ebx
mov rsi, rdx
test rdx, rdx
je 0x1400ff318
test r8d, r8d
je 0x1400ff318
mov rdx, rcx
mov rcx, qword [0x1409d6800]
call fcn.14011afe0
test rax, rax
je 0x1400ff314
mov r8d, edi
mov rdx, rsi
cmp qword [rax + 8], rbx
je 0x1400ff301
mov rcx, rax
call fcn.1400ffbd0
mov ebx, eax
cdqe
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movsxd rax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400ff430
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rdx, rcx
mov byte [rsp + 0x48], 0
mov rcx, qword [0x1409d6800]
call fcn.14011afe0
test rax, rax
je 0x1400ff48e
cmp qword [rax + 8], 0
lea rdx, [rsp + 0x48]
je 0x1400ff471
mov r8d, 1
mov rcx, rax
call fcn.1400ff4a0
movzx eax, byte [rsp + 0x48]
add rsp, 0x38
ret
mov rcx, qword [rax]
lea r9, [rsp + 0x50]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x1400ff4a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor ebp, ebp
mov rdi, r8
mov r15, rdx
mov r14, rcx
cmp dword [rcx + 0x1c], ebp
jne 0x1400ff4d7
call fcn.1400febf0
mov dword [r14 + 0x1c], 1
mov dword [r14 + 0x14], ebp
movsxd r12, dword [r14 + 0x14]
mov eax, dword [r14 + 0x18]
mov rbx, r12
sub eax, r12d
movsxd rdx, eax
add rdx, qword [r14 + 8]
cmp r12, rdi
jl 0x1400ff550
mov rax, rdi
sub rax, 1
je 0x1400ff541
sub rax, 1
je 0x1400ff52e
cmp rax, 2
je 0x1400ff51d
mov r8, rdi
mov rcx, r15
call fcn.140095db0
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x1400ff5ca
mov eax, dword [rdx]
mov dword [r15], eax
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x1400ff5ca
movzx eax, word [rdx]
mov word [r15], ax
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x1400ff5ca
movzx eax, byte [rdx]
mov byte [r15], al
sub dword [r14 + 0x14], edi
movsxd rax, edi
jmp 0x1400ff5ca
mov r8, rbx
mov rcx, r15
call fcn.140095db0
movsxd r8, dword [r14 + 0x10]
lea r9, [rsp + 0x60]
mov rcx, qword [r14]
add r15, rbx
sub rdi, rbx
mov qword [rsp + 0x20], rbp
cmp rdi, r8
jl 0x1400ff590
mov r8d, edi
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x60]
add eax, r12d
mov dword [r14 + 0x14], ebp
jmp 0x1400ff5c8
mov rdx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rsp + 0x60]
mov rcx, r15
mov rdx, qword [r14 + 8]
cmp rdi, rax
mov rbx, rax
mov dword [r14 + 0x14], eax
cmovle rbx, rdi
mov dword [r14 + 0x18], eax
mov r8, rbx
call fcn.140095db0
sub dword [r14 + 0x14], ebx
lea eax, [rbx + r12]
cdqe
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400ff5f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, r8
mov r12d, edx
mov r14, rcx
mov r15d, 0x1000
mov rcx, qword [0x140959128]
mov r8d, r15d
xor edx, edx
mov r13, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x1400ff7cb
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
mov qword [rsp + 0x78], rdi
cmp rsi, 0xffffffffffffffff
je 0x1400ff657
test rsi, rsi
je 0x1400ff720
dec rsi
cmp qword [r14 + 8], 0
lea rdi, [r14 + 8]
lea rdx, [rsp + 0x30]
je 0x1400ff67b
mov r8d, 1
mov rcx, r14
call fcn.1400ff4a0
mov dword [rsp + 0x34], eax
jmp 0x1400ff69c
mov rcx, qword [r14]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
movzx r8d, byte [rsp + 0x30]
cmp eax, 1
jne 0x1400ff724
test r8b, r8b
je 0x1400ff6b8
mov byte [rbx], r8b
inc rbx
movzx r8d, byte [rsp + 0x30]
mov rdx, rbx
lea eax, [r15 - 1]
sub rdx, rbp
movsxd rcx, eax
cmp rdx, rcx
jle 0x1400ff6fa
mov rcx, qword [0x140959128]
add r15d, 0x1000
movsxd r9, r15d
mov r8, rbp
mov edx, 8
sub ebx, ebp
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx r8d, byte [rsp + 0x30]
mov rbp, rax
movsxd rbx, ebx
add rbx, rax
test r8b, r8b
je 0x1400ff724
test r12d, r12d
jne 0x1400ff645
cmp r8b, 0xd
je 0x1400ff72d
cmp r8b, 0xa
jne 0x1400ff645
dec rbx
jmp 0x1400ff7b1
lea rdi, [r14 + 8]
test r12d, r12d
jne 0x1400ff7b1
cmp r8b, 0xa
jne 0x1400ff738
dec rbx
jmp 0x1400ff7b1
cmp r8b, 0xd
jne 0x1400ff7b1
dec rbx
lea rdx, [rsp + 0x30]
cmp qword [rdi], 0
je 0x1400ff760
mov r8d, 1
mov rcx, r14
call fcn.1400ff4a0
mov dword [rsp + 0x34], eax
jmp 0x1400ff77d
mov rcx, qword [r14]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [rsp + 0x30], 0xa
je 0x1400ff7b1
cmp qword [rdi], 0
je 0x1400ff790
inc dword [r14 + 0x14]
jmp 0x1400ff7b1
mov rcx, qword [r14]
lea r8, [rsp + 0x3c]
mov r9d, 1
mov qword [rsp + 0x38], 0xffffffffffffffff
lea edx, [r9 - 2]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdi, qword [rsp + 0x78]
mov rax, rbx
sub rax, rbp
mov qword [r13], rax
mov rax, rbp
mov byte [rbx], 0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x1400ff7f0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], r9
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbp, r8
mov r12d, edx
mov r14, rcx
xor edx, edx
mov rcx, qword [0x140959128]
mov r8d, 0x1000
xor edi, edi
mov r13d, 0x800
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
je 0x1400ff9e8
movzx edx, word [rsp + 0x30]
mov qword [rsp + 0x70], rbx
mov rbx, rax
mov qword [rsp + 0x78], rsi
nop dword [rax + rax]
cmp rbp, 0xffffffffffffffff
je 0x1400ff862
test rbp, rbp
je 0x1400ff928
dec rbp
cmp qword [r14 + 8], 0
lea rsi, [r14 + 8]
lea rdx, [rsp + 0x30]
je 0x1400ff886
mov r8d, 2
mov rcx, r14
call fcn.1400ff4a0
mov dword [rsp + 0x34], eax
jmp 0x1400ff8a3
mov rcx, qword [r14]
lea r9, [rsp + 0x34]
mov r8d, 2
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x34]
movzx edx, word [rsp + 0x30]
cmp eax, 2
jne 0x1400ff92c
test dx, dx
je 0x1400ff8be
mov word [rbx], dx
add rbx, 2
movzx edx, word [rsp + 0x30]
mov rdi, rbx
lea eax, [r13 - 1]
sub rdi, r15
movsxd rcx, eax
sar rdi, 1
cmp rdi, rcx
jle 0x1400ff904
mov rcx, qword [0x140959128]
add r13d, 0x800
movsxd r9, r13d
mov r8, r15
add r9, r9
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx edx, word [rsp + 0x30]
mov r15, rax
movsxd rax, edi
lea rbx, [r15 + rax*2]
test dx, dx
je 0x1400ff92c
mov edi, 0
test r12d, r12d
jne 0x1400ff850
cmp dx, 0xd
je 0x1400ff931
cmp dx, 0xa
je 0x1400ff937
jmp 0x1400ff850
lea rsi, [r14 + 8]
test r12d, r12d
jne 0x1400ff93b
cmp dx, 0xa
jne 0x1400ff966
sub rbx, 2
xor edi, edi
mov rcx, qword [rsp + 0x88]
mov rax, rbx
mov rsi, qword [rsp + 0x78]
sub rax, r15
sar rax, 1
mov qword [rcx], rax
mov rax, r15
mov word [rbx], di
mov rbx, qword [rsp + 0x70]
jmp 0x1400ff9eb
cmp dx, 0xd
jne 0x1400ff93b
sub rbx, 2
lea rdx, [rsp + 0x30]
cmp qword [rsi], 0
je 0x1400ff991
mov r8d, 2
mov rcx, r14
call fcn.1400ff4a0
mov dword [rsp + 0x34], eax
xor edi, edi
jmp 0x1400ff9aa
mov rcx, qword [r14]
lea r9, [rsp + 0x34]
xor edi, edi
mov qword [rsp + 0x20], rdi
lea r8d, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [rsp + 0x30], 0xa
je 0x1400ff93d
cmp qword [rsi], 0
je 0x1400ff9c2
add dword [r14 + 0x14], 2
jmp 0x1400ff93d
mov rcx, qword [r14]
lea r8, [rsp + 0x3c]
mov r9d, 1
mov qword [rsp + 0x38], 0xfffffffffffffffe
lea edx, [r9 - 3]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x1400ff93d
mov rax, rdi
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400ffa10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rdi, r8
mov r15d, edx
mov rsi, rcx
mov r14d, 0x1000
mov rcx, qword [0x140959128]
mov r8d, r14d
xor edx, edx
mov r12, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x1400ffbaa
movzx r8d, byte [rsp + 0x30]
mov qword [rsp + 0x60], rbx
mov rbx, rax
cmp rdi, 0xffffffffffffffff
je 0x1400ffa79
test rdi, rdi
je 0x1400ffb07
dec rdi
mov rdx, rbx
mov rcx, rsi
call fcn.1400ffda0
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x1400ffa91
xor r8b, r8b
jmp 0x1400ffa95
movzx r8d, byte [rbx]
cdqe
add rbx, rax
mov byte [rsp + 0x30], r8b
mov rdx, rbx
lea eax, [r14 - 5]
sub rdx, rbp
movsxd rcx, eax
cmp rdx, rcx
jle 0x1400ffae1
mov rcx, qword [0x140959128]
add r14d, 0x1000
movsxd r9, r14d
mov r8, rbp
mov edx, 8
sub ebx, ebp
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
movzx r8d, byte [rsp + 0x30]
mov rbp, rax
movsxd rbx, ebx
add rbx, rax
test r8b, r8b
je 0x1400ffb07
test r15d, r15d
jne 0x1400ffa67
cmp r8b, 0xd
je 0x1400ffb10
cmp r8b, 0xa
jne 0x1400ffa67
dec rbx
jmp 0x1400ffb95
test r15d, r15d
jne 0x1400ffb95
cmp r8b, 0xa
jne 0x1400ffb1b
dec rbx
jmp 0x1400ffb95
cmp r8b, 0xd
jne 0x1400ffb95
dec rbx
lea rdx, [rsp + 0x30]
cmp qword [rsi + 8], 0
je 0x1400ffb44
mov r8d, 1
mov rcx, rsi
call fcn.1400ff4a0
mov dword [rsp + 0x34], eax
jmp 0x1400ffb61
mov rcx, qword [rsi]
lea r9, [rsp + 0x34]
mov r8d, 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [rsp + 0x30], 0xa
je 0x1400ffb95
cmp qword [rsi + 8], 0
je 0x1400ffb74
inc dword [rsi + 0x14]
jmp 0x1400ffb95
mov rcx, qword [rsi]
lea r8, [rsp + 0x3c]
mov r9d, 1
mov qword [rsp + 0x38], 0xffffffffffffffff
lea edx, [r9 - 2]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rax, rbx
sub rax, rbp
mov qword [r12], rax
mov rax, rbp
mov byte [rbx], 0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x1400ffbd0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push r14
sub rsp, 0x38
xor ebp, ebp
movsxd rbx, r8d
mov r14, rdx
mov rsi, rcx
mov dword [rsp + 0x60], ebp
cmp dword [rcx + 0x24], ebp
jne 0x1400ffcca
cmp dword [rcx + 0x1c], 1
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x30], r15
jne 0x1400ffc2b
mov eax, dword [rcx + 0x14]
lea r9d, [rbp + 1]
mov rcx, qword [rcx]
lea r8, [rsp + 0x7c]
neg eax
cdqe
mov edx, eax
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rsi + 0x10]
mov dword [rsi + 0x14], eax
mov dword [rsi + 0x1c], ebp
mov ecx, dword [rsi + 0x14]
cmp ecx, ebx
jle 0x1400ffc8c
mov eax, dword [rsi + 0x10]
mov edx, ebx
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rsi + 8]
sub edx, 1
je 0x1400ffc84
sub edx, 1
je 0x1400ffc7b
cmp edx, 2
je 0x1400ffc74
mov r8, rbx
mov rdx, r14
call fcn.140095db0
sub dword [rsi + 0x14], ebx
mov rax, rbx
mov rdi, qword [rsp + 0x68]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [r14]
mov dword [rcx], eax
jmp 0x1400ffc5a
movzx eax, word [r14]
mov word [rcx], ax
jmp 0x1400ffc5a
movzx eax, byte [r14]
mov byte [rcx], al
jmp 0x1400ffc5a
mov rcx, rsi
call fcn.1400febf0
mov eax, dword [rsi + 0x10]
mov rdx, r14
cmp ebx, eax
jl 0x1400ffcbb
mov rcx, qword [rsi]
lea r9, [rsp + 0x60]
mov r8d, ebx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x60]
jmp 0x1400ffc60
sub eax, dword [rsi + 0x14]
mov r8, rbx
movsxd rcx, eax
add rcx, qword [rsi + 8]
jmp 0x1400ffc55
movsxd rax, ebp
add rsp, 0x38
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400ffda0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
push r15
sub rsp, 0x38
xor r15d, r15d
mov rsi, rdx
lea rdx, [rsp + 0x60]
mov r14, rcx
mov dword [rsp + 0x70], r15d
lea ebx, [r15 + 1]
cmp qword [rcx + 8], r15
je 0x1400ffdd6
mov r8d, ebx
call fcn.1400ff4a0
mov dword [rsp + 0x70], eax
jmp 0x1400ffdf0
mov rcx, qword [rcx]
lea r9, [rsp + 0x70]
mov r8d, ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
cmp eax, 1
jne 0x1400ffeb8
movzx ecx, byte [rsp + 0x60]
test cl, cl
js 0x1400ffe16
mov byte [rsi], cl
mov rax, rbx
mov byte [rsi + 1], r15b
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
movzx eax, cl
mov qword [rsp + 0x68], rbp
and al, 0xe0
mov qword [rsp + 0x30], rdi
cmp al, 0xc0
jne 0x1400ffe32
mov ebp, 2
mov edi, ebp
jmp 0x1400ffe59
movzx eax, cl
and al, 0xf0
cmp al, 0xe0
jne 0x1400ffe45
mov edi, 3
lea ebx, [rdi - 1]
jmp 0x1400ffe56
movzx eax, cl
and al, 0xf8
cmp al, 0xf0
jne 0x1400ffeae
mov edi, 4
lea ebx, [rdi - 1]
mov rbp, rdi
mov byte [rsi], cl
lea rdx, [rsi + 1]
cmp qword [r14 + 8], r15
je 0x1400ffe73
lea r8, [rdi - 1]
mov rcx, r14
call fcn.1400ff4a0
jmp 0x1400ffe90
mov rcx, qword [r14]
lea r9, [rsp + 0x70]
mov r8d, ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
mov rdi, rbp
cmp eax, ebx
cmovne rdi, r15
mov rax, rdi
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
mov word [rsi], 0x3f
mov rax, rbx
jmp 0x1400ffe99
xor eax, eax
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
Function at 0x140105cc0
Capabilities:
Encode data using xor

Disassembly:
movsxd r10, edx
mov al, cl
or al, r10b
or al, r8b
or al, r9b
test al, 3
jne 0x140105d0d
lea r11, [r8 + r9]
cmp r8, r11
jae 0x140105d2a
sub r10, r8
lea r9, [r10 + rcx]
mov ecx, dword [r8]
mov edx, ecx
shr edx, 8
mov eax, ecx
shl eax, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
rol edx, 0x10
mov dword [r9 + r8], edx
add r8, 4
cmp r8, r11
jb 0x140105ce2
ret
add r9, r10
jmp 0x140105d25
mov al, byte [r8]
xor r10, 3
inc r8
inc edx
mov byte [r10 + rcx], al
movsxd r10, edx
cmp r10, r9
jb 0x140105d12
ret

Function at 0x140105d2c
Capabilities:
Encode data using xor

Disassembly:
movsxd r10, edx
mov al, cl
or al, r10b
mov r11, r8
or al, r8b
or al, r9b
test al, 7
jne 0x140105db3
add r9, r8
cmp r8, r9
jae 0x140105dd0
sub r10, r8
add r10, rcx
mov rax, qword [r11]
mov rdx, rax
shr rdx, 0x20
mov r8d, edx
mov ecx, edx
shl edx, 8
shr r8d, 8
shl ecx, 8
xor r8d, ecx
mov ecx, eax
and r8d, 0xff00ff
shl ecx, 8
xor r8d, edx
mov edx, eax
shr edx, 8
xor edx, ecx
shl eax, 8
and edx, 0xff00ff
rol r8d, 0x10
xor edx, eax
mov dword [rsp + 8], r8d
rol edx, 0x10
mov dword [rsp + 0xc], edx
mov rax, qword [rsp + 8]
mov qword [r10 + r11], rax
add r11, 8
cmp r11, r9
jb 0x140105d53
ret
add r9, r10
jmp 0x140105dcb
mov al, byte [r11]
xor r10, 7
inc r11
inc edx
mov byte [r10 + rcx], al
movsxd r10, edx
cmp r10, r9
jb 0x140105db8
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov r9, rcx
test rcx, rcx
jne 0x140105ed6
mov eax, r8d
jmp 0x140105f40
lea rbx, [0x14023d390]
not r8d
cmp edx, 8
jb 0x140105f19
mov r10d, edx
shr r10, 3
mov r11d, 8
movzx ecx, byte [r9]
mov eax, r8d
xor rcx, rax
shr r8d, 8
movzx eax, cl
inc r9
xor r8d, dword [rbx + rax*4]
sub r11, 1
jne 0x140105ef2
add edx, 0xfffffff8
sub r10, 1
jne 0x140105eec
test edx, edx
je 0x140105f3a
movzx ecx, byte [r9]
mov eax, r8d
xor rcx, rax
shr r8d, 8
movzx eax, cl
inc r9
xor r8d, dword [rbx + rax*4]
add edx, 0xffffffff
jne 0x140105f1d
not r8d
movsxd rax, r8d
mov rbx, qword [rsp + 8]
ret
Function at 0x140106100
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbx
push rdi
sub rsp, 0x68
mov qword [rax + 0x10], rsi
mov rsi, rcx
mov qword [rax + 0x18], r12
mov ecx, edx
mov qword [rax - 0x18], r13
mov r12d, r9d
mov qword [rax - 0x20], r14
xor r13d, r13d
mov qword [rax - 0x28], r15
mov ebx, r13d
mov r15d, edx
mov qword [rax - 0x30], r13
mov r14d, r8d
call fcn.140106bf0
mov rdi, rax
test rax, rax
je 0x14010626b
test rsi, rsi
je 0x14010626b
mov qword [rsp + 0x30], r13
lea r8d, [r13 + 1]
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rsi
mov qword [rsp + 0x80], rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140106263
mov rcx, qword [0x140959128]
xor edx, edx
mov r8d, 0x100000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x14010625a
mov ecx, r14d
call qword [rdi + 8]
mov rbx, rax
test rax, rax
je 0x140106248
xor edx, edx
mov rcx, rax
call qword [rdi + SafeArrayGetElemsize]
xor r9d, r9d
mov dword [rsp + 0x20], r13d
mov r8d, r15d
mov rdx, rdi
mov rcx, rbx
call fcn.140106d60
mov rax, qword [rsp + 0x48]
test rax, rax
jle 0x140106200
xor r9d, r9d
lea r8, [rsp + 0x4c]
mov edx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
nop dword [rax]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r13
mov r8d, 0x100000
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, dword [rsp + 0x40]
mov rdx, rsi
mov rcx, rbx
call qword [rdi + SafeArrayPutElement]
cmp dword [rsp + 0x40], 0x100000
je 0x140106200
mov rcx, rbx
call qword [rdi + 0x20]
mov r8d, r15d
mov rdx, rdi
mov rcx, rbx
call fcn.140106d00
mov rcx, qword [0x140959128]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x80]
mov edx, r12d
mov rcx, rbx
call fcn.140106f70
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x88]
test rbx, rbx
je 0x1401062a0
mov rcx, rbx
call qword [rdi + 0x28]
add rsp, 0x68
pop rdi
pop rbx
ret