joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400276c0
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x568
mov byte [rsp + 0x2f], r8b
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea r14, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.1400bad40
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.14003ac10
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400f7a90]
movaps xmmword [rdi], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.14003ae00
movsx rax, byte [rdi + 0x17]
test rax, rax
jns 0x14002775a
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14002782e
lea r14, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r12d, r12d
mov r8d, 0x250
mov rcx, r14
mov dl, 0xaa
call fcn.1400bad40
mov rcx, r15
mov rdx, r14
call fcn.14003adb0
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x1400278bd
mov rcx, r14
call fcn.14003abe0
test al, al
jne 0x14002787c
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1400277c8
mov rcx, qword [rsp + 0x30]
call rbx
test eax, eax
jne 0x140027875
call r13
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r12d, r12d
cmovne ebp, r12d
mov rcx, r14
call fcn.1400185b0
mov rcx, r15
mov rdx, r14
call fcn.14003ae00
mov rcx, rdi
mov rdx, r14
call fcn.14002b140
mov rcx, r14
call fcn.14006f460
movsx rax, byte [rsp + 0x47]
test rax, rax
jns 0x140027822
mov rax, qword [rsp + 0x38]
mov r12d, ebp
test rax, rax
jne 0x140027781
lea rcx, [rsp + 0x30]
call fcn.14006f460
lea rcx, [rsp + 0x298]
call fcn.14003ad40
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x14002785f
call fcn.1400870e0
int3
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
jmp 0x1400277e5
xor ebp, ebp
cmp byte [rsp + 0x2f], 0
je 0x1400277e5
mov rcx, rdi
mov rdx, rsi
mov r8b, 1
call fcn.1400276c0
test eax, eax
jne 0x140027910
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x1400278aa
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1400277e5
jmp 0x1400277d2
cmp byte [rsp + 0x2f], 0
je 0x1400278e5
cmp byte [rsp + 0x47], 0
js 0x1400278d2
lea rcx, [rsp + 0x30]
jmp 0x1400278d7
mov rcx, qword [rsp + 0x30]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1400277a9
lea rcx, [rsp + 0x48]
call fcn.14003abe0
test al, al
jne 0x1400278f9
mov edx, dword [rsp + 0x48]
jmp 0x1400278c4
lea rcx, [rsp + 0x48]
call fcn.14003abe0
test al, al
je 0x1400277b9
jmp 0x140027875
mov ebp, eax
jmp 0x1400277e5
Function at 0x14002b230
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r8, qword [rcx]
mov r9, qword [rcx + 8]
cmp r9, 2
jb 0x14002b360
cmp word [r8 + 2], 0x3a
jne 0x14002b360
movzx eax, word [r8]
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp ax, 0x1a
jae 0x14002b360
mov ebx, 2
xor eax, eax
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, 2
jb 0x14002b369
cmp word [rcx + 2], 0x3a
jne 0x14002b369
movzx r10d, word [rcx]
and r10d, 0xffffffdf
add r10d, 0xffffffa5
cmp r10w, 0xffe6
setae r10b
not al
test al, r10b
je 0x14002b369
cmp r9, rbx
cmovae r9, rbx
lea rdx, [rsp + 0x38]
mov qword [rdx], rcx
mov qword [rdx + 8], 2
lea rcx, [rsp + 0x28]
mov qword [rcx], r8
mov qword [rcx + 8], r9
mov r8d, 1
call fcn.140075350
test al, al
je 0x14002b316
mov rcx, qword [rdi + 8]
sub rcx, rbx
jb 0x14002b38d
mov rax, qword [rsi + 8]
cmp rax, 1
jbe 0x14002b38d
add rax, 0xfffffffffffffffe
cmp rcx, rax
je 0x14002b337
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x14002b32f
call fcn.1400870e0
int3
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
mov al, 1
test rcx, rcx
je 0x14002b318
add ebx, ebx
add rbx, qword [rdi]
mov rdx, qword [rsi]
xor r8d, r8d
movzx r9d, word [rbx + r8*2]
cmp r9w, word [rdx + r8*2 + 4]
jne 0x14002b316
inc r8
cmp rcx, r8
jne 0x14002b349
jmp 0x14002b318
mov al, 1
xor ebx, ebx
jmp 0x14002b284
cmp r9, rdx
jne 0x14002b316
mov al, 1
test r9, r9
je 0x14002b318
xor edx, edx
movzx r10d, word [r8 + rdx*2]
cmp r10w, word [rcx + rdx*2]
jne 0x14002b316
inc rdx
cmp r9, rdx
jne 0x14002b377
jmp 0x14002b318
lea rcx, str.string_view::substr
call fcn.1400bb7e0
int3

Function at 0x14002d140
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x14012fda8]
test rdi, rdi
jne 0x14002d1f2
mov ecx, 0x50
call fcn.140085d40
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.140085d40
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x14002d21b
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x14012fda8], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14002d21b
mov rcx, rax
call fcn.1400a4b38
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.14002d220
test rdi, rdi
sete al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x14002d20f
call fcn.1400870e0
int3
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x58
pop rdi
pop rsi
ret
ud2
Function at 0x140030aa0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x230
mov rsi, rcx
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400bad40
mov word [rdi], 0
lea rcx, str.PROGRAMFILES
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140030b27
mov ebx, eax
cmp word [rsp + rbx*2 + 0x1e], 0x5c
je 0x140030c8e
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140030b14
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, rbx
call fcn.1400a02c4
test eax, eax
je 0x140030c22
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMFILES_X86_
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140030b7c
mov ebx, eax
cmp word [rsp + rbx*2 + 0x1e], 0x5c
je 0x140030c9c
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140030b69
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, rbx
call fcn.1400a02c4
test eax, eax
je 0x140030c56
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMW6432
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140030bcd
mov ebx, eax
cmp word [rsp + rbx*2 + 0x1e], 0x5c
je 0x140030caa
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140030bbe
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, rbx
call fcn.1400a02c4
test eax, eax
je 0x140030bf4
xor eax, eax
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x140030be9
call fcn.1400870e0
int3
add rsp, 0x230
pop rbx
pop rdi
pop rsi
ret
movsx rcx, byte [rsi + 0x17]
mov rdx, rcx
test rcx, rcx
jns 0x140030c05
mov rdx, qword [rsi + 8]
mov al, 1
cmp rdx, rbx
je 0x140030bcf
jb 0x140030cb8
test cl, cl
jns 0x140030c19
mov rsi, qword [rsi]
cmp word [rsi + rbx*2], 0x5c
jne 0x140030bcd
jmp 0x140030bcf
movsx rcx, byte [rsi + 0x17]
mov rdx, rcx
test rcx, rcx
jns 0x140030c33
mov rdx, qword [rsi + 8]
mov al, 1
cmp rdx, rbx
je 0x140030bcf
jb 0x140030cb8
mov rdx, rsi
test cl, cl
jns 0x140030c46
mov rdx, qword [rsi]
cmp word [rdx + rbx*2], 0x5c
jne 0x140030b27
jmp 0x140030bcf
movsx rcx, byte [rsi + 0x17]
mov rdx, rcx
test rcx, rcx
jns 0x140030c67
mov rdx, qword [rsi + 8]
mov al, 1
cmp rdx, rbx
je 0x140030bcf
jb 0x140030cb8
mov rdx, rsi
test cl, cl
jns 0x140030c7e
mov rdx, qword [rsi]
cmp word [rdx + rbx*2], 0x5c
jne 0x140030b7c
jmp 0x140030bcf
dec rbx
jne 0x140030afc
jmp 0x140030b27
dec rbx
jne 0x140030b51
jmp 0x140030b7c
dec rbx
jne 0x140030ba6
jmp 0x140030bcd
ud2
Function at 0x1400319e0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140031b9d
mov ebx, eax
mov r15d, eax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
movaps xmm0, xmmword [0x1400f7a90]
movaps xmmword [rsp + 0x20], xmm0
cmp ebx, 0xb
jae 0x140031b3d
lea r14, [rsp + 0x20]
mov byte [r14 + 0x17], bl
lea r8, [r15 + r15]
mov rcx, r14
xor edx, edx
call fcn.1400bad40
mov word [r14 + r15*2], 0
cmp byte [rsp + 0x37], 0
js 0x140031a83
lea rdx, [rsp + 0x20]
jmp 0x140031a88
mov rcx, r8
cmp r8, rdx
jb 0x140031b2b
lea rcx, [rsp + 0x20]
mov byte [rcx + 0x17], al
jmp 0x140031ad0
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140031b7b
mov edx, eax
movsx r8, byte [rsp + 0x37]
test r8, r8
mov rcx, qword [rsp + 0x28]
mov r9, r8
cmovs r9, rcx
cmp r9, rdx
jbe 0x140031b7b
test r8b, r8b
jns 0x140031a6d
cmp rcx, rdx
jb 0x140031b2b
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rdx
mov word [rcx + rdx*2], 0
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
cmp byte [rsp + 0x37], 0
js 0x140031b8e
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x140031b1a
call fcn.1400870e0
int3
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
sub rdx, rcx
lea rcx, [rsp + 0x20]
xor r8d, r8d
call fcn.140067420
jmp 0x140031ad6
mov rax, r15
or rax, 3
lea rcx, [rax + 1]
cmp rax, 0xb
mov r12d, 0xd
cmovne r12, rcx
lea rcx, [r12 + r12]
call fcn.140085d40
mov r14, rax
mov qword [rsp + 0x20], rax
bts r12, 0x3f
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r15
jmp 0x140031a4a
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x140031af8
mov rcx, qword [rsp + 0x20]
call fcn.140085d7c
jmp 0x140031b03
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400870e0
jmp 0x140031b1a
Function at 0x140031f40
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rdi, rcx
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp byte [rcx + 0x17], 0
mov rsi, rcx
jns 0x140031f68
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140031fbb
test al, 0x10
je 0x1400320e7
lea rcx, str._hs___ls_directory_exists___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140032110
mov dil, 1
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x140031fae
call fcn.1400870e0
int3
mov eax, edi
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
movsx r9, byte [rdi + 0x17]
mov rax, rdi
test r9, r9
jns 0x140031fe0
mov rax, qword [rdi]
mov r9, qword [rdi + 8]
add r9, r9
test r9, r9
je 0x14003204c
movzx ecx, word [rax + r9 - 2]
add r9, 0xfffffffffffffffe
cmp ecx, 0x5c
je 0x140031ffc
cmp ecx, 0x2f
jne 0x140031fe3
cmp r9, 0xfffffffffffffffe
je 0x14003204c
sar r9, 1
lea rax, [rsp + 0x67]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.1400671d0
movups xmm0, xmmword [rbx]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
call fcn.140031f40
test al, al
jne 0x14003204c
lea rcx, str.Failed_to_create_one_of_the_parent_directories
call fcn.140032110
jmp 0x1400320cb
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x1400320cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x1400320b9
lea r14, [rsp + 0x28]
mov rcx, r14
mov rdx, rsi
call fcn.140065ce0
cmp byte [r14 + 0x17], 0
jns 0x140032089
mov r14, qword [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
setne al
and ebp, 0x10
shr ebp, 4
and bpl, al
cmp byte [rsp + 0x3f], 0
jns 0x1400320b4
mov rcx, qword [rsp + 0x28]
call fcn.140085d7c
test bpl, bpl
jne 0x1400320cd
lea rcx, str.Failed_to_create_directory__ls__last_error_is__d_n
mov rdx, rsi
mov r8d, ebx
call fcn.140032110
xor edi, edi
cmp byte [rsp + 0x57], 0
jns 0x140031f97
mov rcx, qword [rsp + 0x40]
call fcn.140085d7c
jmp 0x140031f97
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140032110
xor edi, edi
jmp 0x140031f97
Function at 0x140032110
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
lea rdi, [rsp + 0x68]
mov qword [rdi], rdx
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r9
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
call fcn.140059ce0
mov rcx, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdi, [0x14012fe10]
mov r8d, 0x400
mov rdx, rdi
mov r9, rsi
call fcn.140089a64
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x14003218b
call fcn.1400870e0
int3
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140038110
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140130740]
mov ecx, dword [0x14012cda8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140038177
lea rax, [0x140130738]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x14003816d
call fcn.1400870e0
int3
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140130740]
call fcn.140085dcc
cmp dword [0x140130740], 0xffffffff
jne 0x14003814c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400bad40
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x88
call fcn.140085d40
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140130788]
mov ecx, dword [0x14012cda8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140038237
lea r8, [0x140130758]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140038330
mov qword [0x140130738], rsi
lea rcx, [0x140130740]
call fcn.140085e80
jmp 0x14003814c
lea rcx, [0x140130788]
call fcn.140085dcc
cmp dword [0x140130788], 0xffffffff
jne 0x140038208
xorps xmm0, xmm0
movups xmmword [0x140130778], xmm0
movups xmmword [0x140130768], xmm0
movups xmmword [0x140130758], xmm0
lea rcx, [0x140130758]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140130788]
call fcn.140085e80
jmp 0x140038208

Function at 0x140038280
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140130788]
mov ecx, dword [0x14012cda8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400382bb
movzx eax, word [0x140130758]
cmp eax, 9
jne 0x140038303
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x140130788]
call fcn.140085dcc
cmp dword [0x140130788], 0xffffffff
jne 0x1400382a5
xorps xmm0, xmm0
movups xmmword [0x140130778], xmm0
movups xmmword [0x140130768], xmm0
movups xmmword [0x140130758], xmm0
lea rcx, [0x140130758]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140130788]
call fcn.140085e80
jmp 0x1400382a5
test eax, eax
je 0x1400382b6
cmp eax, 6
jne 0x140038313
mov eax, 2
jmp 0x1400382b6
cmp eax, 0xc
jne 0x14003831f
mov eax, 3
jmp 0x1400382b6
mov eax, 4
jmp 0x1400382b6
Function at 0x140039040
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x1400f7a90]
lea r14, [rsp + 0x50]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x99
call fcn.140073c70
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400740b0
test esi, esi
js 0x140039150
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.14007f750
test al, al
jne 0x140039157
lea r14, [rsp + 0x2c]
mov dword [r14], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [r14]
lea rcx, [rsp + 0x30]
call fcn.14007f7d0
lea rcx, [rsp + 0x50]
call fcn.140074140
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x14003913f
call fcn.1400870e0
int3
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14003911b
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1400e4a50
jmp 0x1400390e0
Function at 0x140039290
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x1400f7a90]
lea r14, [rsp + 0x60]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.DoInitialize
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x174
call fcn.140073c70
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400740b0
mov eax, ebx
and eax, 1
neg eax
and eax, 3
test bl, 2
mov edx, 1
cmove edx, eax
test bl, 4
mov ecx, 4
cmovne edx, ecx
test bl, 8
mov r8d, 2
cmove r8d, edx
test bl, 0x10
mov eax, 5
cmove eax, r8d
test eax, eax
je 0x140039505
mov edx, ebx
and edx, 0x40
shl edx, 0x18
test bl, bl
cmovns ecx, edx
mov r8d, ebx
rol r8d, 0x1a
and r8d, 0x80000100
or r8d, ecx
bt ebx, 0x12
jb 0x1400394da
mov edx, ebx
shr edx, 4
and edx, 0x10000
or edx, r8d
mov ecx, ebx
shr ecx, 8
and ecx, 3
mov r8d, ebx
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov r15d, ebx
and r15d, 0x400
mov ecx, r15d
shl ecx, 0x14
mov r9d, ebx
shr r9d, 3
and r9d, 0x100
or r9d, ecx
mov ecx, ebx
shr ecx, 0xb
and ecx, 2
or ecx, r9d
mov r10d, ebx
shl r10d, 0xd
and r10d, 0x4000000
or r10d, ecx
mov r9d, ebx
shl r9d, 8
and r9d, 0xa000000
or r9d, r10d
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x1400393f3
mov rcx, qword [rdi]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x30], 0
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp qword [rsi], rax
je 0x14003944d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400394ec
mov rax, r14
inc rax
cmp rax, 2
jb 0x140039442
mov qword [rsi], r14
call fcn.140073c90
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
inc r14
cmp r14, 2
jb 0x1400394ad
shr r15d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r15b
test bl, 4
jne 0x1400394bf
test bl, 0xa
je 0x140039473
mov byte [rsi + 0x28], 1
bt ebx, 0x15
jb 0x1400394d0
lea rcx, [rsp + 0x60]
call fcn.140074140
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x14003949d
call fcn.1400870e0
int3
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140039180
mov dword [rsi + 0x24], eax
jmp 0x140039479
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x140039473
mov rcx, rdi
call fcn.1400276b0
jmp 0x140039479
bt ebx, 0x15
jb 0x140039521
or r8d, 0x20000000
jmp 0x140039371
call fcn.140073c90
mov rcx, qword [rsi]
call fcn.140073ca0
mov qword [rsi], 0
jmp 0x14003942e
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
call fcn.1400d7a80
jmp 0x140039479
int3
Function at 0x140040a40
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x1400f7a90]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x140040bbc
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x140130fc0]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.1400a4f8c
mov rcx, rbx
call fcn.1400a4b38
sub r14, rax
lea rdx, [0x1400fb0ea]
mov rcx, rbx
mov r8, r14
call fcn.1400a4f8c
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.1400bad40
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
lea rcx, str.PROGRAMFILES
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140040b1c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400a4fd4
test eax, eax
je 0x140040be8
lea rcx, str.PROGRAMFILES_X86_
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140040b57
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400a4fd4
test eax, eax
je 0x140040be8
xor eax, eax
mov byte [0x140130bb1], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140108404]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140040bef
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x140112388]
test eax, eax
je 0x140040bef
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x1401311c0], al
mov byte [0x140130bb0], 1
test esi, esi
setns al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x140040bdb
call fcn.1400870e0
int3
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x140040b59
xor eax, eax
jmp 0x140040baf