joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140184c24
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0x90
cmp qword [r8], 0
mov r14d, r9d
movaps xmmword [rax - 0x48], xmm6
mov r15, r8
mov r12b, dl
mov rdi, rcx
je 0x140184db2
test r9d, r9d
je 0x140184db2
cmp qword [rcx + 0x10], 0
jne 0x140184d07
cmp dword [rcx + 8], 2
jne 0x140184d07
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, 0xd0
xor edx, edx
mov rcx, rax
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x140184ceb
mov r8d, ebx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov byte [rsi + 0x37], 0
lea r8d, [rbx - 0x68]
xor edx, edx
mov byte [rsi + 0x57], 0
lea rcx, [rsi + 0x60]
call sub.msvcrt.dll_memset
and qword [rsi + 0x90], 0
xor eax, eax
and qword [rsi + 0x98], 0
mov qword [rsi + 0xb0], rax
and qword [rsi + 0xb8], rax
and dword [rsi + 0x58], eax
and dword [rsi + 0x38], eax
mov qword [rsi], rdi
mov dword [rsi + 8], 1
jmp 0x140184ced
xor esi, esi
mov qword [rdi + 0x10], rsi
test rsi, rsi
jne 0x140184d07
mov ebx, 0x8007000e
mov ecx, ebx
call fcn.140078308
jmp 0x140184dc2
mov rcx, qword [rdi + 0x10]
movaps xmm6, xmmword [r15]
test rcx, rcx
je 0x140184d35
call fcn.140191948
mov ebx, eax
test eax, eax
jns 0x140184d26
mov ecx, eax
call fcn.140078308
mov ecx, ebx
call fcn.140078324
test ebx, ebx
js 0x140184db7
mov ecx, dword [rdi + 4]
sub ecx, 1
je 0x140184d61
cmp ecx, 1
je 0x140184d49
mov ebx, 0xc004d203
jmp 0x140184db7
mov r8d, r14d
movdqa xmmword [rbp - 0x11], xmm6
lea rdx, [rbp - 0x11]
mov rcx, rdi
call fcn.14018d934
mov ebx, eax
jmp 0x140184da9
lea rax, [0x14004fb20]
movdqa xmmword [rbp - 1], xmm6
mov qword [rbp - 0x41], rax
lea rdx, [rbp - 0x49]
xor r9d, r9d
mov qword [rbp - 0x49], 3
lea rax, [rbp - 0x51]
mov qword [rbp - 0x31], rdi
mov qword [rbp - 0x39], rax
mov ecx, 0xb9
lea rax, [rbp - 1]
mov dword [rbp - 0x21], r14d
lea r8d, [r9 + 0x30]
mov qword [rbp - 0x29], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp - 0x51]
test ebx, ebx
js 0x140184db7
mov byte [rdi], 1
jmp 0x140184dbe
mov ebx, 0x80070057
mov ecx, ebx
call fcn.140078308
test ebx, ebx
jns 0x140184dc5
mov byte [rdi], 0
mov ecx, ebx
call fcn.140078324
movaps xmm6, xmmword [rsp + 0x80]
mov eax, ebx
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140184de8
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
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 0x140184e80
mov rax, qword [rbp + 0x7f]
test dl, dl
je 0x140184e4c
lea r9, [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
mov r8d, r10d
movdqa xmmword [rbp - 0x19], xmm1
lea rdx, [rbp - 0x19]
mov qword [rsp + 0x20], rax
call fcn.140191acc
mov ebx, eax
test eax, eax
jns 0x140184ef2
mov ecx, eax
jmp 0x140184eed
movdqa xmmword [rbp - 0x19], xmm0
movdqa xmmword [rbp - 0x29], xmm1
test rax, rax
jne 0x140184e65
mov ebx, 0x80070057
jmp 0x140184eeb
lea r9, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r8d, r10d
lea rdx, [rbp - 0x29]
call fcn.14019218c
mov ebx, eax
test eax, eax
jmp 0x140184ee9
lea rax, [0x140007ca0]
mov qword [rbp + 0xf], r9
mov qword [rbp - 1], rax
xor r9d, r9d
lea rax, [rbp + 0x57]
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp + 7], rax
movzx eax, dl
lea rdx, [rbp - 9]
inc eax
movdqa xmmword [rbp - 0x19], xmm1
shl eax, 6
lea r8d, [r9 + 0x48]
mov dword [rbp + 0x17], eax
lea ecx, [r8 + 0x71]
lea rax, [rbp - 0x19]
mov qword [rbp - 9], 3
mov qword [rbp + 0x1f], rax
lea rax, [rbp - 0x29]
mov qword [rbp + 0x2f], rax
mov rax, qword [rbp + 0x7f]
mov qword [rbp + 0x37], rax
mov dword [rbp + 0x27], r10d
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x57]
test ebx, ebx
jns 0x140184ef2
mov ecx, ebx
call fcn.140078308
mov ecx, ebx
call fcn.140078324
mov eax, ebx
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rbp
ret
Function at 0x140185580
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x140418d28]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp dword [rsp + 0x1c0], 5
mov r10, r9
mov rbx, rdx
je 0x1401855bf
mov eax, 0xc004d104
jmp 0x140185724
lea r15, [rdx + 0x40]
mov ebp, dword [r10]
lea rcx, [rsp + 0x20]
mov edi, dword [r10 + 4]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r11d, dword [r10 + 8]
mov rdx, rbx
mov esi, dword [r10 + 0xc]
mov r14d, dword [r10 + 0x10]
call fcn.14018ed88
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 0x1401855f9
lea r9d, [r8 + 0x14]
mov r8d, r9d
lea rdx, [rsp + 0x20]
mov eax, esi
mov ecx, ebp
xor eax, r11d
rol ecx, 5
and eax, edi
xor eax, esi
add eax, ecx
add eax, dword [rdx]
lea rdx, [rdx + 4]
add eax, r14d
mov r14d, esi
mov esi, r11d
mov r11d, edi
rol r11d, 0x1e
mov edi, ebp
lea ebp, [rax + 0x5a827999]
sub r9, 1
jne 0x140185622
mov eax, r8d
mov edx, ebp
rol edx, 5
mov ecx, esi
xor ecx, r11d
inc r8d
xor ecx, edi
add edx, dword [rsp + rax*4 + 0x20]
add edx, r14d
mov r14d, esi
mov esi, r11d
add edx, ecx
mov r11d, edi
mov edi, ebp
rol r11d, 0x1e
lea ebp, [rdx + 0x6ed9eba1]
cmp r8d, 0x28
jb 0x140185656
mov edx, ebp
mov ecx, r11d
xor ecx, edi
rol edx, 5
and ecx, esi
mov eax, r11d
and eax, edi
xor ecx, eax
add ecx, dword [rsp + r8*4 + 0x20]
lea eax, [r14 + rdx]
add eax, 0x8f1bbcdc
mov r14d, esi
mov esi, r11d
add eax, ecx
mov r11d, edi
inc r8d
rol r11d, 0x1e
mov edi, ebp
mov ebp, eax
cmp r8d, 0x3c
jb 0x14018568c
mov eax, dword [rsp + r8*4 + 0x20]
mov edx, ebp
mov ecx, esi
rol edx, 5
xor ecx, r11d
inc r8d
xor ecx, edi
add eax, ecx
lea ecx, [r14 + rdx]
mov r14d, esi
mov esi, r11d
add ecx, 0xca62c1d6
mov r11d, edi
add ecx, eax
rol r11d, 0x1e
mov edi, ebp
mov ebp, ecx
cmp r8d, 0x50
jb 0x1401856c9
add dword [r10 + 0x10], r14d
add rbx, 0x40
add dword [r10 + 0xc], esi
add dword [r10 + 8], r11d
add dword [r10 + 4], edi
add dword [r10], ecx
cmp rbx, r15
jb 0x1401855c3
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14035a4e0
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x170
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14018574c
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 [0x140418d28]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp dword [rsp + 0xf0], 8
mov r10, r9
mov r11, rdx
je 0x14018578f
mov eax, 0xc004d104
jmp 0x14018590a
lea rax, [rdx + 0x40]
mov qword [rsp + 0x30], rax
mov eax, dword [r10 + 0xc]
lea rcx, [rsp + 0x40]
mov edi, dword [r10]
xor ebx, ebx
mov r14d, dword [r10 + 4]
mov rdx, r11
mov r15d, dword [r10 + 8]
mov esi, dword [r10 + 0x10]
mov r12d, dword [r10 + 0x14]
lea r8d, [rbx + 0x10]
mov r13d, dword [r10 + 0x18]
mov dword [rsp + 0x24], eax
mov eax, dword [r10 + 0x1c]
mov dword [rsp + 0x20], eax
call fcn.14018ed88
lea r9, [0x1403bd990]
xor ebp, ebp
mov qword [rsp + 0x28], r9
cmp ebx, 0x10
jb 0x14018583f
lea eax, [rbx - 2]
mov r9, rbp
and eax, 0xf
and r9d, 0xf
mov ecx, dword [rsp + rax*4 + 0x40]
mov r8d, ecx
rol r8d, 0xf
lea rax, [rbp + 1]
and eax, 0xf
mov edx, dword [rsp + rax*4 + 0x40]
mov eax, ecx
rol eax, 0xd
xor r8d, eax
shr ecx, 0xa
xor r8d, ecx
mov eax, edx
rol eax, 0xe
mov ecx, edx
rol ecx, 0x19
xor ecx, eax
shr edx, 3
lea eax, [rbx - 7]
xor ecx, edx
and eax, 0xf
add r8d, ecx
add r8d, dword [rsp + rax*4 + 0x40]
add dword [rsp + r9*4 + 0x40], r8d
mov r9, qword [rsp + 0x28]
mov eax, esi
mov r8d, esi
rol eax, 0x15
mov ecx, esi
rol r8d, 0x1a
not ecx
xor r8d, eax
and ecx, r13d
mov eax, esi
mov edx, edi
rol eax, 7
inc ebx
xor r8d, eax
rol edx, 0x1e
mov eax, r12d
and eax, esi
xor ecx, eax
mov rax, rbp
and eax, 0xf
add r8d, ecx
mov ecx, r14d
inc rbp
xor ecx, edi
and ecx, r15d
add r8d, dword [rsp + rax*4 + 0x40]
mov eax, edi
add r8d, dword [r9]
add r9, 4
add r8d, dword [rsp + 0x20]
rol eax, 0x13
xor edx, eax
mov qword [rsp + 0x28], r9
mov eax, edi
rol eax, 0xa
xor edx, eax
mov eax, r14d
and eax, edi
xor ecx, eax
mov eax, r15d
add edx, ecx
mov r15d, r14d
mov ecx, r13d
mov r14d, edi
mov r13d, r12d
mov dword [rsp + 0x20], ecx
mov r12d, esi
mov esi, dword [rsp + 0x24]
add esi, r8d
mov dword [rsp + 0x24], eax
lea edi, [rdx + r8]
cmp ebx, 0x40
jb 0x1401857e0
add dword [r10 + 0x1c], ecx
add r11, 0x40
add dword [r10 + 0x18], r13d
add dword [r10 + 0x14], r12d
add dword [r10 + 0x10], esi
add dword [r10 + 0xc], eax
add dword [r10 + 8], r15d
add dword [r10 + 4], r14d
add dword [r10], edi
cmp r11, qword [rsp + 0x30]
jb 0x140185798
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14035a4e0
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 0x140186638
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.1401865f0
test eax, eax
js 0x1401866c6
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.140186968
test eax, eax
js 0x1401866c6
mov qword [rsp + 0x20], 3
lea rax, [0x14000b3e0]
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 0x1401866c6
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14018dbb4
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov r10, rdx
mov r9, rcx
test r8d, r8d
je 0x14018dc27
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 0x14018dbc2
ret

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

Disassembly:
test r8d, r8d
je 0x14018dce5
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov esi, r8d
mov r14, rdx
mov rbx, rcx
xor edi, edi
mov edx, dword [r14 + 8]
mov rcx, qword [r14]
add edx, edi
call fcn.14017bc10
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
movzx eax, byte [rbx + 0x119]
movzx r8d, byte [rbx + 0x118]
mov edx, dword [r14 + 8]
mov rcx, qword [r14]
add edx, edi
mov r8b, byte [r8 + rbx + 0x18]
add r8b, byte [rax + rbx + 0x18]
movzx eax, r8b
mov r8b, byte [rax + rbx + 0x18]
xor r8b, r10b
call fcn.14017bc50
inc edi
cmp edi, esi
jb 0x14018dc51
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14018e598
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
xor ebx, ebx
mov rbp, rcx
cmp byte [rcx + 8], bl
jne 0x14018e5cd
mov edi, 0xc004d101
mov ecx, edi
jmp 0x14018e7d6
mov rax, qword [rcx]
mov r13d, dword [rsp + 0xb0]
mov esi, r13d
mov edi, dword [rax + 0x10]
sub esi, edi
mov dword [rsp + 0xc0], edi
dec esi
mov dword [rsp + 0x90], edi
mov dword [rsp + 0xb8], esi
lea eax, [rdi + rdi]
cmp eax, edi
jb 0x14018e7cf
lea eax, [rsi + rdi*2]
cmp esi, eax
ja 0x14018e7cf
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14018e632
mov edi, 0x8007000e
jmp 0x14018e5c6
lea rcx, [rdi + rax]
mov r9, rbx
mov qword [rsp + 0x30], rcx
lea r8, [rsp + 0xc0]
mov rcx, qword [rbp]
lea r15, [rax + rdi*2]
mov rdx, rbx
call fcn.14018dee0
mov edi, eax
test eax, eax
jns 0x14018e663
mov ecx, eax
jmp 0x14018e7d6
mov r14d, dword [rsp + 0xc0]
lea eax, [r14*2 + 2]
cmp r14d, eax
ja 0x14018e7cf
cmp r13d, eax
jb 0x14018e7cf
mov rdx, qword [rsp + 0x30]
lea r12d, [r14 + 1]
add r12, qword [rsp + 0xa8]
lea r8, [rsp + 0x90]
mov rcx, qword [rbp]
sub r13d, r14d
dec r13d
mov dword [rsp + 0x28], r14d
mov r9, r12
mov dword [rsp + 0x20], r13d
call fcn.14018df84
mov edi, eax
test eax, eax
js 0x14018e65c
mov edx, dword [rsp + 0x90]
cmp edx, r14d
ja 0x14018e7cf
test edx, edx
je 0x14018e6f7
mov rcx, qword [rsp + 0x30]
mov r10d, edx
mov r8, qword [rsp + 0xa8]
sub r8, rcx
mov al, byte [r8 + rcx + 1]
xor byte [rcx], al
inc rcx
sub r10, 1
jne 0x14018e6e7
mov r9, qword [rsp + 0x30]
lea r8, [rsp + 0xb8]
mov rcx, qword [rbp]
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], edx
mov rdx, r15
call fcn.14018df84
mov edi, eax
test eax, eax
js 0x14018e65c
mov ebp, dword [rsp + 0xb8]
cmp ebp, r13d
ja 0x14018e7cf
test r13d, r13d
je 0x14018e74f
mov rcx, r15
mov edx, r13d
sub r12, r15
mov al, byte [r12 + rcx]
xor byte [rcx], al
inc rcx
sub rdx, 1
jne 0x14018e740
mov esi, r14d
cmp r14d, ebp
jae 0x14018e766
mov eax, esi
cmp byte [rax + r15], 0
jne 0x14018e766
inc esi
cmp esi, ebp
jb 0x14018e757
cmp esi, ebp
je 0x14018e7c5
mov eax, esi
cmp byte [rax + r15], 1
jne 0x14018e7c5
mov r8, r14
mov rdx, rbx
mov rcx, r15
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x14018e7c5
mov rax, qword [rsp + 0xa8]
cmp byte [rax], 0
jne 0x14018e7c5
mov rax, qword [rsp + 0xa0]
sub esi, r14d
sub ebp, esi
sub ebp, r14d
dec ebp
cmp dword [rax], ebp
mov dword [rax], ebp
jb 0x14018e7cf
mov rcx, qword [rsp + 0x98]
lea edx, [r14 + 1]
add edx, esi
mov r8d, ebp
add rdx, r15
call sub.msvcrt.dll_memcpy
jmp 0x14018e7db
mov edi, 0xc004d210
jmp 0x14018e5c6
mov ecx, 0x8007006f
mov edi, ecx
call fcn.140078308
mov ecx, edi
call fcn.140078324
test rbx, rbx
je 0x14018e7fb
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401a74c4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test edx, edx
je 0x1401a7505
cmp dword [rcx + 0x20], 0
jne 0x1401a7505
mov rcx, qword [rcx + 8]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401a74f0
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 0x1401a7570
mov rdx, qword [rbx + 0x10]
jmp 0x1401a756b
mov rdx, qword [rcx + 8]
lea rax, [rdx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401a7570
test rdx, rdx
je 0x1401a7570
cmp dword [rcx], 0
jne 0x1401a7543
cmp dword [rcx + 0x20], 0
jne 0x1401a7543
lea rax, [rdx + 1]
and rax, 0xfffffffffffffffe
neg rax
sbb rcx, rcx
and 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 0x1401a755c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rbx + 8], 0xffffffffffffffff
cmp dword [rbx + 0x20], 0
jne 0x1401a7570
cmp dword [rbx], 0
jne 0x1401a74ff
mov rdx, qword [rbx + 0x18]
call fcn.1401a7734
mov dword [rbx + 0x20], 1
add rsp, 0x20
pop rbx
ret

Function at 0x1401a7608
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 esi, r8d
mov r14, rdx
mov rdi, rcx
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
cmp dword [rdi + 0x78], 0
mov ebp, eax
mov eax, dword [0x1404232a0]
cmove eax, ebp
mov dword [rdi + 0x78], 1
mov r8, qword [rdi + 8]
xor ebx, ebx
mov dword [0x1404232a0], eax
lea rax, [r8 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401a76ac
test r8, r8
je 0x1401a76ac
lea rax, [r8 + 1]
mov rdx, r14
and rax, 0xfffffffffffffffe
lea r9, [rsp + 0x50]
neg rax
sbb rcx, rcx
and qword [rsp + 0x20], rbx
and rcx, r8
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401a769f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1401a76ac
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401a76b1
cmp dword [rsp + 0x50], esi
je 0x1401a76b8
mov ebx, 0x8004e10a
jmp 0x1401a76b1
mov ebx, 0x80004005
mov ecx, ebx
call fcn.140078308
mov ecx, ebx
call fcn.140078324
test ebx, ebx
jns 0x1401a76cc
mov ecx, ebx
call fcn.140078308
jmp 0x1401a7715
cmp qword [rdi + 0x70], 0
je 0x1401a7715
sub ebp, dword [0x1404232a0]
mov ecx, 0x1d4c0
mov rdx, qword [rdi + 0x70]
mov eax, ecx
sub eax, ebp
mov r8d, 0x4e20
cmp ebp, ecx
mov r9d, 0xfffffffe
sbb ecx, ecx
and ecx, eax
cmp ecx, r8d
cmovb r8d, ecx
mov rcx, qword [0x1404218f0]
call qword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
xor ecx, ecx
call fcn.140078324
xor ebx, ebx
mov ecx, ebx
call fcn.140078324
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 0x1401a7734
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 0x1401a7795
mov rdx, rdi
call fcn.1401a7a88
mov ebx, eax
test eax, eax
jns 0x1401a7762
mov ecx, eax
jmp 0x1401a7790
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401a7795
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401a7780
mov ebx, 0x80004005
jmp 0x1401a778e
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.140078308
mov ecx, ebx
call fcn.140078324
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401a7824
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov r14, rdx
mov esi, r8d
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x30]
mov ebp, r9d
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
mov r10, qword [rbx + 8]
xor edi, edi
lea rax, [r10 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401a78da
test r10, r10
je 0x1401a78da
mov eax, dword [rsp + 0x90]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
lea r9, [rsp + 0x70]
lea rax, [r10 + 1]
mov r8d, esi
and rax, 0xfffffffffffffffe
neg rax
sbb rcx, rcx
and rcx, r10
neg ebp
sbb rax, rax
and rax, rdx
mov rdx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1401a78cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401a78bb
mov edi, 0x80004005
jmp 0x1401a78c9
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
jmp 0x1401a78e1
cmp dword [rsp + 0x70], esi
je 0x1401a78e6
mov ecx, 0x8004e109
jmp 0x1401a78df
mov ecx, 0x80004005
mov edi, ecx
call fcn.140078308
mov ecx, edi
call fcn.140078324
lea r11, [rsp + 0x50]
mov eax, edi
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1401a7a00
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r8, qword [rcx + 8]
xor ebx, ebx
mov rdi, rdx
lea rax, [r8 - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401a7a67
test r8, r8
je 0x1401a7a67
lea rax, [r8 + 1]
and rax, 0xfffffffffffffffe
neg rax
sbb rcx, rcx
xor edx, edx
and rcx, r8
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x1401a7a63
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401a7a51
mov ebx, 0x80004005
jmp 0x1401a7a5f
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
jmp 0x1401a7a6e
mov dword [rdi], eax
jmp 0x1401a7a73
mov ecx, 0x80004005
mov ebx, ecx
call fcn.140078308
mov ecx, ebx
call fcn.140078324
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401a7a88
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 0x1401a7b03
xor ebx, ebx
test rdi, rdi
je 0x1401a7aee
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1401a7ad6
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401a7ac6
mov ebx, 0x80004005
jmp 0x1401a7af3
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401a7af3
test al, 1
je 0x1401a7afa
and eax, 0xfffffffe
mov rcx, rdi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1401a7afa
jmp 0x1401a7ab5
mov ebx, 0x80070057
mov ecx, ebx
call fcn.140078308
mov ecx, ebx
call fcn.140078324
jmp 0x1401a7b1c
test eax, eax
jne 0x1401a7b0e
mov ebx, 0x80004005
jmp 0x1401a7b20
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1401a7b27
mov ecx, ebx
call fcn.140078308
mov ecx, ebx
call fcn.140078324
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401aa7e8
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
and qword [rax + 8], 0
mov rbp, rcx
mov rax, qword gs:[0x58]
mov r15, r9
mov ecx, 4
mov r12, r8
mov r14, rdx
mov r10, qword [rax]
mov eax, dword [rcx + r10]
cmp dword [0x1404232f8], eax
jg 0x1401aa935
mov rsi, qword [rbp + 0x18]
xor edi, edi
cmp dword [0x140423530], 1
cmove rdi, qword [0x140422a20]
mov rax, qword [rsi]
mov rbx, qword [rax + 0x178]
mov rcx, rbx
call qword [0x1403a2250]
lea r8, [rsp + 0x90]
mov rdx, rdi
mov rcx, rsi
call rbx
mov ebx, eax
test eax, eax
js 0x1401aa8ce
mov rax, qword [rsp + 0x90]
lea r9, [0x140423300]
and qword [rsp + 0x30], 0
mov r8, r15
mov qword [rsp + 0x28], rax
mov rdx, r12
mov rcx, rbp
mov dword [rsp + 0x20], 1
call fcn.1401abe84
mov ebx, eax
test eax, eax
js 0x1401aa8ce
mov rax, qword [r14]
mov rbx, qword [rax + 0xa8]
mov rcx, rbx
call qword [0x1403a2250]
mov rdx, qword [rsp + 0x90]
xor r8d, r8d
mov rcx, r14
call rbx
mov ebx, eax
test eax, eax
jns 0x1401aa8d5
mov ecx, eax
call fcn.140078308
mov ecx, ebx
call fcn.140078324
and qword [rsp + 0x50], 0
lea rax, [0x140033aa0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], 3
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea rcx, [0x1404232f8]
call fcn.14035aa48
cmp dword [0x1404232f8], 0xffffffff
jne 0x1401aa831
xor eax, eax
lea rcx, [0x1404232f8]
mov qword [0x140423310], rax
and dword [0x140423310], 0
or dword [0x140423314], 0xffffffff
mov qword [0x140423308], rax
lea rax, str.metaInfoType
and qword [0x140423308], 0
mov qword [0x140423300], rax
call fcn.14035a9e8
jmp 0x1401aa831