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

Disassembly:
test rcx, rcx
je 0x14003cc2d
mov rcx, qword [rcx]
jmp fcn.140046840
ret

Function at 0x14003cc30
Capabilities:
Set registry value

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

Function at 0x14003ccf0
Capabilities:
Query or enumerate registry value

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

Function at 0x14003cfd0
Capabilities:
Set registry value

Disassembly:
test rcx, rcx
je 0x14003cfe0
mov r8, qword [r8]
mov rcx, qword [rcx]
jmp fcn.140046840
ret

Function at 0x14003d020
Capabilities:
Delete registry key

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14012b050]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp dword [0x14012ee30], 6
jb 0x14002b052
jne 0x14002b007
cmp dword [0x14012ee34], 0
je 0x14002b052
call fcn.14003e010
test eax, eax
je 0x14002b065
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400f0000]
lea r9, [0x1400efff0]
xor edx, edx
mov r8d, 1
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x14002b052
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.1400ba9f0
nop
add rsp, 0x38
ret
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400ba9f0
nop
add rsp, 0x38
jmp 0x14002ab90
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x20], 0
lea r9, str.SoftwareSimonTathamPuTTYSessions
xor ecx, ecx
mov dl, 1
mov r8, 0xffffffff80000001
call fcn.140046460
test rax, rax
je 0x14003d08f
mov rdi, rax
call fcn.140043bc0
mov rbx, rax
mov rcx, rsi
mov rdx, rax
call fcn.14007a5e0
mov rdx, qword [rbx]
mov rcx, rdi
call sub.ADVAPI32.dll_RegDeleteKeyA
mov rcx, rbx
call fcn.140043cc0
mov rcx, rdi
call sub.ADVAPI32.dll_RegCloseKey
mov rcx, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp 0x14002afe0
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003d920
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x20], 0
lea r9, str.SoftwareSimonTathamPuTTYSshHostCAs
xor ecx, ecx
mov dl, 1
mov r8, 0xffffffff80000001
call fcn.140046460
test rax, rax
je 0x14003d978
mov rdi, rax
call fcn.140043bc0
mov rbx, rax
mov rcx, rsi
mov rdx, rax
call fcn.14007a5e0
mov rdx, qword [rbx]
mov rcx, rdi
call sub.ADVAPI32.dll_RegDeleteKeyA
mov rcx, rbx
call fcn.140043cc0
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x14003d990
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 [0x14012b050]
xor rax, rsp
mov qword [rsp + 0x438], rax
mov ecx, 1
call fcn.14003da70
cmp rax, 0xffffffffffffffff
je 0x14003da45
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 0x14003da3c
mov edx, dword [rsp + 0x2c]
test edx, edx
je 0x14003da3c
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 0x14003da3c
mov edx, dword [rsp + 0x2c]
test edx, edx
jne 0x14003da10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x438]
xor rcx, rsp
call fcn.1400ba9f0
nop
add rsp, 0x440
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14003da70
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 [0x14012b050]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x20], 0
lea r9, str.SoftwareSimonTathamPuTTY
xor ecx, ecx
xor edx, edx
mov r8, 0xffffffff80000001
call fcn.140046460
test rax, rax
je 0x14003daf7
mov rbx, rax
lea rdx, str.RandSeedFile
mov rcx, rax
call fcn.140046750
mov rsi, rax
mov rcx, rbx
call sub.ADVAPI32.dll_RegCloseKey
test rsi, rsi
je 0x14003daf7
lea r8, [rsp + 0x28]
mov rcx, rsi
mov edx, ebp
call fcn.14003e210
mov ebx, eax
mov rcx, rsi
call fcn.140043590
test bl, bl
jne 0x14003dce9
cmp byte [0x14012e5d8], 0
je 0x14003db11
mov rsi, qword [0x14012e5e8]
test rsi, rsi
jne 0x14003db57
jmp 0x14003dc09
lea rcx, str.shell32.dll
call fcn.1400462c0
mov qword [0x14012e5e0], rax
test rax, rax
je 0x14003db3e
lea rdx, str.SHGetFolderPathA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
jmp 0x14003db40
xor esi, esi
mov qword [0x14012e5e8], rsi
mov byte [0x14012e5d8], 1
test rsi, rsi
je 0x14003dc09
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 0x14003dbb2
lea rdx, str.PUTTY.RND
lea rcx, [rsp + 0x140]
xor r8d, r8d
call fcn.140042610
mov rsi, rax
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, ebp
call fcn.14003e210
mov ebx, eax
mov rcx, rsi
call fcn.140043590
test bl, bl
jne 0x14003dce9
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x1a
xor r8d, r8d
xor r9d, r9d
call qword [0x14012e5e8]
test eax, eax
js 0x14003dc09
lea rdx, str.PUTTY.RND
lea rcx, [rsp + 0x140]
xor r8d, r8d
call fcn.140042610
mov rsi, rax
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, ebp
call fcn.14003e210
mov ebx, eax
mov rcx, rsi
call fcn.140043590
test bl, bl
jne 0x14003dce9
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 0x14003dc49
mov byte [rsp + 0x140], 0
cmp esi, 0x103
ja 0x14003dc98
cmp eax, 0x103
ja 0x14003dc98
test eax, eax
je 0x14003dc98
lea r8, str.PUTTY.RND
lea rcx, [rsp + 0x140]
lea rdx, [rsp + 0x30]
xor r9d, r9d
call fcn.140042610
mov rsi, rax
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, ebp
call fcn.14003e210
mov ebx, eax
mov rcx, rsi
call fcn.140043590
test bl, bl
jne 0x14003dce9
lea rcx, [rsp + 0x140]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp eax, 0x104
jae 0x14003dcf0
lea rdx, str.PUTTY.RND
lea rcx, [rsp + 0x140]
xor r8d, r8d
call fcn.140042610
mov rsi, rax
lea r8, [rsp + 0x28]
mov rcx, rax
mov edx, ebp
call fcn.14003e210
mov ebx, eax
mov rcx, rsi
call fcn.140043590
test bl, bl
je 0x14003dcf0
mov rsi, qword [rsp + 0x28]
jmp 0x14003dcf7
mov rsi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400ba9f0
mov rax, rsi
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x14003dd20
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov esi, edx
mov rdi, rcx
mov rax, qword [0x14012b050]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 2
call fcn.14003da70
cmp rax, 0xffffffffffffffff
je 0x14003dd74
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.1400ba9f0
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x14003e090
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
sub rsp, 0x28
xor ecx, ecx
call fcn.14003da70
call fcn.14002aa80
mov qword [rsp + 0x20], 0
lea r9, str.SoftwareSimonTathamPuTTY
xor ecx, ecx
mov dl, 1
mov r8, 0xffffffff80000001
call fcn.140046460
test rax, rax
je 0x14003e0da
mov rsi, rax
mov rcx, rax
call fcn.14003e190
mov rcx, rsi
call sub.ADVAPI32.dll_RegCloseKey
mov qword [rsp + 0x20], 0
lea r9, str.SoftwareSimonTatham
xor ecx, ecx
mov dl, 1
mov r8, 0xffffffff80000001
call fcn.140046460
test rax, rax
je 0x14003e17e
mov rsi, rax
lea rdx, [0x14010eab3]
mov rcx, rax
call sub.ADVAPI32.dll_RegDeleteKeyA
mov rcx, rsi
xor edx, edx
call fcn.1400465c0
mov rdi, rax
mov rcx, rsi
call sub.ADVAPI32.dll_RegCloseKey
test rdi, rdi
je 0x14003e139
mov rcx, rdi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140043590
mov qword [rsp + 0x20], 0
lea r9, str.Software
xor ecx, ecx
mov dl, 1
mov r8, 0xffffffff80000001
call fcn.140046460
test rax, rax
je 0x14003e17e
mov rsi, rax
lea rdx, [0x140109d88]
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 0x14003e190
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
xor edx, edx
call fcn.1400465c0
test rax, rax
je 0x14003e207
mov rdi, rax
jmp 0x14003e1d5
mov rcx, rsi
mov rdx, rdi
call sub.ADVAPI32.dll_RegDeleteKeyA
mov rcx, rdi
call fcn.140043590
mov rcx, rsi
xor edx, edx
call fcn.1400465c0
mov rdi, rax
test rax, rax
je 0x14003e207
mov qword [rsp + 0x20], 0
xor ecx, ecx
mov dl, 1
mov r8, rsi
mov r9, rdi
call fcn.140046460
test rax, rax
je 0x14003e1b0
mov rbx, rax
mov rcx, rax
call fcn.14003e190
mov rcx, rbx
call sub.ADVAPI32.dll_RegCloseKey
jmp 0x14003e1b0
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003e210
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 0x14003e26f
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 0x14003e2af
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14003e2a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14003e2a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140047ad0
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 0x1400465c0
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 [0x14012b050]
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.1400434f0
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 0x140046653
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.1400435a0
mov rsi, rax
mov rdi, qword [rsp + 0x38]
jmp 0x140046610
test eax, eax
je 0x140046661
mov rcx, rsi
call fcn.140043590
xor esi, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400ba9f0
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140046680
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14012b050]
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.1400ba9f0
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x1400466f0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14012b050]
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.1400ba9f0
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x140046750
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 [0x14012b050]
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 0x14004681c
cmp dword [rsp + 0x34], 1
jne 0x14004681c
mov edi, dword [rsp + 0x30]
add edi, 1
mov edx, 1
mov rcx, rdi
xor r8d, r8d
call fcn.1400434f0
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 0x140046812
cmp dword [rsp + 0x34], 1
jne 0x140046812
mov eax, dword [rsp + 0x30]
cmp eax, edi
jb 0x14004680a
lea rcx, str.size___allocsize
lea rdx, str._home_simon_mem_.build_workdirs_bob_0_vdcidh_putty_windows_utils_registry.c
mov r8d, 0x6c
call fcn.1400cb8ac
mov eax, dword [rsp + 0x30]
mov eax, eax
mov byte [rsi + rax], 0
jmp 0x14004681c
mov rcx, rsi
call fcn.140043590
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400ba9f0
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140046840
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.1400d0680
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 0x140046890
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 [0x14012b050]
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 0x140046958
cmp dword [rsp + 0x3c], 7
jne 0x140046958
call fcn.140043bc0
mov rsi, rax
mov edx, dword [rsp + 0x38]
add rdx, 2
mov rcx, rax
call fcn.140043aa0
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 0x14004694e
cmp dword [rsp + 0x3c], 7
jne 0x14004694e
mov edx, dword [rsp + 0x38]
mov rcx, rsi
call fcn.140043b00
nop dword [rax]
mov rcx, rsi
xor edx, edx
call fcn.140043b90
test al, al
jne 0x140046930
mov rcx, rsi
add rcx, 0x18
xor edx, edx
call fcn.140042ba0
jmp 0x140046958
mov rcx, rsi
call fcn.140043cc0
xor esi, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400ba9f0
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140046980
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 0x140046dd0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp byte [0x14012edb0], 1
jne 0x140046de8
mov al, byte [0x14012edb1]
jmp 0x140046f6e
mov byte [0x14012edb0], 1
lea rcx, str.advapi32.dll
call fcn.1400462c0
mov qword [0x14012edb8], rax
test rax, rax
je 0x140046f66
lea rdx, str.GetSecurityInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012edc0], rax
test rax, rax
je 0x140046f66
mov rcx, qword [0x14012edb8]
test rcx, rcx
je 0x140046f1f
lea rdx, str.SetSecurityInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012edc8], rax
test rax, rax
je 0x140046f66
mov rcx, qword [0x14012edb8]
test rcx, rcx
je 0x140046f2e
lea rdx, str.OpenProcessToken
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012edd0], rax
test rax, rax
je 0x140046f66
mov rcx, qword [0x14012edb8]
test rcx, rcx
je 0x140046f3d
lea rdx, str.GetTokenInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012edd8], rax
test rax, rax
je 0x140046f66
mov rcx, qword [0x14012edb8]
test rcx, rcx
je 0x140046f4c
lea rdx, [0x140108046]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012ede0], rax
test rax, rax
je 0x140046f66
mov rcx, qword [0x14012edb8]
test rcx, rcx
je 0x140046f5b
lea rdx, [0x140108356]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14012ede8], rax
test rax, rax
je 0x140046f66
mov rcx, qword [0x14012edb8]
test rcx, rcx
je 0x140046f73
lea rdx, str.SetEntriesInAclA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x140046f75
mov qword [0x14012edc8], 0
xor eax, eax
jmp 0x140046f68
mov qword [0x14012edd0], 0
xor eax, eax
jmp 0x140046f68
mov qword [0x14012edd8], 0
xor eax, eax
jmp 0x140046f68
mov qword [0x14012ede0], 0
xor eax, eax
jmp 0x140046f68
mov qword [0x14012ede8], 0
xor eax, eax
mov byte [0x14012edb1], al
add rsp, 0x28
ret
xor eax, eax
mov qword [0x14012edf0], rax
test rax, rax
setne al
jmp 0x140046f68
Function at 0x14004ac60
Capabilities:
Link many functions at runtime

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp byte [0x14012eec8], 0
jne 0x14004ad8e
lea rcx, str.winspool.drv
call fcn.1400462c0
mov rsi, rax
lea rcx, str.spoolss.dll
call fcn.1400462c0
test rsi, rsi
je 0x14004ad31
lea rdx, str.EnumPrintersA
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
call rdi
mov qword [0x14012eec0], rax
lea rdx, str.OpenPrinterA
mov rcx, rsi
call rdi
mov qword [0x14012ee88], rax
lea rdx, str.ClosePrinter
mov rcx, rsi
call rdi
mov qword [0x14012eeb0], rax
lea rdx, str.StartDocPrinterA
mov rcx, rsi
call rdi
mov qword [0x14012ee90], rax
lea rdx, str.EndDocPrinter
mov rcx, rsi
call rdi
mov qword [0x14012eea8], rax
lea rdx, str.StartPagePrinter
mov rcx, rsi
call rdi
mov qword [0x14012ee98], rax
lea rdx, str.EndPagePrinter
mov rcx, rsi
call rdi
mov qword [0x14012eea0], rax
lea rdx, str.WritePrinter
mov rcx, rsi
call rdi
jmp 0x14004ad80
mov qword [0x14012eec0], 0
mov qword [0x14012ee88], 0
mov qword [0x14012eeb0], 0
mov qword [0x14012ee90], 0
mov qword [0x14012eea8], 0
mov qword [0x14012ee98], 0
mov qword [0x14012eea0], 0
xor eax, eax
mov qword [0x14012eeb8], rax
mov byte [0x14012eec8], 1
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140056830
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 [0x14012b050]
xor rax, rsp
mov qword [rsp + 0x130], rax
test r8b, r8b
je 0x140056879
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
add eax, 0xffffffff
cmp eax, 0x103
setb bpl
jmp 0x14005687b
xor ebp, ebp
mov dword [rdi], 0x88
xor eax, eax
test rsi, rsi
je 0x14005688f
cmp byte [rsi], 0
cmovne rax, rsi
mov qword [rdi + 0x50], rax
mov rcx, rdi
test bl, bl
je 0x1400568a2
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x1400568a8
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
mov edi, eax
test rsi, rsi
je 0x1400568cc
mov ecx, 0x104
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
add eax, 0xfffffefc
cmp eax, 0xfffffefc
ja 0x1400568cc
mov byte [rsi], 0
test bpl, bpl
je 0x1400568dc
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.1400ba9f0
mov eax, ebx
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x140074660
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rdx]
lea rdx, [0x14010e835]
call fcn.1400ce168
test rax, rax
je 0x1400746dd
mov rsi, rax
mov qword [rdi + 8], 0
mov r8, qword [rdi + 0x10]
test r8, r8
je 0x1400746f6
xor ecx, ecx
nop word cs:[rax + rax]
nop
sub r8, rcx
add rcx, qword [rdi]
mov edx, 1
mov r9, rsi
call fcn.1400ce2f0
mov rbx, rax
mov rcx, rsi
call fcn.1400cdb20
test eax, eax
jne 0x1400746e4
mov rcx, qword [rdi + 8]
test rbx, rbx
je 0x1400746eb
add rcx, rbx
mov qword [rdi + 8], rcx
mov r8, qword [rdi + 0x10]
cmp r8, rcx
ja 0x1400746a0
jmp 0x1400746ef
mov ebx, 2
jmp 0x140074734
mov ebx, 2
jmp 0x14007472c
mov r8, qword [rdi + 0x10]
xor ebx, ebx
cmp rcx, r8
jne 0x14007470a
mov rcx, rsi
call fcn.1400cdf38
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.1400cd968
mov eax, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x140079120
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 [0x14012b050]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ecx, 1
mov edx, 0x1050
xor r8d, r8d
call fcn.1400434f0
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 [0x14012b0a0], 0xffffffffffffffff
jne 0x1400791ec
lea rax, [0x14012ef70]
mov qword [0x14012ef70], rax
mov qword [0x14012ef78], rax
lea rcx, [0x14012ef80]
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 [0x14012b0a0], rax
lea rdx, [0x140079aa0]
mov rcx, rax
xor r8d, r8d
call fcn.14002cde0
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r8, [0x140079250]
xor ecx, ecx
xor edx, edx
mov r9, r14
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140079220
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.1400ba9f0
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret