joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14018dfe0
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 [0x14042eb28]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp dword [rsp + 0x1c0], 5
mov r10, r9
mov rbp, rdx
je 0x14018e01f
mov eax, 0xc004d104
jmp 0x14018e197
mov esi, dword [r9]
lea r15, [rdx + 0x40]
mov edi, dword [r9 + 4]
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.1401977b0
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 0x14018e059
lea r9d, [r8 + 0x14]
mov r8d, r9d
lea rdx, [rsp + 0x20]
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 r9, 1
jne 0x14018e082
mov eax, r8d
mov edx, esi
rol edx, 5
mov ecx, ebx
xor ecx, r11d
inc r8d
xor ecx, edi
add edx, dword [rsp + rax*4 + 0x20]
add edx, r14d
mov r14d, ebx
mov ebx, r11d
add edx, ecx
mov r11d, edi
mov edi, esi
rol r11d, 0x1e
lea esi, [rdx + 0x6ed9eba1]
cmp r8d, 0x28
jb 0x14018e0b6
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 [rsp + r8*4 + 0x20]
lea eax, [r14 + rdx]
add eax, 0x8f1bbcdc
mov r14d, ebx
mov ebx, r11d
add eax, ecx
mov r11d, edi
inc r8d
rol r11d, 0x1e
mov edi, esi
mov esi, eax
cmp r8d, 0x3c
jb 0x14018e0ec
mov eax, dword [rsp + r8*4 + 0x20]
mov edx, esi
mov ecx, ebx
rol edx, 5
xor ecx, r11d
inc r8d
xor ecx, edi
add eax, ecx
lea ecx, [r14 + rdx]
mov r14d, ebx
mov ebx, r11d
add ecx, 0xca62c1d6
mov r11d, edi
add ecx, eax
rol r11d, 0x1e
mov edi, esi
mov esi, ecx
cmp r8d, 0x50
jb 0x14018e129
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], ecx
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 0x14018e036
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14036e5e0
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x170
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14018e1c4
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 [0x14042eb28]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp dword [rsp + 0xf0], 8
mov r10, r9
mov r11, rdx
je 0x14018e207
mov eax, 0xc004d104
jmp 0x14018e3a2
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.1401977b0
lea rax, [0x1403d3e60]
xor edi, edi
mov qword [rsp + 0x28], rax
mov r9, rdi
and r9d, 0xf
cmp ebx, 0x10
jb 0x14018e2b1
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 0x14018e258
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 0x14018e237
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14036e5e0
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 0x14018f0cc
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 rbx, rdx
mov rdi, rcx
mov rcx, rdx
call fcn.14018f07c
test eax, eax
js 0x14018f15a
movzx eax, word [rbx + 6]
mov word [rdi], ax
mov qword [rdi + 0x10], rsi
lea rcx, [rdi + 0x18]
mov r9d, esi
mov r8, rbx
xor edx, edx
call fcn.14018f408
test eax, eax
js 0x14018f15a
mov qword [rsp + 0x20], 3
lea rax, [0x1400499b8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rbx
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 0x14018f15a
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140196570
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

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

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

Disassembly:
test r8d, r8d
je 0x1401966a9
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.1401842a8
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.1401842f0
inc edi
cmp edi, esi
jb 0x140196615
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1401b086c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test edx, edx
je 0x1401b08ad
cmp dword [rcx + 0x20], 0
jne 0x1401b08ad
mov rcx, qword [rcx + 8]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401b0898
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 0x1401b0923
mov rdx, qword [rbx + 0x10]
jmp 0x1401b091e
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 0x1401b0923
cmp dword [rbx], 0
jne 0x1401b08f6
cmp dword [rbx + 0x20], 0
jne 0x1401b08f6
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 0x1401b090f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rbx + 8], 0xffffffffffffffff
cmp dword [rbx + 0x20], 0
jne 0x1401b0923
cmp dword [rbx], 0
jne 0x1401b08a7
mov rdx, qword [rbx + 0x18]
call fcn.1401b0b00
mov dword [rbx + 0x20], 1
add rsp, 0x20
pop rbx
ret

Function at 0x1401b09c4
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 [0x140438fb0]
cmove r9d, eax
mov dword [rsi + 0x78], 1
mov r8, qword [rsi + 8]
xor ebx, ebx
mov dword [0x140438fb0], r9d
lea rcx, [r8 - 1]
cmp rcx, 0xfffffffffffffffd
seta al
xor ecx, ecx
test al, al
cmove rcx, r8
test rcx, rcx
jne 0x1401b0a29
mov ebx, 0x80004005
jmp 0x1401b0a7b
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 0x1401b0a70
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1401b0a22
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401b0a7b
cmp dword [rsp + 0x50], edi
je 0x1401b0a82
mov ebx, 0x8004e10a
mov ecx, ebx
call fcn.14007ab24
mov ecx, ebx
call fcn.14007ab44
test ebx, ebx
jns 0x1401b0a96
mov ecx, ebx
call fcn.14007ab24
jmp 0x1401b0add
mov rdx, qword [rsi + 0x70]
test rdx, rdx
je 0x1401b0add
sub ebp, dword [0x140438fb0]
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 [0x1404377e8]
call qword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
xor ecx, ecx
call fcn.14007ab44
xor ebx, ebx
mov ecx, ebx
call fcn.14007ab44
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 0x1401b0b00
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 0x1401b0b61
mov rdx, rdi
call fcn.1401b0e90
mov ebx, eax
test eax, eax
jns 0x1401b0b2e
mov ecx, eax
jmp 0x1401b0b5c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1401b0b61
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401b0b4c
mov ebx, 0x80004005
jmp 0x1401b0b5a
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
call fcn.14007ab24
mov ecx, ebx
call fcn.14007ab44
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401b0bf8
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 r8, qword [rbx + 8]
xor edi, edi
mov ecx, edi
lea rax, [r8 - 1]
cmp rax, 0xfffffffffffffffd
seta al
test al, al
cmove rcx, r8
test rcx, rcx
jne 0x1401b0c4b
mov ecx, 0x80004005
jmp 0x1401b0cbf
mov eax, dword [rsp + 0x90]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
lea r9, [rsp + 0x70]
lea rax, [r8 - 1]
cmp rax, 0xfffffffffffffffd
seta dl
neg ebp
sbb rax, rax
and rax, rcx
mov rcx, rdi
test dl, dl
mov qword [rsp + 0x20], rax
mov rdx, r14
cmove rcx, r8
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1401b0cb4
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401b0ca2
mov edi, 0x80004005
jmp 0x1401b0cb0
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
jmp 0x1401b0cc1
cmp dword [rsp + 0x70], esi
je 0x1401b0cc6
mov ecx, 0x8004e109
mov edi, ecx
call fcn.14007ab24
mov ecx, edi
call fcn.14007ab44
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 0x1401b0df4
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 0x1401b0e2d
mov ecx, 0x80004005
mov ebx, ecx
call fcn.14007ab24
jmp 0x1401b0e73
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 0x1401b0e71
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401b0e5f
mov ebx, 0x80004005
jmp 0x1401b0e6d
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
jmp 0x1401b0e26
mov dword [rdi], eax
mov ecx, ebx
call fcn.14007ab44
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401b0e90
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 0x1401b0f0b
xor ebx, ebx
test rdi, rdi
je 0x1401b0ef6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1401b0ede
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401b0ece
mov ebx, 0x80004005
jmp 0x1401b0efb
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401b0efb
test al, 1
je 0x1401b0f02
and eax, 0xfffffffe
mov rcx, rdi
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1401b0f02
jmp 0x1401b0ebd
mov ebx, 0x80070057
mov ecx, ebx
call fcn.14007ab24
mov ecx, ebx
call fcn.14007ab44
jmp 0x1401b0f24
test eax, eax
jne 0x1401b0f16
mov ebx, 0x80004005
jmp 0x1401b0f28
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1401b0f2f
mov ecx, ebx
call fcn.14007ab24
mov ecx, ebx
call fcn.14007ab44
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401b3bd0
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 [0x140439008], eax
jg 0x1401b3d1d
mov rsi, qword [rbp + 0x18]
xor edi, edi
cmp dword [0x140439240], 1
cmove rdi, qword [0x140438720]
mov rax, qword [rsi]
mov rbx, qword [rax + 0x178]
mov rcx, rbx
call qword [0x1403b8660]
lea r8, [rsp + 0x90]
mov rdx, rdi
mov rcx, rsi
call rbx
mov ebx, eax
test eax, eax
js 0x1401b3cb6
mov rax, qword [rsp + 0x90]
lea r9, [0x140439010]
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.1401b53c4
mov ebx, eax
test eax, eax
js 0x1401b3cb6
mov rax, qword [r14]
mov rbx, qword [rax + 0xa8]
mov rcx, rbx
call qword [0x1403b8660]
mov rdx, qword [rsp + 0x90]
xor r8d, r8d
mov rcx, r14
call rbx
mov ebx, eax
test eax, eax
jns 0x1401b3cbd
mov ecx, eax
call fcn.14007ab24
mov ecx, ebx
call fcn.14007ab44
and qword [rsp + 0x50], 0
lea rax, [0x14001cb78]
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, [0x140439008]
call fcn.14036ea0c
cmp dword [0x140439008], 0xffffffff
jne 0x1401b3c19
xor eax, eax
lea rcx, [0x140439008]
mov qword [0x140439020], rax
and dword [0x140439020], 0
or dword [0x140439024], 0xffffffff
mov qword [0x140439018], rax
lea rax, str.metaInfoType
and qword [0x140439018], 0
mov qword [0x140439010], rax
call fcn.14036e99c
jmp 0x1401b3c19
Function at 0x1401b3d84
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 [0x140439028], eax
jg 0x1401b3ed1
mov rsi, qword [rbp + 0x18]
xor edi, edi
cmp dword [0x140439240], 1
cmove rdi, qword [0x140438708]
mov rax, qword [rsi]
mov rbx, qword [rax + 0x178]
mov rcx, rbx
call qword [0x1403b8660]
lea r8, [rsp + 0x90]
mov rdx, rdi
mov rcx, rsi
call rbx
mov ebx, eax
test eax, eax
js 0x1401b3e6a
mov rax, qword [rsp + 0x90]
lea r9, [0x140439030]
and qword [rsp + 0x30], 0
mov r8, r15
mov qword [rsp + 0x28], rax
mov rdx, r12
mov rcx, rbp
mov dword [rsp + 0x20], 2
call fcn.1401b53c4
mov ebx, eax
test eax, eax
js 0x1401b3e6a
mov rax, qword [r14]
mov rbx, qword [rax + 0xa8]
mov rcx, rbx
call qword [0x1403b8660]
mov rdx, qword [rsp + 0x90]
xor r8d, r8d
mov rcx, r14
call rbx
mov ebx, eax
test eax, eax
jns 0x1401b3e71
mov ecx, eax
call fcn.14007ab24
mov ecx, ebx
call fcn.14007ab44
and qword [rsp + 0x50], 0
lea rax, [0x14001cb78]
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, [0x140439028]
call fcn.14036ea0c
cmp dword [0x140439028], 0xffffffff
jne 0x1401b3dcd
xor eax, eax
lea rcx, [0x140439028]
mov qword [0x140439040], rax
and dword [0x140439040], 0
or dword [0x140439044], 0xffffffff
mov qword [0x140439038], rax
lea rax, str.metaInfoType
and qword [0x140439038], 0
mov qword [0x140439030], rax
xor eax, eax
mov qword [0x140439058], rax
lea rax, str.windowsComponentLicenseFileName
and dword [0x140439058], 0
mov qword [0x140439048], rax
lea rax, str.path
mov qword [0x140439050], rax
mov dword [0x14043905c], 1
call fcn.14036e99c
jmp 0x1401b3dcd
Function at 0x1401b6534
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x20], 0
mov rdi, rcx
jne 0x1401b6553
xor ebx, ebx
jmp 0x1401b66d0
lea rdx, [rsp + 0x30]
call fcn.1401b0f4c
mov ebx, eax
test eax, eax
jns 0x1401b656a
mov esi, eax
jmp 0x1401b66b3
mov rdx, qword [rdi + 8]
lea rax, [rdx - 1]
cmp rax, 0xfffffffffffffffd
seta al
xor ecx, ecx
test al, al
cmove rcx, rdx
test rcx, rcx
je 0x1401b65e6
cmp dword [rdi], 0
jne 0x1401b65b3
cmp dword [rdi + 0x20], 0
jne 0x1401b65b3
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 [rdi], ecx
mov rcx, qword [rdi + 8]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1401b65cc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 8], 0xffffffffffffffff
cmp dword [rdi + 0x20], 0
jne 0x1401b65e6
cmp dword [rdi], 0
je 0x1401b65dd
mov rdx, qword [rdi + 0x10]
jmp 0x1401b65e1
mov rdx, qword [rdi + 0x18]
call fcn.1401b0b00
mov dword [rdi + 0x20], 1
mov rdx, qword [rdi + 0x18]
call fcn.1401b0b00
mov rdx, qword [rdi + 0x18]
xor r8d, r8d
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1401b6631
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401b661c
mov ebx, 0x80004005
jmp 0x1401b662a
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov esi, ebx
jmp 0x1401b66b3
mov rdx, qword [rdi + 0x10]
xor r8d, r8d
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1401b660b
mov rbx, qword [rdi + 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401b6667
bts eax, 0xd
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov r9, qword [rdi + 0x10]
mov edx, 0xc0000000
mov r8d, 4
mov rcx, rdi
call fcn.1401b7a30
mov ebx, eax
mov esi, eax
test eax, eax
jns 0x1401b668d
mov ecx, eax
call fcn.14007ab24
mov ecx, ebx
call fcn.14007ab44
test ebx, ebx
js 0x1401b66b3
mov edx, dword [rsp + 0x30]
xor r8d, r8d
and dword [rdi + 0x20], 0
mov rcx, rdi
call fcn.1401b0cec
mov ebx, eax
mov esi, eax
test eax, eax
jns 0x1401b66d0
mov ecx, esi
call fcn.14007ab24
test ebx, ebx
jns 0x1401b66d0
xor r9d, r9d
mov r8d, ebx
mov rcx, rdi
lea edx, [r9 + 3]
call fcn.1401b0b7c
mov ecx, ebx
call fcn.14007ab44
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret