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

Disassembly:
push rdi
mov eax, 0x1070
call fcn.14024c240
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x1088], rbx
mov qword [rsp + 0x1090], rbp
mov qword [rsp + 0x1098], rsi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rsp + 0x1060], rax
mov rbx, rcx
xor ebp, ebp
mov edi, ebp
mov dword [rsp + 0x60], ebp
xor edx, edx
mov r8d, 0x7fc
lea rcx, [rsp + 0x64]
call fcn.14024b970
mov r11, qword [rbx]
mov r9d, 0x400
lea r8, [rsp + 0x60]
lea edx, [rbp + 1]
mov rcx, rbx
call qword [r11 + WSAStartup]
test eax, eax
je 0x1400cdb91
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400cdb91
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
call qword [rax + 0x168]
jmp 0x1400cdba0
mov dword [0x1403b95bc], 9
mov edi, 0x80010009
mov dword [rsp + 0x860], ebp
xor edx, edx
mov r8d, 0x7fc
lea rcx, [rsp + 0x864]
call fcn.14024b970
test edi, edi
jne 0x1400cdca8
mov r10, qword [rbx]
mov r9d, 0x400
lea r8, [rsp + 0x860]
lea edx, [rdi + 2]
mov rcx, rbx
call qword [r10 + WSAStartup]
test eax, eax
jne 0x1400cdbf7
mov dword [0x1403b95bc], 9
mov eax, 0x80010009
jmp 0x1400cdcaa
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rbp
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0xb0]
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.1400cc760
test eax, eax
je 0x1400cdc47
mov rax, qword [rbx]
mov byte [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x860]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [rax + 0x78]
mov esi, eax
jmp 0x1400cdc56
mov esi, 0x80010002
mov dword [0x1403b95bc], 2
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1400cdca4
mov rdi, qword [rsp + 0x38]
cmp rbx, rdi
je 0x1400cdc9c
nop word [rax + rax]
cmp qword [rbx + 0x18], 8
jb 0x1400cdc7f
mov rcx, qword [rbx]
call fcn.1401026ec
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rbp
mov word [rbx], bp
add rbx, 0x28
cmp rbx, rdi
jne 0x1400cdc70
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call fcn.1401026ec
mov eax, esi
jmp 0x1400cdcaa
mov eax, edi
mov rcx, qword [rsp + 0x1060]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0x1070]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400ce590
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea rax, [rsp + 0x28]
mov rbx, r8
lea rcx, [rsp + 0x20]
mov r8d, 3
mov rdi, rdx
mov qword [rsp + 0x20], rax
call fcn.1400206e0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.WSOCK32.dll_inet_addr]
mov rcx, qword [rsp + 0x20]
mov dword [rbx], eax
lea rax, [rsp + 0x28]
cmp rcx, rax
je 0x1400ce5f0
call fcn.140245808
cmp dword [rbx], 0xffffffff
jne 0x1400ce60d
lea rdx, str.255.255.255.255
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400ce60d
xor eax, eax
jmp 0x1400ce612
mov eax, 1
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret
Function at 0x1400ce800
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x460
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor r13d, r13d
mov rdi, r9
mov rbp, r8
mov r12, rdx
mov esi, r13d
test rdx, rdx
je 0x1400ce9c8
test r8, r8
je 0x1400ce9c8
mov rax, qword [r9 + 8]
cmp qword [r9], rax
je 0x1400ce9c8
mov rcx, r8
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400ce9c8
mov qword [rsp + 0x490], rbx
cmp byte [rsp + 0x4b0], sil
je 0x1400ce892
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400ce892
mov rcx, qword [0x1403b9768]
mov rdx, r12
mov rax, qword [rcx]
call qword [rax + 0x168]
mov rbx, qword [rdi]
cmp rbx, qword [rdi + 8]
je 0x1400ce9bc
nop
lea rcx, [rsp + 0x34]
xor edx, edx
mov r8d, 0x204
mov dword [rsp + 0x30], r13d
call fcn.14024b970
lea rcx, [rsp + 0x244]
xor edx, edx
mov r8d, 0x204
mov dword [rsp + 0x240], r13d
call fcn.14024b970
cmp qword [rbx + 0x18], 8
jb 0x1400ce8e0
mov rax, qword [rbx]
jmp 0x1400ce8e3
mov rax, rbx
mov qword [rsp + 0x28], rax
lea r9, [0x1402e3978]
lea rcx, [rsp + 0x30]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov qword [rsp + 0x20], rbp
call fcn.14024679c
cmp qword [rbx + 0x18], 8
jb 0x1400ce913
mov rax, qword [rbx]
jmp 0x1400ce916
mov rax, rbx
mov qword [rsp + 0x28], rax
lea r9, [0x1402e3978]
lea rcx, [rsp + 0x240]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov qword [rsp + 0x20], r12
call fcn.14024679c
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400ce99f
mov rcx, qword [0x1403b9768]
lea r8, [rsp + 0x240]
lea rdx, [rsp + 0x30]
mov rax, qword [rcx]
mov r9d, 1
call qword [rax + 0x58]
test eax, eax
jle 0x1400ce9ae
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1400ce99f
lea rcx, [rsp + 0x240]
mov edx, 0x20
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1400ce9ae
mov dword [0x1403b95bc], 0xc
mov esi, 0x8001000c
add rbx, 0x28
cmp rbx, qword [rdi + 8]
jne 0x1400ce8a0
mov rbx, qword [rsp + 0x490]
mov eax, esi
jmp 0x1400ce9d7
mov dword [0x1403b95bc], 1
mov eax, 0x80010001
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140245660
add rsp, 0x460
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400d0420
Capabilities:
Read .ini file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x2f0], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov r15, rdx
mov rsi, rcx
mov r13b, 1
mov qword [rsp + 0x48], 7
xor edi, edi
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x30], di
xor r8d, r8d
lea rdx, [0x1402dc4e0]
lea rcx, [rsp + 0x30]
call fcn.140001f40
nop
mov rax, qword [rsi + 0x18]
cmp qword [rsi + 0x10], rax
jne 0x1400d05f2
mov r8d, 0x104
lea rdx, [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400d05a6
lea edx, [rdi + 0x5c]
lea rcx, [rbp - 0x80]
call fcn.140249468
lea rdx, [0x1402de9b4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x1402e5094]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x1402e5098]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rsp + 0x20], rax
lea edx, [rdi + 8]
mov r8d, 0xfffe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x1400d05a6
lea r9, [rbp - 0x80]
mov r8d, 0x7fff
mov rdx, rax
lea rcx, str.Non_Display_Message
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov rbx, r14
cmp word [r14], di
je 0x1400d0596
nop word [rax + rax]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140001f40
lea rdx, [rsp + 0x30]
lea rcx, [rsi + 0x10]
call fcn.140040160
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, eax
lea rbx, [rbx + rdx*2 + 2]
cmp word [rbx], 0
jne 0x1400d0550
xor edi, edi
mov r8, r14
xor edx, edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
mov r8d, 7
lea rdx, str.MSG_END
lea rcx, [rsp + 0x58]
call fcn.140001f40
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsi + 0x10]
call fcn.140040160
nop
cmp qword [rsp + 0x70], 8
jb 0x1400d05f2
mov rcx, qword [rsp + 0x58]
call fcn.1401026ec
mov rdi, qword [rsi + 0x10]
cmp rdi, qword [rsi + 0x18]
je 0x1400d0641
nop dword [rax]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140001e00
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400d063e
add rdi, 0x28
cmp rdi, qword [rsi + 0x18]
jne 0x1400d0600
jmp 0x1400d0641
xor r13b, r13b
cmp qword [rsp + 0x48], 8
jb 0x1400d0653
mov rcx, qword [rsp + 0x30]
call fcn.1401026ec
movzx eax, r13b
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400d0690
Capabilities:
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0x980]
sub rsp, 0xa80
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x970], rax
mov ebx, r9d
mov r12, r8
mov rdi, rdx
mov qword [rsp + 0x50], rdx
xor esi, esi
mov dword [rsp + 0x30], esi
xor r8d, r8d
lea rdx, str.CBaseMsgMgr::GetDebugMsg
lea rcx, [rsp + 0x38]
call fcn.1400075a0
nop
mov dword [rbp + 0x170], esi
xor edx, edx
mov r8d, 0x7fc
lea rcx, [rbp + 0x174]
call fcn.14024b970
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400d083c
lea edx, [rsi + 0x5c]
lea rcx, [rsp + 0x60]
call fcn.140249468
lea rdx, [0x1402de9b4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x1402e5094]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x1402e5098]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
call fcn.140102a14
mov rcx, rax
test rax, rax
setne sil
test esi, esi
jne 0x1400d077d
mov ecx, 0x80004005
call fcn.140005210
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov r8d, ebx
lea rdx, str.INPUT__d
lea rcx, [rsp + 0x48]
call fcn.14000de40
lea r9, [rsp + 0x60]
lea r8, str.______tCBaseMsgMgr::GetDebugMsg::INIPath_s
mov edx, 7
lea rcx, [rsp + 0x38]
call fcn.140007780
mov r9, r12
lea r8, str.______tCBaseMsgMgr::GetDebugMsg::Section_s
mov edx, 7
lea rcx, [rsp + 0x38]
call fcn.140007780
mov rbx, qword [rsp + 0x48]
mov r9, rbx
lea r8, str.______tCBaseMsgMgr::GetDebugMsg::Entry___s
mov edx, 7
lea rcx, [rsp + 0x38]
call fcn.140007780
lea r11, [rsp + 0x60]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], 0x400
lea r9, [rbp + 0x170]
lea r8, [0x1402dc4e0]
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400d083c
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea r8, [0x1402dc4e0]
mov edx, 2
lea rcx, [rsp + 0x38]
call fcn.140007780
mov rcx, rdi
test esi, esi
je 0x1400d086f
lea rdx, [rbp + 0x170]
call fcn.140005900
mov dword [rsp + 0x30], 1
jmp 0x1400d0883
lea rdx, [0x1402dc4e0]
call fcn.140005900
mov dword [rsp + 0x30], 1
lea rcx, [rsp + 0x38]
call fcn.140007730
mov rax, rdi
mov rcx, qword [rbp + 0x970]
xor rcx, rsp
call fcn.140245660
add rsp, 0xa80
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400d59a0
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x480
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x4b8], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov esi, r8d
mov rdi, rdx
mov rbp, rcx
xor r8d, r8d
lea rdx, str.CBaseOSSpec::GetSpoolerFileName
lea rcx, [rsp + 0x30]
call fcn.1400075a0
nop
mov r9d, esi
lea r8, str.dwMaxLength___d
mov ebx, 1
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140007780
cmp qword [rbp + 0x18], 0
je 0x1400d5a95
test rdi, rdi
je 0x1400d5a93
lea r8, [rsi + rsi]
xor edx, edx
mov rcx, rdi
call fcn.14024b970
mov rcx, qword [rbp + 0x18]
mov rax, qword [rcx]
mov r8d, 0x104
lea rdx, [rsp + 0x260]
call qword [rax + 0x158]
mov ebx, eax
test eax, eax
je 0x1400d5a95
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400d5a93
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r11, [rsp + 0x260]
mov qword [rsp + 0x28], r11
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [0x1402e3978]
or r8, 0xffffffffffffffff
mov edx, esi
mov rcx, rdi
call fcn.14024679c
jmp 0x1400d5a95
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov r9, rdi
lea r8, str.lpFileName___s__return___08x
mov edx, 2
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
lea rcx, [rsp + 0x30]
call fcn.140007730
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x4b8]
add rsp, 0x480
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400dcbf0
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rdi, r8
mov ebx, edx
xor r8d, r8d
lea rdx, str.CBaseOSSpecTypeWin2K::DeleteOldUnInstall
lea rcx, [rsp + 0x38]
call fcn.1400075a0
nop
mov qword [rsp + 0x20], rdi
mov r9d, ebx
lea r8, str.nMoode___d__szSysDir___s
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140007780
test ebx, ebx
je 0x1400dcc6d
mov r9d, reloc.WSOCK32.dll_socket
lea r8, str.return___08x
lea edx, [r9 - 0x15]
lea rcx, [rsp + 0x38]
call fcn.140007780
nop
lea rcx, [rsp + 0x38]
call fcn.140007730
mov eax, reloc.WSOCK32.dll_socket
jmp 0x1400dccbb
lea r9, str.UNINSTAL.tmp
mov r8, rdi
lea rdx, [0x1402dd6b0]
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r9d, 1
lea r8, str.return___08x
lea edx, [r9 + 1]
lea rcx, [rsp + 0x38]
call fcn.140007780
nop
lea rcx, [rsp + 0x38]
call fcn.140007730
mov eax, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1400deae0
Capabilities:
Move file

Disassembly:
push rdi
sub rsp, 0x870
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x880], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rsp + 0x860], rax
xor r8d, r8d
lea rdx, str.CBaseOSSpecTypeWin2K::CleanUpIniFileReboot
lea rcx, [rsp + 0x48]
call fcn.1400075a0
nop
mov ebx, 1
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
lea r8, [rsp + 0x60]
lea rdx, str.TEMPPATH
mov rcx, rax
call qword [r9 + 0x18]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rsp + rcx*2 + 0x5e], 0x5c
je 0x1400deb71
lea rdx, [0x1402e5094]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.InsDrv.ini
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r9, [rsp + 0x60]
lea r8, str._t_t_tDEL_PATH__s
mov edx, 7
lea rcx, [rsp + 0x48]
call fcn.140007780
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400dec28
xor ebx, ebx
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, edi
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x1400dec18
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
lea r9, str._t_t_tMoveFileEx
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
lea edx, [rbx + 6]
lea rcx, [rsp + 0x48]
call fcn.140007780
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400dec28
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x48]
call fcn.140007780
nop
lea rcx, [rsp + 0x48]
call fcn.140007730
mov eax, ebx
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x880]
add rsp, 0x870
pop rdi
ret
Function at 0x1400df920
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0xab0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xac0], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rsp + 0xaa0], rax
mov rdi, r8
mov ebx, edx
xor r8d, r8d
lea rdx, str.CBaseOSSpecTypeWin2K::CopyColorProfileInSystemFolder
lea rcx, [rsp + 0x30]
call fcn.1400075a0
nop
mov qword [rsp + 0x20], rdi
mov r9d, ebx
lea r8, str.dwcVer___d__pEnv___s
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140007780
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x50]
call fcn.14024b970
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x260]
call fcn.14024b970
cmp ebx, 3
je 0x1400df9be
cmp ebx, 5
jne 0x1400df9e5
lea rdx, str.SPOOLDRIVERSx643_
jmp 0x1400df9c5
lea rdx, str.SPOOLDRIVERSW32X863_
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str.SPOOLDRIVERSCOLOR_
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, 0x104
lea rcx, [rsp + 0x470]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0x470]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov rcx, qword [0x1403b9758]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov r9, qword [rax]
mov r8, rdi
lea rdx, [rsp + 0x890]
mov rcx, rax
call qword [r9 + 0x238]
lea r9, [rsp + 0x260]
lea r8, [rsp + 0x470]
lea rdx, [0x1402e3978]
lea rcx, [rsp + 0x680]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [0x1402dc4e0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400dfa8d
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
lea r9, str..icc
lea r8, [rsp + 0x680]
lea rdx, [rsp + 0x890]
call qword [rax + Ordinal_203]
lea r8, [0x1402dc4e0]
mov edx, 2
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
lea rcx, [rsp + 0x30]
call fcn.140007730
mov rcx, qword [rsp + 0xaa0]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0xac0]
add rsp, 0xab0
pop rdi
ret
Function at 0x1400e9610
Capabilities:
Read .ini file

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x2050
call fcn.14024c240
sub rsp, rax
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rsp + 0x2040], rax
mov rax, qword [rsp + 0x2090]
xor esi, esi
mov rdi, r8
test rax, rax
mov dword [rsp + 0x30], esi
lea r8, [rsp + 0x30]
cmovne r8, rax
add rcx, 8
mov r10, r9
cmp qword [rcx + 0x18], 8
mov rbx, rdx
mov word [rsp + 0x30], si
jb 0x1400e9669
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x40]
mov rdx, r10
mov rcx, rdi
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
or rcx, 0xffffffffffffffff
xor eax, eax
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
mov word [rbx], si
lea rdi, [rsp + 0x40]
lea rdx, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.140001f40
mov rax, rbx
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.140245660
add rsp, 0x2050
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400ec4d0
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x5d0]
sub rsp, 0x6d0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x6f0], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
mov esi, r9d
mov rdi, r8
mov rbx, rdx
xor r8d, r8d
lea rdx, str.CBaseUtyMgr::FindAllFilesInFolder
lea rcx, [rsp + 0x30]
call fcn.1400075a0
nop
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, str.lpszDirectory___s__bFlg___d
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140007780
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3b0]
call fcn.14024b970
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1a0]
call fcn.14024b970
mov rdx, rbx
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rbp + rcx*2 + 0x19e], 0x5c
je 0x1400ec5a7
lea rdx, [0x1402e5094]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r8, [rbp + 0x1a0]
lea rdx, [0x1402e3988]
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400ec6ac
test byte [rsp + 0x50], 0x10
je 0x1400ec65a
lea rdx, [0x1402e3994]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400ec653
lea rdx, [0x1402e3998]
lea rcx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400ec653
cmp esi, 1
jne 0x1400ec653
lea r9, [rsp + 0x7c]
lea r8, [rbp + 0x1a0]
lea rdx, [0x1402e3978]
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
mov r9d, esi
mov r8, rdi
lea rdx, [rbp + 0x3b0]
call qword [rax + 0x40]
test byte [rsp + 0x50], 0x10
jne 0x1400ec68d
lea r9, [rsp + 0x7c]
lea r8, [rbp + 0x1a0]
lea rdx, [0x1402e3978]
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rbp + 0x3b0]
mov rdx, qword [rdi + 0x10]
mov rcx, rdi
call fcn.140105f30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400ec5e1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x30]
call fcn.140007780
nop
lea rcx, [rsp + 0x30]
call fcn.140007730
xor eax, eax
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x6f0]
add rsp, 0x6d0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400ec700
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x630]
sub rsp, 0x730
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x760], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x620], rax
mov rdi, r9
mov rsi, r8
mov rbx, rdx
xor r8d, r8d
lea rdx, str.CBaseUtyMgr::FindAllFilesInFolder
lea rcx, [rsp + 0x50]
call fcn.1400075a0
nop
mov r12d, dword [rbp + 0x680]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rsi
mov r9, rbx
lea r8, str.lpszDirectory___s__lpszSearchFile___s__bFlg___d
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140007780
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x200]
call fcn.14024b970
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x410]
call fcn.14024b970
mov rdx, rbx
lea rcx, [rbp + 0x410]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rbp + 0x410]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rbp + rcx*2 + 0x40e], 0x5c
je 0x1400ec7e8
lea rdx, [0x1402e5094]
lea rcx, [rbp + 0x410]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r8, [rbp + 0x410]
lea rdx, str._s.
lea rcx, [rbp + 0x200]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x200]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400ec966
xor r13d, r13d
test byte [rsp + 0x70], 0x10
je 0x1400ec8a5
lea rdx, [0x1402e3994]
lea rcx, [rbp - 0x64]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400ec89a
lea rdx, [0x1402e3998]
lea rcx, [rbp - 0x64]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400ec89a
cmp r12d, 1
jne 0x1400ec89a
lea r9, [rbp - 0x64]
lea r8, [rbp + 0x410]
lea rdx, [0x1402e3978]
lea rcx, [rbp + 0x200]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, qword [0x1403b9768]
mov rax, qword [rcx]
mov dword [rsp + 0x20], r12d
mov r9, rdi
mov r8, rsi
lea rdx, [rbp + 0x200]
call qword [rax + 0x38]
test byte [rsp + 0x70], 0x10
jne 0x1400ec947
mov qword [rsp + 0x40], 0x20
lea rax, [rbp + 0x1c0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x64]
call fcn.140247424
cmp word [rbp + 0x1c0], 0x2e
jne 0x1400ec947
mov rdx, rsi
lea rcx, [rbp + 0x1c2]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400ec947
lea r9, [rbp - 0x64]
lea r8, [rbp + 0x410]
lea rdx, [0x1402e3978]
lea rcx, [rbp + 0x200]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rbp + 0x200]
lea r8, str._t_t_tadd:_s.
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
lea r8, [rbp + 0x200]
mov rdx, qword [rdi + 0x10]
mov rcx, rdi
call fcn.140105f30
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400ec825
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rsp + 0x50]
call fcn.140007780
nop
lea rcx, [rsp + 0x50]
call fcn.140007730
xor eax, eax
mov rcx, qword [rbp + 0x620]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x760]
add rsp, 0x730
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret