joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14019fa60
Capabilities:
Move file

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x40]
mov qword [rbx + 0x50], rax
movaps xmm0, xmmword [0x1402ae190]
movaps xmmword [rbx + 0x40], xmm0
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.DeleteFileAfterReboot
lea r8, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r9d, 0x1f5
call fcn.1400c0870
xor ebp, ebp
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.1400c3400
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x14019faed
mov rcx, qword [rsi + 8]
cmp rcx, 0x103
ja 0x14019fb14
test al, al
jns 0x14019fafd
mov rsi, qword [rsi]
mov rcx, rsi
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne bpl
lea rcx, [rsp + 0x40]
call fcn.1400c20a0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140115e50
mov eax, ebp
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x1401aa420
Capabilities:
Identify system language via api

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x268
mov r15, r8
mov r13, rdx
mov rdi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x260], rax
movzx r14d, word [rcx + 0x28]
movzx r12d, word [rcx + 0x2a]
mov rsi, qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call rsi
mov ebp, eax
movzx ebx, word [rdi + 0x2a]
movzx eax, word [rdi + 0x28]
mov dword [rsp + 0x40], eax
call rsi
mov word [rsp + 0x3e], ax
lea rsi, [rsp + 0x50]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.140117f60
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r14d
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.1401cdb60
lea r8, [rsp + 0x48]
mov qword [r8], 0
lea r9, [rsp + 0x44]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1401aa524
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1401aa524
mov r8d, dword [rsp + 0x44]
test r8d, r8d
je 0x1401aa524
dec r8d
mov rcx, r15
call fcn.14010ba10
mov sil, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140115e50
mov eax, esi
add rsp, 0x268
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rsi, [rsp + 0x50]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.140117f60
movzx eax, bp
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.1401cdb60
lea r8, [rsp + 0x48]
mov qword [r8], 0
lea r9, [rsp + 0x44]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1401aa5a3
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1401aa5a3
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x1401aa4f0
lea rsi, [rsp + 0x50]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.140117f60
mov qword [rsp + 0x30], r13
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x4e4
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.1401cdb60
lea r8, [rsp + 0x48]
mov qword [r8], 0
lea r9, [rsp + 0x44]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1401aa627
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1401aa627
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x1401aa4f0
lea rsi, [rsp + 0x50]
mov r8d, 0x208
mov rcx, rsi
mov dl, 0xaa
call fcn.140117f60
movzx eax, word [rsp + 0x3e]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0x4e4
lea r9, str.StringFileInfo_04x_04x_ls
mov edx, 0x104
mov r8d, 0x104
mov rcx, rsi
call fcn.1401cdb60
lea r8, [rsp + 0x48]
mov qword [r8], 0
lea r9, [rsp + 0x44]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rdi + 0x20]
mov rdx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1401aa6ac
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x1401aa6ac
mov r8d, dword [rsp + 0x44]
test r8d, r8d
jne 0x1401aa4f0
xor esi, esi
jmp 0x1401aa4fe
Function at 0x1401abc10
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rsi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
lea rdi, [rsp + 0x40]
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx edx, word [rdi]
lea rcx, [rsp + 0x28]
call fcn.1400da045
lea rdi, [rsi + 0x10]
cmp byte [rsi + 0x27], 0
jns 0x1401abc67
mov rcx, qword [rdi]
call fcn.140112038
mov rax, qword [rsp + 0x38]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rdi], xmm0
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x1401abc84
mov rax, qword [rsi + 0x18]
test rax, rax
setne bl
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140115e50
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret

Function at 0x1401ac2dc
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rsi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
lea rdi, [rsp + 0x40]
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx edx, word [rdi]
lea rcx, [rsp + 0x28]
call fcn.1400da045
lea rdi, [rsi + 0x70]
cmp byte [rsi + 0x87], 0
jns 0x1401ac336
mov rcx, qword [rdi]
call fcn.140112038
mov rax, qword [rsp + 0x38]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rdi], xmm0
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x1401ac353
mov rax, qword [rsi + 0x78]
test rax, rax
setne bl
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140115e50
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret

Function at 0x1401ac374
Capabilities:
Identify system language via api

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edx, ax
lea rcx, [rsp + 0x20]
call fcn.1400da045
lea rdi, [rsi + 0x88]
cmp byte [rsi + 0x9f], 0
jns 0x1401ac3b8
mov rcx, qword [rdi]
call fcn.140112038
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x1401ac3d8
mov rax, qword [rsi + 0x90]
test rax, rax
setne bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140115e50
mov eax, ebx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x1401ac464
Capabilities:
Get geographical location

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ecx, 0x10
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
lea rcx, [rsp + 0x28]
mov edx, eax
call fcn.1401acd78
lea rdi, [rsi + 0xb8]
cmp byte [rsi + 0xcf], 0
jns 0x1401ac4ab
mov rcx, qword [rdi]
call fcn.140112038
mov rax, qword [rsp + 0x38]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rdi], xmm0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140115e50
nop
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x1401ae8bb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
xor r9d, r9d
lea r8, [0x140315530]
mov edx, 8
mov eax, r9d
mov ecx, eax
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
dec edx
jne 0x1401ae8d1
mov dword [r8 + r9*4], eax
inc r9
cmp r9, 0x100
jne 0x1401ae8c9
mov eax, 0x100
mov ecx, dword [r8 + rax*4 - 0x400]
movzx edx, cl
shr ecx, 8
xor ecx, dword [r8 + rdx*4]
mov dword [r8 + rax*4], ecx
inc rax
cmp rax, 0x800
jne 0x1401ae8fa
lea rax, [0x140292d90]
mov qword [0x140315528], rax
call fcn.140292f81
test eax, eax
jne 0x1401ae940
lea rax, [0x140292e60]
mov qword [0x140315528], rax
add rsp, 0x28
ret

Function at 0x1401c7240
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x88], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
movzx eax, byte [r8 + 0x17]
test al, al
mov rcx, qword [r8]
cmovns rcx, r8
lea rdx, [rsp + 0x60]
mov qword [rdx], rcx
cmovs rax, qword [r8 + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x70]
mov rcx, rsi
call fcn.1400d94d0
cmp byte [rsi + 0x17], 0
jns 0x1401c729b
mov rsi, qword [rsp + 0x70]
movaps xmm0, xmmword [rsp + 0x20]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x48]
mov rcx, rdi
call fcn.1400d94d0
cmp byte [rdi + 0x17], 0
jns 0x1401c72c0
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp byte [rsp + 0x5f], 0
jns 0x1401c72df
mov rcx, qword [rsp + 0x48]
call fcn.140112038
cmp byte [rsp + 0x87], 0
jns 0x1401c72f3
mov rcx, qword [rsp + 0x70]
call fcn.140112038
test esi, esi
setne bl
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140115e50
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x1401c73a0
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x58]
mov rcx, rdi
call fcn.1400d94d0
cmp byte [rdi + 0x17], 0
jns 0x1401c73e1
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp byte [rsp + 0x6f], 0
jns 0x1401c7402
mov rcx, qword [rsp + 0x58]
call fcn.140112038
test edi, edi
je 0x1401c74ae
test r14, r14
je 0x1401c74ae
mov ecx, edi
add rcx, rcx
call fcn.140112618
mov rbx, rax
movups xmm0, xmmword [rsi]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea rsi, [rsp + 0x58]
mov rcx, rsi
call fcn.1400d94d0
cmp byte [rsi + 0x17], 0
jns 0x1401c7443
mov rsi, qword [rsp + 0x58]
mov rcx, rsi
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x6f], 0
jns 0x1401c7463
mov rcx, qword [rsp + 0x58]
call fcn.140112038
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x1401c74cc
mov rcx, rbx
call fcn.1401124ec
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x58]
call fcn.1400c0b10
cmp byte [r14 + 0x17], 0
js 0x1401c74d0
mov rax, qword [rsp + 0x68]
mov qword [r14 + 0x10], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [r14], xmm0
test rbx, rbx
je 0x1401c74ae
mov rcx, rbx
call fcn.140112040
test edi, edi
setne bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140115e50
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x1401c7475
mov rcx, qword [r14]
call fcn.140112038
jmp 0x1401c748f

Function at 0x1401c74e0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r15d, r8d
mov rdi, rdx
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov rbx, qword [rdx]
mov qword [rdx], rax
lea rbp, [rbx + 1]
cmp rbp, 2
jb 0x1401c7511
call fcn.1400bb620
cmp qword [rsi], rbx
je 0x1401c7542
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1401c757e
cmp rbp, 2
jb 0x1401c7539
mov qword [rsi], rbx
call fcn.1400bb620
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
mov qword [rsi + 0x18], 0
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x28], 0
mov byte [rsi + 0x29], r15b
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1401c75b1
mov rax, rsi
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400bb620
mov r14, qword [rsi]
mov rcx, qword [0x1403198a0]
test rcx, rcx
je 0x1401c75a3
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rsi], 0
jmp 0x1401c752b
call fcn.140163330
mov rcx, qword [0x1403198a0]
jmp 0x1401c7592
call fcn.1400bb620
mov rbx, qword [rdi]
mov rcx, qword [0x1403198a0]
test rcx, rcx
je 0x1401c75d6
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
mov qword [rdi], 0
jmp 0x1401c756c
call fcn.140163330
mov rcx, qword [0x1403198a0]
jmp 0x1401c75c5
Function at 0x1401c7aa0
Capabilities:
Move file

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.1400ee4c0
test al, al
jne 0x1401c7ac1
mov rcx, rsi
call fcn.1400ee4c0
test al, al
je 0x1401c7aca
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x1401c7ae0
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa0
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x1402ae190]
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
lea rdx, str.MoveUnsafe
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r9d, 0x4ef
call fcn.1400c0870
xor ebx, ebx
mov rcx, rbp
mov rdx, rsi
xor r8d, r8d
call fcn.1400c3400
movzx eax, byte [rdi + 0x17]
mov rcx, rax
test al, al
jns 0x1401c7b73
mov rcx, qword [rdi + 8]
cmp rcx, 0x103
jbe 0x1401c7ba6
lea rcx, [rsp + 0x40]
call fcn.1400c20a0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140115e50
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
movzx ecx, byte [r14 + 0x17]
mov rdx, rcx
test cl, cl
jns 0x1401c7bb6
mov rdx, qword [r14 + 8]
cmp rdx, 0x103
jbe 0x1401c7bc3
xor ebx, ebx
jmp 0x1401c7b7c
mov rdx, r14
test cl, cl
jns 0x1401c7bcd
mov rdx, qword [r14]
mov rcx, rdi
test al, al
jns 0x1401c7bd7
mov rcx, qword [rdi]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bl, 1
test eax, eax
jne 0x1401c7b7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rcx, rdi
call fcn.140167f10
test al, al
jne 0x1401c7c07
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1401c7bbf
mov rcx, rdi
mov rdx, r14
call fcn.1401ce600
test al, al
jne 0x1401c7b7c
jmp 0x1401c7bfd
Function at 0x1401c7ae0
Capabilities:
Move file

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call fcn.1400ee4c0
test al, al
jne 0x1401c7ac1
mov rcx, rsi
call fcn.1400ee4c0
test al, al
je 0x1401c7aca
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x1401c7ae0
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa0
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x1402ae190]
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
lea rdx, str.MoveUnsafe
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r9d, 0x4ef
call fcn.1400c0870
xor ebx, ebx
mov rcx, rbp
mov rdx, rsi
xor r8d, r8d
call fcn.1400c3400
movzx eax, byte [rdi + 0x17]
mov rcx, rax
test al, al
jns 0x1401c7b73
mov rcx, qword [rdi + 8]
cmp rcx, 0x103
jbe 0x1401c7ba6
lea rcx, [rsp + 0x40]
call fcn.1400c20a0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140115e50
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
movzx ecx, byte [r14 + 0x17]
mov rdx, rcx
test cl, cl
jns 0x1401c7bb6
mov rdx, qword [r14 + 8]
cmp rdx, 0x103
jbe 0x1401c7bc3
xor ebx, ebx
jmp 0x1401c7b7c
mov rdx, r14
test cl, cl
jns 0x1401c7bcd
mov rdx, qword [r14]
mov rcx, rdi
test al, al
jns 0x1401c7bd7
mov rcx, qword [rdi]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov bl, 1
test eax, eax
jne 0x1401c7b7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rcx, rdi
call fcn.140167f10
test al, al
jne 0x1401c7c07
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1401c7bbf
mov rcx, rdi
mov rdx, r14
call fcn.1401ce600
test al, al
jne 0x1401c7b7c
jmp 0x1401c7bfd
Function at 0x1401cbcc0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov r14, rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], 0
inc rdx
call fcn.140165cb0
test rdi, rdi
je 0x1401cbd17
mov rbx, rax
mov r15d, 0xffffffff
cmp rdi, r15
mov esi, 0xffffffff
cmovb rsi, rdi
mov rcx, rbx
mov edx, esi
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1401cbd26
add rbx, rsi
sub rdi, rsi
jne 0x1401cbcf5
mov rax, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
int3

Function at 0x1401cd8e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x1401cd90c
cmp edx, 0xffff
ja 0x1401cd90c
mov rsi, r9
mov rdi, rcx
mov edx, edx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
jne 0x1401cd915
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rbx, rax
mov rcx, rdi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1401cd90a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x1401cd952
mov rcx, qword [rsp + 0x70]
mov qword [rsi], rax
mov edx, ebp
mov qword [rcx], rdx
test rax, rax
setne al
jmp 0x1401cd90c
Function at 0x1401cdbf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
mov rbx, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0xd0], rax
call fcn.1400ec2f0
cmp eax, 8
jg 0x1401cdc30
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x1401cdd58
mov r14d, eax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x70]
mov qword [rdi + 0x50], r15
movaps xmm0, xmmword [0x1402ae190]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.DeleteFileEvenIfInUse
lea r8, str..._.._base_files_file_util_win.cc
lea rbp, [rsp + 0x50]
mov rcx, rbp
mov r9d, 0x205
call fcn.1400c0870
xor esi, esi
mov rcx, rdi
mov rdx, rbp
xor r8d, r8d
call fcn.1400c3400
cmp byte [rbx + 0x17], 0
mov rcx, rbx
jns 0x1401cdc9d
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401cdd4e
test al, 0x10
jne 0x1401cdd41
mov qword [rsp + 0x48], r15
cmp byte [rbx + 0x17], 0
jns 0x1401cdcc2
mov rbx, qword [rbx]
xor esi, esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x10100
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rdi, [rsp + 0x48]
mov qword [rdi], rsi
mov rcx, rdi
mov rdx, rax
call fcn.140105164
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1401cdd7a
mov rax, qword [rsp + 0x48]
inc rax
cmp rax, 2
jb 0x1401cdd4e
call fcn.1400bb620
mov rdi, qword [rsp + 0x48]
mov rcx, qword [0x1403198a0]
test rcx, rcx
je 0x1401cde28
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax]
jmp 0x1401cdd4e
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
lea rcx, [rsp + 0x70]
call fcn.1400c20a0
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140115e50
mov eax, esi
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtSetInformationFile
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401cde21
mov rbx, rax
movups xmm0, xmmword [0x1402bc608]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
xor eax, eax
cmp r14d, 0xc
setg al
shl eax, 4
or eax, 3
lea r8, [rsp + 0x40]
mov dword [r8], eax
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x20], 0x40
mov r9d, 4
call rbx
test eax, eax
sete sil
je 0x1401cdd0f
mov edi, eax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlNtStatusToDosError
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401cde14
mov ecx, edi
call rax
mov edi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1401cdd0f
xor esi, esi
jmp 0x1401cdd0f
call fcn.140163330
mov rcx, qword [0x1403198a0]
jmp 0x1401cdd37
Function at 0x1401cde40
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.1400ec2f0
cmp eax, 8
jg 0x1401cde65
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x20
pop rsi
ret
mov rcx, rsi
mov edx, 3
add rsp, 0x20
pop rsi
jmp fcn.140003e00
Function at 0x1401ce310
Capabilities:
Check if file exists
Copy file

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm6
mov r12d, r8d
mov r13, rdx
mov rsi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x50], r14
movaps xmm6, xmmword [0x1402ae190]
movaps xmmword [rbx + 0x40], xmm6
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.DoLinkOrCopyFile
lea r8, str..._.._base_files_file_util_win.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r9d, 0xd6
call fcn.1400c0870
xor ebp, ebp
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.1400c3400
mov rcx, rsi
call fcn.1400ee4c0
test al, al
je 0x1401ce3e8
lea rcx, [rsp + 0x60]
call fcn.1400c20a0
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140115e50
mov eax, ebp
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r13
call fcn.1400ee4c0
test al, al
je 0x1401ce3f8
xor ebp, ebp
jmp 0x1401ce3b0
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x1401ce404
mov rax, qword [rsi + 8]
cmp rax, 0x103
ja 0x1401ce3f4
movzx eax, byte [r13 + 0x17]
test al, al
jns 0x1401ce419
mov rax, qword [r13 + 8]
cmp rax, 0x103
ja 0x1401ce3f4
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], r14
movaps xmmword [rdi], xmm6
lea rdx, str.DoLinkOrCopyFile
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0xe9
call fcn.1400c0870
lea r8, [0x140314d18]
mov rcx, rdi
mov rdx, rbx
call fcn.1401618c0
cmp byte [rsi + 0x17], 0
jns 0x1401ce469
mov rsi, qword [rsi]
cmp byte [r13 + 0x17], 0
mov r14, r13
jns 0x1401ce477
mov r14, qword [r13]
mov r15d, r12d
and r15d, 1
test r12b, 2
jne 0x1401ce4d2
mov rcx, rsi
mov rdx, r14
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1401ce4fb
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp eax, 0xffffffff
je 0x1401ce4bc
mov eax, esi
and eax, 1
je 0x1401ce4bc
mov edx, esi
and edx, 0xfffffffe
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp esi, 0xffffffff
setne bpl
lea rcx, [rsp + 0x40]
call fcn.1401619e0
jmp 0x1401ce3b0
test r15d, r15d
jne 0x1401ce4ef
mov rcx, r14
mov rdx, rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov bpl, 1
test eax, eax
jne 0x1401ce4c3
jmp 0x1401ce484
mov rcx, r13
call fcn.14014d0c0
test al, al
je 0x1401ce4d7
xor ebp, ebp
jmp 0x1401ce4c3

Function at 0x1401ce5f0
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
movzx r8d, r8b
add r8d, r8d
jmp fcn.1401ce310

Function at 0x1401cfd50
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140310d60]
cmp ecx, 0xffffffff
je 0x1401cfd75
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
add rsp, 0x28
ret
xor eax, eax
jmp 0x1401cfd70