joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015280
Capabilities:
Read .ini file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x180
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x1d0], rbx
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x40], rdx
mov rax, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x58], rdx
xor r12d, r12d
lea r15, [rcx + 0x848]
mov r13d, 4
mov qword [rsp + 0x38], r13
nop dword [rax]
lea rdx, [rax + 0x858]
add rdx, r12
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140.dll_Ordinal_300]
nop
mov rax, qword [r15]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400153d4
mov r13, qword [rsp + 0x40]
nop word [rax + rax]
mov rcx, r13
call qword [sym.imp.mfc140.dll_Ordinal_1639]
mov rsi, rax
lea rcx, [rbx + 0x28]
call qword [sym.imp.mfc140.dll_Ordinal_1639]
mov rbp, rax
lea rcx, [rbx + 0x20]
call qword [sym.imp.mfc140.dll_Ordinal_1639]
mov rdi, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140.dll_Ordinal_1639]
mov rcx, rax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], Ordinal_266
lea r9, [rsp + 0x60]
mov r8, rbp
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rdx, [rsp + 0x60]
lea rcx, [rbx + 0x28]
call qword [sym.imp.mfc140.dll_Ordinal_1507]
cmp byte [rbx + 0x19], 0
jne 0x1400153c6
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1400153a1
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x1400153c6
nop dword [rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140015390
jmp 0x1400153c6
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400153c3
nop dword [rax + rax]
cmp rbx, qword [rax + 0x10]
jne 0x1400153c3
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400153b0
mov rbx, rax
cmp rbx, qword [r15]
jne 0x140015310
mov r13, qword [rsp + 0x38]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
add r12, 0x18
add r15, 0x18
sub r13, 1
mov qword [rsp + 0x38], r13
mov rax, qword [rsp + 0x48]
jne 0x1400152e0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
mov eax, 1
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140059ef0
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400170d0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x290
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rsi, rcx
call fcn.140017300
test rax, rax
je 0x1400172d3
mov rdx, rax
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140.dll_Ordinal_310]
nop
lea rdx, str..exe
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140.dll_Ordinal_1674]
xor edi, edi
mov ebx, edi
mov dword [rsp + 0x50], ebx
xor edx, edx
lea r8d, [rdi + 0x68]
lea rcx, [rsp + 0xf0]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0xf0], 0x68
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x80]
call qword [sym.imp.PsRegApi.dll_public:_void___cdecl_CRegApi::constructor_void____ptr64]
nop
mov r9d, 0x20019
lea r8, str.SOFTWAREIntelWireless
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x80]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::OpenKey_struct_HKEY______ptr64__char_const____ptr64__unsigned_long_int____ptr64]
test eax, eax
jne 0x14001727f
mov dword [rsp + 0x54], 0x114
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x160]
lea rdx, str.PROSetBinDir
lea rcx, [rsp + 0x80]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::QueryValue_char_const____ptr64__char____ptr64__unsigned_long_int____ptr64____ptr64]
test eax, eax
jne 0x140017270
mov eax, dword [rsp + 0x54]
cmp rax, 0x115
jae 0x1400172f8
mov byte [rsp + rax + 0x160], dil
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140.dll_Ordinal_1639]
mov rdx, rax
lea rcx, [rsp + 0x160]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x140017270
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140017270
mov edx, 0x7530
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov dword [rsp + 0x50], ebx
lea rcx, [rsp + 0x80]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::CloseKey_void____ptr64]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140017294
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], rdi
jmp 0x14001729c
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400172b1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], rdi
jmp 0x1400172b7
lea rcx, [rsp + 0x80]
call qword [sym.imp.PsRegApi.dll_public_virtual:_void___cdecl_CRegApi::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140059ef0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14005a1f4
nop
int3
Function at 0x140018dd0
Capabilities:
Copy file

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r8d, 0x103
lea rdx, [rsp + 0x20]
mov rbx, rcx
call fcn.14001a690
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140019bf0
test eax, eax
jne 0x140018e25
mov rdx, qword [rbx + 0x1018]
lea rcx, [rsp + 0x20]
call fcn.140020180
jmp 0x140018e6d
lea r8, [rsp + 0x20]
mov edx, 0x104
lea rcx, [rsp + 0x130]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, str..bak
mov edx, 0x104
lea rcx, [rsp + 0x130]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
xor r8d, r8d
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140059ef0
add rsp, 0x250
pop rbx
ret

Function at 0x140019130
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x480
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rax, rdx
xor esi, esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], esi
test rdx, rdx
jne 0x140019195
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140059ef0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
mov qword [rsp + 0x50], rax
cmp rax, 0xffffffffffffffff
je 0x1400192a6
mov ebx, esi
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400192bf
cmp dword [rsp + 0x40], 0x400
je 0x14001922f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x50], 0xffffffffffffffff
mov eax, ebx
jmp 0x140019170
xorps xmm2, xmm2
xorps xmm1, xmm1
lea rax, [rsp + 0x60]
mov ecx, 0x80
nop
movd xmm0, dword [rax]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
paddd xmm0, xmm2
movdqa xmm2, xmm0
movd xmm0, dword [rax + 4]
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
paddd xmm0, xmm1
movdqa xmm1, xmm0
lea rax, [rax + 8]
sub rcx, 1
jne 0x140019240
paddd xmm1, xmm2
movdqa xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd eax, xmm1
add ebx, eax
jmp 0x1400191d3
mov dword [rsp + 0x48], 0xffffffff
lea rdx, [0x14008dd50]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
mov dword [rsp + 0x4c], 0xffffffff
lea rdx, [0x14008dd50]
lea rcx, [rsp + 0x4c]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400192e0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov ebx, 1
test rdx, rdx
jne 0x140019304
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov r8d, ebx
call fcn.140019bf0
test eax, eax
jne 0x14001931d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001af30
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x14001b08d
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x14001b08d
mov rcx, qword [rbx + 0x1a8]
test rcx, rcx
je 0x14001af8b
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 0x1a8], 0
jmp 0x14001af97
mov ecx, Ordinal_300
call sub.mfc140.dll_Ordinal_1485
mov qword [rsp + 0x80], rax
test rax, rax
je 0x14001afc1
mov r8, qword [rbx + 0x1018]
mov rdx, rdi
mov rcx, rax
call fcn.14001ddf0
nop
mov qword [rbx + 0x1a8], rax
test rax, rax
jne 0x14001afd7
mov eax, 0x80043298
jmp 0x14001b092
mov rcx, rax
call fcn.140023c20
mov rcx, rbx
call fcn.14001b440
nop
mov rcx, qword [rbx + 0x1a8]
test rcx, rcx
je 0x14001b009
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 0x1a8], 0
jmp 0x14001b015
mov rcx, qword [rbx + 0x108]
test rcx, rcx
je 0x14001b031
call sub.mfc140.dll_Ordinal_266
mov qword [rbx + 0x108], 0
jmp 0x14001b03d
mov edx, 0x1000
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
inc eax
mov esi, eax
mov ecx, eax
call sub.mfc140.dll_Ordinal_265
mov qword [rbx + 0x108], rax
test rax, rax
je 0x14001b074
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, esi
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
mov eax, 0x43297
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
mov eax, 0x8004329e
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001b5e0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rdi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.14001178c
nop
xor edx, edx
mov r8d, Ordinal_265
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140.dll_Ordinal_316]
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x28]
call fcn.140011d64
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140.dll_Ordinal_1639]
mov r8, rax
mov edx, 0x104
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov rdx, rdi
mov rcx, rdi
call fcn.14001c940
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or eax, 2
mov edx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea r8, str..sav
mov edx, 0x104
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x140067a10]
mov edx, 0x104
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rsp + 0x28]
call fcn.1400117e4
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x14001bb00
Capabilities:
Copy file
Delete file

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r8d, 0x103
lea rdx, [rsp + 0x20]
mov rbx, rcx
call fcn.14001a690
cmp byte [rbx + 0x114], 0
je 0x14001bb55
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rbx + 0x1018]
lea rcx, [rsp + 0x20]
call fcn.140020180
jmp 0x14001bba4
lea r8, [rsp + 0x20]
mov edx, 0x104
lea rcx, [rsp + 0x130]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, str..bak
mov edx, 0x104
lea rcx, [rsp + 0x130]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov byte [rbx + 0x114], 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140059ef0
add rsp, 0x250
pop rbx
ret
Function at 0x14001c940
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
jne 0x14001c971
xor eax, eax
jmp 0x14001ca98
mov r8d, 1
call fcn.140019bf0
test eax, eax
jne 0x14001ca93
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x14001ca93
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, Ordinal_265
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x140]
mov r8d, Ordinal_265
call sub.VCRUNTIME140.dll_memset
or r9, 0xffffffffffffffff
lea rcx, [rsp + 0x140]
mov r8, rbx
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
lea r8, [rsp + 0x20]
lea rdx, [0x140067a10]
lea rcx, [rsp + 0x140]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbstok_s]
test rax, rax
je 0x14001c96a
or r9, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov r8, rax
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
lea r8, [rsp + 0x20]
xor ecx, ecx
lea rdx, [0x140067a10]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbstok_s]
mov rbx, rax
test rax, rax
je 0x14001ca93
nop
or r9, 0xffffffffffffffff
lea r8, [0x140067a10]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcat_s]
or r9, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov r8, rbx
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcat_s]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400192e0
test eax, eax
je 0x14001c96a
lea r8, [rsp + 0x20]
xor ecx, ecx
lea rdx, [0x140067a10]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbstok_s]
mov rbx, rax
test rax, rax
jne 0x14001ca30
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140059ef0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x140020180
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
mov r11, rsp
push r14
sub rsp, 0x3b0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
mov r14, rdx
mov rdi, rcx
mov dword [rsp + 0x40], 0
lea rdx, [r11 - 0x338]
mov ecx, 0x103
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x140020215
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
mov edx, 0x5c
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
test rax, rax
je 0x140020215
mov rcx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov byte [rax], 0
or r9, 0xffffffffffffffff
lea r8, str.initial.xml
mov edx, 0x104
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcat_s]
lea rcx, str.__xml_version_1.0____ITProfileDatabase__PersistentList___PersistentList__PreLogonList___PreLogonList__PostLogonList___PostLogonList__Profiles___Profiles__PACSection___PACSection___ITProfileDatabase_
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbslen]
mov rsi, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x14002028a
xor al, al
jmp 0x140020365
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, esi
lea rdx, str.__xml_version_1.0____ITProfileDatabase__PersistentList___PersistentList__PreLogonList___PreLogonList__PostLogonList___PostLogonList__Profiles___Profiles__PACSection___PACSection___ITProfileDatabase_
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
test eax, eax
jne 0x1400202bf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140020365
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x48], 0xffffffffffffffff
xor eax, eax
mov dword [rsp + 0x70], eax
mov byte [rsp + 0x74], al
lea r9d, [rax + 3]
mov r8, rdi
lea edx, [rax + 5]
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x190]
call sub.VCRUNTIME140.dll_memset
mov r9, r14
mov r8d, 0x1ff
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x70]
call fcn.140023ad0
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x58]
call fcn.140008d08
nop
mov r8, rdi
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x58]
call fcn.14000a05c
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
lea rcx, [rsp + 0x58]
call fcn.14000909c
nop
mov al, 1
jmp 0x140020365
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.140059ef0
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140023ad0
Capabilities:
Get disk information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x330
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov rbx, rcx
mov edi, r8d
lea rcx, [rsp + 0x50]
mov rsi, rdx
call fcn.140016ad4
xor edx, edx
lea rcx, [rsp + 0x90]
lea r8d, [rdx + 0x64]
call sub.VCRUNTIME140.dll_memset
or r9, 0xffffffffffffffff
lea r8, str.B49CC9EFA08C
lea rcx, [rsp + 0x90]
lea edx, [r9 + 0x65]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
mov dword [rsp + 0x38], Ordinal_266
lea rax, [rsp + 0x100]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x44]
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x210]
lea rax, [rsp + 0x48]
mov r8d, 0x103
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [rsp + 0x40]
lea r9, [0x140065c28]
mov edx, 0x82f8d8cc
test eax, eax
cmove ecx, edx
or r8, 0xffffffffffffffff
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x60]
lea edx, [r8 + 0x29]
call fcn.140008c50
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbslwr]
mov r8d, edi
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
or r9, 0xffffffffffffffff
lea r8, [rsp + 0x90]
mov edx, edi
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
or r9, 0xffffffffffffffff
lea r8, [rsp + 0x60]
mov edx, edi
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcat_s]
lea rcx, [rsp + 0x50]
call fcn.140016ba0
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.140059ef0
add rsp, 0x330
pop rdi
pop rsi
pop rbx
ret
Function at 0x140024db0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x310
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdx
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x54], ebx
mov qword [rsp + 0x60], 0xffffffffffffffff
test rdx, rdx
je 0x140024fb6
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x40]
call fcn.140022b90
test al, al
je 0x140024fd7
xor eax, eax
mov dword [rsp + 0xe8], eax
mov byte [rsp + 0xec], al
lea r8, [rdi + 0x1a]
lea edx, [rbx + 5]
lea r9d, [rbx + 3]
lea rcx, [rsp + 0xe8]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0xf0]
call sub.VCRUNTIME140.dll_memset
mov r9, qword [rdi + 0x120]
mov r8d, 0x1ff
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xe8]
call fcn.140023ad0
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xd0]
call fcn.140008d08
nop
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0xf0]
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0xd0]
call fcn.14000a4ac
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
mov qword [rsp + 0x60], rax
cmp rax, 0xffffffffffffffff
je 0x140024ff9
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x54]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002501a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x54], eax
jne 0x14002503b
cmp qword [rsp + 0x40], rbx
je 0x140024f58
mov rcx, qword [rsp + 0x40]
call sub.mfc140.dll_Ordinal_266
mov qword [rsp + 0x40], rbx
jmp 0x140024f66
mov rcx, qword [rsp + 0x48]
call fcn.14000a8d4
mov qword [rsp + 0x48], rbx
mov byte [rdi + 0x19], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0xd0]
call fcn.14000909c
nop
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140059ef0
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rcx, [rsp + 0x80]
call fcn.14001e1b0
lea rdx, [0x14008dfb0]
lea rcx, [rsp + 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rcx, [rsp + 0x90]
call fcn.14001e1f0
lea rdx, [0x14008e010]
lea rcx, [rsp + 0x90]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rsp + 0xa0]
call fcn.14001e370
lea rdx, [0x14008e070]
lea rcx, [rsp + 0xa0]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rcx, [rsp + 0xb0]
call fcn.14001e370
lea rdx, [0x14008e070]
lea rcx, [rsp + 0xb0]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rcx, [rsp + 0xc0]
call fcn.14001e370
lea rdx, [0x14008e070]
lea rcx, [rsp + 0xc0]
call sub.VCRUNTIME140.dll__CxxThrowException
int3