joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140056730
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc0
mov esi, r9d
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x1401e5d38]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], r12
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
lea rdx, str.Read
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x3e
call fcn.14003b9f0
lea rcx, [rsp + 0x60]
mov rdx, r15
xor r8d, r8d
call fcn.140051c40
mov ebp, 0xffffffff
test r14, r14
js 0x14005686e
test esi, esi
js 0x14005686e
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.1400719c0
test al, al
je 0x14005680f
mov r9d, esi
lea rdx, str.File::Read
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140071a80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x2c]
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140056853
mov ebp, dword [rsp + 0x2c]
test ebp, ebp
jns 0x140056864
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
cmp eax, 0x26
setne bpl
neg ebp
lea rcx, [rsp + 0x30]
call fcn.140071a50
lea rcx, [rsp + 0x60]
call fcn.140051f30
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140154030
mov eax, ebp
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400568a0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1401e5d38]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], r15
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
lea rdx, str.ReadAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x5b
call fcn.14003b9f0
lea rcx, [rsp + 0x50]
mov rdx, r14
xor r8d, r8d
call fcn.140051c40
test esi, esi
js 0x14005699a
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], 0
call fcn.1400719c0
test al, al
je 0x140056964
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140071a80
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400569a1
mov esi, dword [rsp + 0x2c]
test esi, esi
jns 0x1400569b2
int3
mov esi, 0xffffffff
jmp 0x1400569bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
lea rcx, [rsp + 0x30]
call fcn.140071a50
lea rcx, [rsp + 0x50]
call fcn.140051f30
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140154030
mov eax, esi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400569f0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc0
mov esi, r9d
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x1401e5d38]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], r12
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
lea rdx, str.Write
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x7b
call fcn.14003b9f0
lea rcx, [rsp + 0x60]
mov rdx, r15
xor r8d, r8d
call fcn.140051c40
mov ebp, 0xffffffff
test r14, r14
js 0x140056b0f
test esi, esi
js 0x140056b0f
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.1400719c0
test al, al
je 0x140056ac7
mov r9d, esi
lea rdx, str.File::Write
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140071a80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x2c]
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor ebp, ebp
cmp eax, 1
sbb ebp, ebp
or ebp, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
call fcn.140071a50
lea rcx, [rsp + 0x60]
call fcn.140051f30
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140154030
mov eax, ebp
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140056b40
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1401e5d38]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], r15
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x93
call fcn.14003b9f0
lea rcx, [rsp + 0x50]
mov rdx, r14
xor r8d, r8d
call fcn.140051c40
test esi, esi
js 0x140056c40
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], 0
call fcn.1400719c0
test al, al
je 0x140056c04
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140071a80
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x2c]
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
call fcn.140071a50
jmp 0x140056c45
mov esi, 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.140051f30
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140154030
mov eax, esi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140056c70
Capabilities:
Get file size

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rsi, rcx
mov rax, qword [0x1401e5d38]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs rbx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xa0], rbx
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
lea rdx, str.GetLength
lea r8, str....._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0xa8
call fcn.14003b9f0
lea rcx, [rsp + 0x50]
mov rdx, rdi
xor r8d, r8d
call fcn.140051c40
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], 0
call fcn.1400719c0
test al, al
je 0x140056d26
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.140071a80
mov qword [rsp + 0x28], rbx
mov rcx, qword [rsi]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140071a50
lea rcx, [rsp + 0x50]
call fcn.140051f30
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140154030
mov rax, rsi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140057020
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1401e5d38]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xb0], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
lea rdx, str.DoInitialize
lea r8, str....._base_files_file_win.cc
lea r14, [rsp + 0x40]
mov rcx, r14
mov r9d, 0x16f
call fcn.14003b9f0
lea rcx, [rsp + 0x60]
mov rdx, r14
xor r8d, r8d
call fcn.140051c40
mov eax, edi
and eax, 1
neg eax
movd xmm0, edi
pshufd xmm0, xmm0, 0
pand xmm0, xmmword [0x140197300]
and eax, 3
pxor xmm1, xmm1
pcmpeqd xmm1, xmm0
movmskps edx, xmm1
mov r14d, edx
and r14b, 4
shr r14b, 2
test dl, 8
mov r8d, 1
cmovne r8d, eax
test r14b, r14b
mov ecx, 4
cmove r8d, ecx
test dl, 2
mov r9d, 2
cmovne r9d, r8d
test dl, 1
mov eax, 5
cmovne eax, r9d
test eax, eax
je 0x1400571cf
mov edx, edi
and edx, 0x40
shl edx, 0x18
test dil, 0x80
cmove ecx, edx
mov edx, edi
rol edx, 0x1a
mov r8d, edi
shl r8d, 0xb
and r8d, 0x20000000
mov r9d, edi
shr r9d, 4
and r9d, 0x10000
and edx, 0x80000100
or edx, r8d
or edx, r9d
or edx, ecx
mov ecx, edi
shr ecx, 8
and ecx, 3
mov r8d, edi
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov r15d, edi
and r15d, 0x400
mov ecx, r15d
shl ecx, 0x14
mov r9d, edi
shr r9d, 3
and r9d, 0x100
or r9d, ecx
mov ecx, edi
shr ecx, 0xb
and ecx, 2
or ecx, r9d
mov r9d, edi
shl r9d, 0xd
and r9d, 0x4000000
or r9d, ecx
mov ecx, edi
shl ecx, 8
and ecx, 0xa000000
or ecx, r9d
test byte [rbx], 1
je 0x1400571e6
mov rbx, qword [rbx + 0x10]
jmp 0x1400571ea
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
jmp 0x14005726f
add rbx, 2
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 [rsi], rax
je 0x140057256
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x140057237
call fcn.14003ba10
mov rcx, qword [rsi]
call fcn.14005bb90
mov qword [rsi], 0
mov rax, rbx
inc rax
cmp rax, 2
jb 0x14005724b
mov qword [rsi], rbx
call fcn.14003ba10
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsi]
inc rbx
cmp rbx, 2
jae 0x14005729a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140056da0
mov dword [rsi + 0x24], eax
lea rcx, [rsp + 0x60]
call fcn.140051f30
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140154030
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov dword [rsi + 0x24], 0
shr r15d, 0xa
mov byte [rsi + 0x29], r15b
test r14b, r14b
je 0x1400572ba
test dil, 0xa
je 0x14005726f
mov byte [rsi + 0x28], 1
jmp 0x14005726f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x14005726f
Function at 0x1400572d0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14005732c
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
jb 0x14005730a
call fcn.14003ba10
mov rcx, qword [rdi]
call fcn.14005bb90
mov qword [rdi], 0
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14005731c
mov qword [rdi], rsi
call fcn.14003ba10
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

Function at 0x140058980
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.140082e60
mov byte [rsi + 8], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
lea rax, [0x140197580]
mov qword [rsi], rax
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp qword [rsi + 0x18], rax
je 0x140058a0b
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jb 0x1400589f0
call fcn.14003ba10
mov rcx, qword [rsi + 0x18]
call fcn.14005bb90
mov qword [rsi + 0x18], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140058a03
mov qword [rsi + 0x18], rdi
call fcn.14003ba10
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x140059b00
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1401e5d38]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rcx], 0
test rdx, rdx
je 0x140059b6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x140059b55
call fcn.14003ba10
mov rcx, qword [rsi]
call fcn.14005bb90
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140059b67
mov qword [rsi], rdi
call fcn.14003ba10
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x20], rax
cmp rax, rdi
jne 0x140059c04
lea rdi, [0x14000c560]
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.1400312f0
mov rbx, rax
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.1400312f0
lea rdx, str.handle___::GetCurrentProcess__
lea rcx, [rsp + 0x28]
mov r8, rax
mov r9, rbx
call fcn.140031520
cmp qword [rsp + 0x28], 0
je 0x140059c04
lea rdx, str....._baseprocessprocess_win.cc
lea rdi, [rsp + 0x20]
lea r9, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x21
call fcn.140030f50
mov rcx, rdi
call fcn.140031080
mov rcx, rdi
call fcn.140031090
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140154030
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x140059c20
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jb 0x140059c4a
call fcn.14003ba10
mov qword [rsi], 0
test r14, r14
je 0x140059c78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140059cb2
cmp r15, 2
jae 0x140059ccc
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jb 0x140059ca3
call fcn.14003ba10
mov rcx, qword [rdi]
call fcn.14005bb90
mov qword [rdi], 0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14003ba10
mov rcx, qword [rsi]
call fcn.14005bb90
mov qword [rsi], 0
cmp r15, 2
jb 0x140059c70
mov qword [rsi], r14
call fcn.14003ba10
jmp 0x140059c70

Function at 0x140059ce0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jae 0x140059d0c
cmp qword [rsi], r14
jne 0x140059d16
jmp 0x140059d38
call fcn.14003ba10
cmp qword [rsi], r14
je 0x140059d38
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140059d72
cmp r15, 2
jae 0x140059d8c
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jb 0x140059d63
call fcn.14003ba10
mov rcx, qword [rdi]
call fcn.14005bb90
mov qword [rdi], 0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14003ba10
mov rcx, qword [rsi]
call fcn.14005bb90
mov qword [rsi], 0
cmp r15, 2
jb 0x140059d30
mov qword [rsi], r14
call fcn.14003ba10
jmp 0x140059d30
Function at 0x140059e60
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x1401e5d38]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x140059e8f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140059e92
mov rcx, qword [rdi]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x140059eb3
test bl, bl
je 0x140059f0a
cmp byte [rdi + 8], 0
je 0x140059efc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140059eff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rdi + 8], 0
je 0x140059eca
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140059ecd
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140059ee3
xor edi, edi
jmp 0x140059f86
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rdi + 8], 0
je 0x140059f3e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140059f41
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rdi + 8], 0
je 0x140059f1b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140059f1e
mov rcx, qword [rdi]
call fcn.140059a60
mov rcx, qword [0x1401eb278]
mov dil, 1
test rcx, rcx
je 0x140059f86
mov edx, eax
mov r8d, esi
call fcn.1400370c0
jmp 0x140059f86
mov rcx, qword [rdi]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x140059f54
mov esi, dword [rsp + 0x24]
cmp byte [rdi + 8], 0
je 0x140059f65
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140059f68
mov rcx, qword [rdi]
call fcn.140059a60
mov rcx, qword [0x1401eb278]
test rcx, rcx
je 0x140059f83
mov edx, eax
mov r8d, esi
call fcn.1400370c0
mov dil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140154030
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x14005ae50
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r12d, dword [rsp + 0xc0]
mov rax, qword [0x1401e5d38]
xor rax, rsp
mov qword [rsp + 0x58], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.140153c88
mov rsi, rax
mov qword [rax], r15
test r14, r14
setne byte [rax + 8]
mov dword [rax + 0xc], edi
mov dword [rax + 0x10], r12d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x14005b3b0]
xor ecx, ecx
mov rdx, rbx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x14005aedf
test r14, r14
je 0x14005af0f
mov qword [r14], rdi
jmp 0x14005af18
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x14005aef8
mov ebp, eax
cmp eax, 0x5af
je 0x14005aef8
cmp ebp, 0xe
jne 0x14005af3c
mov rcx, rbx
call fcn.1400671b0
test rsi, rsi
je 0x14005af18
mov rcx, rsi
call fcn.140153cd8
jmp 0x14005af18
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140154030
mov eax, ebx
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov eax, dword [0x1401ecce8]
mov ecx, dword [0x1401ed290]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x24]
jg 0x14005afbc
lea rcx, [rsp + 0x30]
mov edx, ebp
call fcn.14004be60
movzx eax, byte [rsp + 0x30]
mov rcx, rax
shr rcx, 1
test al, 1
lea rax, [rsp + 0x31]
cmovne rax, qword [rsp + 0x40]
cmovne rcx, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rcx
mov rcx, qword [0x1401ecce0]
lea rdx, [rsp + 0x48]
call fcn.140074b10
test byte [rsp + 0x30], 1
je 0x14005af00
mov rcx, qword [rsp + 0x40]
call fcn.140153cd8
jmp 0x14005af00
lea rcx, [0x1401ecce8]
call fcn.140153df0
cmp dword [0x1401ecce8], 0xffffffff
jne 0x14005af5d
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140074ae0
mov qword [0x1401ecce0], rax
lea rcx, [0x1401ecce8]
call fcn.140153e88
jmp 0x14005af5d

Function at 0x14005b630
Capabilities:
Query or enumerate registry value

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140153fd0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1401e5d38]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.140157190
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x38], 0x800
mov rcx, qword [rbx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x3c]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14005b7bb
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x14005b76b
mov edi, 0x3f4
cmp eax, 1
jne 0x14005b7bb
lea rdx, [rsp + 0x840]
jmp 0x14005b7b1
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.140157190
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
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x14005b7bb
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14002ef08
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140154030
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14005b7e0
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.140178b34
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

Function at 0x14005bbc0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1401e5d38]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x34]
mov r8d, 0x118
xor edx, edx
call fcn.140157190
mov dword [rsp + 0x30], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x2c], 0
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x38]
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.140153c88
mov rsi, rax
mov edi, dword [rsp + 0x2c]
mov eax, dword [0x1401ecd50]
mov ecx, dword [0x1401ed290]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x24]
jg 0x14005bc8c
lea r8, [0x1401ecd20]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.14005be20
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140154030
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401ecd50]
call fcn.140153df0
cmp dword [0x1401ecd50], 0xffffffff
jne 0x14005bc58
xorps xmm0, xmm0
movups xmmword [0x1401ecd40], xmm0
movups xmmword [0x1401ecd30], xmm0
movups xmmword [0x1401ecd20], xmm0
lea rcx, [0x1401ecd20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401ecd50]
call fcn.140153e88
jmp 0x14005bc58