joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009c88
Capabilities:
Check if file exists
Get file attributes

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 r13
sub rsp, 0x270
mov rdi, rcx
mov rbp, r8
movsxd rbx, edx
mov r13d, 0x104
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8, r13
mov byte [rsp + 0x50], 0
call sub.msvcrt.dll_memset
lea rax, [rbx + 1]
shl rax, 0xc
cmp byte [rax + rdi], 0x2f
jne 0x140009cfe
lea eax, [rbx + 1]
movsxd rcx, eax
shl rcx, 0xc
lea rdx, [rcx + rdi + 1]
mov rcx, rdi
call fcn.1400076c8
test eax, eax
jle 0x140009cfe
lea rcx, [rsp + 0x50]
mov edx, eax
call fcn.14001382c
jmp 0x140009d18
lea eax, [rbx + 1]
lea rcx, [rsp + 0x50]
mov r8d, r13d
movsxd rdx, eax
shl rdx, 0xc
add rdx, rdi
call fcn.140002674
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140009d32
lea rcx, [rsp + 0x50]
call fcn.140002878
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rcx, [rsp + 0x161]
mov r8, r13
xor edx, edx
mov byte [rsp + 0x160], 0
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x160]
mov r8d, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
and word [rsp + 0x40], 0
movsxd r9, dword [rdi + rbx*4 + 0x4000c]
mov dword [rsp + 0x38], 1
and qword [rsp + 0x30], 0
or dword [rsp + 0x28], 0xffffffff
and qword [rsp + 0x20], 0
lea eax, [rbx + 2]
lea rdx, [rsp + 0x50]
movsxd r8, eax
lea rcx, [rsp + 0x160]
add r9, rbp
shl r8, 0xc
add r8, rdi
call fcn.140003a10
mov ebx, eax
call qword [sym.imp.ole32.dll_CoUninitialize]
test ebx, ebx
je 0x140009dcb
lea rdx, str.Failed_to_create_the_shortcut__
mov rcx, rdi
call fcn.140006bf8
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r13
ret
Function at 0x140009dec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x160
mov rdi, rcx
movsxd rbx, edx
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8d, 0x104
mov byte [rsp + 0x50], 0
call sub.msvcrt.dll_memset
lea eax, [rbx + 6]
or r12d, 0xffffffff
movsxd rcx, eax
shl rcx, 0xc
add rcx, rdi
je 0x140009e3f
call sub.msvcrt.dll_atoi
mov r12d, eax
lea ecx, [rbx + 7]
lea rdx, [0x140018514]
xor r13w, r13w
movsxd rsi, ecx
mov ebp, 1
shl rsi, 0xc
add rsi, rdi
mov rcx, rsi
call sub.msvcrt.dll__strcmpi
test eax, eax
jne 0x140009e6d
lea ebp, [rax + 3]
jmp 0x140009e86
lea rdx, [0x140018518]
mov rcx, rsi
call sub.msvcrt.dll__strcmpi
mov ecx, 7
test eax, eax
cmove ebp, ecx
lea rax, [rbx + 9]
shl rax, 0xc
cmp byte [rax + rdi], 0
je 0x140009eaa
lea eax, [rbx + 9]
movsxd rcx, eax
shl rcx, 0xc
add rcx, rdi
call fcn.140005c94
movzx r13d, ax
lea rcx, [rbx + 2]
shl rcx, 0xc
cmp byte [rcx + rdi], 0x2f
jne 0x140009ee1
lea ecx, [rbx + 2]
movsxd rdx, ecx
mov rcx, rdi
shl rdx, 0xc
lea rdx, [rdx + rdi + 1]
call fcn.1400076c8
test eax, eax
jle 0x140009ee1
lea rcx, [rsp + 0x50]
mov edx, eax
call fcn.14001382c
jmp 0x140009efe
lea eax, [rbx + 2]
lea rcx, [rsp + 0x50]
mov r8d, 0x104
movsxd rdx, eax
shl rdx, 0xc
add rdx, rdi
call fcn.140002674
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140009f18
lea rcx, [rsp + 0x50]
call fcn.140002878
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea r11d, [rbx + 8]
movsxd rcx, r11d
shl rcx, 0xc
add rcx, rdi
jne 0x140009f34
xor edx, edx
jmp 0x140009f3e
mov al, byte [rcx]
neg al
sbb rdx, rdx
and rdx, rcx
lea eax, [rbx + 5]
movsxd rcx, eax
shl rcx, 0xc
add rcx, rdi
jne 0x140009f52
xor r9d, r9d
jmp 0x140009f5c
mov al, byte [rcx]
neg al
sbb r9, r9
and r9, rcx
lea eax, [rbx + 4]
movsxd rcx, eax
shl rcx, 0xc
add rcx, rdi
jne 0x140009f70
xor r10d, r10d
jmp 0x140009f7a
mov al, byte [rcx]
neg al
sbb r10, r10
and r10, rcx
mov word [rsp + 0x40], r13w
lea eax, [rbx + 3]
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x30], rdx
movsxd r8, eax
lea eax, [rbx + 1]
movsxd rcx, eax
shl r8, 0xc
mov dword [rsp + 0x28], r12d
shl rcx, 0xc
mov qword [rsp + 0x20], r9
lea rdx, [rsp + 0x50]
add r8, rdi
mov r9, r10
add rcx, rdi
call fcn.140003a10
mov ebx, eax
call qword [sym.imp.ole32.dll_CoUninitialize]
test ebx, ebx
je 0x140009fd5
lea rdx, str.Failed_to_create_the_shortcut__
mov rcx, rdi
call fcn.140006bf8
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x14000a06c
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, rdx
mov rsi, rcx
xor edx, edx
mov rcx, rax
call fcn.140002524
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x14000a110
and dword [rsp + 0x50], 0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x800000
mov ebp, eax
jae 0x14000a105
lea ecx, [rbp + 1]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov rdx, rax
mov r8d, ebp
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000a0f3
lea r8, [0x140009ff4]
xor edx, edx
mov rcx, rdi
mov byte [rbp + rdi], 0
call fcn.14000276c
jmp 0x14000a0fd
xor edx, edx
mov rcx, rsi
call fcn.140006c2c
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000a11a
xor edx, edx
mov rcx, rsi
call fcn.140006c2c
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400118e8
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
cmp qword [0x14001ca60], 0
jne 0x1400119e2
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtQuerySystemInformation
mov rcx, rax
mov qword [0x14001ca60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001ca60]
lea rdx, str.NtLoadDriver
mov qword [0x14001ca20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001ca60]
lea rdx, str.NtUnloadDriver
mov qword [0x14001ca28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001ca60]
lea rdx, str.NtOpenSymbolicLinkObject
mov qword [0x14001ca30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001ca60]
lea rdx, str.NtQuerySymbolicLinkObject
mov qword [0x14001ca38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001ca60]
lea rdx, str.NtQueryObject
mov qword [0x14001ca40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001ca60]
lea rdx, str.NtSuspendProcess
mov qword [0x14001ca48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001ca60]
lea rdx, str.NtResumeProcess
mov qword [0x14001ca50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001ca58], rax
lea rax, [0x14001ca20]
add rsp, 0x28
ret

Function at 0x140011bc0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x14001c6f8], 0
jne 0x140011ca3
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbx, rax
je 0x140011ca3
lea rdx, [0x1400196a8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x14001c420], rax
je 0x140011c90
lea rdx, str.Module32First
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x14001c410], rax
je 0x140011c90
lea rdx, str.Module32Next
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x14001c408], rax
je 0x140011c90
lea rdx, [0x1400196e8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x14001c2e8], rax
je 0x140011c90
lea rdx, [0x1400196f8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x14001c6f8]
mov edx, 1
test rax, rax
mov qword [0x14001c400], rax
cmovne ecx, edx
mov dword [0x14001c6f8], ecx
jmp 0x140011c96
mov ecx, dword [0x14001c6f8]
test ecx, ecx
jne 0x140011ca3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
add rsp, 0x20
pop rbx
ret
Function at 0x140011cac
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x14001c6fc], 0
jne 0x140011d8f
lea rcx, str.psapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbx, rax
je 0x140011d8f
lea rdx, str.GetModuleBaseNameA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x14001c438], rax
je 0x140011d7c
lea rdx, str.EnumProcessModules
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x14001c428], rax
je 0x140011d7c
lea rdx, str.GetModuleFileNameExA
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x14001c418], rax
je 0x140011d7c
lea rdx, str.EnumProcesses
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x14001c570], rax
je 0x140011d7c
lea rdx, str.GetModuleInformation
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x14001c6fc]
mov edx, 1
test rax, rax
mov qword [0x14001c430], rax
cmovne ecx, edx
mov dword [0x14001c6fc], ecx
jmp 0x140011d82
mov ecx, dword [0x14001c6fc]
test ecx, ecx
jne 0x140011d8f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
add rsp, 0x20
pop rbx
ret

Function at 0x140011dd0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x130
mov rbx, rcx
lea rcx, [rdx + 2]
mov rdi, rdx
mov edx, 0x3a
call sub.msvcrt.dll_strchr
test rax, rax
je 0x140011e04
lea rdx, [rax - 1]
jmp 0x140011e86
lea rdx, str._systemroot
mov rcx, rdi
call fcn.1400025f8
test eax, eax
mov esi, eax
js 0x140011e83
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x104
mov byte [rsp + 0x20], 0
call sub.msvcrt.dll_memset
cmp byte [0x14001caa0], 0
jne 0x140011e51
lea rcx, [0x14001caa0]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [0x14001cba8], eax
lea rdx, [0x14001caa0]
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_strcpy
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.msvcrt.dll_strcpy
lea r11d, [rsi + 0xb]
mov rcx, rbx
movsxd rdx, r11d
add rdx, rdi
call sub.msvcrt.dll_strcat
jmp 0x140011e8e
mov rdx, rdi
mov rcx, rbx
call sub.msvcrt.dll_strcpy
lea r11, [rsp + 0x130]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140012600
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov dword [rsp + 0x20], ecx
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x24], eax
lea rcx, [0x14001259c]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x24], 1
call qword [sym.imp.USER32.dll_EnumWindows]
mov r11d, dword [rsp + 0x28]
xor ebx, ebx
cmp r11d, ebx
jne 0x140012658
lea rdx, [rsp + 0x20]
lea rcx, [0x14001259c]
mov dword [rsp + 0x24], ebx
call qword [sym.imp.USER32.dll_EnumWindows]
mov r11d, dword [rsp + 0x28]
cmp r11d, ebx
setg bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140012664
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r8d, ecx
xor ebx, ebx
xor edx, edx
lea ecx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
cmp rax, rbx
mov rdi, rax
je 0x14001269c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400126ac
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x3a0
mov rsi, rcx
mov rcx, qword [rcx + 0x48]
xor r12d, r12d
cmp rcx, r12
je 0x1400126d5
call sub.msvcrt.dll_free
xor edx, edx
mov qword [rsi + 0x48], r12
mov dword [rsi + 0x58], r12d
lea ecx, [rdx + 2]
mov dword [rsi + 0x50], r12d
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rcx, [rsp + 0x274]
xor edx, edx
mov r8d, 0x12c
mov rbp, rax
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x270]
mov rcx, rbp
mov dword [rsp + 0x270], 0x130
call sub.KERNEL32.dll_Process32First
jmp 0x1400128d0
mov r8d, dword [rsp + 0x278]
mov eax, dword [rsp + 0x290]
xor edx, edx
mov ecx, 0x410
mov byte [rsp + 0x34], r12b
mov dword [rsp + 0x140], r12d
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x13c], eax
mov dword [rsp + 0x144], r12d
mov dword [rsp + 0x148], r12d
mov dword [rsp + 0x14c], r12d
mov dword [rsp + 0x150], r12d
mov dword [rsp + 0x154], r12d
mov dword [rsp + 0x158], r12d
mov dword [rsp + 0x15c], r12d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
cmp rax, r12
mov rdi, rax
je 0x14001287f
lea rcx, [rsp + 0x161]
xor edx, edx
mov r8d, 0x104
mov byte [rsp + 0x160], r12b
call sub.msvcrt.dll_memset
mov rcx, rsi
call fcn.14001290c
mov r11, qword [rsi + 0x20]
cmp r11, r12
je 0x1400127e0
lea r8, [rsp + 0x160]
mov r9d, 0x104
xor edx, edx
mov rcx, rdi
call r11
cmp byte [rsp + 0x34], r12b
jne 0x140012853
cmp dword [0x14001cbd8], r12d
mov dword [rsp + 0x3c0], 0x104
jne 0x140012830
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp rax, r12
je 0x140012830
lea rdx, str.QueryFullProcessImageNameA
mov rcx, rax
mov dword [0x14001cbd8], 1
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001cbe0], rax
jmp 0x140012837
mov rax, qword [0x14001cbe0]
cmp rax, r12
je 0x140012853
lea r9, [rsp + 0x3c0]
lea r8, [rsp + 0x160]
xor edx, edx
mov rcx, rdi
call rax
cmp byte [rsp + 0x161], 0x3a
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x34]
jne 0x140012871
call sub.msvcrt.dll_strcpy
jmp 0x140012876
call fcn.140011dd0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd rdi, dword [rsi + 0x58]
cmp edi, r12d
jl 0x1400128d0
mov eax, dword [rsi + 0x54]
lea r8, [rsi + 0x50]
lea rcx, [rsi + 0x48]
mov r9d, 0x130
mov edx, edi
mov dword [rsp + 0x20], eax
call fcn.1400026c4
lea r11d, [rdi + 1]
cmp dword [rsi + 0x58], r11d
jge 0x1400128b2
mov dword [rsi + 0x58], r11d
mov rcx, rdi
lea rdx, [rsp + 0x30]
mov r8d, 0x130
imul rcx, rcx, 0x130
add rcx, qword [rsi + 0x48]
call sub.msvcrt.dll_memcpy
lea rdx, [rsp + 0x270]
mov rcx, rbp
call sub.KERNEL32.dll_Process32Next
cmp eax, r12d
jne 0x140012723
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x3a0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x14001290c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
jne 0x14001298f
lea rcx, str.psapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.GetModuleBaseNameA
mov rcx, rax
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.EnumProcessModules
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetModuleFileNameExA
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.EnumProcesses
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetModuleInformation
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x18], rax
add rsp, 0x20
pop rbx
ret

Function at 0x140012998
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
cmp qword [rcx], rbx
je 0x1400129b8
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rdi], rbx
lea rcx, str.rasapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp rax, rbx
mov qword [rdi], rax
je 0x140012a45
lea rdx, str.RasSetEntryDialParamsA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi]
lea rdx, str.RasEnumConnectionsA
mov qword [rdi + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi]
lea rdx, str.RasGetConnectStatusA
mov qword [rdi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi]
lea rdx, str.RasHangUpA
mov qword [rdi + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi]
lea rdx, str.RasGetEntryDialParamsA
mov qword [rdi + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi]
lea rdx, str.RasDialA
mov qword [rdi + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x30], rax
cmp qword [rdi], rbx
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140012d6c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x48
lea rax, [r11 + 0x20]
mov dword [r11 + 0x20], r9d
lea r9, [r11 - 0x18]
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add rsp, 0x48
ret

Function at 0x140012d98
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, rcx
mov rcx, r8
mov edi, r9d
mov rbx, r8
mov rsi, rdx
call sub.msvcrt.dll_strlen
add eax, 1
mov r9d, edi
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140012f14
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
mov rdx, rcx
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
mov qword [rcx + 0x10], rbx
lea rcx, [0x140012e7c]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rdi], rbx
je 0x140012f54
cmp qword [rdi + 8], rbx
je 0x140012f54
cmp qword [rdi + 0x10], rbx
je 0x140012f54
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140013288
Capabilities:
Create process on windows
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rsi, rdx
mov rbx, rcx
xor edi, edi
call fcn.140012f14
cmp eax, edi
jne 0x1400132c0
lea edx, [rdi + 5]
lea rcx, str.regedit.exe
call qword [sym.imp.KERNEL32.dll_WinExec]
mov rcx, rbx
call fcn.140012f14
cmp eax, edi
je 0x14001337c
mov rcx, qword [rbx]
mov edx, 0xfffffff0
call qword [sym.imp.USER32.dll_GetWindowLongA]
bt eax, 0x1d
jae 0x1400132f2
mov rcx, qword [rbx]
mov edx, 9
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rdx, rsi
mov rcx, rbx
call fcn.1400130fc
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [rbx], rdi
je 0x140013334
cmp qword [rbx + 8], rdi
je 0x140013334
mov rdx, qword [rbx + 0x10]
cmp rdx, rdi
je 0x140013334
or r9d, 0xffffffff
mov r8, rbp
mov rcx, rbx
call fcn.140012fc8
mov rbx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edx, edx
mov rcx, rbx
mov esi, eax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, 1
mov ecx, esi
mov edx, eax
mov ebp, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
cmp eax, edi
je 0x140013377
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetFocus]
xor r8d, r8d
mov edx, ebp
mov ecx, esi
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x140013394
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov qword [0x14001c700], rax
je 0x140013500
lea rdx, str.OpenSCManagerA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001c700]
lea rdx, str.OpenServiceA
mov qword [0x14001c5a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001c700]
lea rdx, str.ChangeServiceConfigA
mov qword [0x14001c5b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001c700]
lea rdx, str.CloseServiceHandle
mov qword [0x14001c598], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001c700]
lea rdx, str.QueryServiceConfigA
mov qword [0x14001c590], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001c700]
lea rdx, str.ControlService
mov qword [0x14001c5a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001c700]
lea rdx, str.EnumServicesStatusA
mov qword [0x14001c5b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001c700]
lea rdx, str.StartServiceA
mov qword [0x14001c580], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14001c700]
lea rdx, str.QueryServiceStatus
mov qword [0x14001c588], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x14001c5a8], 0
mov qword [0x14001c578], rax
je 0x140013500
cmp qword [0x14001c5b0], 0
je 0x140013500
cmp qword [0x14001c598], 0
je 0x140013500
cmp qword [0x14001c590], 0
je 0x140013500
cmp qword [0x14001c5a0], 0
je 0x140013500
cmp qword [0x14001c5b8], 0
je 0x140013500
cmp qword [0x14001c580], 0
je 0x140013500
cmp qword [0x14001c588], 0
je 0x140013500
test rax, rax
je 0x140013500
mov eax, 1
jmp 0x140013502
xor eax, eax
add rsp, 0x28
ret