joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001cf8
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 0x140001d14
lea eax, [rbx + 1]
jmp 0x140001dfc
lea rcx, str.GDIPlus.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp rax, rbx
mov qword [rdi], rax
je 0x140001dfa
lea rdx, str.GdiplusStartup
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi]
lea rdx, str.GdiplusShutdown
mov qword [rdi + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi]
lea rdx, str.GdipSaveImageToFile
mov qword [rdi + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi]
lea rdx, str.GdipGetImageEncodersSize
mov qword [rdi + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi]
lea rdx, str.GdipGetImageEncoders
mov qword [rdi + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi]
lea rdx, str.GdipCreateBitmapFromHBITMAP
mov qword [rdi + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi]
lea rdx, str.GdipDisposeImage
mov qword [rdi + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi]
lea rdx, str.GdipLoadImageFromFile
mov qword [rdi + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi]
lea rdx, str.GdipCreateHBITMAPFromBitmap
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi]
lea rdx, str.GdipCreateBitmapFromFile
mov qword [rdi + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, 1
mov qword [rdi + 0x50], rax
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000237c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0xa0
and qword [rax + 8], 0
mov rdi, rdx
mov rbx, rcx
call fcn.140001cf8
mov r11, qword [rbx + 0x48]
test r11, r11
je 0x1400023b7
lea rdx, [rsp + 0xb0]
xor r8d, r8d
mov rcx, rdi
call r11
jmp 0x1400023bc
mov eax, 1
test eax, eax
jne 0x140002454
mov rcx, qword [rsp + 0xb0]
lea r8, [rsp + 0x30]
lea edx, [rax + 0x68]
call qword [sym.imp.GDI32.dll_GetObjectA]
and dword [rsp + 0x60], 0
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov r9, qword [rsp + 0x48]
and dword [rsp + 0x28], 0
mov rbx, rax
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x50]
mov r8d, 4
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.GDI32.dll_CreateDIBitmap]
mov rdx, rbx
xor ecx, ecx
mov rdi, rax
call qword [sym.imp.USER32.dll_ReleaseDC]
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140002446
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, rdi
mov ecx, 2
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.GDI32.dll_DeleteObject]
xor eax, eax
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
Function at 0x140002584
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rcx, rdx
mov rbx, rdx
call sub.msvcrt.dll_strlen
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8, rax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140002878
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x130
mov rbx, rcx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call sub.msvcrt.dll_strcpy
lea rcx, [rsp + 0x20]
mov edx, 0x5c
call sub.msvcrt.dll_strrchr
test rax, rax
je 0x1400028c2
lea rcx, [rsp + 0x20]
mov byte [rax], 0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400028c2
lea rcx, [rsp + 0x20]
call fcn.140002878
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add rsp, 0x130
pop rbx
ret

Function at 0x140002918
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
lea rcx, [rsp + 0x20]
mov rdi, r8
mov rbx, rdx
call sub.msvcrt.dll_strcpy
lea rcx, [rsp + 0x20]
mov edx, 0x5c
call sub.msvcrt.dll_strrchr
test rax, rax
jne 0x14000294f
mov byte [rsp + 0x20], al
jmp 0x140002952
mov byte [rax], 0
lea rdx, [rsp + 0x130]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x1400029aa
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x130]
mov rcx, rdi
call fcn.1400073bc
test eax, eax
je 0x14000299a
lea rdx, [rsp + 0x130]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14000296c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x1400029ac
xor eax, eax
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret

Function at 0x140002cb4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
sub rsp, 0x38
and dword [rax + 0x20], 0
and qword [rax - 0x18], 0
lea r9, [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
add rsp, 0x38
ret

Function at 0x140002cd8
Capabilities:
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, 0x40
xor ebx, ebx
mov rbp, r9
mov r12, r8
cmp dword [rsp + 0x80], ebx
mov r13, rdx
mov rsi, rcx
mov edi, ebx
je 0x140002d19
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
mov eax, 0x2000000
cmovne edi, eax
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov edx, 0x40000000
lea r8d, [r9 + 1]
mov rcx, rsi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x140002d65
mov r9, rbp
mov r8, r12
mov rdx, r13
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
Function at 0x1400030f8
Capabilities:
Get file size
Open clipboard
Read clipboard data
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor ecx, ecx
mov r12d, r8d
mov rdi, rdx
xor ebx, ebx
call qword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, ebx
je 0x140003239
lea ecx, [rbx + 0xd]
call qword [sym.imp.USER32.dll_GetClipboardData]
cmp rax, rbx
mov rsi, rax
je 0x140003233
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
cmp rax, rbx
mov rbp, rax
je 0x140003233
cmp r12d, ebx
mov rcx, rdi
je 0x14000318e
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea r9d, [rbx + 2]
xor r8d, r8d
mov rcx, rax
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x140003198
xor edx, edx
call fcn.140002554
mov rdi, rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
jne 0x1400031cb
lea r9, [rsp + 0x78]
lea rdx, [0x1400177d8]
mov r8d, 2
mov rcx, rdi
mov dword [rsp + 0x78], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, 0xffffffffffffffff
je 0x14000322a
mov rcx, rbp
call sub.msvcrt.dll_wcslen
lea r9, [rsp + 0x78]
mov rdx, rbp
lea r8d, [rax + rax]
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp r12d, ebx
je 0x14000321c
lea r9, [rsp + 0x78]
lea rdx, [0x1400177dc]
mov r8d, 4
mov rcx, rdi
mov dword [rsp + 0x78], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x140003250
Capabilities:
Open clipboard
Read clipboard data

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 r12
sub rsp, 0x40
xor ecx, ecx
mov r12d, r8d
mov rdi, rdx
xor ebx, ebx
call qword [sym.imp.USER32.dll_OpenClipboard]
cmp eax, ebx
je 0x140003339
lea ecx, [rbx + 1]
call qword [sym.imp.USER32.dll_GetClipboardData]
cmp rax, rbx
mov rsi, rax
je 0x140003333
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
cmp rax, rbx
mov rbp, rax
je 0x140003333
cmp r12d, ebx
mov rcx, rdi
je 0x1400032ed
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea r9d, [rbx + 2]
xor r8d, r8d
mov rcx, rax
xor edx, edx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x1400032f7
xor edx, edx
call fcn.140002554
mov rdi, rax
cmp rdi, 0xffffffffffffffff
je 0x14000332a
mov rdx, rbp
mov rcx, rdi
call fcn.140002584
cmp r12d, ebx
je 0x14000331c
lea rdx, [0x1400177a0]
mov rcx, rdi
call fcn.140002584
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r12
ret

Function at 0x140003358
Capabilities:
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
call qword [sym.imp.USER32.dll_EmptyClipboard]
cmp rdi, rbx
je 0x1400033d2
mov rcx, rdi
call sub.msvcrt.dll_strlen
mov ecx, 0x2000
add eax, 1
movsxd rbp, eax
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp rax, rbx
mov rsi, rax
je 0x1400033d2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [rbx + 1]
mov rdx, rsi
call qword [sym.imp.USER32.dll_SetClipboardData]
cmp rax, rbx
setne bl
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400036a8
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, rdx
mov rbx, rcx
xor edx, edx
mov rcx, rax
call fcn.140002524
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x14000374a
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [rbx]
test rcx, rcx
mov esi, eax
je 0x1400036ee
call sub.msvcrt.dll_free
and qword [rbx], 0
mov eax, dword [rbx + 0x14]
and dword [rbx + 0xc], 0
lea r8, [rbx + 8]
and dword [r8], 0
mov r9d, 1
mov edx, esi
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.1400026c4
mov rdx, qword [rbx]
and dword [rsp + 0x58], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rbx]
mov byte [rsi + rcx], 0
mov rcx, rdi
mov dword [rbx + 0xc], esi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x14000374c
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400037fc
Capabilities:
Enumerate files on windows

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 r12
sub rsp, 0x20
or rsi, 0xffffffffffffffff
mov rbx, rcx
lea rdx, [rcx + 0x14c]
cmp qword [rcx], rsi
jne 0x140003840
add rcx, 8
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor edi, edi
cmp rax, rsi
mov qword [rbx], rax
setne dil
jmp 0x140003860
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
mov edi, eax
jne 0x140003864
cmp qword [rbx], rsi
je 0x140003860
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rbx], rsi
test edi, edi
je 0x1400038ad
lea r12, [rbx + 0x3d0]
lea rsi, [rbx + 0x28c]
lea rbp, [rbx + 0x178]
mov rcx, r12
call sub.msvcrt.dll_strlen
mov rcx, rbp
mov rbx, rax
call sub.msvcrt.dll_strlen
lea r9, [rbx + rax + 1]
cmp r9, 0x143
jae 0x1400038aa
mov r8, rsi
mov rdx, rbp
mov rcx, r12
call fcn.1400028d8
jmp 0x1400038ad
mov byte [rsi], 0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x140003e98
Capabilities:
Accept command line arguments

Disassembly:
push rbx
mov eax, 0x40350
call fcn.140015af0
sub rsp, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
and dword [0x14001c2e0], 0
lea rcx, [rsp + 0x20]
mov qword [0x14001c2d8], rax
call fcn.1400060d4
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea rcx, [rsp + 0x20]
mov rdx, rax
mov r8d, 1
call fcn.14000abf8
test eax, eax
jne 0x140003ef8
lea rcx, [0x140017860]
call sub.msvcrt.dll_printf
mov ebx, dword [0x14001c2e0]
jmp 0x140003f05
mov ebx, dword [rsp + 0x40348]
mov dword [0x14001c2e0], ebx
lea rcx, [rsp + 0x401f0]
call fcn.1400033f0
lea rcx, [rsp + 0x401c0]
call fcn.1400033f0
lea rcx, [rsp + 0x40190]
call fcn.1400033f0
mov rcx, qword [rsp + 0x40158]
test rcx, rcx
je 0x140003f3f
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
add rsp, 0x40350
pop rbx
ret
Function at 0x140005ed8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r8d, ecx
mov rdi, rdx
xor ebx, ebx
lea ecx, [rbx + 0x10]
xor edx, edx
mov r15d, r9d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
cmp rax, rbx
mov rsi, rax
mov qword [rsp + 0x40], rax
je 0x140006041
xor edx, edx
mov rcx, rdi
call fcn.140002554
cmp rax, 0xffffffffffffffff
mov rbp, rax
je 0x14000602e
mov r12d, r15d
mov dword [rsp + 0x30], 1
imul r12d, r12d, 0x3e8
lea ecx, [r12 + 1]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
cmp dword [rsp + 0xa0], ebx
mov edi, ebx
mov r14, rax
jbe 0x14000601b
lea eax, [rdi + r12]
cmp eax, dword [rsp + 0xa0]
jbe 0x140005f77
mov esi, dword [rsp + 0xa0]
sub esi, edi
jmp 0x140005f88
mov eax, dword [rsp + 0x30]
mov esi, r15d
cmp eax, ebx
mov dword [rsp + 0x38], eax
cmovne esi, r12d
mov rcx, qword [rsp + 0x40]
mov edx, edi
mov r9d, esi
add rdx, qword [rsp + 0x90]
mov r8, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp eax, ebx
mov dword [rsp + 0x30], eax
je 0x140006000
cmp dword [rsp + 0xb0], ebx
mov r8d, esi
mov rdx, r14
je 0x140005fd8
lea r9, [rsp + 0x34]
mov rcx, rbp
mov dword [rsp + 0x34], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140005ffc
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp + 0xa8]
mov r9d, r15d
mov dword [rsp + 0x28], ecx
add eax, edi
mov rcx, rbp
mov dword [rsp + 0x20], eax
call fcn.140002ab8
add edi, esi
jmp 0x140006009
cmp dword [rsp + 0x38], ebx
jne 0x140006009
add edi, r15d
cmp edi, dword [rsp + 0xa0]
jb 0x140005f5f
mov rsi, qword [rsp + 0x40]
mov rcx, r14
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140006036
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140006049
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140006ce4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x140
mov rsi, rdx
mov rbx, rcx
xor edi, edi
cmp qword [rbx + 0x40138], 0
mov dword [rsp + 0x20], 0x120
jne 0x140006dcf
lea rcx, str.rasapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov qword [rbx + 0x40138], rax
je 0x140006dcf
lea rdx, str.RasSetEntryDialParamsA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x40138]
lea rdx, str.RasEnumConnectionsA
mov qword [rbx + 0x40140], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x40138]
lea rdx, str.RasGetConnectStatusA
mov qword [rbx + 0x40148], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x40138]
lea rdx, str.RasHangUpA
mov qword [rbx + 0x40150], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x40138]
lea rdx, str.RasGetEntryDialParamsA
mov qword [rbx + 0x40158], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x40138]
lea rdx, str.RasDialA
mov qword [rbx + 0x40160], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x40168], rax
mov rax, qword [rbx + 0x40150]
test rax, rax
je 0x140006de7
lea rdx, [rsp + 0x20]
mov rcx, rsi
call rax
jmp 0x140006dea
or eax, 0xffffffff
cmp eax, 6
je 0x140006e09
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
add edi, 1
cmp edi, 0xbb8
jb 0x140006cfe
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140006e20
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x20
and dword [rsp + 0x50], 0
mov r13, rcx
mov ecx, 0x2b80
mov dword [rsp + 0x58], ecx
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x58]
lea rcx, [r13 + 0x40138]
mov rdx, rax
mov rdi, rax
mov dword [rax], 0x2b8
call fcn.140012a58
test eax, eax
jne 0x140006f8c
xor esi, esi
cmp dword [rsp + 0x50], esi
jbe 0x140006f8c
lea rbp, [rdi + 4]
cmp qword [r13 + 0x40138], 0
mov r12, qword [rbp]
jne 0x140006f4d
lea rcx, str.rasapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov qword [r13 + 0x40138], rax
je 0x140006f4d
lea rdx, str.RasSetEntryDialParamsA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [r13 + 0x40138]
lea rdx, str.RasEnumConnectionsA
mov qword [r13 + 0x40140], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [r13 + 0x40138]
lea rdx, str.RasGetConnectStatusA
mov qword [r13 + 0x40148], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [r13 + 0x40138]
lea rdx, str.RasHangUpA
mov qword [r13 + 0x40150], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [r13 + 0x40138]
lea rdx, str.RasGetEntryDialParamsA
mov qword [r13 + 0x40158], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [r13 + 0x40138]
lea rdx, str.RasDialA
mov qword [r13 + 0x40160], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [r13 + 0x40168], rax
mov rax, qword [r13 + 0x40158]
test rax, rax
je 0x140006f60
mov rcx, r12
call rax
jmp 0x140006f63
or eax, 0xffffffff
test eax, eax
jne 0x140006f78
mov r8d, 0xbb8
mov rdx, r12
mov rcx, r13
call fcn.140006ce4
add esi, 1
add rbp, 0x2b8
cmp esi, dword [rsp + 0x50]
jb 0x140006e80
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400075e4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
call fcn.1400076c8
xor ebx, ebx
cmp eax, ebx
jle 0x14000761c
mov edx, eax
mov rcx, rdi
mov byte [rdi], bl
call fcn.14001382c
cmp byte [rdi], bl
setne bl
mov eax, ebx
jmp 0x1400076b8
lea rdx, str.system
mov rcx, rsi
call sub.msvcrt.dll__strcmpi
cmp eax, ebx
jne 0x140007644
mov edx, 0x104
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, 1
jmp 0x1400076b8
lea rdx, str.windows
mov rcx, rsi
call sub.msvcrt.dll__strcmpi
cmp eax, ebx
jne 0x140007667
mov edx, 0x104
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x14000763d
lea rdx, str.nircmd
mov rcx, rsi
call sub.msvcrt.dll__strcmpi
cmp eax, ebx
jne 0x1400076b6
mov r8d, 0x104
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov rcx, rdi
call sub.msvcrt.dll_strlen
sub eax, 1
movsxd rcx, eax
cmp rcx, rbx
jl 0x14000763d
cmp byte [rcx + rdi], 0x5c
je 0x1400076af
sub eax, 1
sub rcx, 1
jns 0x14000769e
jmp 0x14000763d
cdqe
mov byte [rax + rdi], bl
jmp 0x14000763d
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140008c50
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, r8d
mov edi, edx
mov rsi, rcx
call fcn.140011d98
lea rcx, [0x140008c40]
mov rdx, rsi
mov dword [rsi + 0x40324], ebx
mov dword [rsi + 0x40104], edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.USER32.dll_EnumWindows]

Function at 0x140009b04
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 r14
sub rsp, 0x270
mov rdi, rcx
mov r12, r8
movsxd rbx, edx
mov r14d, 0x104
lea rcx, [rsp + 0x51]
xor edx, edx
mov r8, r14
mov byte [rsp + 0x50], 0
call sub.msvcrt.dll_memset
lea rax, [rbx + 1]
shl rax, 0xc
cmp byte [rax + rdi], 0x2f
jne 0x140009b79
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 0x140009b79
lea rcx, [rsp + 0x50]
mov edx, eax
call fcn.14001382c
jmp 0x140009b93
lea eax, [rbx + 1]
lea rcx, [rsp + 0x50]
mov r8d, r14d
movsxd rdx, eax
shl rdx, 0xc
add rdx, rdi
call fcn.140002674
lea rax, [rbx + 3]
xor bp, bp
shl rax, 0xc
cmp byte [rax + rdi], bpl
je 0x140009bb9
lea eax, [rbx + 3]
movsxd rcx, eax
shl rcx, 0xc
add rcx, rdi
call fcn.140005c94
movzx ebp, ax
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140009bd3
lea rcx, [rsp + 0x50]
call fcn.140002878
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rcx, [rsp + 0x161]
mov r8, r14
xor edx, edx
mov byte [rsp + 0x160], 0
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x160]
mov r8d, r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
movsxd r9, dword [rdi + rbx*4 + 0x40010]
mov word [rsp + 0x40], bp
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, r12
shl r8, 0xc
add r8, rdi
call fcn.140003a10
mov ebx, eax
call qword [sym.imp.ole32.dll_CoUninitialize]
test ebx, ebx
je 0x140009c6b
lea rdx, str.Failed_to_create_the_shortcut__
mov rcx, rdi
call fcn.140006bf8
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rdi
ret