joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000faf0
Capabilities:
Get file size
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x1400ad388]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdx, rcx
xor edi, edi
cmp qword [rcx + 0x18], 0x10
jb 0x14000fb2d
mov r8, qword [rcx]
add r8, qword [rcx + 0x10]
mov rdx, qword [rcx]
jmp 0x14000fb34
mov r8, qword [rcx + 0x10]
add r8, rcx
lea rcx, [rbp + 0x1f]
call fcn.140006b20
nop
lea rcx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 8
cmovae rcx, qword [rbp + 0x1f]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x10000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000fca8
lea rdx, [rbp + 0x3f]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], rax
mov rdx, qword [rbp + 0x3f]
lea rcx, [rbp + 7]
call fcn.1400193e0
nop
mov r8, qword [rbp + 0xf]
mov rdx, qword [rbp + 7]
sub r8, rdx
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000fc62
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 8
cmovae rdx, qword [rbp + 0x1f]
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], di
mov r8, qword [rbp + 0x2f]
lea rcx, [rbp - 0x29]
call fcn.1400064b0
nop
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rcx, qword [rbp - 0x29]
call fcn.1400494e8
shr rax, 0x20
test eax, eax
jne 0x14000fd0b
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x14000fc62
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fc5c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000fd1e
call fcn.14004c5ac
nop
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x14000fca8
mov rdx, qword [rbp + 0x17]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fc97
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000fd24
call fcn.14004c5ac
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], rdi
mov rdx, qword [rbp + 0x37]
cmp rdx, 8
jb 0x14000fce4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fcdf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000fd05
call fcn.14004c5ac
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14004c550
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.14005bae0
nop
lea r8, [rbp - 0x29]
mov edx, eax
lea rcx, str.remove
call fcn.140002890
nop
call fcn.14005bae0
nop
call fcn.14005bae0
int3
Function at 0x140010560
Capabilities:
Get disk information
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2b0
mov rax, qword [0x1400ad388]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r12, rax
test rax, rax
je 0x14001078a
lea rdx, str.FindFirstVolumeA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, str.FindNextVolumeA
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
lea rdx, str.FindVolumeClose
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
lea rdx, str.SetVolumeMountPointA
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
lea rdx, str.GetVolumePathNameA
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x104
lea rcx, [rsp + 0x80]
call rbx
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140010781
mov dword [rsp + 0x70], 0x5c3a20
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r14d, eax
xor ebx, ebx
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8d, 0x104
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], 0xf
lea rax, [rsp + 0x190]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140010690
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x50]
call fcn.140006540
lea rcx, [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
cmp rsi, 0x10
setae bpl
mov rbx, qword [rsp + 0x50]
cmovae rcx, rbx
cmp qword [rsp + 0x60], 0xf
jne 0x1400106ea
mov r8d, 0xf
lea rdx, str.System_Reserved
call fcn.14004e8f0
test eax, eax
jne 0x1400106ea
xor dil, dil
jmp 0x1400106ed
mov dil, 1
test bpl, bpl
je 0x140010723
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x14001071b
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400107bb
mov rcx, rbx
call fcn.14004c5ac
test dil, dil
je 0x14001075d
xor ebx, ebx
nop word [rax + rax]
lea eax, [rbx + 0x41]
mov byte [rsp + 0x70], al
mov eax, r14d
mov ecx, ebx
shr eax, cl
test al, 1
jne 0x140010756
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x70]
call r15
test eax, eax
jne 0x14001075d
inc ebx
cmp ebx, 0x1a
jl 0x140010730
mov r8d, 0x104
lea rdx, [rsp + 0x80]
mov rcx, r13
call qword [rsp + 0x40]
test eax, eax
jne 0x140010637
mov rcx, r13
call qword [rsp + 0x48]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14004c550
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.14005bae0
int3
Function at 0x140016d70
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140016d92
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x140016e0c
mov rdi, r14
mov rcx, rbx
call fcn.14001b680
test rax, rax
jle 0x140016de4
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.14004e9f0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140016dfc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140016e04
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140016da6
sub r14, rdi
jmp 0x140016eef
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140016e23
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140016e25
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140016e57
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14004e9f0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140016eec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140016e92
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
cmp rbp, 0xfff
jbe 0x140016ecd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14005d4b4
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140016eec
cmp rbp, rax
ja 0x140016ea0
test rbp, rbp
je 0x140016eec
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14005d4b4
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x14001de20
Capabilities:
Hash data using fnv

Disassembly:
push rbx
push rsi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov ebx, 1
mov eax, ebx
shl rax, cl
cmp rdx, rax
ja 0x14001dfeb
lea rax, [rdx - 1]
mov qword [rsp + 0x58], rdi
mov rdi, qword [rsi + 8]
or rax, rbx
bsr rcx, rax
mov r8, rdi
mov qword [rsp + 0x20], r14
inc ecx
shl rbx, cl
lea rcx, [rsi + 0x18]
lea rdx, [rbx + rbx]
call fcn.14001b7d0
mov qword [rsi + 0x38], rbx
lea rax, [rbx - 1]
mov qword [rsi + 0x30], rax
mov rcx, qword [rsi + 8]
mov rcx, qword [rcx]
cmp rcx, rdi
je 0x14001dfb4
mov qword [rsp + 0x50], rbp
mov rax, rcx
movabs rbp, 0xcbf29ce484222325
movabs rbx, 0x100000001b3
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rbp
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x14]
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x15]
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x16]
imul r11, rbx
xor r11, rdx
movzx edx, byte [rax + 0x17]
imul r11, rbx
xor r11, rdx
imul r11, rbx
and r11, qword [rsi + 0x30]
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rdi
jne 0x14001df2d
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x14001dfa3
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x14001df6a
mov r10, qword [rdx]
cmp r10, rax
je 0x14001df64
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x14001dfa3
cmp r9, rdx
je 0x14001df7f
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x14001dfc5
cmp r9, rdx
jne 0x14001df70
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rdi
jne 0x14001deb1
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14001dfa3
lea rcx, str.invalid_hash_bucket_count
call fcn.140049a98
int3
Function at 0x14003daf0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x1400ad388]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
mov qword [rcx], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14003db86
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x20], 8
mov r9d, 1
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14003db86
mov dword [rsp + 0x20], 0x28
lea r9d, [rax + 1]
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14003dbaa
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14004c550
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.CryptAcquireContext
lea rcx, [rsp + 0x30]
call fcn.140006310
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14003dc60
lea rdx, [0x1400aaea0]
lea rcx, [rsp + 0x50]
call fcn.14004e838
int3

Function at 0x14003e060
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1400ad388]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x1400b4508]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1400b2480], ecx
jg 0x14003e13f
mov eax, ebx
cmp rbx, rax
jne 0x14003e101
xor ecx, ecx
mov eax, ecx
test rbx, rbx
setne al
test ebx, ebx
setne cl
cmp eax, ecx
jne 0x14003e101
mov r8, rdi
mov edx, ebx
mov rcx, qword [0x1400b2478]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x14003e182
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14004c550
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x20]
call fcn.140006310
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14003dc60
lea rdx, [0x1400aaea0]
lea rcx, [rsp + 0x40]
call fcn.14004e838
nop
lea rcx, [0x1400b2480]
call fcn.14004c768
cmp dword [0x1400b2480], 0xffffffff
jne 0x14003e0ac
lea rcx, [0x1400b2478]
call fcn.14003daf0
lea rcx, [0x1400808c0]
call fcn.14004ce2c
nop
lea rcx, [0x1400b2480]
call fcn.14004c708
jmp 0x14003e0ac
lea rdx, [0x140084df8]
lea rcx, [rsp + 0x20]
call fcn.140006310
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14003dc60
lea rdx, [0x1400aaea0]
lea rcx, [rsp + 0x40]
call fcn.14004e838
int3
Function at 0x1400436a0
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
xor r11d, r11d
mov r10, rdx
mov r8d, r11d
cmp r9, 8
jb 0x1400436d7
mov rdx, r9
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r9, rax
mov rax, qword [rcx]
add rcx, 8
xor rax, qword [r10]
add r10, 8
or r8, rax
sub rdx, 1
jne 0x1400436c0
mov rdx, r8
shr rdx, 0x20
or edx, r8d
mov r8d, edx
mov eax, edx
shr r8d, 8
or r8d, edx
shr eax, 0x10
and r8d, 0xff00
or r8d, eax
movzx eax, dl
shr r8d, 8
or r8d, eax
test r9, r9
je 0x1400437d8
sub rcx, r10
cmp r9, 8
jb 0x1400437b0
mov rax, r9
lea rdx, [r10 + 4]
and rax, 0xfffffffffffffff8
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax + rax]
movd xmm2, dword [rcx + rdx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rdx - 4]
lea rdx, [rdx + 8]
punpcklbw xmm2, xmm0
add r11, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [rdx - 8]
punpcklbw xmm1, xmm0
por xmm4, xmm2
movd xmm2, dword [rcx + rdx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp r11, rax
jb 0x140043730
por xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd eax, xmm3
or r8d, eax
cmp r11, r9
jae 0x1400437d8
add r10, r11
sub r9, r11
nop word [rax + rax]
movzx edx, byte [rcx + r10]
movzx eax, byte [r10]
lea r10, [r10 + 1]
xor edx, eax
or r8d, edx
sub r9, 1
jne 0x1400437c0
test r8d, r8d
sete al
ret

Function at 0x1400437e0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x140043934
cmp r9, 4
jb 0x14004382a
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x140043810
xor r11d, r11d
test r9, r9
je 0x140043934
cmp r9, 0x40
jb 0x140043913
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x14004385c
cmp rdx, r8
jae 0x140043913
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x140043871
cmp rdx, r10
jae 0x140043913
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov rsi, r9
and rsi, 0xffffffffffffffc0
mov qword [rsp], rdi
mov rdx, r10
lea rax, [r8 + 0x10]
sub rdx, r8
mov rbx, rcx
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
pxor xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
pxor xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rsi
jb 0x1400438a0
mov rsi, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
mov rdi, qword [rsp]
cmp r11, r9
jae 0x140043934
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x140043920
add rsp, 8
ret
Function at 0x1400488d0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400ad388]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx edi, r8b
mov sil, dl
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
cmp eax, 0xffffffff
jne 0x140048910
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400489ff
bt edx, 0xa
jae 0x1400489e2
test sil, sil
je 0x1400489e2
mov r9d, 0x2000000
lea rcx, [rsp + 0x20]
mov r8d, 0x180
mov rdx, rbx
call fcn.140049490
mov ebx, eax
test eax, eax
je 0x140048962
mov rcx, qword [rsp + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x14004895b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140048a1e
mov eax, ebx
jmp 0x1400489ff
mov rbx, qword [rsp + 0x20]
lea r8, [rsp + 0x28]
mov esi, 0x28
mov rcx, rbx
mov r9d, esi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
je 0x1400489c3
mov ecx, dword [rsp + 0x48]
mov eax, ecx
and eax, 1
cmp eax, edi
jne 0x1400489a5
cmp rbx, 0xffffffffffffffff
je 0x1400489fd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140048a1e
jmp 0x1400489fd
xor ecx, 1
lea r8, [rsp + 0x28]
mov dword [rsp + 0x48], ecx
mov r9d, esi
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
test eax, eax
jne 0x140048990
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x1400489de
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140048a1e
mov eax, edi
jmp 0x1400489ff
and eax, 1
cmp eax, edi
je 0x1400489fd
xor edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x140048905
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14004c550
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14005b634
int3

Function at 0x14004d5bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004d606
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004d606
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004d606
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004d606
cmp dword [rcx + 0x84], 0xe
jbe 0x14004d606
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004d608
xor al, al
add rsp, 0x28
ret
Function at 0x14005b404
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14005b43b
call fcn.14005cd94
mov dword [rax], 0x16
call fcn.14005bac0
xor eax, eax
jmp 0x14005b4c9
mov rdx, r9
mov rcx, r8
call fcn.14005b3a0
mov rbx, rax
test rax, rax
je 0x14005b4c6
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14005b2cc]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14005b4b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14005cd08
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14005b49a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14005b4a9
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140069394
jmp 0x14005b4c6
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14005b4c3
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14006549c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140065298

Function at 0x14006b2ac
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14006b2c2
mov al, 1
jmp 0x14006b322
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14006b2d3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14006b320
mov ecx, dword [rcx + 0x18]
nop
call fcn.140073584
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006b320
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14006b320
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14006b320
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14006b322
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14006cf20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14004d3f0
sub rsp, rax
mov rax, qword [0x1400ad388]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14006b18c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14006cf6f
mov rax, rbp
jmp 0x14006d077
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xb4dc0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14006de6c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xb4dc0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14006d073
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006d073
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14006de6c
test rax, rax
js 0x14006d073
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14006d073
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14006d065
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14006d065
cmp byte [rcx], 0xd
jne 0x14006d04b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14006d05a
cmp byte [rcx + 1], 0xa
jne 0x14006d05a
inc rcx
jmp 0x14006d05a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xad7a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14006d02d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14006d077
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14004c550
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret