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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r12, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x1400ce731
mov rax, qword [r12 + 8]
test rax, rax
je 0x1400ce829
mov eax, ebx
not eax
test eax, 0x300
je 0x1400ce829
cmp edi, 2
lea rax, [0x1401861d0]
lea rcx, [0x1401863d0]
cmove rcx, rax
cmp word [rcx], 0
jne 0x1400ce829
xorps xmm0, xmm0
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsi], 0
je 0x1400ce829
cmp byte [0x1401861c0], 0
setne al
bt ebx, 8
jb 0x1400ce829
shr ebx, 9
and ebx, 1
or bl, al
je 0x1400ce829
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea rsi, str.SOFTWARE
cmove rsi, rax
movzx r13d, byte [r12 + 0x17]
test r13b, r13b
jns 0x1400ce884
mov rbx, qword [r12]
mov r13, qword [r12 + 8]
mov r14d, 1
xor r15d, r15d
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov rdi, qword [rsi + 8]
mov rbp, r13
sub rbp, rdi
jb 0x1400ce816
mov rdx, qword [rsi]
mov rcx, rbx
mov r8, rdi
call fcn.14008de98
test eax, eax
je 0x1400ce848
add rsi, 0x28
inc r15
cmp r15, r14
jb 0x1400ce7f8
cmp dword [rsp + 0x2c], 0
jne 0x1400ce88c
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14008fec0
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, word [rbx + rdi*2]
cmp cx, 0x5c
je 0x1400ce857
test cx, cx
jne 0x1400ce816
lea rax, [rbx + rdi*2]
mov edx, dword [rsi + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x1400ce8b4
cmp dword [rsp + 0x2c], 2
jne 0x1400ce8c5
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x1400ce8c5
mov rbx, r12
jmp 0x1400ce7d9
cmp byte [r12 + 0x17], 0
js 0x1400ce8f4
mov rax, r12
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, r12
mov r8, qword [rsp + 0x38]
call fcn.14010a15a
jmp 0x1400ce829
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rbx
cmp cx, 0x5c
jne 0x1400ce8de
lea rbx, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, rbx
je 0x1400ce8cb
jmp 0x1400ce8e1
mov rbx, rax
mov r14, qword [rsi + 0x20]
mov rsi, qword [rsi + 0x18]
xor r15d, r15d
mov r13, rbp
jmp 0x1400ce81d
mov rax, qword [r12]
jmp 0x1400ce897
Function at 0x1400cfa40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
movaps xmmword [rsp + 0xa0], xmm6
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], r15
movaps xmm6, xmmword [0x14015c320]
movaps xmmword [rsi + 0x40], xmm6
movaps xmmword [rsi + 0x30], xmm6
movaps xmmword [rsi + 0x20], xmm6
movaps xmmword [rsi + 0x10], xmm6
movaps xmmword [rsi], xmm6
lea rdx, str.CreateDirectoryAndGetError
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x336
call fcn.140048d60
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140048d80
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x1400cfad6
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400cfb22
mov sil, 1
test al, 0x10
je 0x1400cfbbc
lea rcx, [rsp + 0x40]
call fcn.140046cc0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14008fec0
mov eax, esi
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rsi, [rsp + 0x20]
mov qword [rsi + 0x10], r15
movaps xmmword [rsi], xmm6
mov rcx, rdi
mov rdx, rsi
call fcn.1400085d0
movzx ecx, byte [rsi + 0x17]
mov r8, rcx
test cl, cl
jns 0x1400cfb49
mov r8, qword [rsp + 0x28]
movzx eax, byte [rdi + 0x17]
mov rdx, rax
test al, al
jns 0x1400cfb58
mov rdx, qword [rdi + 8]
cmp r8, rdx
je 0x1400cfbda
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.1400cfa40
test al, al
je 0x1400cfc24
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov sil, 1
test eax, eax
je 0x1400cfb93
lea rcx, [rsp + 0x20]
call fcn.14005b0c0
jmp 0x1400cfaef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x1400cfbae
mov rcx, rdi
call fcn.1400c7090
test al, al
jne 0x1400cfb84
test r14, r14
je 0x1400cfc1c
mov ecx, ebx
call fcn.1400c6f60
jmp 0x1400cfc19
test r14, r14
je 0x1400cfbc8
mov dword [r14], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x1400cfaef
test r8, r8
je 0x1400cfc0a
test cl, cl
jns 0x1400cfbe8
mov rsi, qword [rsp + 0x20]
mov rcx, rdi
test al, al
jns 0x1400cfbf2
mov rcx, qword [rdi]
xor edx, edx
movzx eax, word [rsi + rdx*2]
cmp ax, word [rcx + rdx*2]
jne 0x1400cfb5d
inc rdx
cmp r8, rdx
jne 0x1400cfbf4
mov eax, 0xfffffffc
mov ebx, 2
test r14, r14
je 0x1400cfc1c
mov dword [r14], eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x1400cfb84
Function at 0x1400cff40
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rdx
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0x30], rax
movaps xmm0, xmmword [0x14015c320]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov r8d, 6
call fcn.14006d680
xor edi, edi
test eax, eax
je 0x1400cffbd
lea rcx, [rsp + 0x20]
call fcn.14006d4f0
cmp rax, 9
jne 0x1400cffd3
lea rcx, [rsp + 0x20]
call fcn.14006d500
mov rcx, qword [rax]
xor rcx, qword [0x14016f904]
mov al, byte [rax + 8]
xor al, byte [0x14016f90c]
movzx eax, al
or rax, rcx
jne 0x1400cffd3
lea rax, [0x14016f900]
mov eax, dword [rax]
mov dword [rsi], eax
mov edi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14008fec0
mov eax, edi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x20]
call fcn.14006d4f0
cmp rax, 7
jne 0x1400d000b
lea rcx, [rsp + 0x20]
call fcn.14006d500
mov ecx, dword [rax]
xor ecx, dword [0x14016f9cc]
mov eax, dword [rax + 3]
xor eax, dword [0x14016f9cf]
or eax, ecx
jne 0x1400d000b
lea rax, [0x14016f9c8]
jmp 0x1400cffb4
lea rcx, [rsp + 0x20]
call fcn.14006d4f0
cmp rax, 7
jne 0x1400d0046
lea rcx, [rsp + 0x20]
call fcn.14006d500
mov ecx, dword [rax]
xor ecx, dword [0x14016fa94]
mov eax, dword [rax + 3]
xor eax, dword [0x14016fa97]
or eax, ecx
jne 0x1400d0046
lea rax, [0x14016fa90]
jmp 0x1400cffb4
lea rcx, [rsp + 0x20]
call fcn.14006d4f0
cmp rax, 3
jne 0x1400d0087
lea rcx, [rsp + 0x20]
call fcn.14006d500
movzx ecx, word [rax]
xor cx, word [0x14016fb5c]
mov al, byte [rax + 2]
xor al, byte [0x14016fb5e]
movzx eax, al
or ax, cx
jne 0x1400d0087
lea rax, [0x14016fb58]
jmp 0x1400cffb4
lea rcx, [rsp + 0x20]
call fcn.14006d4f0
cmp rax, 3
jne 0x1400cffbd
lea rcx, [rsp + 0x20]
call fcn.14006d500
movzx ecx, word [rax]
xor cx, word [0x14016fc2c]
mov al, byte [rax + 2]
xor al, byte [0x14016fc2e]
movzx eax, al
or ax, cx
jne 0x1400cffbd
lea rax, [0x14016fc28]
jmp 0x1400cffb4
Function at 0x1400d19a6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rsi, rcx
test r8d, r8d
jne 0x1400d19d0
movabs rax, 0x100000001
mov qword [rsi], rax
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov edi, r8d
mov dword [rsi], 0
test dl, 1
jne 0x1400d19f1
xor ebx, ebx
movzx edx, dx
shr edx, 1
inc ebx
mov r14d, edx
test dl, 1
je 0x1400d19e0
jmp 0x1400d19f7
movzx r14d, dx
xor ebx, ebx
bsr eax, r14d
xor eax, 0x1f
mov ecx, 0x20
sub ecx, eax
imul ecx, edi
cmp ecx, 0xde3
jg 0x1400d1ac9
mov ecx, 1
mov ebp, ecx
lea ecx, [rbp + rbp]
cmp ebp, edi
jle 0x1400d1a19
xor r8d, r8d
sar ebp, 2
movzx r9d, dx
jne 0x1400d1a81
xor ebp, ebp
mov rdx, r9
mov dword [rsi], 0
test rdx, rdx
je 0x1400d1a5c
xor eax, eax
mov ecx, edx
and ecx, 0xfffffff
mov dword [rsi + rax*4 + 4], ecx
shr rdx, 0x1c
inc rax
test rdx, rdx
jne 0x1400d1a41
mov word [rsi], ax
test r8b, 1
jne 0x1400d1aeb
test ebp, ebp
jne 0x1400d1ace
imul ebx, edi
mov rcx, rsi
mov edx, ebx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp fcn.1400d13cc
xor r8d, r8d
mov r10d, 1
mov rdx, r9
imul rdx, rdx
test ebp, edi
jne 0x1400d1aa4
sar ebp, 1
je 0x1400d1a34
mov rcx, rdx
shr rcx, 0x20
jne 0x1400d1a34
jmp 0x1400d1a8d
mov ecx, eax
or cl, 0x20
mov r11, rdx
shr r11, cl
test r11, r11
mov ecx, 1
cmove rcx, r9
movzx r8d, r8b
cmovne r8d, r10d
imul rdx, rcx
jmp 0x1400d1a95
call fcn.14011b706
mov rcx, rsi
call fcn.140145b0e
test ebp, edi
je 0x1400d1ae5
mov rcx, rsi
mov edx, r14d
call fcn.1400d168e
sar ebp, 1
je 0x1400d1a6a
jmp 0x1400d1ace
mov rcx, rsi
mov edx, r14d
call fcn.1400d168e
jmp 0x1400d1a66
Function at 0x1400d2450
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
movaps xmmword [rsp + 0x20], xmm6
mov rsi, rcx
lea rax, [0x14015b6f0]
mov qword [rcx], rax
add rcx, 8
call fcn.140057e40
lea rcx, [rsi + 0x10]
call fcn.140057e40
xor edi, edi
mov byte [rsi + 0x18], dil
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], edi
call fcn.140057e40
mov byte [rsi + 0x48], dil
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], rdi
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
movups xmmword [rsi + 0xc0], xmm6
mov ebx, 0x3f800000
mov dword [rsi + 0xd0], ebx
mov dword [rsi + 0xd8], edi
movups xmmword [rsi + 0xe0], xmm6
movups xmmword [rsi + 0xf0], xmm6
mov dword [rsi + 0x100], ebx
movups xmmword [rsi + 0x108], xmm6
movups xmmword [rsi + 0x118], xmm6
mov dword [rsi + 0x128], ebx
movups xmmword [rsi + 0x140], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x150], ebx
movups xmmword [rsi + 0x158], xmm6
movups xmmword [rsi + 0x168], xmm6
mov dword [rsi + 0x178], ebx
mov qword [rsi + 0x198], rdi
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], edi
mov dword [rsi + 0x1a0], 1
lea rcx, [rsi + 0x1a8]
call fcn.1400d2710
lea rcx, [rsi + 0x2f0]
movups xmmword [rsi + 0x2d8], xmm6
mov qword [rsi + 0x2e8], rdi
xor edx, edx
call fcn.1400421b0
lea rcx, [rsi + 0x2f8]
xor edx, edx
call fcn.1400421b0
lea rcx, [rsi + 0x300]
xor edx, edx
call fcn.1400421b0
movups xmmword [rsi + 0x308], xmm6
movups xmmword [rsi + 0x318], xmm6
mov dword [rsi + 0x328], ebx
movups xmmword [rsi + 0x330], xmm6
movups xmmword [rsi + 0x340], xmm6
movups xmmword [rsi + 0x350], xmm6
movups xmmword [rsi + 0x359], xmm6
movups xmmword [rsi + 0x370], xmm6
movups xmmword [rsi + 0x380], xmm6
call fcn.140008800
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x190], eax
cdqe
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x188], rax
mov rcx, rsi
call fcn.1400d2660
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x1400d264e
call fcn.140042fe0
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.1400432c0
mov qword [0x140184a00], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
jmp 0x1400d261d
Function at 0x1400d9280
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x1400d92bc
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400d92c6
add rdi, rbx
sub rsi, rbx
jne 0x1400d929a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14008d5e0
int3

Function at 0x1400d92d0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0x50], rax
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rdx + 0x20]
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
xor eax, eax
lea rcx, [0x140168e90]
movaps xmm0, xmmword [rsp + rax + 0x20]
xorps xmm0, xmmword [rax + rcx]
movaps xmmword [rsp + rax + 0x20], xmm0
add rax, 0x10
cmp rax, 0x30
jne 0x1400d930b
lea rdi, [rsi + 0xf8]
mov eax, dword [0x14018a254]
lea rcx, [rsp + 0x20]
bt eax, 0x19
jae 0x1400d9391
mov edx, 0x100
mov r8, rsi
call fcn.1400166a0
lea rax, [0x1400151a0]
test rdi, rdi
je 0x1400d935e
lea rcx, [0x140014440]
mov qword [rdi], rcx
mov qword [rsi + 0x100], rax
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x108], xmm0
mov qword [rsi + 0x118], 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14008fec0
nop
add rsp, 0x58
pop rdi
pop rsi
ret
bt eax, 9
jae 0x1400d93b9
mov edx, 0x100
mov r8, rsi
call fcn.140017890
lea rax, [0x140017d60]
test rdi, rdi
je 0x1400d935e
lea rcx, [0x140017a60]
jmp 0x1400d935b
mov rdx, rsi
call fcn.140124b10
lea rax, [0x140125460]
test rdi, rdi
je 0x1400d935e
lea rcx, [0x1401244a0]
jmp 0x1400d935b

Function at 0x1400db05d
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x10
call fcn.14008d2b8
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x14010a9e0]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.14008e2ac
mov qword [rbx], rax
test rax, rax
je 0x1400db0b4
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x1400dc4b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
lea rdi, [rcx + 8]
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1400dc4db
mov rcx, rdi
add rsp, 0x28
pop rdi
pop rsi
jmp sub.KERNEL32.dll_ReleaseSRWLockExclusive
lock inc dword [rsi]
mov rcx, rdi
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov rcx, rsi
call fcn.140120bb0
lock dec dword [rsi]
je 0x1400dc4fa
add rsp, 0x28
pop rdi
pop rsi
ret
mov rcx, rsi
call fcn.140120b50
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400013b0

Function at 0x14010b6d0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
mov edx, 1
jmp fcn.140006530
Function at 0x14010d120
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 [0x14017e028]
xor rax, rsp
mov qword [rsp + 0xd0], rax
call fcn.140058100
cmp eax, 8
jg 0x14010d160
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x14010d288
mov r14d, eax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x70]
mov qword [rdi + 0x50], r15
movaps xmm0, xmmword [0x14015c320]
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.140048d60
xor esi, esi
mov rcx, rdi
mov rdx, rbp
xor r8d, r8d
call fcn.140048d80
cmp byte [rbx + 0x17], 0
mov rcx, rbx
jns 0x14010d1cd
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14010d27e
test al, 0x10
jne 0x14010d271
mov qword [rsp + 0x48], r15
cmp byte [rbx + 0x17], 0
jns 0x14010d1f2
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.140086fc0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14010d2aa
mov rax, qword [rsp + 0x48]
inc rax
cmp rax, 2
jb 0x14010d27e
call fcn.140041560
mov rdi, qword [rsp + 0x48]
mov rcx, qword [0x140184a28]
test rcx, rcx
je 0x14010d358
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax]
jmp 0x14010d27e
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
lea rcx, [rsp + 0x70]
call fcn.140046cc0
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14008fec0
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 0x14010d351
mov rbx, rax
movups xmm0, xmmword [0x14015fb20]
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 0x14010d23f
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 0x14010d344
mov ecx, edi
call rax
mov edi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14010d23f
xor esi, esi
jmp 0x14010d23f
call fcn.1400c7320
mov rcx, qword [0x140184a28]
jmp 0x14010d267
Function at 0x14010d370
Capabilities:
Move file

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x40]
mov qword [rbx + 0x50], rax
movaps xmm0, xmmword [0x14015c320]
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.140048d60
xor ebp, ebp
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.140048d80
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x14010d3fd
mov rcx, qword [rsi + 8]
cmp rcx, 0x103
ja 0x14010d424
test al, al
jns 0x14010d40d
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.140046cc0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14008fec0
mov eax, ebp
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x14010d550
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov esi, ecx
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0x30], rax
movsxd rbx, edx
movsxd rax, ecx
sub rbx, rax
inc rbx
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x28]
mov qword [rsp + 0x28], r14
mov rcx, rdi
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14010d5db
mov rax, 0xffffffffffffffff
xor edx, edx
div rbx
mov rcx, 0xfffffffffffffffe
sub rcx, rdx
mov rax, qword [rsp + 0x28]
cmp rax, rcx
ja 0x14010d585
xor edx, edx
div rbx
add esi, edx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14008fec0
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x14010d700
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xd8
movaps xmmword [rsp + 0xc0], xmm6
mov rsi, rcx
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x60]
mov qword [rdi + 0x50], r14
movaps xmm6, xmmword [0x14015c320]
movaps xmmword [rdi + 0x40], xmm6
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.GetLength
lea r8, str..._.._base_files_file_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x9c
call fcn.140048d60
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140048d80
mov qword [rbx], r14
mov rcx, qword [rsi]
lea rdi, [rsp + 0x40]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov esi, eax
mov rbx, qword [rdi]
test byte [0x14017ff80], 0x19
jne 0x14010d7e4
xor edi, edi
cmp esi, 1
sbb rdi, rdi
or rdi, rbx
lea rcx, [rsp + 0x60]
call fcn.140046d50
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14008fec0
mov rax, rdi
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], r14
movaps xmmword [rdi], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x14017ff80]
lea r9, [0x1401639a1]
mov rcx, rdi
mov dl, 0x45
call fcn.14003a350
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14010d7a7
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14010d7a7

Function at 0x14010dc40
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov eax, 4
lea r15, [rsp + 0x3c]
mov dword [r15], eax
lea r12, [rsp + 0x38]
mov dword [r12], eax
lea rsi, [rsp + 0x34]
mov dword [rsi], 0
lea rdx, str.ReadValue
lea r8, str..._.._base_win_registry.cc
lea rcx, [rsp + 0x40]
mov r9d, 0x19e
call fcn.140048d60
mov rcx, qword [rbx]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14010dd02
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x14010dce5
cmp dword [rsp + 0x38], 4
jne 0x14010dce5
mov eax, dword [rsp + 0x34]
mov dword [r14], eax
xor edi, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14008fec0
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov edi, eax
jmp 0x14010dce5

Function at 0x140111850
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1401814d8]
cmp ecx, 0xffffffff
je 0x140111875
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 0x140111870
Function at 0x14011fb10
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0x28], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x20]
mov qword [rsp + 0x20], rbx
mov rcx, rdi
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14011fb8e
mov rax, 0xffffffffffffffff
xor edx, edx
div rsi
mov rcx, 0xfffffffffffffffe
sub rcx, rdx
mov rax, qword [rsp + 0x20]
cmp rax, rcx
ja 0x14011fb38
xor edx, edx
div rsi
mov rsi, rdx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14008fec0
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
int3