joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140051bd0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov ebp, r8d
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x50], rax
movaps xmm0, xmmword [0x1402183e0]
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, [0x14021fe8d]
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov r9d, 0x359
call fcn.1400ed980
xor r15d, r15d
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
call fcn.1400f44c0
cmp byte [rdi + 0x17], 0
jns 0x140051c62
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov rcx, rdi
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
test rax, rax
je 0x140051cb9
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x140051d41
call fcn.1400ed9a0
mov r15, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdi, [r15 + 1]
cmp rdi, 2
jb 0x140051d49
lea rsi, [rsp + 0x40]
mov dword [rsi], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, r15
mov rdx, r14
mov r8d, ebp
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsi]
xor edx, edx
cmp eax, 1
sbb edx, edx
cmp ecx, ebp
mov esi, 0xffffffff
cmove esi, ecx
or esi, edx
cmp rdi, 2
jb 0x140051d15
call fcn.1400ed9a0
mov rcx, r15
call fcn.1400f1110
lea rcx, [rsp + 0x60]
call fcn.1400f4520
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140106490
mov eax, esi
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor r15d, r15d
jmp 0x140051cb1
mov esi, 0xffffffff
jmp 0x140051d02

Function at 0x140051d50
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1402183e0]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, [0x14021feac]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x3a1
call fcn.1400ed980
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400f44c0
cmp byte [rdi + 0x17], 0
jns 0x140051dd4
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.1400f4520
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140106490
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140051f70
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov esi, r8d
mov r14, rdx
mov r15, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x50], r12
movaps xmm0, xmmword [0x1402183e0]
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.WriteAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0x88
call fcn.1400ed980
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400f44c0
test esi, esi
js 0x140052078
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.1400f41f0
test al, al
jne 0x14005207f
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0xaaaaaaaa
mov rcx, qword [r15]
mov qword [rsp + 0x20], 0
mov rdx, r14
mov r8d, esi
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [rdi]
lea rcx, [rsp + 0x30]
call fcn.1400f4210
lea rcx, [rsp + 0x50]
call fcn.1400f4520
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140106490
mov eax, esi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14005204b
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.140174b50
jmp 0x140052012

Function at 0x1400520a0
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov r14, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rsi, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x50], rsi
movaps xmm0, xmmword [0x1402183e0]
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.GetLength
lea r8, str..._.._base_files_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0x9c
call fcn.1400ed980
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400f44c0
mov qword [rbx + 8], rsi
mov qword [rbx], 0
call fcn.1400f41f0
test al, al
jne 0x140052184
lea rdi, [rsp + 0x28]
mov qword [rdi], rsi
mov rcx, qword [r14]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rdi]
lea rcx, [rsp + 0x30]
call fcn.1400f4210
lea rcx, [rsp + 0x50]
call fcn.1400f4520
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140106490
mov rax, rsi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, r14
xor r9d, r9d
call fcn.140174b50
jmp 0x140052131
Function at 0x1400521a0
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x50], r15
movaps xmm0, xmmword [0x1402183e0]
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.SetLength
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0xa9
call fcn.1400ed980
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.1400f44c0
mov qword [rdi + 8], r15
mov qword [rdi], 0
call fcn.1400f41f0
test al, al
jne 0x1400522cc
lea r8, [rsp + 0x28]
mov qword [r8], r15
mov rcx, qword [rsi]
xor ebx, ebx
xor edx, edx
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140052297
mov rcx, qword [rsi]
xor ebx, ebx
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140052297
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400522e8
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsi]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne bl
lea rcx, [rsp + 0x30]
call fcn.1400f4210
lea rcx, [rsp + 0x50]
call fcn.1400f4520
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140106490
mov eax, ebx
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rdx, str.File::SetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
mov r9, r14
call fcn.140174b50
jmp 0x14005223a
xor ebx, ebx
jmp 0x140052297
Function at 0x1400525b0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r15d, r8d
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x1402183e0]
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.DoInitialize
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r9d, 0x160
call fcn.1400ed980
mov rcx, rbp
mov rdx, rdi
xor r8d, r8d
call fcn.1400f44c0
mov eax, r15d
and eax, 1
neg eax
and eax, 3
test r15b, 2
mov edx, 1
cmove edx, eax
test r15b, 4
mov ecx, 4
cmovne edx, ecx
test r15b, 8
mov ebp, 2
cmove ebp, edx
test r15b, 0x10
mov eax, 5
cmove eax, ebp
test eax, eax
je 0x140052812
mov edx, r15d
and edx, 0x40
shl edx, 0x18
test r15b, r15b
cmovns ecx, edx
mov edx, r15d
rol edx, 0x1a
mov edi, r15d
shl edi, 0xb
and edi, 0x20000000
mov esi, r15d
shr esi, 4
and esi, 0x10000
and edx, 0x80000100
or edx, edi
or edx, esi
or edx, ecx
mov ecx, r15d
shr ecx, 8
and ecx, 3
mov r8d, r15d
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov edi, r15d
and edi, 0x400
mov ecx, edi
shl ecx, 0x14
mov ebp, r15d
shr ebp, 3
and ebp, 0x100
or ebp, ecx
mov ecx, r15d
shr ecx, 0xb
and ecx, 2
or ecx, ebp
mov ebp, r15d
shl ebp, 0xd
and ebp, 0x4000000
or ebp, ecx
mov ecx, r15d
shl ecx, 8
mov esi, ecx
and esi, 0x2000000
or esi, ebp
and ecx, 0x8000000
or ecx, esi
cmp byte [rbx + 0x17], 0
jns 0x140052724
mov rbx, qword [rbx]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], 0
mov rcx, rbx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp qword [r14], rax
je 0x140052780
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r14]
inc rax
cmp rax, 2
jae 0x1400527e7
mov rax, rbx
inc rax
cmp rax, 2
jb 0x140052775
mov qword [r14], rbx
call fcn.1400ed9a0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [r14]
inc rbx
cmp rbx, 2
jae 0x1400527c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140052440
mov dword [r14 + 0x24], eax
lea rcx, [rsp + 0x60]
call fcn.1400f4520
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140106490
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
shr edi, 0xa
mov dword [r14 + 0x24], 0
mov byte [r14 + 0x29], dil
test r15b, 4
jne 0x140052800
test r15b, 0xa
je 0x14005279a
mov byte [r14 + 0x28], 1
jmp 0x14005279a
call fcn.1400ed9a0
mov rcx, qword [r14]
call fcn.1400f1110
mov qword [r14], 0
jmp 0x140052761
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [r14 + 0x28]
jmp 0x14005279a
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [r14 + 0x24], 0xffffffff
jmp 0x14005279a
Function at 0x140052920
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140052968
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140052971
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140052958
mov qword [rdi], rsi
call fcn.1400ed9a0
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400ed9a0
mov rcx, qword [rdi]
call fcn.1400f1110
mov qword [rdi], 0
jmp 0x140052946

Function at 0x1400529c0
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov rsi, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x50], rax
movaps xmm0, xmmword [0x1402183e0]
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.MapImageToMemory
lea r8, str..._.._base_files_memory_mapped_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x1a
call fcn.1400ed980
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1400f44c0
mov rcx, rsi
call fcn.140051e10
test al, al
je 0x140052b17
mov rcx, rsi
call fcn.140051e20
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 0x11000002
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
cmp qword [rsi + 0x40], rax
je 0x140052abf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x140052b40
mov rax, rbx
inc rax
cmp rax, 2
jb 0x140052ab3
mov qword [rsi + 0x40], rbx
call fcn.1400ed9a0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsi + 0x40]
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140052b5b
mov qword [rsp + 0x20], 0
xor edi, edi
mov rcx, rbx
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x30], rax
test rax, rax
je 0x140052b17
lea rdx, fcn.140138430
lea rcx, [rsp + 0x30]
mov qword [rcx], rdx
mov qword [rcx + 8], rax
call fcn.14007e6b0
mov eax, dword [rax + 0x50]
mov qword [rsi + 0x38], rax
mov dil, 1
lea rcx, [rsp + 0x50]
call fcn.1400f4520
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140106490
mov eax, edi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400ed9a0
mov rcx, qword [rsi + 0x40]
call fcn.1400f1110
mov qword [rsi + 0x40], 0
jmp 0x140052a9e
xor edi, edi
jmp 0x140052b17
Function at 0x140052b60
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov ebx, r8d
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x60]
mov qword [rdi + 0x50], rax
movaps xmm0, xmmword [0x1402183e0]
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.MapFileRegionToMemory
lea r8, str..._.._base_files_memory_mapped_file_win.cc
lea rbp, [rsp + 0x40]
mov rcx, rbp
mov r9d, 0x39
call fcn.1400ed980
xor r15d, r15d
mov rcx, rdi
mov rdx, rbp
xor r8d, r8d
call fcn.1400f44c0
mov rcx, rsi
call fcn.140051e10
test al, al
je 0x140052ced
test ebx, ebx
jne 0x140052d1a
mov ebx, 2
xor edi, edi
mov rcx, rsi
call fcn.140051e20
mov dword [rsp + 0x20], r15d
mov qword [rsp + 0x28], 0
mov rcx, rax
xor edx, edx
mov r8d, ebx
mov r9d, edi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
cmp qword [rsi + 0x40], rax
je 0x140052c72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x140052d30
mov rax, rdi
inc rax
cmp rax, 2
jb 0x140052c66
mov qword [rsi + 0x40], rdi
call fcn.1400ed9a0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0x40]
inc rdi
cmp rdi, 2
jb 0x140052d9c
mov dword [rsp + 0x3c], 0
lea rdx, [0x14021f9b0]
mov rcx, r14
call fcn.14004b860
test al, al
je 0x140052d4b
mov rcx, rsi
call fcn.1400520a0
xor r15d, r15d
test rax, rax
jle 0x140052ced
mov qword [rsi + 0x38], rax
xor r8d, r8d
xor eax, eax
and ebx, 2
add ebx, 2
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x20], rax
mov edx, ebx
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x30], rax
test rax, rax
je 0x140052d9c
movsxd rcx, dword [rsp + 0x3c]
add rax, rcx
mov qword [rsi + 0x30], rax
mov r15b, 1
lea rcx, [rsp + 0x60]
call fcn.1400f4520
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140106490
mov eax, r15d
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp ebx, 3
jne 0x140052da4
mov rcx, rsi
call fcn.1400529c0
mov r15d, eax
jmp 0x140052ced
call fcn.1400ed9a0
mov rcx, qword [rsi + 0x40]
call fcn.1400f1110
mov qword [rsi + 0x40], 0
jmp 0x140052c51
xor eax, eax
lea rdi, [rsp + 0x40]
mov qword [rdi], rax
lea r9, [rsp + 0x30]
mov qword [r9], rax
mov rcx, qword [r14]
mov rdx, qword [r14 + 8]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov r8, rdi
call fcn.140156840
mov r15, qword [rdi]
test r15, r15
js 0x140052d9c
mov rcx, qword [r14 + 8]
movsxd rax, dword [rsp + 0x3c]
add rax, rcx
js 0x140052d9c
mov r8, r15
shr r8, 0x20
mov qword [rsi + 0x38], rcx
jmp 0x140052cb7
xor r15d, r15d
jmp 0x140052ced
cmp ebx, 2
jne 0x140052dbe
mov r15, qword [r14 + 8]
mov rdi, r15
shr rdi, 0x20
mov ebx, 4
jmp 0x140052c08
cmp ebx, 1
jne 0x140052dcd
mov ebx, 4
jmp 0x140052c06
xor ebx, ebx
jmp 0x140052c06
Function at 0x1400536f0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x20], 0
test rdx, rdx
je 0x14005379d
mov rdi, rdx
lea r14, [rsp + 0x40]
mov qword [r14], 0xffffffffffffffff
mov r15, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r15
mov rbx, rax
call r15
xor ecx, ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 0x400
mov rcx, rax
mov rdx, rdi
mov r8, rbx
mov r9, r14
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rbx, qword [r14]
cmp qword [rsi], rbx
je 0x14005379d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400537b9
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140053795
mov qword [rsi], rbx
call fcn.1400ed9a0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140106490
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400ed9a0
mov rcx, qword [rsi]
call fcn.1400f1110
mov qword [rsi], 0
jmp 0x140053783
Function at 0x140054360
Capabilities:
Create thread

Disassembly:
jmp 0x140054360
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov rbp, r8
mov rsi, rdx
mov r15, rcx
xor ebx, ebx
test rcx, rcx
setne bl
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebx, 0x10
mov ecx, 0x10
call fcn.140105b78
mov r14, rax
mov qword [rax], rsi
test rbp, rbp
setne byte [rax + 8]
mov dword [rax + 0xc], edi
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], 0
lea r8, [0x1400546c0]
xor ecx, ecx
mov rdx, r15
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140054401
test rbp, rbp
je 0x140054431
mov qword [rbp], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140106490
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x14005441a
mov ebp, eax
cmp eax, 0x5af
je 0x14005441a
cmp ebp, 0xe
jne 0x14005443c
mov rcx, r15
call fcn.140180330
test r14, r14
je 0x1400543df
mov rcx, r14
call fcn.140105bb4
jmp 0x1400543df
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400543df
mov eax, dword [0x140259d48]
mov ecx, dword [0x140256f3c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400544ab
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov edx, ebp
call fcn.14007a1e0
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
cmovs rax, qword [rsi + 8]
lea rdx, [rsp + 0x50]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov rcx, qword [0x140259d40]
call fcn.1400f65b0
cmp byte [rsi + 0x17], 0
jns 0x140054422
mov rcx, qword [rsp + 0x38]
call fcn.140105bb4
jmp 0x140054422
lea rcx, [0x140259d48]
call fcn.140105cd0
cmp dword [0x140259d48], 0xffffffff
jne 0x14005445d
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140081cb0
mov qword [0x140259d40], rax
lea rcx, [0x140259d48]
call fcn.140105d68
jmp 0x14005445d

Function at 0x140054b80
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x140054bc0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea rdi, [rsp + 0x38]
mov dword [rdi], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140054c33
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140054c33
cmp dword [rsp + 0x38], 4
jne 0x140054c33
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140106490
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140054c50
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140106420
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rsi, [rsp + 0x840]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140109290
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140054d03
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140054d07
lea rdx, [rsp + 0x840]
mov rcx, r14
call fcn.140032f80
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140106490
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140054ce4
cmp eax, 2
jne 0x140054d4c
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140109290
lea rcx, [rsp + 0x840]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
dec eax
cmp eax, 0x3ff
ja 0x140054d53
lea rdx, [rsp + 0x40]
jmp 0x140054cda
mov edi, 0x3f4
jmp 0x140054ce4
mov edi, 0xea
jmp 0x140054ce4

Function at 0x140054d60
Capabilities:
Set registry value

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x14024f018]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x34]
mov dword [rax], r8d
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140106490
mov eax, esi
add rsp, 0x40
pop rsi
ret

Function at 0x140054dc0
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rcx, r8
call fcn.140121344
add eax, eax
add eax, 2
mov rcx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret