joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140188190
Capabilities:
Check for time delay via queryperformancecounter
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0xa8]
sub rsp, 0x190
mov rax, qword [0x140436b28]
xor rax, rsp
mov qword [rbp + 0x80], rax
xor edi, edi
mov ebx, edx
mov qword [rsp + 0x64], 2
mov r14, rcx
mov qword [rsp + 0x70], rdi
mov byte [rsp + 0x60], dil
test edx, edx
je 0x1401882f8
mov r15, qword [rcx]
test r15, r15
jne 0x1401881fb
mov edi, 0xc004d104
jmp 0x1401882f8
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov esi, dword [rsp + 0x34]
lea r8, [rsp + 0x40]
xor esi, eax
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x34], esi
lea rax, [rsp + 0x30]
xor esi, dword [rsp + 0x30]
mov r9d, 8
mov qword [rsp + 0x50], rax
mov dl, 1
mov rax, qword [0x140440198]
mov dword [rsp + 0x58], edi
mov ecx, dword [rax]
lea rax, [rsp + 0x50]
add rax, rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x40], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
call fcn.14018d14c
test ebx, ebx
je 0x1401882f8
mov r14d, dword [r14 + 8]
mov r12, rbx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [rsp + 0x30]
mov ecx, esi
xor eax, esi
mov esi, eax
mov al, byte [rbp + 0x78]
inc al
rol esi, cl
mov byte [rbp + 0x78], al
movzx r8d, al
mov al, byte [rbp + 0x79]
add al, byte [rsp + r8 + 0x78]
mov byte [rbp + 0x79], al
mov cl, byte [rsp + r8 + 0x78]
movzx edx, al
mov al, byte [rsp + rdx + 0x78]
mov byte [rsp + r8 + 0x78], al
mov byte [rsp + rdx + 0x78], cl
mov edx, r14d
movzx ecx, byte [rbp + 0x79]
movzx eax, byte [rbp + 0x78]
mov cl, byte [rsp + rcx + 0x78]
add cl, byte [rsp + rax + 0x78]
movzx eax, cl
mov rcx, r15
mov bl, byte [rsp + rax + 0x78]
call fcn.140183d24
xor al, sil
mov edx, r14d
xor al, bl
mov rcx, r15
mov r8b, al
call fcn.140183d6c
inc r14d
sub r12, 1
jne 0x140188273
lea rcx, [rsp + 0x60]
call fcn.14018d0c0
mov eax, edi
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14037a9a0
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140188ab8
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [rbp + 0x30]
movaps xmm0, xmmword [r9]
movaps xmm1, xmmword [rdx]
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmmword [rbp - 0x60], xmm1
test rax, rax
jne 0x140188af5
mov ebx, 0x80070057
mov ecx, ebx
call fcn.140079c40
call fcn.140079c60
jmp 0x140188b4a
mov qword [rbp - 0x28], rcx
lea rdx, [0x140040b58]
mov qword [rbp - 0x38], rdx
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x1c], rcx
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x50]
mov dword [rbp - 0x14], r8d
xor r9d, r9d
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x30], rdx
lea rdx, [rbp - 0x40]
mov qword [rbp - 0x40], 3
mov dword [rbp - 0x20], 0x80
lea r8d, [r9 + 0x40]
mov qword [rbp - 8], rax
lea ecx, [r8 + 0x79]
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret

Function at 0x140188b64
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [rbp + 0x30]
movaps xmm0, xmmword [r9]
movaps xmm1, xmmword [rdx]
movdqa xmmword [rbp - 0x50], xmm0
movdqa xmmword [rbp - 0x60], xmm1
test rax, rax
jne 0x140188ba1
mov ebx, 0x80070057
mov ecx, ebx
call fcn.140079c40
call fcn.140079c60
jmp 0x140188bf6
mov qword [rbp - 0x28], rcx
lea rdx, [0x140040b58]
mov qword [rbp - 0x38], rdx
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x1c], rcx
lea rdx, [rbp + 0x30]
mov qword [rbp - 0x30], rdx
lea rcx, [rbp - 0x50]
mov edx, 0x40
mov dword [rbp - 0x14], r8d
mov r8d, edx
mov dword [rbp - 0x20], edx
mov qword [rbp - 0x10], rcx
lea rdx, [rbp - 0x40]
xor r9d, r9d
mov qword [rbp - 0x40], 3
mov qword [rbp - 8], rax
lea ecx, [r8 + 0x79]
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret
Function at 0x14018d14c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
cmp qword [r8], 0
mov esi, r9d
mov r14, r8
mov r15b, dl
mov rdi, rcx
je 0x14018d2bd
test r9d, r9d
je 0x14018d2bd
mov rbx, qword [rcx + 0x10]
test rbx, rbx
jne 0x14018d215
cmp dword [rcx + 8], 2
jne 0x14018d239
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0xd0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14018d1f9
xor edx, edx
mov r8d, 0xd0
mov rcx, rax
call sub.msvcrt.dll_memset
and qword [rbx + 0x90], 0
xor eax, eax
and qword [rbx + 0x98], 0
mov qword [rbx + 0xb0], rax
and qword [rbx + 0xb8], rax
and dword [rbx + 0x58], eax
and dword [rbx + 0x38], eax
mov qword [rbx], rdi
mov dword [rbx + 8], 1
jmp 0x14018d1fb
xor ebx, ebx
mov qword [rdi + 0x10], rbx
test rbx, rbx
jne 0x14018d215
mov ebx, 0x8007000e
mov ecx, ebx
call fcn.140079c40
jmp 0x14018d2cd
mov rcx, rbx
call fcn.140199fe4
mov ebx, eax
test eax, eax
jns 0x14018d22a
mov ecx, eax
call fcn.140079c40
mov ecx, ebx
call fcn.140079c60
test ebx, ebx
js 0x14018d2c2
mov ecx, dword [rdi + 4]
sub ecx, 1
je 0x14018d269
cmp ecx, 1
je 0x14018d24d
mov ebx, 0xc004d203
jmp 0x14018d2c2
movaps xmm0, xmmword [r14]
lea rdx, [rbp - 0x20]
mov r8d, esi
movdqa xmmword [rbp - 0x20], xmm0
mov rcx, rdi
call fcn.140195f38
mov ebx, eax
jmp 0x14018d2b4
movaps xmm0, xmmword [r14]
lea rax, [0x140041b98]
mov qword [rbp - 0x50], rax
lea rdx, [rbp - 0x58]
xor r9d, r9d
movdqa xmmword [rbp - 0x10], xmm0
lea rax, [rbp - 0x60]
mov qword [rbp - 0x58], 3
mov qword [rbp - 0x48], rax
mov ecx, 0xb9
lea rax, [rbp - 0x10]
mov qword [rbp - 0x40], rdi
lea r8d, [r9 + 0x2c]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x30], esi
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp - 0x60]
test ebx, ebx
js 0x14018d2c2
mov byte [rdi], 1
jmp 0x14018d2c9
mov ebx, 0x80070057
mov ecx, ebx
call fcn.140079c40
test ebx, ebx
jns 0x14018d2d0
mov byte [rdi], 0
mov ecx, ebx
call fcn.140079c60
mov eax, ebx
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14018d2f8
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [rbp + 0x77]
mov r10d, r9d
movaps xmm1, xmmword [r8]
mov r9, rcx
mov rcx, qword [rcx + 0x10]
movaps xmm0, xmmword [rax]
test rcx, rcx
je 0x14018d390
mov rax, qword [rbp + 0x7f]
test dl, dl
je 0x14018d35c
lea r9, [rbp - 0x19]
movdqa xmmword [rbp - 0x19], xmm0
mov r8d, r10d
movdqa xmmword [rbp - 9], xmm1
lea rdx, [rbp - 9]
mov qword [rsp + 0x20], rax
call fcn.14019a0ec
mov ebx, eax
test eax, eax
jns 0x14018d402
mov ecx, eax
jmp 0x14018d3fd
movdqa xmmword [rbp - 9], xmm0
movdqa xmmword [rbp - 0x19], xmm1
test rax, rax
jne 0x14018d375
mov ebx, 0x80070057
jmp 0x14018d3fb
lea r9, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r8d, r10d
lea rdx, [rbp - 0x19]
call fcn.14019a7f8
mov ebx, eax
test eax, eax
jmp 0x14018d3f9
lea rax, [0x140040e98]
mov qword [rbp + 0x1f], r9
mov qword [rbp + 0xf], rax
xor r9d, r9d
lea rax, [rbp + 0x57]
movdqa xmmword [rbp - 0x19], xmm0
mov qword [rbp + 0x17], rax
movzx eax, dl
lea rdx, [rbp + 7]
inc eax
movdqa xmmword [rbp - 9], xmm1
shl eax, 6
lea r8d, [r9 + 0x40]
mov dword [rbp + 0x27], eax
lea ecx, [r8 + 0x79]
lea rax, [rbp - 9]
mov qword [rbp + 7], 3
mov qword [rbp + 0x2b], rax
lea rax, [rbp - 0x19]
mov qword [rbp + 0x37], rax
mov rax, qword [rbp + 0x7f]
mov qword [rbp + 0x3f], rax
mov dword [rbp + 0x33], r10d
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x57]
test ebx, ebx
jns 0x14018d402
mov ecx, ebx
call fcn.140079c40
mov ecx, ebx
call fcn.140079c60
mov eax, ebx
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rbp
ret
Function at 0x14018daa4
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x140436b28]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp dword [rsp + 0x1c0], 5
mov r10, r9
mov rbp, rdx
je 0x14018dae9
mov eax, 0xc004d104
jmp 0x14018dc7c
mov esi, dword [r9]
lea r15, [rdx + 0x40]
mov edi, dword [r9 + 4]
mov r12d, SafeArrayUnaccessData
mov r11d, dword [r9 + 8]
mov ebx, dword [r9 + 0xc]
mov r14d, dword [r9 + 0x10]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rsp + 0x20]
mov rdx, rbp
call fcn.140197430
lea rdx, [rsp + 0x60]
mov r8d, 0x40
lea rcx, [rsp + 0x28]
mov eax, dword [rcx + 0x2c]
xor eax, dword [rcx + 0x18]
xor eax, dword [rcx - 8]
xor eax, dword [rcx]
lea rcx, [rcx + 4]
rol eax, 1
mov dword [rdx], eax
lea rdx, [rdx + 4]
sub r8, 1
jne 0x14018db29
lea rdx, [rsp + 0x20]
mov r8, r12
mov eax, ebx
mov ecx, esi
xor eax, r11d
rol ecx, 5
and eax, edi
xor eax, ebx
add eax, ecx
add eax, dword [rdx]
lea rdx, [rdx + 4]
add eax, r14d
mov r14d, ebx
mov ebx, r11d
mov r11d, edi
rol r11d, 0x1e
mov edi, esi
lea esi, [rax + 0x5a827999]
sub r8, 1
jne 0x14018db4e
lea rdx, [rsp + 0x70]
mov r8, r12
mov eax, ebx
mov ecx, esi
xor eax, r11d
rol ecx, 5
xor eax, edi
add eax, ecx
add eax, dword [rdx]
lea rdx, [rdx + 4]
add eax, r14d
mov r14d, ebx
mov ebx, r11d
mov r11d, edi
rol r11d, 0x1e
mov edi, esi
lea esi, [rax + 0x6ed9eba1]
sub r8, 1
jne 0x14018db8a
lea r8, [rsp + 0xc0]
mov r9, r12
mov edx, esi
mov ecx, r11d
xor ecx, edi
rol edx, 5
and ecx, ebx
mov eax, r11d
and eax, edi
xor ecx, eax
add ecx, dword [r8]
lea eax, [r14 + rdx]
add eax, 0x8f1bbcdc
lea r8, [r8 + 4]
add eax, ecx
mov r14d, ebx
mov ebx, r11d
mov r11d, edi
rol r11d, 0x1e
mov edi, esi
mov esi, eax
sub r9, 1
jne 0x14018dbc7
lea rdx, [rsp + 0x110]
mov r8, r12
add r14d, 0xca62c1d6
mov r9d, esi
rol r9d, 5
mov eax, ebx
xor eax, r11d
add r9d, r14d
xor eax, edi
mov r14d, ebx
add eax, dword [rdx]
mov ebx, r11d
mov r11d, edi
lea rdx, [rdx + 4]
add r9d, eax
rol r11d, 0x1e
mov edi, esi
mov esi, r9d
sub r8, 1
jne 0x14018dc0e
add dword [r10 + 0x10], r14d
add rbp, 0x40
add dword [r10 + 0xc], ebx
add dword [r10 + 8], r11d
add dword [r10 + 4], edi
add dword [r10], r9d
mov r14d, dword [r10 + 0x10]
mov ebx, dword [r10 + 0xc]
mov r11d, dword [r10 + 8]
mov edi, dword [r10 + 4]
mov esi, dword [r10]
cmp rbp, r15
jb 0x14018db06
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14037a9a0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14018dcb0
Capabilities:
Hash data using murmur3

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x140436b28]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp dword [rsp + 0xf0], 8
mov r10, r9
mov r11, rdx
je 0x14018dcf3
mov eax, 0xc004d104
jmp 0x14018de8e
mov esi, dword [r9]
lea rax, [rdx + 0x40]
mov r14d, dword [r9 + 4]
mov r15d, dword [r9 + 8]
mov ebp, dword [r9 + 0x10]
mov r12d, dword [r9 + 0x14]
mov r13d, dword [r9 + 0x18]
mov qword [rsp + 0x30], rax
mov eax, dword [r9 + 0xc]
mov dword [rsp + 0x24], eax
mov eax, dword [r9 + 0x1c]
mov dword [rsp + 0x20], eax
xor ebx, ebx
lea rcx, [rsp + 0x40]
mov rdx, r11
lea r8d, [rbx + 0x10]
call fcn.140197430
lea rax, [0x1403dce50]
xor edi, edi
mov qword [rsp + 0x28], rax
mov r9, rdi
and r9d, 0xf
cmp ebx, 0x10
jb 0x14018dd9d
lea eax, [rbx - 2]
and eax, 0xf
mov r8d, dword [rsp + rax*4 + 0x40]
lea rax, [rdi + 1]
and eax, 0xf
mov ecx, dword [rsp + rax*4 + 0x40]
mov eax, ecx
rol eax, 0xe
mov edx, ecx
shr ecx, 3
rol edx, 0x19
xor edx, eax
mov eax, r8d
xor edx, ecx
rol eax, 0xd
mov ecx, r8d
shr r8d, 0xa
rol ecx, 0xf
xor ecx, eax
lea eax, [rbx - 7]
and eax, 0xf
xor ecx, r8d
add edx, ecx
add edx, dword [rsp + rax*4 + 0x40]
add dword [rsp + r9*4 + 0x40], edx
mov r8d, ebp
mov eax, ebp
rol eax, 0x15
mov ecx, ebp
rol r8d, 0x1a
not ecx
xor r8d, eax
and ecx, r13d
mov eax, ebp
mov edx, esi
rol eax, 7
inc ebx
xor r8d, eax
rol edx, 0x1e
mov eax, r12d
inc rdi
and eax, ebp
xor ecx, eax
mov eax, esi
add r8d, ecx
rol eax, 0x13
add r8d, dword [rsp + r9*4 + 0x40]
xor edx, eax
mov r9, qword [rsp + 0x28]
mov eax, esi
add r8d, dword [rsp + 0x20]
mov ecx, r14d
rol eax, 0xa
xor ecx, esi
xor edx, eax
and ecx, r15d
add r8d, dword [r9]
mov eax, r14d
and eax, esi
add r9, 4
xor ecx, eax
mov qword [rsp + 0x28], r9
add edx, ecx
mov eax, r15d
mov ecx, r13d
mov r15d, r14d
mov r13d, r12d
mov dword [rsp + 0x20], ecx
mov r12d, ebp
mov r14d, esi
mov ebp, dword [rsp + 0x24]
lea esi, [rdx + r8]
add ebp, r8d
mov dword [rsp + 0x24], eax
cmp ebx, 0x40
jb 0x14018dd44
add dword [r10 + 0x1c], ecx
add r11, 0x40
add dword [r10 + 0x18], r13d
add dword [r10 + 0x14], r12d
add dword [r10 + 0x10], ebp
add dword [r10 + 0xc], eax
add dword [r10 + 8], r15d
add dword [r10 + 4], r14d
add dword [r10], esi
mov ecx, dword [r10 + 0x1c]
mov eax, dword [r10 + 0xc]
mov r13d, dword [r10 + 0x18]
mov r12d, dword [r10 + 0x14]
mov ebp, dword [r10 + 0x10]
mov r15d, dword [r10 + 8]
mov r14d, dword [r10 + 4]
mov esi, dword [r10]
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x24], eax
cmp r11, qword [rsp + 0x30]
jb 0x14018dd23
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14037a9a0
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14018ebb8
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rcx, rdx
call fcn.14018eb68
test eax, eax
js 0x14018ec46
movzx eax, word [rdi + 6]
mov word [rbx], ax
mov qword [rbx + 0x10], rsi
lea rcx, [rbx + 0x18]
mov r9d, esi
mov r8, rdi
xor edx, edx
call fcn.14018eefc
test eax, eax
js 0x14018ec46
mov qword [rsp + 0x20], 3
lea rax, [0x14003c098]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rdi
xor r9d, r9d
lea r8d, [r9 + 0x28]
lea rdx, [rsp + 0x20]
mov ecx, 0xb9
call sub.ntdll.dll_NtQuerySystemInformation
mov eax, dword [rsp + 0x78]
jmp 0x14018ec46
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1401961e8
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov r10, rdx
mov r9, rcx
test r8d, r8d
je 0x14019625b
mov r11d, r8d
inc byte [r9 + 0x118]
movzx r8d, byte [r9 + 0x118]
mov al, byte [r8 + r9 + 0x18]
add byte [r9 + 0x119], al
movzx edx, byte [r9 + 0x119]
mov cl, byte [r8 + r9 + 0x18]
mov al, byte [rdx + r9 + 0x18]
mov byte [r8 + r9 + 0x18], al
mov byte [rdx + r9 + 0x18], cl
movzx eax, byte [r9 + 0x119]
movzx ecx, byte [r9 + 0x118]
mov cl, byte [rcx + r9 + 0x18]
add cl, byte [rax + r9 + 0x18]
movzx eax, cl
mov cl, byte [rax + r9 + 0x18]
xor byte [r10], cl
inc r10
sub r11, 1
jne 0x1401961f6
ret

Function at 0x140196264
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
test r8d, r8d
je 0x140196316
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [rdx]
mov rbx, rcx
mov edi, dword [rdx + 8]
mov ebp, r8d
mov edx, edi
mov rcx, rsi
call fcn.140183d24
inc byte [rbx + 0x118]
mov r10b, al
movzx r9d, byte [rbx + 0x118]
mov cl, byte [r9 + rbx + 0x18]
add byte [rbx + 0x119], cl
movzx r8d, byte [rbx + 0x119]
mov dl, byte [r9 + rbx + 0x18]
mov cl, byte [r8 + rbx + 0x18]
mov byte [r9 + rbx + 0x18], cl
mov byte [r8 + rbx + 0x18], dl
mov edx, edi
movzx ecx, byte [rbx + 0x118]
movzx eax, byte [rbx + 0x119]
mov cl, byte [rcx + rbx + 0x18]
add cl, byte [rax + rbx + 0x18]
movzx eax, cl
mov rcx, rsi
mov r8b, byte [rax + rbx + 0x18]
xor r8b, r10b
call fcn.140183d6c
inc edi
sub rbp, 1
jne 0x14019628d
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401b0558
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test edx, edx
je 0x1401b0599
cmp dword [rcx + 0x20], 0
jne 0x1401b0599
mov rcx, qword [rcx + 8]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401b0584
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rbx + 8], 0xffffffffffffffff
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401b060f
mov rdx, qword [rbx + 0x10]
jmp 0x1401b060a
mov rdx, qword [rcx + 8]
lea rax, [rdx - 1]
cmp rax, 0xfffffffffffffffd
seta al
xor ecx, ecx
test al, al
cmove rcx, rdx
test rcx, rcx
je 0x1401b060f
cmp dword [rbx], 0
jne 0x1401b05e2
cmp dword [rbx + 0x20], 0
jne 0x1401b05e2
lea rax, [rdx - 1]
cmp rax, 0xfffffffffffffffd
seta al
xor ecx, ecx
test al, al
cmove rcx, rdx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor ecx, ecx
test eax, eax
sete cl
mov dword [rbx], ecx
mov rcx, qword [rbx + 8]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401b05fb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rbx + 8], 0xffffffffffffffff
cmp dword [rbx + 0x20], 0
jne 0x1401b060f
cmp dword [rbx], 0
jne 0x1401b0593
mov rdx, qword [rbx + 0x18]
call fcn.1401b07e8
mov dword [rbx + 0x20], 1
add rsp, 0x20
pop rbx
ret

Function at 0x1401b06ac
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov edi, r8d
mov r14, rdx
mov rsi, rcx
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
cmp dword [rsi + 0x78], 0
mov ebp, eax
mov r9d, dword [0x140440ad0]
cmove r9d, eax
mov dword [rsi + 0x78], 1
mov r8, qword [rsi + 8]
xor ebx, ebx
mov dword [0x140440ad0], r9d
lea rcx, [r8 - 1]
cmp rcx, 0xfffffffffffffffd
seta al
xor ecx, ecx
test al, al
cmove rcx, r8
test rcx, rcx
jne 0x1401b0711
mov ebx, 0x80004005
jmp 0x1401b0763
lea rax, [r8 - 1]
mov rdx, r14
cmp rax, 0xfffffffffffffffd
lea r9, [rsp + 0x50]
seta al
xor ecx, ecx
test al, al
cmove rcx, r8
and qword [rsp + 0x20], rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401b0758
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1401b070a
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401b0763
cmp dword [rsp + 0x50], edi
je 0x1401b076a
mov ebx, 0x8004e10a
mov ecx, ebx
call fcn.140079c40
mov ecx, ebx
call fcn.140079c60
test ebx, ebx
jns 0x1401b077e
mov ecx, ebx
call fcn.140079c40
jmp 0x1401b07c5
mov rdx, qword [rsi + 0x70]
test rdx, rdx
je 0x1401b07c5
sub ebp, dword [0x140440ad0]
mov ecx, 0x1d4c0
mov eax, ecx
mov r8d, 0x4e20
sub eax, ebp
mov r9d, 0xfffffffe
cmp ebp, ecx
sbb ecx, ecx
and ecx, eax
cmp ecx, r8d
cmovb r8d, ecx
mov rcx, qword [0x14043f338]
call qword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
xor ecx, ecx
call fcn.140079c60
xor ebx, ebx
mov ecx, ebx
call fcn.140079c60
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x1401b07e8
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, rdx
mov rdi, rdx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401b0849
mov rdx, rdi
call fcn.1401b0b6c
mov ebx, eax
test eax, eax
jns 0x1401b0816
mov ecx, eax
jmp 0x1401b0844
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401b0849
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401b0834
mov ebx, 0x80004005
jmp 0x1401b0842
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.140079c40
mov ecx, ebx
call fcn.140079c60
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401b08e8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
xor ebx, ebx
xorps xmm0, xmm0
mov edi, r8d
mov r10, rdx
mov r8, qword [rcx + 8]
mov ecx, ebx
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
lea rax, [r8 - 1]
cmp rax, 0xfffffffffffffffd
seta al
test al, al
cmove rcx, r8
test rcx, rcx
jne 0x1401b092a
mov ecx, 0x80004005
jmp 0x1401b099f
mov eax, dword [rsp + 0x80]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
lea rax, [r8 - 1]
cmp rax, 0xfffffffffffffffd
seta dl
neg r9d
lea r9, [rsp + 0x60]
sbb rax, rax
and rax, rcx
mov rcx, rbx
test dl, dl
mov qword [rsp + 0x20], rax
mov rdx, r10
cmove rcx, r8
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1401b0994
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401b0982
mov ebx, 0x80004005
jmp 0x1401b0990
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
jmp 0x1401b09a1
cmp dword [rsp + 0x60], edi
je 0x1401b09a6
mov ecx, 0x8004e109
mov ebx, ecx
call fcn.140079c40
mov ecx, ebx
call fcn.140079c60
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1401b0ad0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r8, qword [rcx + 8]
xor ebx, ebx
mov ecx, ebx
mov rdi, rdx
lea rax, [r8 - 1]
cmp rax, 0xfffffffffffffffd
seta al
test al, al
cmove rcx, r8
test rcx, rcx
jne 0x1401b0b09
mov ecx, 0x80004005
mov ebx, ecx
call fcn.140079c40
jmp 0x1401b0b4f
lea rax, [r8 - 1]
mov rcx, rbx
cmp rax, 0xfffffffffffffffd
seta al
test al, al
cmove rcx, r8
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x1401b0b4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401b0b3b
mov ebx, 0x80004005
jmp 0x1401b0b49
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
jmp 0x1401b0b02
mov dword [rdi], eax
mov ecx, ebx
call fcn.140079c60
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401b0b6c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1401b0be7
xor ebx, ebx
test rdi, rdi
je 0x1401b0bd2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1401b0bba
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401b0baa
mov ebx, 0x80004005
jmp 0x1401b0bd7
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401b0bd7
test al, 1
je 0x1401b0bde
and eax, 0xfffffffe
mov rcx, rdi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1401b0bde
jmp 0x1401b0b99
mov ebx, 0x80070057
mov ecx, ebx
call fcn.140079c40
mov ecx, ebx
call fcn.140079c60
jmp 0x1401b0c00
test eax, eax
jne 0x1401b0bf2
mov ebx, 0x80004005
jmp 0x1401b0c04
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1401b0c0b
mov ecx, ebx
call fcn.140079c40
mov ecx, ebx
call fcn.140079c60
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret