joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400068b4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x1400ccc48]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rdx
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], sil
mov qword [rsp + 0x28], rsi
lea r8, [rsp + 0x28]
lea edx, [rsi + 0x23]
xor ecx, ecx
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x14000699e
lea rdx, [rbp + 0x1b0]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x14000699e
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], si
lea rcx, [rbp + 0x1b0]
call fcn.1400519d4
mov r8, rax
lea rdx, [rbp + 0x1b0]
lea rcx, [rsp + 0x38]
call fcn.140005d8c
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call fcn.1400117a0
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140006993
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
call fcn.140002154
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, [rdi + 0x140]
lea rcx, [rbp + 0x70]
call fcn.140012064
nop
lea rdx, str.Wondershare
lea rcx, [rbp - 0x30]
call fcn.1400120c8
nop
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x110]
call fcn.140012064
nop
lea rdx, [rbp - 0x30]
mov rcx, rax
call fcn.1400124a4
mov rcx, rax
lea rdx, [rbp + 0x70]
call fcn.1400124a4
mov rdx, rax
mov rcx, rbx
call fcn.140011fc8
mov dword [rsp + 0x20], 1
lea rcx, [rbp + 0x110]
call fcn.14001220c
nop
lea rcx, [rbp - 0x30]
call fcn.14001220c
nop
lea rcx, [rbp + 0x70]
call fcn.14001220c
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.1400138dc
nop
lea rcx, [rbp - 0x80]
call fcn.14001448c
test al, al
jne 0x140006a41
lea rcx, [rbp - 0x80]
call fcn.140014290
nop
lea rcx, [rbp - 0x80]
call fcn.140013aa8
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140006a63
inc rdx
mov rcx, qword [rsp + 0x58]
call fcn.140002154
mov rax, rbx
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.140043a90
mov rbx, qword [rsp + 0x500]
add rsp, 0x4d0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007848
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400ccc48]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x140007881
xor eax, eax
jmp 0x1400079a3
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x1400078bb
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x1400078bb
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x1400079a3
cmp qword [rbx + 0x80], 0
je 0x1400079a1
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400078f6
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140007919
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call fcn.1400530a0
cmp eax, edi
cmovne edi, esi
jmp 0x1400079a1
lea r8, [rbp - 0x38]
mov byte [rbp - 0x40], sil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp - 0x3f]
lea r8, [rbp - 8]
mov qword [rsp + 0x30], r8
lea r8, [rbp - 0x28]
mov qword [rsp + 0x28], r8
lea r8, [rbp - 0x30]
mov qword [rsp + 0x20], r8
lea r8, [rbp - 0x40]
call qword [rax + 0x38]
test eax, eax
js 0x1400079a1
cmp eax, 1
jle 0x140007967
cmp eax, 3
jne 0x1400079a1
movsx ecx, byte [rbp - 0x40]
jmp 0x140007903
mov r14, qword [rbp - 0x38]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x140007991
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call fcn.1400539b4
cmp r14, rax
jne 0x1400079a1
lea rax, [rbp - 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x30], rax
mov eax, esi
jne 0x1400079a3
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140043a90
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140008618
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140008645
xor eax, eax
jmp 0x140008742
cmp qword [rcx + 0x68], 0
je 0x140008656
call fcn.140008760
jmp 0x140008742
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x14000866d
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000866f
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400086a4
cmp rax, rdi
mov rbx, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1400448d0
mov rax, qword [rsi + 0x50]
sub rbp, rbx
add r14, rbx
mov r8, rbp
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000873c
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x1400086df
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov r15d, 0xfff
mov rbx, r8
cmp r8, r15
jbe 0x140008717
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.140053454
sub rbp, rax
add r14, rax
mov rbx, rbp
cmp rax, r15
jne 0x14000875b
cmp rbp, r15
ja 0x1400086ed
mov r8, rbx
test rbx, rbx
je 0x14000873c
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.140053454
mov r8, rbx
sub r8, rax
sub rdi, r8
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
sub rdi, rbp
jmp 0x14000873f
Function at 0x1400128a4
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rax, qword [0x1400ccc48]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
mov qword [rbp - 0x31], rcx
and dword [rbp - 0x39], 0
and qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 0xf
mov byte [rcx], 0
mov dword [rbp - 0x39], 1
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
je 0x1400129c6
mov ecx, esi
mov qword [rbp - 0x29], rcx
mov qword [rbp - 0x21], rcx
xor edi, edi
mov qword [rbp - 0x19], rdi
mov byte [rbp - 0x11], 1
test eax, eax
je 0x140012938
lea eax, [rdi + 2]
mul rcx
lea rcx, [rdi - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.140043d64
mov rdi, rax
mov qword [rbp - 0x19], rax
mov rdx, rdi
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400129bd
cmp eax, esi
ja 0x1400129bd
mov rdx, rbx
mov rcx, rdi
call fcn.140011848
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140012963
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
cmp byte [rcx + rax - 1], 0x5c
je 0x14001298d
lea rcx, [0x14008c86c]
call fcn.140051cf0
mov r8, rax
lea rdx, [0x14008c86c]
mov rcx, rbx
call fcn.140005c98
nop
mov rcx, rdi
call fcn.140043488
mov rax, rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140043a90
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea rcx, [rbp - 0x29]
call fcn.1400121a8
lea rdx, str.Cannot_get_current_directory
lea rcx, [rbp - 0x29]
call fcn.140003adc
nop
xor r8d, r8d
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 9]
call fcn.14000c428
lea rdx, [0x1400ca130]
lea rcx, [rbp - 9]
call fcn.140044d60
int3

Function at 0x1400141b4
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400ccc48]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
xor ebp, ebp
cmp qword [rcx + 0x18], rbp
jne 0x1400141fc
xor r9d, r9d
mov r8d, 0x128
lea rdx, str.E:2020poco_poco_1.10.1Foundation_srcFile_WIN32U.cpp
lea rcx, str.__path.empty__
call fcn.14000a358
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], bp
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140013ee4
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rdx, qword [rsp + 0x20]
lea rcx, [rbx + 0x28]
cmp qword [rcx + 0x18], 8
jb 0x14001423b
mov rcx, qword [rcx]
and edi, 1
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140014285
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140014268
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
call fcn.140002154
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140043a90
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rbx + 8]
call fcn.14001465c
int3
Function at 0x140014350
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rbx, rcx
jne 0x14001437c
xor r9d, r9d
lea rdx, str.E:2020poco_poco_1.10.1Foundation_srcFile_WIN32U.cpp
mov r8d, 0x183
lea rcx, str.__path.empty__
call fcn.14000a358
mov rcx, rbx
call fcn.140014494
test al, al
je 0x140014398
mov rcx, rbx
call fcn.140014ae4
test al, al
je 0x140014398
xor al, al
jmp 0x1400143b4
lea rcx, [rbx + 0x28]
cmp qword [rcx + 0x18], 8
jb 0x1400143a6
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400143ba
mov al, 1
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 8]
call fcn.14001465c
int3

Function at 0x140014494
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rbx, rcx
jne 0x1400144be
xor r9d, r9d
lea rdx, str.E:2020poco_poco_1.10.1Foundation_srcFile_WIN32U.cpp
lea rcx, str.__path.empty__
lea r8d, [r9 + 0x5e]
call fcn.14000a358
lea rcx, [rbx + 0x28]
cmp qword [rcx + 0x18], 8
jb 0x1400144cc
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400144f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
ja 0x1400144f8
mov ecx, 0x20800c
bt ecx, eax
jae 0x1400144f8
xor al, al
jmp 0x1400144f2
mov al, 1
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 8]
call fcn.14001465c
int3

Function at 0x140014ae4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rbx, rcx
jne 0x140014b10
xor r9d, r9d
lea rdx, str.E:2020poco_poco_1.10.1Foundation_srcFile_WIN32U.cpp
mov r8d, 0x9f
lea rcx, str.__path.empty__
call fcn.14000a358
lea rcx, [rbx + 0x28]
cmp qword [rcx + 0x18], 8
jb 0x140014b1e
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140014b34
shr eax, 4
and al, 1
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 8]
call fcn.14001465c
int3

Function at 0x140014b40
Capabilities:
Check if file exists

Disassembly:
jmp 0x140014b48
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rbx, rcx
jne 0x140014b74
xor r9d, r9d
lea rdx, str.E:2020poco_poco_1.10.1Foundation_srcFile_WIN32U.cpp
mov r8d, 0xaa
lea rcx, str.__path.empty__
call fcn.14000a358
lea rcx, [rbx + 0x28]
cmp qword [rcx + 0x18], 8
jb 0x140014b82
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140014ba0
and eax, 0x410
cmp eax, 0x400
sete al
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 8]
call fcn.14001465c
int3

Function at 0x140014b48
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x140014b48
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rbx, rcx
jne 0x140014b74
xor r9d, r9d
lea rdx, str.E:2020poco_poco_1.10.1Foundation_srcFile_WIN32U.cpp
mov r8d, 0xaa
lea rcx, str.__path.empty__
call fcn.14000a358
lea rcx, [rbx + 0x28]
cmp qword [rcx + 0x18], 8
jb 0x140014b82
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140014ba0
and eax, 0x410
cmp eax, 0x400
sete al
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 8]
call fcn.14001465c
int3
Function at 0x140014dc4
Capabilities:
Delete directory
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 0
mov rdi, rcx
jne 0x140014df4
xor r9d, r9d
lea rdx, str.E:2020poco_poco_1.10.1Foundation_srcFile_WIN32U.cpp
mov r8d, 0x160
lea rcx, str.__path.empty__
call fcn.14000a358
mov rcx, rdi
lea rbx, [rdi + 0x28]
call fcn.140014ae4
test al, al
je 0x140014e19
cmp qword [rbx + 0x18], 8
jb 0x140014e0e
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140014e2c
cmp qword [rbx + 0x18], 8
jb 0x140014e23
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x140014e3b
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, [rdi + 8]
call fcn.14001465c
int3

Function at 0x140014e74
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1400ccc48]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
cmp qword [rcx + 0x18], r14
jne 0x140014ec5
xor r9d, r9d
mov r8d, 0x133
lea rdx, str.E:2020poco_poco_1.10.1Foundation_srcFile_WIN32U.cpp
lea rcx, str.__path.empty__
call fcn.14000a358
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r14w
lea rdx, [rbp - 0x30]
mov rcx, rsi
call fcn.140013ee4
mov r8d, 1
lea rdx, [rbp - 0x30]
lea rcx, [rbx + 0x28]
test r8b, dil
je 0x140014f0e
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
cmp qword [rcx + 0x18], 8
jb 0x140014f09
mov rcx, qword [rcx]
xor r8d, r8d
jmp 0x140014f22
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
cmp qword [rcx + 0x18], 8
jb 0x140014f22
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140014f68
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140014f47
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
call fcn.140002154
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140043a90
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea rcx, [rbx + 8]
call fcn.14001465c
int3

Function at 0x14001ce10
Capabilities:
Get hostname

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xd0
mov rax, qword [0x1400ccc48]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
and dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0x10
lea rdx, [rsp + 0x20]
lea rcx, [r11 - 0x38]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x14001ce99
and qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov dword [rsp + 0x24], 1
mov rdx, rbx
lea rcx, [rsp + 0xa0]
call fcn.140011848
mov rax, rbx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140043a90
add rsp, 0xd0
pop rbx
ret
lea rdx, str.Cannot_get_computer_name
lea rcx, [rsp + 0x30]
call fcn.140003adc
nop
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14000c428
lea rdx, [0x1400ca130]
lea rcx, [rsp + 0x50]
call fcn.140044d60
int3
Function at 0x14001d618
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [0x1400ccc48]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
je 0x14001d65f
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140043a90
add rsp, 0xa0
pop rbx
ret
lea rdx, str.cannot_allocate_thread_context_key
lea rcx, [rsp + 0x20]
call fcn.140003adc
nop
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14000c428
lea rdx, [0x1400ca130]
lea rcx, [rsp + 0x40]
call fcn.140044d60
int3

Function at 0x14001d848
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0xc0
mov rax, qword [0x1400ccc48]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, rcx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov r9, rcx
mov r8, rdx
mov edx, dword [rcx + 0x20]
xor ecx, ecx
call fcn.140055ea4
mov qword [rbx + 0x10], rax
mov ecx, dword [rsp + 0x30]
mov dword [rbx + 0x18], ecx
test rax, rax
je 0x14001d8f8
mov edx, dword [rbx + 0x1c]
test edx, edx
je 0x14001d8a9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x14001d8c2
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140043a90
add rsp, 0xc0
pop rbx
ret
lea rdx, str.cannot_set_thread_priority
lea rcx, [rsp + 0x38]
call fcn.140003adc
nop
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.14000c428
lea rdx, [0x1400ca130]
lea rcx, [rsp + 0x60]
call fcn.140044d60
nop
lea rdx, str.cannot_create_thread
lea rcx, [rsp + 0x38]
call fcn.140003adc
nop
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.14000c428
lea rdx, [0x1400ca130]
lea rcx, [rsp + 0x60]
call fcn.140044d60
int3
Function at 0x14001f248
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x1400ccc48]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15b, r8b
mov rbx, rdx
mov rsi, rcx
cmp qword [rcx + 0x20], 0xffffffffffffffff
jne 0x14001f283
call fcn.14001f01c
and qword [rbp - 0x41], 0
mov qword [rbp - 0x39], 0xf
mov byte [rbp - 0x51], 0
lea r14, [rbx + 0x10]
mov rdx, qword [r14]
add rdx, 0x10
lea rcx, [rbp - 0x51]
call fcn.14001697c
mov rdi, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14001f2b8
mov rdi, qword [rbx]
mov rbx, rdi
add rbx, qword [r14]
lea r14, [0x14008e310]
jmp 0x14001f324
mov r9b, byte [rdi]
cmp r9b, 0xa
jne 0x14001f2e6
mov rcx, r14
call fcn.140051cf0
mov r8, rax
mov rdx, r14
lea rcx, [rbp - 0x51]
call fcn.140005c98
jmp 0x14001f321
mov rcx, qword [rbp - 0x41]
cmp rcx, qword [rbp - 0x39]
jae 0x14001f311
lea rax, [rcx + 1]
mov qword [rbp - 0x41], rax
lea rax, [rbp - 0x51]
cmp qword [rbp - 0x39], 0x10
cmovae rax, qword [rbp - 0x51]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14001f321
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp - 0x51]
call fcn.1400030ac
inc rdi
cmp rdi, rbx
jne 0x14001f2c4
mov rcx, r14
call fcn.140051cf0
mov r8, rax
mov rdx, r14
lea rcx, [rbp - 0x51]
call fcn.140005c98
lea rdx, [rbp - 0x51]
cmp qword [rbp - 0x39], 0x10
cmovae rdx, qword [rbp - 0x51]
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x59]
mov r8d, dword [rbp - 0x41]
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001f3d6
test r15b, r15b
je 0x14001f37d
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
je 0x14001f3b6
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x14001f393
inc rdx
mov rcx, qword [rbp - 0x51]
call fcn.140002154
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140043a90
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x29]
call fcn.14000c4dc
lea rdx, [0x1400ca8c8]
lea rcx, [rbp - 0x29]
call fcn.140044d60
int3
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x29]
call fcn.14000c4dc
lea rdx, [0x1400ca8c8]
lea rcx, [rbp - 0x29]
call fcn.140044d60
int3

Function at 0x14002d6e8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, r8
mov rcx, qword [rcx + 0xa8]
mov rsi, rdx
cmp rcx, 0xffffffffffffffff
je 0x14002d764
mov eax, dword [rbx + 0x80]
test al, 1
je 0x14002d764
test al, 2
je 0x14002d72b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x68]
mov rcx, qword [rbx + 0xa8]
and dword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14002d757
lea rcx, [rbx + 0x88]
call fcn.140014650
mov eax, dword [rsp + 0x40]
add qword [rbx + 0xb0], rax
jmp 0x14002d767
or eax, 0xffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14002da90
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, r8
mov rcx, qword [rcx + 0xa8]
mov rsi, rdx
cmp rcx, 0xffffffffffffffff
je 0x14002db53
mov eax, dword [rbx + 0x80]
mov r9d, 2
test r9b, al
je 0x14002db53
test al, 8
je 0x14002db16
and qword [r11 + 0x20], 0
lea r8, [r11 + 0x24]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x58], eax
cmp eax, 0xffffffff
jne 0x14002db03
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14002db03
lea rcx, [rbx + 0x88]
call fcn.140014650
mov rax, qword [rsp + 0x58]
mov rcx, qword [rbx + 0xa8]
mov qword [rbx + 0xb0], rax
and dword [rsp + 0x40], 0
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14002db42
lea rcx, [rbx + 0x88]
call fcn.140014650
mov eax, dword [rsp + 0x40]
add qword [rbx + 0xb0], rax
mov eax, dword [rsp + 0x40]
jmp 0x14002db56
or eax, 0xffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14003a814
Capabilities:
Query service status

Disassembly:
push rbx
sub rsp, 0xc0
mov rax, qword [0x1400ccc48]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, rcx
call fcn.14003a8a4
lea rdx, [rsp + 0x20]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14003a86b
cmp dword [rsp + 0x24], 4
sete al
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140043a90
add rsp, 0xc0
pop rbx
ret
lea rdx, str.cannot_query_service_status
lea rcx, [rsp + 0x40]
call fcn.140003adc
nop
xor r9d, r9d
mov r8, rbx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.14000c404
lea rdx, [0x1400ca130]
lea rcx, [rsp + 0x60]
call fcn.140044d60
int3

Function at 0x14003a920
Capabilities:
Create service

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x1400ccc48]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
call fcn.14003a7e8
xor r14d, r14d
mov qword [rbp - 0x40], r14
lea r15d, [r14 + 7]
mov qword [rbp - 0x38], r15
mov word [rbp - 0x50], r14w
lea rdx, [rbp - 0x50]
mov rcx, rsi
call fcn.1400115ec
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], r15
mov word [rbp - 0x70], r14w
lea rdx, [rbp - 0x70]
mov rcx, rbx
call fcn.1400115ec
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r15
mov word [rsp + 0x70], r14w
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.1400115ec
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rax, qword [rsp + 0x70]
lea r8, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae r8, qword [rbp - 0x70]
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rsi + 0x28], rax
test rax, rax
je 0x14003aab7
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x14003aa43
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
call fcn.140002154
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r15
mov word [rsp + 0x70], r14w
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x14003aa6c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
call fcn.140002154
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], r15
mov word [rbp - 0x70], r14w
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x14003aa94
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
call fcn.140002154
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140043a90
mov rbx, qword [rsp + 0x198]
add rsp, 0x150
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.cannot_register_service
lea rcx, [rbp - 0x30]
call fcn.140003adc
nop
xor r9d, r9d
mov r8, rsi
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x10]
call fcn.14000c404
lea rdx, [0x1400ca130]
lea rcx, [rbp - 0x10]
call fcn.140044d60
int3