joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140025488
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x158]
sub rsp, 0x250
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov ebx, ecx
mov edi, 0x104
mov r8d, edi
lea rcx, [rsp + 0x20]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r8d, edi
lea rcx, [rbp + 0x30]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea rdx, [rsp + 0x20]
xor ecx, ecx
lea r8d, [r9 + 0x2b]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x1400255ff
lea esi, [rdi - 1]
mov edx, esi
lea r8, [rsp + 0x20]
lea rcx, [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, str.IntelWirelessCommon_
mov edx, edi
lea rcx, [rbp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov byte [rbp + 0x133], 0
test bl, 1
je 0x14002555a
lea r8, [rbp + 0x30]
mov edx, esi
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, str.Libeay32.dll
mov edx, edi
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test bl, 6
je 0x140025591
lea r8, [rbp + 0x30]
mov rdx, rsi
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, [0x14006b088]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test bl, 4
je 0x1400255c8
lea r8, [rbp + 0x30]
mov rdx, rsi
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, str.TraceApi.dll
mov rdx, rdi
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test bl, 8
je 0x1400255ff
lea r8, [rbp + 0x30]
mov rdx, rsi
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, str.CustomUIResource.dll
mov rdx, rdi
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140059ef0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400256d4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rbp + 0x50], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, Ordinal_265
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x38]
xor ebx, ebx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], ebx
lea rdx, str.SOFTWAREIntelWireless
mov qword [rsp + 0x38], rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14002578f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x34], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PROSetBinDir
mov dword [rsp + 0x30], Ordinal_266
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
movzx ecx, byte [rsp + 0x40]
test eax, eax
cmovne ecx, ebx
mov byte [rsp + 0x40], cl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryA]
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140059ef0
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rbp
ret

Function at 0x140025820
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x258
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, qword [rsp + 0x2a0]
lea rax, [rsp + 0x38]
mov rsi, r9
mov qword [rsp + 0x20], rax
mov rbp, r8
mov qword [rsp + 0x38], 0
mov r9d, 1
mov dword [rsp + 0x30], 0x1ff
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140025910
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140025910
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
cmp dword [rdi], eax
mov r8d, 0x200
cmovb eax, dword [rdi]
xor edx, edx
mov dword [rsp + 0x30], eax
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x30]
mov dword [rsp + 0x34], 1
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
test rcx, rcx
je 0x1400258ed
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140025910
mov r9d, dword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov edx, dword [rdi]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
mov eax, dword [rsp + 0x30]
mov dword [rdi], eax
mov al, 1
jmp 0x140025912
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140059ef0
add rsp, 0x258
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140025ad0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov edx, 6
lea rcx, [0x14006b100]
mov rsi, r8
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
xor bpl, bpl
mov r14, rax
cmp qword [rdi + 8], 0xffffffffffffffff
jne 0x140025b11
xor al, al
jmp 0x140025bc4
mov edx, 0x1000
mov qword [rsp + 0x58], r15
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x50]
xor r15d, r15d
mov r8d, eax
mov rdx, rbx
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140025bbf
mov edx, 0x1000
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x50]
mov r8d, eax
mov dword [rsp + 0x50], r15d
mov rdx, rsi
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 1
movzx ebp, bpl
test eax, eax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
mov r8d, r14d
cmovne ebp, ecx
lea rdx, [0x14006b100]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rdi + 0x10], r15d
je 0x140025bbb
mov r8, rsi
lea rcx, str._s_s_n
mov rdx, rbx
call fcn.140025f80
movzx eax, bpl
mov r15, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x140025be0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
mov edx, 6
lea rcx, [0x14006b100]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
xor sil, sil
mov rbp, rax
cmp qword [rdi + 8], 0xffffffffffffffff
jne 0x140025c1d
xor al, al
jmp 0x140025c9a
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x40]
mov r8d, eax
mov dword [rsp + 0x40], 0
mov rdx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 1
movzx esi, sil
test eax, eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, ebp
cmovne esi, ecx
lea rdx, [0x14006b100]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rdi + 0x10], 0
je 0x140025c96
mov rdx, rbx
lea rcx, [0x14006b104]
call fcn.140025f80
movzx eax, sil
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140025cb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov edx, 6
lea rcx, [0x14006b100]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
xor sil, sil
mov rbp, rax
cmp qword [rbx + 8], 0xffffffffffffffff
jne 0x140025cf5
xor al, al
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov edx, 0x1000
mov qword [rsp + 0x58], r14
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x50]
xor r14d, r14d
mov r8d, eax
mov rdx, rdi
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140025d32
xor al, al
jmp 0x140025da0
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x50]
mov r8d, 4
mov dword [rsp + 0x50], r14d
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 1
movzx esi, sil
test eax, eax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x50]
mov r8d, ebp
cmovne esi, ecx
lea rdx, [0x14006b100]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rbx + 0x10], r14d
je 0x140025d9c
mov r8d, dword [rsp + 0x60]
lea rcx, str._s0x:__08X_n
mov rdx, rdi
call fcn.140025f80
movzx eax, sil
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x140025ed0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov ebx, edx
mov rdi, rcx
mov edx, 0x1000
lea rcx, [0x14006b100]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
xor sil, sil
mov rbp, rax
cmp qword [rdi + 8], 0xffffffffffffffff
jne 0x140025f0f
xor al, al
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
test ebx, ebx
jle 0x140025f66
mov qword [rsp + 0x58], r14
xor r14d, r14d
nop dword [rax + rax]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x50]
mov r8d, ebp
mov dword [rsp + 0x50], r14d
lea rdx, [0x14006b100]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne sil
cmp dword [rdi + 0x10], r14d
je 0x140025f5b
lea rcx, [0x14006b160]
call fcn.140025f80
sub rbx, 1
jne 0x140025f20
mov r14, qword [rsp + 0x58]
movzx eax, sil
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002b920
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, r8
test edx, edx
je 0x14002ba07
sub edx, 1
je 0x14002b9a3
cmp edx, 1
jne 0x14002ba67
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov edx, 0x801a
xor ecx, ecx
call qword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
test eax, eax
js 0x14002ba67
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9d, 0x103
lea r8, [0x140067a10]
sub r9, rax
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcat_s]
lea rdx, str.IntelWirelessWLANProfiles.sav
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
mov al, 1
add rsp, 0x30
pop rbx
ret
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov edx, 0x8026
xor ecx, ecx
call qword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
test eax, eax
js 0x14002ba67
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9d, 0x103
lea r8, [0x140067a10]
sub r9, rax
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcat_s]
lea rdx, str.IntelWiFiWLANCPProfiles.sav
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
mov al, 1
add rsp, 0x30
pop rbx
ret
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov edx, 0x8026
xor ecx, ecx
call qword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
test eax, eax
js 0x14002ba67
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r9d, 0x103
lea r8, [0x140067a10]
sub r9, rax
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcat_s]
lea rdx, str.IntelWiFiWLANProfiles.sav
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
mov al, 1
add rsp, 0x30
pop rbx
ret
xor al, al
add rsp, 0x30
pop rbx
ret

Function at 0x14002ba70
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
mov esi, 1
mov rdi, rcx
lea edx, [rsi + 0x5b]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
mov rbx, rax
nop dword [rax + rax]
test rbx, rbx
je 0x14002badc
mov rcx, rdi
mov byte [rbx], 0
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x14002bac3
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
lea rcx, [rbx + 1]
mov byte [rbx], 0x5c
mov edx, 0x5c
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbschr]
mov rbx, rax
test esi, esi
jne 0x14002baa0
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x14002baf7
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x14002baf9
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002db60
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov ebx, r8d
lea rcx, [rsp + 0x30]
mov rdi, rdx
mov r8d, Ordinal_265
xor edx, edx
call sub.VCRUNTIME140.dll_memset
test rdi, rdi
je 0x14002dbf0
test ebx, ebx
je 0x14002dbf0
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x8023
xor ecx, ecx
call qword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
test eax, eax
js 0x14002dbf0
movsx edx, byte [0x140092640]
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
mov r8, rax
test rax, rax
je 0x14002dbf0
lea eax, [rbx - 1]
mov edx, ebx
mov r9d, eax
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
mov al, 1
jmp 0x14002dbf2
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140059ef0
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rdi
ret

Function at 0x14002dd60
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov edi, r8d
mov rbx, rdx
test rdx, rdx
je 0x14002ddfe
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x8023
xor ecx, ecx
call qword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
test eax, eax
js 0x14002ddfe
mov edx, 0x5c
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
test rax, rax
je 0x14002ddfe
mov edx, 0x5c
mov byte [rax], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
test rax, rax
je 0x14002ddfa
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov r8, rax
test rax, rax
je 0x14002ddfe
lea eax, [rdi - 1]
mov edx, edi
mov r9d, eax
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
mov al, 1
jmp 0x14002de00
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140059ef0
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rdi
ret

Function at 0x14002de30
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x150
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, qword [rsp + 0x1a0]
lea rcx, [rsp + 0x30]
mov rsi, r8
mov rbx, rdx
xor edx, edx
mov r8d, Ordinal_265
mov rbp, r9
mov r14d, 0x43297
call sub.VCRUNTIME140.dll_memset
mov rdx, rbx
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rdx, str.version.ini
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rax, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea rcx, str.PROFILE_DB
mov eax, dword [rsp + 0x1a8]
mov r8, rbp
mov rdx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov ecx, 0x80043298
cmove r14d, ecx
mov eax, r14d
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140059ef0
add rsp, 0x150
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14002e9f0
Capabilities:
Delete directory

Disassembly:
push rbx
sub rsp, 0x20
lea r8, str..
mov rbx, rdx
call fcn.14002ea20
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]

Function at 0x14002ea20
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x3a0
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x390], rax
mov qword [rsp + 0x28], r8
lea r9, str._s_s
mov qword [rsp + 0x20], rdx
mov rdi, rdx
mov rsi, rcx
mov edx, 0x104
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x170]
call fcn.140008c50
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14002eaa0
mov rcx, qword [rsi + 0x510]
test rcx, rcx
je 0x14002eb21
call fcn.140025dc0
jmp 0x14002eb21
lea rdx, [0x140065298]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
je 0x14002eb06
lea rdx, [0x140065c90]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
je 0x14002eb06
lea rax, [rsp + 0x5c]
or r8, 0xffffffffffffffff
mov qword [rsp + 0x28], rax
lea r9, [0x140065c94]
mov edx, 0x104
mov qword [rsp + 0x20], rdi
lea rcx, [rsp + 0x280]
call fcn.140008c50
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14002eaa0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.140059ef0
add rsp, 0x3a0
pop rdi
pop rsi
pop rbx
ret
Function at 0x14002fe90
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x320], rbx
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rsi, rdx
mov r15, rcx
xor edi, edi
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140.dll_Ordinal_316]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140.dll_Ordinal_316]
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140.dll_Ordinal_316]
nop
mov dword [rsp + 0x24], edi
mov dword [rsp + 0x20], edi
mov r8, r15
lea rdx, str._s
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140.dll_Ordinal_4648]
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140.dll_Ordinal_1639]
mov rcx, rax
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140030040
nop dword [rax + rax]
test byte [rsp + 0x50], 0x10
je 0x14003001a
lea r9, [rsp + 0x7c]
mov r8, r15
lea rdx, [0x140065c94]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140.dll_Ordinal_4648]
mov r8, qword [rsp + 0x30]
lea rdx, str._s.xml
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140.dll_Ordinal_4648]
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140.dll_Ordinal_1639]
mov rcx, rax
lea rdx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003001a
lea r9, [rbp + 0xbc]
mov r8, qword [rsp + 0x30]
lea rdx, [0x140065c94]
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140.dll_Ordinal_4648]
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140.dll_Ordinal_1639]
mov rdx, rax
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x20]
mov rcx, rsi
call fcn.140026a00
cmp dword [rsp + 0x20], 0
je 0x14002ffec
cmp dword [rsp + 0x24], 0
jne 0x140030002
lea rdx, [rbp + 0x90]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x140030007
jmp 0x14002ffa0
mov edi, 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
jne 0x140030030
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14002ff40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rsp + 0x28]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
mov eax, edi
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140059ef0
mov rbx, qword [rsp + 0x320]
add rsp, 0x2e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400303bc
Capabilities:
Get session user name

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov r14, rdx
mov r15, rcx
and dword [rbp + 0x40], 0
lea r8, [rbp + 0x40]
xor edx, edx
lea ebx, [rdx + 2]
mov ecx, ebx
call sub.Secur32.dll_GetUserNameExA
mov eax, dword [rbp + 0x40]
test eax, eax
je 0x1400304cb
lea ecx, [rax + 1]
call sub.mfc140.dll_Ordinal_265
mov rdi, rax
test rax, rax
je 0x1400304cb
mov r8d, dword [rbp + 0x40]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r8, [rbp + 0x40]
mov rdx, rdi
mov ecx, ebx
call sub.Secur32.dll_GetUserNameExA
test al, al
je 0x1400304c3
mov rdx, rdi
lea rcx, [rbp + 0x48]
call qword [sym.imp.mfc140.dll_Ordinal_310]
nop
xor r8d, r8d
mov dl, 0x5c
lea rcx, [rbp + 0x48]
call qword [sym.imp.mfc140.dll_Ordinal_4502]
mov esi, eax
cmp eax, 0xffffffff
je 0x1400304b9
mov rcx, qword [rbp + 0x48]
mov ebx, dword [rcx - 0x10]
mov r8d, eax
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x48]
call qword [sym.imp.mfc140.dll_Ordinal_8025]
nop
mov rdx, rax
mov rcx, r14
call qword [sym.imp.mfc140.dll_Ordinal_1504]
nop
lea rcx, [rbp - 0x10]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
sub ebx, esi
lea r8d, [rbx - 1]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x48]
call qword [sym.imp.mfc140.dll_Ordinal_12547]
nop
mov rdx, rax
mov rcx, r15
call qword [sym.imp.mfc140.dll_Ordinal_1504]
nop
lea rcx, [rbp - 0x10]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rbp + 0x48]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
mov rcx, rdi
call sub.mfc140.dll_Ordinal_266
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret