joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003c650
Capabilities:
Set registry value

Disassembly:
test rcx, rcx
je 0x14003c65d
mov rcx, qword [rcx]
jmp fcn.1400461f0
ret

Function at 0x14003c660
Capabilities:
Set registry value

Disassembly:
test rcx, rcx
je 0x14003c66d
mov rcx, qword [rcx]
jmp fcn.1400460a0
ret

Function at 0x14003c720
Capabilities:
Query or enumerate registry value

Disassembly:
test rcx, rcx
je 0x14003c72d
mov rcx, qword [rcx]
jmp fcn.140046100
xor eax, eax
ret

Function at 0x14003ca00
Capabilities:
Set registry value

Disassembly:
test rcx, rcx
je 0x14003ca10
mov r8, qword [r8]
mov rcx, qword [rcx]
jmp fcn.1400461f0
ret

Function at 0x14003ca50
Capabilities:
Delete registry key

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140129050]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp dword [0x14012ce30], 6
jb 0x14002aa92
jne 0x14002aa47
cmp dword [0x14012ce34], 0
je 0x14002aa92
call fcn.14003d9f0
test eax, eax
je 0x14002aaa5
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400ee1d0]
lea r9, [0x1400ee1c0]
xor edx, edx
mov r8d, 1
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x14002aa92
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400b8cc0
nop
add rsp, 0x38
ret
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400b8cc0
nop
add rsp, 0x38
jmp 0x14002a5d0
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
lea r8, str.SoftwareSimonTathamPuTTYSessions
xor ecx, ecx
mov rdx, 0xffffffff80000001
xor r9d, r9d
call fcn.140045e20
test rax, rax
je 0x14003cab7
mov rdi, rax
call fcn.140043580
mov rbx, rax
mov rcx, rsi
mov rdx, rax
call fcn.140079030
mov rdx, qword [rbx]
mov rcx, rdi
call sub.ADVAPI32.dll_RegDeleteKeyA
mov rcx, rbx
call fcn.140043680
mov rcx, rdi
call sub.ADVAPI32.dll_RegCloseKey
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x14002aa20
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003d330
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
lea r8, str.SoftwareSimonTathamPuTTYSshHostCAs
xor ecx, ecx
mov rdx, 0xffffffff80000001
xor r9d, r9d
call fcn.140045e20
test rax, rax
je 0x14003d380
mov rdi, rax
call fcn.140043580
mov rbx, rax
mov rcx, rsi
mov rdx, rax
call fcn.140079030
mov rdx, qword [rbx]
mov rcx, rdi
call sub.ADVAPI32.dll_RegDeleteKeyA
mov rcx, rbx
call fcn.140043680
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x14003d390
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 [0x140129050]
xor rax, rsp
mov qword [rsp + 0x438], rax
mov ecx, 1
call fcn.14003d470
cmp rax, 0xffffffffffffffff
je 0x14003d445
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 0x14003d43c
mov edx, dword [rsp + 0x2c]
test edx, edx
je 0x14003d43c
lea rbx, [rsp + 0x30]
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax]
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 0x14003d43c
mov edx, dword [rsp + 0x2c]
test edx, edx
jne 0x14003d410
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x438]
xor rcx, rsp
call fcn.1400b8cc0
nop
add rsp, 0x440
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14003d470
Capabilities:
Get common file path
Query environment variable

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
mov ebp, ecx
mov rax, qword [0x140129050]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea r8, str.SoftwareSimonTathamPuTTY
xor ecx, ecx
mov rdx, 0xffffffff80000001
xor r9d, r9d
call fcn.140045e20
test rax, rax
je 0x14003d4ef
mov rbx, rax
lea rdx, str.RandSeedFile
mov rcx, rax
call fcn.140046100
mov rsi, rax
mov rcx, rbx
call sub.ADVAPI32.dll_RegCloseKey
test rsi, rsi
je 0x14003d4ef
lea r8, [rsp + 0x28]
mov rcx, rsi
mov edx, ebp
call fcn.14003dbd0
mov ebx, eax
mov rcx, rsi
call fcn.140042f50
test bl, bl
jne 0x14003d6e1
cmp byte [0x14012c5d8], 0
je 0x14003d509
mov rsi, qword [0x14012c5e8]
test rsi, rsi
jne 0x14003d54f
jmp 0x14003d601
lea rcx, str.shell32.dll
call fcn.140045c80
mov qword [0x14012c5e0], rax
test rax, rax
je 0x14003d536
lea rdx, str.SHGetFolderPathA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
jmp 0x14003d538
xor esi, esi
mov qword [0x14012c5e8], rsi
mov byte [0x14012c5d8], 1
test rsi, rsi
je 0x14003d601
lea rdi, [rsp + 0x140]
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x1c
xor r8d, r8d
xor r9d, r9d
call rsi
test eax, eax
js 0x14003d5aa
lea rdx, str.PUTTY.RND
lea rcx, [rsp + 0x140]
xor r8d, r8d
call fcn.140041fd0
mov rsi, rax
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, ebp
call fcn.14003dbd0
mov ebx, eax
mov rcx, rsi
call fcn.140042f50
test bl, bl
jne 0x14003d6e1
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x1a
xor r8d, r8d
xor r9d, r9d
call qword [0x14012c5e8]
test eax, eax
js 0x14003d601
lea rdx, str.PUTTY.RND
lea rcx, [rsp + 0x140]
xor r8d, r8d
call fcn.140041fd0
mov rsi, rax
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, ebp
call fcn.14003dbd0
mov ebx, eax
mov rcx, rsi
call fcn.140042f50
test bl, bl
jne 0x14003d6e1
lea rcx, str.HOMEDRIVE
mov rdi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea rdx, [rsp + 0x140]
mov r8d, 0x104
call rdi
mov esi, eax
lea rcx, str.HOMEPATH
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call rdi
test esi, esi
jne 0x14003d641
mov byte [rsp + 0x140], 0
cmp esi, 0x103
ja 0x14003d690
cmp eax, 0x103
ja 0x14003d690
test eax, eax
je 0x14003d690
lea r8, str.PUTTY.RND
lea rcx, [rsp + 0x140]
lea rdx, [rsp + 0x30]
xor r9d, r9d
call fcn.140041fd0
mov rsi, rax
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, ebp
call fcn.14003dbd0
mov ebx, eax
mov rcx, rsi
call fcn.140042f50
test bl, bl
jne 0x14003d6e1
lea rcx, [rsp + 0x140]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp eax, 0x104
jae 0x14003d6e8
lea rdx, str.PUTTY.RND
lea rcx, [rsp + 0x140]
xor r8d, r8d
call fcn.140041fd0
mov rsi, rax
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, ebp
call fcn.14003dbd0
mov ebx, eax
mov rcx, rsi
call fcn.140042f50
test bl, bl
je 0x14003d6e8
mov rsi, qword [rsp + 0x28]
jmp 0x14003d6ef
mov rsi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400b8cc0
mov rax, rsi
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x14003d710
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov esi, edx
mov rdi, rcx
mov rax, qword [0x140129050]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 2
call fcn.14003d470
cmp rax, 0xffffffffffffffff
je 0x14003d764
mov rbx, rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov rcx, rax
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b8cc0
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x14003da70
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
sub rsp, 0x28
xor ecx, ecx
call fcn.14003d470
call fcn.14002a4c0
lea r8, str.SoftwareSimonTathamPuTTY
xor ecx, ecx
mov rdx, 0xffffffff80000001
xor r9d, r9d
call fcn.140045e20
test rax, rax
je 0x14003dab2
mov rsi, rax
mov rcx, rax
call fcn.14003db50
mov rcx, rsi
call sub.ADVAPI32.dll_RegCloseKey
lea r8, str.SoftwareSimonTatham
xor ecx, ecx
mov rdx, 0xffffffff80000001
xor r9d, r9d
call fcn.140045e20
test rax, rax
je 0x14003db46
mov rsi, rax
lea rdx, [0x14010cb25]
mov rcx, rax
call sub.ADVAPI32.dll_RegDeleteKeyA
mov rcx, rsi
xor edx, edx
call fcn.140045f70
mov rdi, rax
mov rcx, rsi
call sub.ADVAPI32.dll_RegCloseKey
test rdi, rdi
je 0x14003db09
mov rcx, rdi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140042f50
lea r8, str.Software
xor ecx, ecx
mov rdx, 0xffffffff80000001
xor r9d, r9d
call fcn.140045e20
test rax, rax
je 0x14003db46
mov rsi, rax
lea rdx, [0x140107e6a]
mov rcx, rax
call sub.ADVAPI32.dll_RegDeleteKeyA
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp sub.ADVAPI32.dll_RegCloseKey
nop
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x14003db50
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor edx, edx
call fcn.140045f70
test rax, rax
je 0x14003dbbf
mov rdi, rax
jmp 0x14003db95
mov rcx, rsi
mov rdx, rdi
call sub.ADVAPI32.dll_RegDeleteKeyA
mov rcx, rdi
call fcn.140042f50
mov rcx, rsi
xor edx, edx
call fcn.140045f70
mov rdi, rax
test rax, rax
je 0x14003dbbf
xor ecx, ecx
mov rdx, rsi
mov r8, rdi
xor r9d, r9d
call fcn.140045e20
test rax, rax
je 0x14003db70
mov rbx, rax
mov rcx, rax
call fcn.14003db50
mov rcx, rbx
call sub.ADVAPI32.dll_RegCloseKey
jmp 0x14003db70
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003dbd0
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 0x14003dc2f
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 0x14003dc6f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14003dc66
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14003dc66
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140047480
lea rcx, str.Unable_to_delete__s:__s
mov rdx, rdi
mov r8, rax
call fcn.1400071e0
mov qword [rsi], 0xffffffffffffffff
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x140045f70
Capabilities:
Query or enumerate registry key

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov ebp, edx
mov rbx, rcx
mov rax, qword [0x140129050]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0x105
mov edi, 0x105
mov ecx, 0x105
mov edx, 1
xor r8d, r8d
call fcn.140042eb0
mov rsi, rax
mov r15, qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea r14, [rsp + 0x38]
nop
mov rcx, rbx
mov edx, ebp
mov r8, rsi
mov r9d, edi
call r15
cmp eax, 0xea
jne 0x140046003
mov r9, qword [rsp + 0x38]
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 1
mov r8d, 1
mov rcx, rsi
mov rdx, r14
call fcn.140042f60
mov rsi, rax
mov rdi, qword [rsp + 0x38]
jmp 0x140045fc0
test eax, eax
je 0x140046011
mov rcx, rsi
call fcn.140042f50
xor esi, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400b8cc0
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140046030
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140129050]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x34]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rsp + 0x30]
xor ecx, 4
or ecx, eax
mov eax, dword [rsp + 0x34]
xor eax, 4
or eax, ecx
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b8cc0
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x1400460a0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140129050]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x34], r8d
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b8cc0
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x140046100
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x140129050]
xor rax, rsp
mov qword [rsp + 0x38], rax
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 0x1400461cc
cmp dword [rsp + 0x34], 1
jne 0x1400461cc
mov edi, dword [rsp + 0x30]
add edi, 1
mov edx, 1
mov rcx, rdi
xor r8d, r8d
call fcn.140042eb0
mov rsi, rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400461c2
cmp dword [rsp + 0x34], 1
jne 0x1400461c2
mov eax, dword [rsp + 0x30]
cmp eax, edi
jb 0x1400461ba
lea rcx, str.size___allocsize
lea rdx, str._home_simon_mem_.build_workdirs_bob_fffbk9my_putty_windows_utils_registry.c
mov r8d, 0x6c
call fcn.1400c9b7c
mov eax, dword [rsp + 0x30]
mov eax, eax
mov byte [rsi + rax], 0
jmp 0x1400461cc
mov rcx, rsi
call fcn.140042f50
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400b8cc0
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1400461f0
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.1400ce950
add eax, 1
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete al
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x140046240
Capabilities:
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140129050]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea r14, [rsp + 0x38]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], 0
xor esi, esi
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140046308
cmp dword [rsp + 0x3c], 7
jne 0x140046308
call fcn.140043580
mov rsi, rax
mov edx, dword [rsp + 0x38]
add rdx, 2
mov rcx, rax
call fcn.140043460
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400462fe
cmp dword [rsp + 0x3c], 7
jne 0x1400462fe
mov edx, dword [rsp + 0x38]
mov rcx, rsi
call fcn.1400434c0
nop dword [rax]
mov rcx, rsi
xor edx, edx
call fcn.140043550
test al, al
jne 0x1400462e0
mov rcx, rsi
add rcx, 0x18
xor edx, edx
call fcn.140042560
jmp 0x140046308
mov rcx, rsi
call fcn.140043680
xor esi, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400b8cc0
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140046330
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov eax, dword [r8 + 0x10]
add eax, 1
mov r8, qword [r8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9d, 7
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete al
add rsp, 0x38
ret
Function at 0x140046780
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp byte [0x14012cdb0], 1
jne 0x140046798
mov al, byte [0x14012cdb1]
jmp 0x14004691e
mov byte [0x14012cdb0], 1
lea rcx, str.advapi32.dll
call fcn.140045c80
mov qword [0x14012cdb8], rax
test rax, rax
je 0x140046916
lea rdx, str.GetSecurityInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012cdc0], rax
test rax, rax
je 0x140046916
mov rcx, qword [0x14012cdb8]
test rcx, rcx
je 0x1400468cf
lea rdx, str.SetSecurityInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012cdc8], rax
test rax, rax
je 0x140046916
mov rcx, qword [0x14012cdb8]
test rcx, rcx
je 0x1400468de
lea rdx, str.OpenProcessToken
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012cdd0], rax
test rax, rax
je 0x140046916
mov rcx, qword [0x14012cdb8]
test rcx, rcx
je 0x1400468ed
lea rdx, str.GetTokenInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012cdd8], rax
test rax, rax
je 0x140046916
mov rcx, qword [0x14012cdb8]
test rcx, rcx
je 0x1400468fc
lea rdx, [0x140106142]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012cde0], rax
test rax, rax
je 0x140046916
mov rcx, qword [0x14012cdb8]
test rcx, rcx
je 0x14004690b
lea rdx, [0x140106472]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012cde8], rax
test rax, rax
je 0x140046916
mov rcx, qword [0x14012cdb8]
test rcx, rcx
je 0x140046923
lea rdx, str.SetEntriesInAclA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x140046925
mov qword [0x14012cdc8], 0
xor eax, eax
jmp 0x140046918
mov qword [0x14012cdd0], 0
xor eax, eax
jmp 0x140046918
mov qword [0x14012cdd8], 0
xor eax, eax
jmp 0x140046918
mov qword [0x14012cde0], 0
xor eax, eax
jmp 0x140046918
mov qword [0x14012cde8], 0
xor eax, eax
mov byte [0x14012cdb1], al
add rsp, 0x28
ret
xor eax, eax
mov qword [0x14012cdf0], rax
test rax, rax
setne al
jmp 0x140046918
Function at 0x14004a610
Capabilities:
Link many functions at runtime

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp byte [0x14012cec8], 0
jne 0x14004a73e
lea rcx, str.winspool.drv
call fcn.140045c80
mov rsi, rax
lea rcx, str.spoolss.dll
call fcn.140045c80
test rsi, rsi
je 0x14004a6e1
lea rdx, str.EnumPrintersA
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
call rdi
mov qword [0x14012cec0], rax
lea rdx, str.OpenPrinterA
mov rcx, rsi
call rdi
mov qword [0x14012ce88], rax
lea rdx, str.ClosePrinter
mov rcx, rsi
call rdi
mov qword [0x14012ceb0], rax
lea rdx, str.StartDocPrinterA
mov rcx, rsi
call rdi
mov qword [0x14012ce90], rax
lea rdx, str.EndDocPrinter
mov rcx, rsi
call rdi
mov qword [0x14012cea8], rax
lea rdx, str.StartPagePrinter
mov rcx, rsi
call rdi
mov qword [0x14012ce98], rax
lea rdx, str.EndPagePrinter
mov rcx, rsi
call rdi
mov qword [0x14012cea0], rax
lea rdx, str.WritePrinter
mov rcx, rsi
call rdi
jmp 0x14004a730
mov qword [0x14012cec0], 0
mov qword [0x14012ce88], 0
mov qword [0x14012ceb0], 0
mov qword [0x14012ce90], 0
mov qword [0x14012cea8], 0
mov qword [0x14012ce98], 0
mov qword [0x14012cea0], 0
xor eax, eax
mov qword [0x14012ceb8], rax
mov byte [0x14012cec8], 1
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x1400730b0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rdx]
lea rdx, [0x14010c8a7]
call fcn.1400cc438
test rax, rax
je 0x14007312d
mov rsi, rax
mov qword [rdi + 8], 0
mov r8, qword [rdi + 0x10]
test r8, r8
je 0x140073146
xor ecx, ecx
nop word cs:[rax + rax]
nop
sub r8, rcx
add rcx, qword [rdi]
mov edx, 1
mov r9, rsi
call fcn.1400cc5c0
mov rbx, rax
mov rcx, rsi
call fcn.1400cbdf0
test eax, eax
jne 0x140073134
mov rcx, qword [rdi + 8]
test rbx, rbx
je 0x14007313b
add rcx, rbx
mov qword [rdi + 8], rcx
mov r8, qword [rdi + 0x10]
cmp r8, rcx
ja 0x1400730f0
jmp 0x14007313f
mov ebx, 2
jmp 0x140073184
mov ebx, 2
jmp 0x14007317c
mov r8, qword [rdi + 0x10]
xor ebx, ebx
cmp rcx, r8
jne 0x14007315a
mov rcx, rsi
call fcn.1400cc208
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
lea rdx, [rdi + 0x18]
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x28], rcx
mov qword [rdi + 0x20], 0
mov dword [rdi + 0x30], 0
mov qword [rdi + 0x38], rdx
mov rcx, rsi
call fcn.1400cbc38
mov eax, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x140077b70
Capabilities:
Create thread

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r15d, r9d
mov rdi, r8
mov rbx, rdx
mov rbp, rcx
mov rax, qword [0x140129050]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ecx, 1
mov edx, 0x1050
xor r8d, r8d
call fcn.140042eb0
mov rsi, rax
mov dword [rax], 0
lea r14, [rax + 8]
mov qword [rax + 8], rbp
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsi + 0x20], rax
mov qword [rsi + 0x1048], rbx
mov byte [rsi + 0x2a], 0
mov word [rsi + 0x28], 0
mov qword [rsi + 0x30], rdi
mov dword [rsi + 0x38], r15d
cmp qword [0x1401290a0], 0xffffffffffffffff
jne 0x140077c3c
lea rax, [0x14012cf70]
mov qword [0x14012cf70], rax
mov qword [0x14012cf78], rax
lea rcx, [0x14012cf80]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x1401290a0], rax
lea rdx, [0x1400784f0]
mov rcx, rax
xor r8d, r8d
call fcn.14002c820
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x140077ca0]
xor ecx, ecx
xor edx, edx
mov r9, r14
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140077c70
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rsi + 0x2b], 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400b8cc0
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140077ed0
Capabilities:
Create thread

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r15d, r9d
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
mov rax, qword [0x140129050]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ecx, 1
mov edx, 0x1050
xor r8d, r8d
call fcn.140042eb0
mov rsi, rax
mov dword [rax], 1
lea r14, [rax + 8]
mov qword [rax + 8], rbp
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsi + 0x20], rax
mov dword [rsi + 0x28], 0
mov qword [rsi + 0x30], rbx
lea rcx, [rsi + 0x58]
call fcn.140049da0
mov dword [rsi + 0x80], 0
mov qword [rsi + 0x88], rdi
mov qword [rsi + 0x90], rsi
mov dword [rsi + 0x38], r15d
cmp qword [0x1401290a0], 0xffffffffffffffff
jne 0x140077fb3
lea rax, [0x14012cf70]
mov qword [0x14012cf70], rax
mov qword [0x14012cf78], rax
lea rcx, [0x14012cf80]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x1401290a0], rax
lea rdx, [0x1400784f0]
mov rcx, rax
xor r8d, r8d
call fcn.14002c820
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x140078010]
xor ecx, ecx
xor edx, edx
mov r9, r14
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140077fe7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400b8cc0
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140078e30
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140129050]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp byte [0x14012cfb0], 0
je 0x140078e5f
mov rsi, qword [0x14012cfa8]
test rsi, rsi
jne 0x140078ea9
jmp 0x140078f0a
lea rcx, str.secur32.dll
call fcn.140045c80
mov rsi, rax
lea rcx, str.sspicli.dll
call fcn.140045c80
test rsi, rsi
je 0x140078e94
lea rdx, str.GetUserNameExA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
jmp 0x140078e96
xor esi, esi
mov qword [0x14012cfa8], rsi
mov byte [0x14012cfb0], 1
test rsi, rsi
je 0x140078f0a
mov dword [rsp + 0x2c], 0
lea rdi, [rsp + 0x2c]
mov ecx, 8
xor edx, edx
mov r8, rdi
call rsi
mov ecx, dword [rsp + 0x2c]
mov edx, 1
xor r8d, r8d
call fcn.140042eb0
mov rsi, rax
mov ecx, 8
mov rdx, rax
mov r8, rdi
call qword [0x14012cfa8]
test al, al
je 0x140078f02
mov rcx, rsi
mov edx, 0x40
call fcn.1400ba968
test rax, rax
je 0x140078f62
mov byte [rax], 0
jmp 0x140078f62
mov rcx, rsi
call fcn.140042f50
mov dword [rsp + 0x2c], 0
lea rdx, [rsp + 0x2c]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x140078f29
mov ecx, dword [rsp + 0x2c]
jmp 0x140078f36
mov dword [rsp + 0x2c], 0x100
mov ecx, 0x100
mov edx, 1
xor r8d, r8d
call fcn.140042eb0
mov rsi, rax
lea rdx, [rsp + 0x2c]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x140078f62
mov rcx, rsi
call fcn.140042f50
xor esi, esi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400b8cc0
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret