joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140076ee0
Capabilities:
Compare security identifiers

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x1400ca0f0]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rdx, str..pipe_
mov r8d, 9
call fcn.14008cc80
test eax, eax
je 0x140076f31
lea rcx, str.strncmp_pipename___.pipe___9___0
lea rdx, str..._windows_winnpc.c
mov r8d, 0x18
call fcn.140088ff4
lea rcx, [rdi + 9]
mov edx, 0x5c
call fcn.14007ecb0
test rax, rax
je 0x140076f5d
lea rcx, str.strchr_pipename__9_____NULL
lea rdx, str..._windows_winnpc.c
mov r8d, 0x19
call fcn.140088ff4
mov rsi, qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12, qword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rsi
cmp rax, 0xffffffffffffffff
jne 0x140076fd4
call r15
cmp eax, 0xe7
jne 0x140077041
mov rcx, rdi
xor edx, edx
call r12
test eax, eax
jne 0x140076f72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140073df0
lea rdx, str.Error_waiting_for_named_pipe__s:__s
jmp 0x140077055
mov rbx, rax
call fcn.140077fe8
test rax, rax
je 0x140077065
mov rsi, rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea r9, [rsp + 0x48]
mov rcx, rbx
mov edx, 6
mov r8d, 1
call qword [0x1400cee48]
test eax, eax
je 0x1400770ae
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140073df0
lea rdx, str.Unable_to_get_named_pipe_security_information:__s
jmp 0x140077082
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140073df0
lea rdx, str.Unable_to_open_named_pipe__s:__s
mov rcx, r14
mov r8, rdi
mov r9, rax
call fcn.14000ec10
jmp 0x14007708d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140073df0
lea rdx, str.Unable_to_get_user_SID:__s
mov rcx, r14
mov r8, rax
call fcn.14000ec10
mov rsi, rax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14007d5e0
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x48]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1400770e3
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov byte [rsp + 0x20], 1
mov rcx, rbx
mov rdx, rbx
xor r8d, r8d
mov r9, r14
call fcn.140072c08
jmp 0x14007708d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rdx, str.Owner_of_named_pipe__s_is_not_us
mov rcx, r14
mov r8, rdi
jmp 0x140077088
Function at 0x140077261
Capabilities:
Create pipe

Disassembly:
push rsi
push rbx
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x1400ca0f0]
xor rax, rsp
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
lea rax, [rsp + 0x40]
movaps xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov dword [rax], 0x18
mov rcx, qword [rcx]
mov qword [rax + 8], rcx
xor ebx, ebx
mov dword [rax + 0x10], ebx
movzx edx, dl
shl edx, 0x13
or edx, 0x40000003
mov rcx, qword [rsi + 0x10]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
mov eax, 0x1000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r8d, 8
mov r9d, 0xff
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rsi + 0x18], rax
cmp rax, 0xffffffffffffffff
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14007d5e0
mov eax, ebx
add rsp, 0x68
pop rbx
pop rsi
ret

Function at 0x1400772fe
Capabilities:
Connect pipe

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov edi, edx
mov rsi, rcx
lea rbx, [rcx + 0x20]
mov r15, qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov r12, qword [sym.imp.KERNEL32.dll_GetLastError]
lea r14, [0x140077480]
mov r13, qword [sym.imp.KERNEL32.dll_CloseHandle]
test dil, 1
jne 0x14007735c
mov rcx, qword [rsi + 0x18]
mov rdx, rbx
call r15
test eax, eax
jne 0x14007735e
call r12
test eax, eax
je 0x14007735e
mov ebp, eax
cmp eax, 0x217
je 0x14007735e
jmp 0x1400773e9
xor edi, edi
mov rbp, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x48]
mov rax, qword [rcx]
mov rdx, r14
mov r8, rbp
call qword [rax + 0x20]
test eax, eax
je 0x14007737c
mov rcx, rbp
call r13
mov rcx, rsi
xor edx, edx
call fcn.140077261
test al, al
jne 0x140077333
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, ebp
call fcn.140073df0
lea rcx, str.Error_while_listening_to_named_pipe:__s
mov rdx, rax
call fcn.14005f1b3
mov rdi, rax
mov rcx, qword [rsi + 0x10]
call fcn.1400750fb
mov rcx, qword [rsi + 0x48]
mov rbx, qword [rcx]
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rdi
mov edx, 1
mov r8, rax
xor r9d, r9d
call qword [rbx]
mov rcx, rdi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400118b0
cmp ebp, 0x3e5
jne 0x140077392
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400779a2
Capabilities:
Link many functions at runtime

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp byte [0x1400cee18], 0
jne 0x140077ab4
lea rcx, str.winspool.drv
call fcn.140073bf6
mov rsi, rax
lea rcx, str.spoolss.dll
call fcn.140073bf6
test rsi, rsi
je 0x140077a73
lea rdx, str.EnumPrintersA
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
call rdi
mov qword [0x1400cee10], rax
lea rdx, str.OpenPrinterA
mov rcx, rsi
call rdi
mov qword [0x1400cedd8], rax
lea rdx, str.ClosePrinter
mov rcx, rsi
call rdi
mov qword [0x1400cee00], rax
lea rdx, str.StartDocPrinterA
mov rcx, rsi
call rdi
mov qword [0x1400cede0], rax
lea rdx, str.EndDocPrinter
mov rcx, rsi
call rdi
mov qword [0x1400cedf8], rax
lea rdx, str.StartPagePrinter
mov rcx, rsi
call rdi
mov qword [0x1400cede8], rax
lea rdx, str.EndPagePrinter
mov rcx, rsi
call rdi
mov qword [0x1400cedf0], rax
lea rdx, str.WritePrinter
mov rcx, rsi
call rdi
jmp 0x140077aa6
xor eax, eax
mov qword [0x1400cee10], rax
mov qword [0x1400cedd8], rax
mov qword [0x1400cee00], rax
mov qword [0x1400cede0], rax
mov qword [0x1400cedf8], rax
mov qword [0x1400cede8], rax
mov qword [0x1400cedf0], rax
mov qword [0x1400cee08], rax
mov byte [0x1400cee18], 1
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140077e40
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp byte [0x1400cee20], 1
jne 0x140077e58
mov al, byte [0x1400cee21]
jmp 0x140077fd2
mov byte [0x1400cee20], 1
lea rcx, str.advapi32.dll
call fcn.140073bf6
mov qword [0x1400cee28], rax
test rax, rax
je 0x140077fca
lea rdx, str.GetSecurityInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400cee48], rax
test rax, rax
je 0x140077fca
mov rcx, qword [0x1400cee28]
test rcx, rcx
je 0x140077f8b
lea rdx, str.SetSecurityInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400cee50], rax
test rax, rax
je 0x140077fca
mov rcx, qword [0x1400cee28]
test rcx, rcx
je 0x140077f98
lea rdx, str.OpenProcessToken
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400cee58], rax
test rax, rax
je 0x140077fca
mov rcx, qword [0x1400cee28]
test rcx, rcx
je 0x140077fa5
lea rdx, str.GetTokenInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400cee60], rax
test rax, rax
je 0x140077fca
mov rcx, qword [0x1400cee28]
test rcx, rcx
je 0x140077fb2
lea rdx, [0x1400b1abb]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400cee68], rax
test rax, rax
je 0x140077fca
mov rcx, qword [0x1400cee28]
test rcx, rcx
je 0x140077fbf
lea rdx, [0x1400b1e16]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400cee70], rax
test rax, rax
je 0x140077fca
mov rcx, qword [0x1400cee28]
test rcx, rcx
je 0x140077fd7
lea rdx, str.SetEntriesInAclA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x140077fd9
mov qword [0x1400cee50], 0
jmp 0x140077fca
mov qword [0x1400cee58], 0
jmp 0x140077fca
mov qword [0x1400cee60], 0
jmp 0x140077fca
mov qword [0x1400cee68], 0
jmp 0x140077fca
mov qword [0x1400cee70], 0
xor eax, eax
mov byte [0x1400cee21], al
add rsp, 0x28
ret
xor eax, eax
mov qword [0x1400cee78], rax
test rax, rax
setne al
jmp 0x140077fcc

Function at 0x140079170
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
test rcx, rcx
je 0x1400791ad
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov rcx, r8
call fcn.14008cbc0
inc eax
mov rcx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov rdx, rsi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400792ff
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rax, qword [0x1400ca0f0]
xor rax, rsp
mov qword [rsp + 0x38], rax
test rcx, rcx
je 0x1400793d7
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx]
lea r15, [rsp + 0x30]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 0
xor esi, esi
lea r9, [rsp + 0x34]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400793d9
cmp dword [rsp + 0x34], 1
jne 0x1400793d9
mov r14d, dword [rsp + 0x30]
inc r14d
mov edx, 1
mov rcx, r14
xor r8d, r8d
call fcn.140011830
mov rsi, rax
mov rcx, qword [rbx]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400793cf
cmp dword [rsp + 0x34], 1
jne 0x1400793cf
mov eax, dword [rsp + 0x30]
cmp eax, r14d
jb 0x1400793c7
lea rcx, str.size___allocsize
lea rdx, str..._windows_winstore.c
mov r8d, 0x92
call fcn.140088ff4
mov eax, dword [rsp + 0x30]
mov eax, eax
mov byte [rsi + rax], 0
jmp 0x1400793d9
mov rcx, rsi
call fcn.1400118b0
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14007d5e0
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400793f5
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x50
mov esi, r8d
mov rax, qword [0x1400ca0f0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x3c], 4
test rcx, rcx
je 0x140079459
mov rcx, qword [rcx]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140079459
mov eax, 4
mov ecx, dword [rsp + 0x3c]
xor ecx, eax
xor eax, dword [rsp + 0x44]
or eax, ecx
jne 0x140079459
mov esi, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14007d5e0
mov eax, esi
add rsp, 0x50
pop rsi
ret

Function at 0x140079713
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x1400ca0f0]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rdx, str.SoftwareSimonTathamPuTTYSessions
lea r8, [rsp + 0x28]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140079784
call fcn.14005f59f
mov rdi, rax
mov rcx, rsi
mov rdx, rax
call fcn.1400740e0
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, rdi
call fcn.14005f61a
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call fcn.140073605
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14007d5e0
nop
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x140079c1c
Capabilities:
Set registry value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov r14, r9
mov rbx, r8
mov ebp, edx
mov rdi, rcx
mov rax, qword [0x1400ca0f0]
xor rax, rsp
mov qword [rsp + 0x38], rax
call fcn.14005f59f
mov rsi, rax
lea rdx, str._s__d:
mov rcx, rax
mov r8, rbx
mov r9d, ebp
call fcn.14005f6ac
mov rcx, rdi
mov rdx, rsi
call fcn.1400740e0
lea rdx, str.SoftwareSimonTathamPuTTYSshHostKeys
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x140079cba
mov rcx, r14
call fcn.14008cbc0
inc eax
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call fcn.14005f61a
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14007d5e0
nop
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x140079cdb
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x440
mov rsi, rcx
mov rax, qword [0x1400ca0f0]
xor rax, rsp
mov qword [rsp + 0x438], rax
mov ecx, 1
call fcn.140079da5
cmp rax, 0xffffffffffffffff
je 0x140079d85
mov rdi, rax
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
lea r9, [rsp + 0x2c]
mov rcx, rax
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140079d7c
mov edx, dword [rsp + 0x2c]
test edx, edx
je 0x140079d7c
lea rbx, [rsp + 0x30]
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call rsi
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x400
mov r9, r14
call r15
test eax, eax
je 0x140079d7c
mov edx, dword [rsp + 0x2c]
test edx, edx
jne 0x140079d50
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x438]
xor rcx, rsp
call fcn.14007d5e0
nop
add rsp, 0x440
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14007a0e1
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov rdx, rcx
xor r8d, r8d
jmp fcn.14007a0ec
Function at 0x14007a3d2
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov rdx, rcx
xor ecx, ecx
xor r8d, r8d
jmp fcn.14007a0ec

Function at 0x14007a445
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rsi
sub rsp, 0x140
mov rax, qword [0x1400ca0f0]
xor rax, rsp
mov qword [rsp + 0x138], rax
xor ecx, ecx
call fcn.140079da5
call fcn.140073150
lea rdx, str.SoftwareSimonTathamPuTTY
lea r8, [rsp + 0x28]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x14007a49d
mov rcx, qword [rsp + 0x28]
call fcn.14007a54e
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.SoftwareSimonTatham
lea r8, [rsp + 0x28]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x14007a4d4
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.14007d5e0
nop
add rsp, 0x140
pop rsi
ret
mov rcx, qword [rsp + 0x28]
lea rdx, [0x1400b7039]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, qword [rsp + 0x28]
lea r8, [rsp + 0x30]
xor edx, edx
mov r9d, 0x105
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x14007a4ba
lea rdx, str.Software
lea r8, [rsp + 0x28]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x14007a4ba
mov rcx, qword [rsp + 0x28]
lea rdx, [0x1400b32f4]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14007a4ba

Function at 0x14007a54e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x140
mov rsi, rcx
mov rax, qword [0x1400ca0f0]
xor rax, rsp
mov qword [rsp + 0x138], rax
lea r8, [rsp + 0x30]
xor edx, edx
mov r9d, 0x105
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x14007a5f1
lea rdi, [rsp + 0x30]
lea r14, [rsp + 0x28]
mov r12, qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov r15, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r13, qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rbx, qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov rcx, rsi
mov rdx, rdi
mov r8, r14
call r12
test eax, eax
jne 0x14007a5d4
mov rcx, qword [rsp + 0x28]
call fcn.14007a54e
mov rcx, qword [rsp + 0x28]
call r15
mov rcx, rsi
mov rdx, rdi
call r13
mov rcx, rsi
xor edx, edx
mov r8, rdi
mov r9d, 0x105
call rbx
test eax, eax
je 0x14007a5b2
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.14007d5e0
nop
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14007a615
Capabilities:
Check if file exists
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, r8
mov rdi, rcx
test edx, edx
je 0x14007a674
xor eax, eax
xor ecx, ecx
cmp edx, 2
setne al
sete cl
lea r8d, [rax + rax*2]
mov eax, 0x40000000
mov edx, 0x80000000
cmove edx, eax
mov eax, ecx
shl eax, 7
xor ecx, 3
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov qword [rsp + 0x30], 0
mov rcx, rdi
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
setne al
jmp 0x14007a6b4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14007a6ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14007a6ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140073df0
lea rcx, str.Unable_to_delete__s:__s
mov rdx, rdi
mov r8, rax
call fcn.14006cb4c
mov qword [rsi], 0xffffffffffffffff
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x14007b6d4
Capabilities:
Get common file path
Set current directory

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x138
mov ebx, r9d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1400ca0f0]
xor rax, rsp
mov qword [rsp + 0x130], rax
test r8b, r8b
je 0x14007b71c
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec eax
cmp eax, 0x103
setb bpl
jmp 0x14007b71e
xor ebp, ebp
mov dword [rdi], 0x88
xor eax, eax
test rsi, rsi
je 0x14007b732
cmp byte [rsi], 0
cmovne rax, rsi
mov qword [rdi + 0x50], rax
mov rcx, rdi
test bl, bl
je 0x14007b745
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x14007b74b
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
mov edi, eax
test rsi, rsi
je 0x14007b76c
mov ecx, 0x104
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec eax
cmp eax, 0x103
jb 0x14007b76c
mov byte [rsi], 0
test bpl, bpl
je 0x14007b77c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test edi, edi
setne bl
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14007d5e0
mov eax, ebx
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x140087870
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400879b8
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140087a28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140087a28
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140087a28
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140087a28
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140087a28
cmp dword [rcx + 0x84], 0xe
jbe 0x140087a28
cmp dword [rcx + 0xf8], esi
je 0x140087a28
mov ecx, r14d
call fcn.1400878f4
mov ecx, 2
call fcn.14008f3ac
nop
cmp byte [0x1400cf50c], 0
jne 0x140087af2
mov r15d, 1
mov eax, r15d
xchg dword [0x1400cf508], eax
test ebx, ebx
jne 0x140087a9b
mov rdi, qword [0x1400ca0f0]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400cf500]
cmp rcx, rax
je 0x140087a92
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [section..00cfg]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400cf628]
jmp 0x140087aa7
cmp ebx, r15d
jne 0x140087aad
lea rcx, [0x1400cf640]
call fcn.140088004
nop
test ebx, ebx
jne 0x140087ac4
lea rdx, [0x1400c4320]
lea rcx, [0x1400c4300]
call fcn.1400887f0
lea rdx, [0x1400c4330]
lea rcx, [0x1400c4328]
call fcn.1400887f0
movzx eax, byte [0x1400cf50c]
test esi, esi
cmove eax, r15d
mov byte [0x1400cf50c], al
jmp 0x140087af2
mov ecx, 2
call fcn.14008f3c8
test esi, esi
jne 0x140087b09
mov ecx, r14d
call fcn.140087960
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret

Function at 0x14008cbc0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x14008cbdd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x14008cc38
test al, 7
jne 0x14008cbd0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x14008cbf1
mov rdx, qword [rax - 8]
test dl, dl
je 0x14008cc62
test dh, dh
je 0x14008cc5c
shr rdx, 0x10
test dl, dl
je 0x14008cc56
test dh, dh
je 0x14008cc50
shr rdx, 0x10
test dl, dl
je 0x14008cc4a
test dh, dh
je 0x14008cc44
shr edx, 0x10
test dl, dl
je 0x14008cc3e
test dh, dh
jne 0x14008cbf1
lea rax, [rcx + rax - 1]
ret
lea rax, [rcx + rax - 2]
ret
lea rax, [rcx + rax - 3]
ret
lea rax, [rcx + rax - 4]
ret
lea rax, [rcx + rax - 5]
ret
lea rax, [rcx + rax - 6]
ret
lea rax, [rcx + rax - 7]
ret
lea rax, [rcx + rax - 8]
ret
Function at 0x140093304
Capabilities:
Create thread
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x50
mov esi, r8d
mov r14, rdx
mov rbx, rcx
call fcn.14008f104
mov bpl, al
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor edi, edi
test eax, eax
je 0x140093357
test rbx, rbx
je 0x140093348
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bpl, bpl
je 0x140093357
mov edi, 4
jmp 0x140093400
call fcn.14008ef44
test al, al
jne 0x140093374
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb edi, edi
neg edi
add edi, 3
jmp 0x140093400
test bpl, bpl
je 0x1400933d7
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x30]
lea r8, [0x140093420]
mov dword [rsp + 0x20], edi
xor edx, edx
mov qword [rsp + 0x30], r14
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140093400
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, rbx
test eax, eax
je 0x1400933d1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140093400
mov edi, dword [rsp + 0x44]
jmp 0x1400933c9
call fcn.14008f030
test al, al
jne 0x1400933e8
bts esi, 0x15
xor ecx, ecx
jmp 0x1400933f0
call fcn.14008efa0
mov rcx, rax
mov r9d, esi
mov r8, r14
mov rdx, rbx
call fcn.14008eebc
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret