joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fd890
Capabilities:
Delete registry key

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400fd969
mov ebp, r8d
mov rbx, rdx
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], r15
xor eax, eax
mov qword [rsp + 0x38], rax
mov r12d, dword [rsi + 8]
mov r9d, r12d
or r9d, 0x10001
lea rdx, [rsp + 0x40]
mov qword [rdx], rax
mov qword [rsp + 0x20], rdx
mov rdx, rbx
mov r8d, 8
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400fd93f
mov r14, qword [rsp + 0x40]
mov qword [rsp + 0x28], r14
and r12d, 0x300
mov dword [rsp + 0x30], r12d
test bpl, 1
je 0x1400fd970
test r14, r14
je 0x1400fd930
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rsi + 8]
mov rcx, qword [rsi]
mov rdx, rbx
call fcn.1400fd9e0
mov edi, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x1400fd958
call fcn.140278ca0
int3
mov eax, edi
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov edi, 6
jmp 0x1400fd941
lea rdi, [rsp + 0x40]
mov qword [rdi], r15
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.1400fdbc0
cmp byte [rdi + 4], 0
jne 0x1400fd9a6
mov r8d, dword [rsi + 8]
lea rdx, [0x1403db93a]
mov rcx, r14
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov edi, eax
jmp 0x1400fd9aa
mov edi, dword [rsp + 0x40]
test r14, r14
je 0x1400fd941
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400fd941
mov edx, 1
call fcn.1400fe730
jmp 0x1400fd941
Function at 0x1400fd9e0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov esi, r8d
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [0x1403d4b30]
movaps xmmword [rsp + 0x40], xmm0
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov r9d, r8d
or r9d, 0x10009
lea rax, [rsp + 0x60]
mov qword [rax], rbx
mov qword [rsp + 0x20], rax
mov r8d, 8
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400fdacb
lea rbx, [rsp + 0x60]
mov rdi, qword [rbx]
lea rcx, [rsp + 0x40]
mov qword [rcx], rdi
mov eax, esi
and eax, 0x300
mov dword [rcx + 8], eax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rbx], rax
mov rdx, rbx
call fcn.1400fdbc0
cmp byte [rbx + 4], 0
jne 0x1400fdb99
lea rdx, [0x1403db93a]
xor ebx, ebx
mov rcx, rdi
mov r8d, esi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
jne 0x1400fdae9
test rdi, rdi
je 0x1400fdaa6
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
jne 0x1400fdba2
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x1400fdad3
call fcn.140278ca0
int3
cmp eax, 2
cmovne ebx, eax
jmp 0x1400fdaa6
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 0x200
call fcn.1402776fc
mov r14, rax
mov r8d, 0x200
mov rcx, rax
xor edx, edx
call fcn.1402b6a10
xorps xmm6, xmm6
lea rbx, [rsp + 0x60]
mov r15, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x60], 0x100
movups xmmword [rsp + 0x30], xmm6
movups xmmword [rsp + 0x20], xmm6
mov rcx, rdi
xor edx, edx
mov r8, r14
mov r9, rbx
call r15
test eax, eax
jne 0x1400fdb66
mov eax, dword [rsp + 0x60]
cmp rax, 0x100
jae 0x1400fdbb1
cmp word [r14 + rax*2], 0
jne 0x1400fdbb4
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, r14
mov r8d, esi
call fcn.1400fd9e0
test eax, eax
je 0x1400fdb15
jmp 0x1400fdb6b
mov rdi, qword [rsp + 0x40]
lea rdx, [0x1403db93a]
mov rcx, rdi
mov r8d, esi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebx, eax
test r14, r14
je 0x1400fda98
mov rcx, r14
call fcn.140277704
jmp 0x1400fda98
mov ebx, dword [rsp + 0x60]
jmp 0x1400fda98
mov edx, 1
call fcn.1400fe730
jmp 0x1400fdab4
int3
int3
Function at 0x1400fdbc0
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea r9, [rsp + 0x3c]
mov dword [r9], 0
mov rcx, qword [rcx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea rdx, str.SymbolicLinkValue
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x1400fdc30
mov byte [rsi], 0
xor eax, eax
mov byte [rsi + 4], al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x1400fdc26
call fcn.140278ca0
int3
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
test eax, eax
jne 0x1400fdc7e
cmp dword [rsp + 0x3c], 6
jne 0x1400fdc07
mov rcx, qword [rdi]
call sub.ntdll.dll_NtDeleteKey
test eax, eax
je 0x1400fdc84
mov edi, eax
mov eax, dword [0x140442d48]
mov ecx, dword [0x14043f8b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400fdc93
mov rax, qword [0x140442d40]
test rax, rax
je 0x1400fdc8c
mov ecx, edi
call qword [str._a_]
mov dword [rsi], eax
mov al, 1
jmp 0x1400fdc0c
mov dword [rsi], 0
jmp 0x1400fdc80
mov eax, 5
jmp 0x1400fdc7e
lea rcx, [0x140442d48]
call fcn.14027770c
cmp dword [0x140442d48], 0xffffffff
jne 0x1400fdc6a
lea rcx, [0x1403ec3c4]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlNtStatusToDosError
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140442d40], rax
lea rcx, [0x140442d48]
call fcn.1402777c0
jmp 0x1400fdc6a

Function at 0x1400fdcf0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, r8
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, 4
lea r9, [rsp + 0x44]
mov dword [r9], eax
lea r8, [rsp + 0x40]
mov dword [r8], eax
lea rax, [rsp + 0x3c]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400fdd61
mov ecx, dword [rsp + 0x44]
add ecx, 0xfffffffd
mov eax, 0x3f4
cmp ecx, 1
ja 0x1400fdd61
cmp dword [rsp + 0x40], 4
jne 0x1400fdd61
mov eax, dword [rsp + 0x3c]
mov dword [rsi], eax
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x1400fdd78
call fcn.140278ca0
int3
add rsp, 0x50
pop rsi
ret
Function at 0x1400fdd80
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140278c40
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1402b6a10
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], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400fde14
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x1400fde3b
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.1400e89c0
xor eax, eax
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x1400fde2e
call fcn.140278ca0
int3
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
cmp eax, 2
jne 0x1400fde83
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1402b6a10
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x1400fde8a
lea rdx, [rsp + 0x40]
jmp 0x1400fde0a
mov eax, 0x3f4
jmp 0x1400fde14
mov eax, 0xea
jmp 0x1400fde14

Function at 0x1400fdea0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x3c]
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 rcx, qword [rsp + 0x40]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x1400fdef1
call fcn.140278ca0
int3
add rsp, 0x48
ret

Function at 0x1400fdf00
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.14029c474
lea eax, [rax*2 + 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
Function at 0x1400fe090
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rcx], 0
je 0x1400fe186
cmp dword [rsi + 8], 0xffffffff
je 0x1400fe186
lea rdi, [rsi + 0x10]
cmp byte [rsi + 0x27], 0
jns 0x1400fe1b4
mov ebp, dword [rsi + 0x20]
dec ebp
lea rbx, [rsp + 0x44]
mov dword [rbx], ebp
mov eax, dword [rsi + 0x30]
mov r12, qword [rsi + 0x28]
sub eax, r12d
and eax, 0xfffffffe
add eax, 0xfffffffe
lea r14, [rsi + 0x40]
mov dword [rsi + 0x40], eax
lea r15, [rsi + 0x44]
mov edx, ebp
mov rcx, rdi
call fcn.1400ff590
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 0
mov r8, rax
mov r9, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
je 0x1400fe1be
test eax, eax
jne 0x1400fe186
mov eax, dword [rsi + 0x40]
inc rax
shr rax, 1
mov rcx, qword [rsi + 0x28]
mov rdx, qword [rsi + 0x30]
sub rdx, rcx
sar rdx, 1
cmp rax, rdx
jae 0x1400fe1b2
mov word [rcx + rax*2], 0
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x1400fe177
call fcn.140278ca0
int3
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, [rsi + 0x10]
cmp byte [rsi + 0x27], 0
jns 0x1400fe193
mov rax, qword [rax]
mov word [rax], 0
mov rax, qword [rsi + 0x28]
cmp qword [rsi + 0x30], rax
je 0x1400fe1b2
mov word [rax], 0
mov dword [rsi + 0x40], 0
xor eax, eax
jmp 0x1400fe160
ud2
mov ebp, 0xa
jmp 0x1400fe0d7
mov edx, dword [rsi + 0x40]
inc rdx
shr rdx, 1
mov r12, qword [rsi + 0x28]
mov rax, qword [rsi + 0x30]
sub rax, r12
mov rcx, rax
sar rcx, 1
cmp rcx, rdx
ja 0x1400fe1ff
lea rcx, [rsi + 0x28]
inc rdx
lea r8, [rsp + 0x42]
mov word [r8], 0
call fcn.1400fe2f0
mov r12, qword [rsi + 0x28]
mov rax, qword [rsi + 0x30]
sub rax, r12
and eax, 0xfffffffe
add eax, 0xfffffffe
mov dword [rsi + 0x40], eax
lea rbx, [rsp + 0x44]
cmp dword [rbx], ebp
mov edx, 0x4000
cmovne edx, ebp
mov dword [rbx], edx
mov rcx, rdi
call fcn.1400ff590
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 0
mov r8, rax
mov r9, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x1400fe138

Function at 0x1400fe2d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [rcx + 8]
cmp eax, 0xffffffff
je fcn.1400fe090
dec eax
mov dword [rcx + 8], eax
jmp fcn.1400fe090
Function at 0x1400fe350
Capabilities:
Query or enumerate registry key

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rsi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x70], rax
or r9d, 0x20019
mov qword [rsp + 0x20], rcx
mov rcx, rdx
mov rdx, r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400fe430
lea rdi, [rsp + 0x64]
mov dword [rdi], 0
mov rcx, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x58], 0
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1400fe45b
mov edx, dword [rsp + 0x64]
sub edx, 1
setb al
mov dword [rsi + 8], edx
mov rcx, qword [rsi]
test rcx, rcx
sete r8b
or r8b, al
test r8b, 1
jne 0x1400fe437
lea r8, [rsi + 0xc]
lea r9, [rsp + 0x6c]
mov dword [r9], 0x104
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x64], rax
mov qword [rsp + 0x38], rdi
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400fe43d
jmp 0x1400fe437
mov qword [rsi], 0
mov word [rsi + 0xc], 0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x1400fe454
call fcn.140278ca0
int3
add rsp, 0x78
pop rdi
pop rsi
ret
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400fe430

Function at 0x1400fe500
Capabilities:
Query or enumerate registry key

Disassembly:
push rsi
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov edx, dword [rcx + 8]
cmp edx, 0xffffffff
je 0x1400fe596
sub edx, 1
setb al
mov dword [rsi + 8], edx
mov rcx, qword [rsi]
test rcx, rcx
sete r8b
or r8b, al
jne 0x1400fe596
lea r8, [rsi + 0xc]
lea r9, [rsp + 0x54]
mov dword [r9], 0x104
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r10, [rsp + 0x4c]
mov qword [r10], rax
mov qword [rsp + 0x38], r10
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400fe596
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x1400fe590
call fcn.140278ca0
int3
add rsp, 0x60
pop rsi
ret
mov word [rsi + 0xc], 0
jmp 0x1400fe579
Function at 0x1400feab0
Capabilities:
Create thread

Disassembly:
jmp 0x1400feab0
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r13d, dword [rsp + 0xd0]
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebp, 0x10
mov ecx, Ordinal_27
call fcn.14027768c
mov rsi, rax
movabs r12, 0xfffffffc00000000
mov rax, r15
and rax, r12
cmp rax, qword [0x140432948]
jne 0x1400feb1d
mov rcx, r15
call fcn.1400c3820
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r13d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x1400fef50]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x1400feb99
test r14, r14
je 0x1400feb8e
mov qword [r14], rdi
test rdi, rdi
setne al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x1400feb7d
call fcn.140278ca0
int3
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400feb60
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0x27a
jle 0x1400febe6
cmp ebp, 0x5af
je 0x1400febb8
cmp ebp, 0x27b
jne 0x1400febf0
mov rcx, rbx
call fcn.14012ed30
test rsi, rsi
je 0x1400feb60
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x140432948]
jne 0x1400febd9
call fcn.1400c3960
mov rcx, rsi
call fcn.1402776c8
jmp 0x1400feb60
cmp ebp, 8
je 0x1400febb8
cmp ebp, 0xe
je 0x1400febb8
mov eax, dword [0x140442d88]
mov ecx, dword [0x14043f8b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400fec66
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.14010b370
movsx rax, byte [rbx + 0x17]
test rax, rax
jns 0x1400fec34
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov qword [rdx], rbx
mov qword [rdx + 8], rax
mov rcx, qword [0x140442d80]
call fcn.14012dce0
cmp byte [rsp + 0x4f], 0
jns 0x1400febc0
mov rcx, qword [rsp + 0x38]
call fcn.1402776c8
jmp 0x1400febc0
lea rcx, [0x140442d88]
call fcn.14027770c
cmp dword [0x140442d88], 0xffffffff
jne 0x1400fec11
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.14012dcc0
mov qword [0x140442d80], rax
lea rcx, [0x140442d88]
call fcn.1402777c0
jmp 0x1400fec11

Function at 0x1401007e0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x140100827
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140100841
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14010081f
mov qword [rsi], rdi
call fcn.14021c380
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rdi, rax
je 0x140100857
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14021c380
mov rcx, qword [rsi]
call fcn.14020bb00
mov qword [rsi], 0
jmp 0x14010080d
int3
Function at 0x140101e50
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [0x1403d4b30]
lea rbx, [rsp + 0x50]
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, [0x1403ec670]
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x1c
call fcn.14021c360
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.14020f7b0
mov rcx, rsi
call fcn.14020ca40
test al, al
je 0x140101f9c
mov rcx, rsi
call fcn.1400d22b0
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 rcx, qword [rsi + 0x40]
cmp rcx, rax
je 0x140101f3e
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x140101fcf
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140101f32
mov qword [rsi + 0x40], rdi
call fcn.14021c380
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsi + 0x40]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140101fea
mov qword [rsp + 0x20], 0
xor edi, edi
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x140101f9c
mov rbx, rax
lea rax, fcn.1402d7310
lea rcx, [rsp + 0x30]
mov qword [rcx], rax
mov qword [rcx + 8], rbx
call fcn.140130750
mov eax, dword [rax + 0x50]
test rax, rax
setne dil
je 0x140101f9c
mov qword [rsi + 0x30], rbx
mov qword [rsi + 0x38], rax
lea rcx, [rsp + 0x50]
call fcn.14020f840
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x140101fc0
call fcn.140278ca0
int3
mov eax, edi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14021c380
mov rcx, qword [rsi + 0x40]
call fcn.14020bb00
mov qword [rsi + 0x40], 0
jmp 0x140101f1f
xor edi, edi
jmp 0x140101f9c
Function at 0x140101ff0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140430040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [0x1403d4b30]
lea r15, [rsp + 0x60]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea rdx, str.MapFileRegionToMemory
lea r8, [0x1403ec670]
lea r12, [rsp + 0x40]
mov rcx, r12
mov r9d, 0x42
call fcn.14021c360
xor r14d, r14d
mov rcx, r15
mov rdx, r12
xor r8d, r8d
call fcn.14020f7b0
mov rcx, rsi
call fcn.14020ca40
test al, al
je 0x140102176
test edi, edi
jne 0x1401021b4
mov ebp, 2
mov edi, 4
xor r15d, r15d
mov rcx, rsi
call fcn.1400d22b0
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0x28], 0
mov rcx, rax
xor edx, edx
mov r8d, ebp
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r14, rax
cmp qword [rsi + 0x40], rax
je 0x1401020fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x14010226f
mov rax, r14
inc rax
cmp rax, 2
jb 0x1401020f0
mov qword [rsi + 0x40], r14
call fcn.14021c380
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi + 0x40]
inc r14
cmp r14, 2
jb 0x1401021af
mov dword [rsp + 0x3c], 0
mov rcx, qword [rbx]
mov rdx, qword [rbx + 8]
cmp rcx, qword [0x1403ed690]
jne 0x1401021f6
cmp rdx, qword [0x1403ed698]
jne 0x1401021f6
mov rcx, rsi
call fcn.140102470
xor r14d, r14d
test rax, rax
jle 0x140102176
mov rbx, rax
xor r8d, r8d
xor eax, eax
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x20], rax
mov edx, edi
mov r9d, r14d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x1401021af
movsxd rcx, dword [rsp + 0x3c]
add rax, rcx
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], rbx
mov r14b, 1
lea rcx, [rsp + 0x60]
call fcn.14020f840
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
cmp rcx, qword [0x140430040]
je 0x14010219a
call fcn.140278ca0
int3
mov eax, r14d
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor r14d, r14d
jmp 0x140102176
dec edi
cmp edi, 3
ja case.default.0x1401021cd
lea rax, [0x1403ec6c4]
movsxd rcx, dword [rax + rdi*4]
add rcx, rax
jmp rcx
mov rcx, rsi
call fcn.140101e50
mov r14d, eax
jmp 0x140102176
mov r14, qword [rbx + 8]
mov r15, r14
shr r15, 0x20
mov ebp, 4
mov edi, 2
jmp 0x140102092
xor eax, eax
lea r14, [rsp + 0x40]
mov qword [r14], rax
lea r9, [rsp + 0x30]
mov qword [r9], rax
lea r15, [rsp + 0x3c]
mov qword [rsp + 0x20], r15
mov r8, r14
call fcn.14010fed0
mov rbx, qword [rbx + 8]
movsxd rax, dword [r15]
mov rdx, rax
sar rdx, 0x3f
add rax, rbx
adc rdx, 0
mov ecx, edx
and ecx, 1
neg rcx
xor rdx, rcx
setne dl
mov r14, qword [r14]
test r14, r14
js 0x1401021af
test dl, dl
jne 0x1401021af
test rcx, rcx
js 0x1401021af
test rax, rax
je 0x1401021af
mov r8, r14
shr r8, 0x20
jmp 0x14010214a
call fcn.14021c380
mov rcx, qword [rsi + 0x40]
call fcn.14020bb00
mov qword [rsi + 0x40], 0
jmp 0x1401020db
mov ebp, 4
mov edi, 2
jmp 0x14010208f
mov ebp, 8
mov edi, 1
jmp 0x14010208f
mov edi, 0xaaaaaaaa
xor ebp, ebp
jmp 0x14010208f