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

Disassembly:
push rbx
sub rsp, 0x430
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + Ordinal_1062], rax
mov rbx, rcx
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
mov word [rsp + 0x20], 0
call sub.ntdll.dll_memset
lea rdx, [rsp + 0x20]
mov r8d, reloc.MFC80U.DLL_Ordinal_512
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x20]
mov dx, 0x5c
call qword [sym.imp.ntdll.dll_wcsrchr]
test rax, rax
je 0x140225518
mov word [rax], 0
xor eax, eax
or rcx, 0xffffffffffffffff
mov qword [rsp + Ordinal_1102], rdi
lea rdi, [rsp + 0x20]
repne scasw ax, word [rdi]
mov rax, qword [str.Ntfs2Fat32.exe]
lea rcx, [rsp + 0x20]
mov qword [rdi - 2], rax
mov rax, qword [0x140372008]
mov qword [rdi + 6], rax
mov rax, qword [0x140372010]
mov qword [rdi + 0xe], rax
mov rax, qword [0x140372018]
mov qword [rdi + 0x16], rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rdi, qword [rsp + 0x448]
cmp eax, 0xffffffff
je 0x140225518
test rbx, rbx
je 0x140225511
lea rax, [rsp + 0x20]
lea rcx, [rsp + 0x20]
sub rbx, rax
nop
nop
nop
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
mov word [rbx + rcx - 2], ax
jne 0x140225500
mov eax, 1
jmp 0x14022551a
xor eax, eax
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.140161080
add rsp, 0x430
pop rbx
ret

Function at 0x1402255c0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x930
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + Ordinal_2342], rax
mov rbx, rcx
lea rcx, [rsp + 0x122]
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
mov word [rsp + 0x120], 0
call sub.ntdll.dll_memset
lea rdx, [rsp + 0x120]
mov r8d, 0x400
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x120]
mov dx, 0x5c
call qword [sym.imp.ntdll.dll_wcsrchr]
test rax, rax
je 0x140225633
mov word [rax], 0
xor ecx, ecx
nop
nop
nop
movzx eax, word [rsp + rcx + 0x120]
add rcx, 2
test ax, ax
jne 0x140225640
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x120]
repne scasw ax, word [rdi]
mov rax, qword [0x140371bf0]
lea rcx, [rsp + 0x22]
mov qword [rdi - 2], rax
mov rax, qword [0x140371bf8]
xor edx, edx
mov qword [rdi + 6], rax
mov rax, qword [0x140371c00]
mov r8d, 0xf4
mov qword [rdi + 0xe], rax
movzx eax, word [0x140371c08]
mov word [rsp + 0x20], 0
mov word [rdi + 0x16], ax
call sub.ntdll.dll_memset
lea rdx, str.online_help_valid__s
lea rcx, [rsp + 0x20]
mov r8, rbx
call qword [sym.imp.MSVCR80.dll__swprintf]
lea r9, [rsp + 0x120]
lea rdx, [rsp + 0x20]
lea rcx, [0x140371c40]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rcx, qword [rsp + 0x920]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x948]
add rsp, 0x930
pop rdi
ret
Function at 0x140225840
Capabilities:
Check os version
Move file

Disassembly:
push rbx
sub rsp, 0xd50
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0xd40], rax
mov ebx, ecx
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, Ordinal_280
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_280
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 6
jb 0x140225944
lea rcx, [rsp + 0x940]
mov edx, reloc.MFC80U.DLL_Ordinal_512
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
lea rcx, [rsp + 0x542]
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
mov word [rsp + Ordinal_1352], 0
call sub.ntdll.dll_memset
lea r8, [rsp + 0x940]
lea rdx, str._s_bootstat.dat
lea rcx, [rsp + 0x540]
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rcx, [rsp + 0x142]
xor edx, edx
mov r8d, reloc.MFC80U.DLL_Ordinal_1022
mov word [rsp + reloc.MFC80U.DLL_Ordinal_320], 0
call sub.ntdll.dll_memset
lea r8, [rsp + 0x940]
lea rdx, str._s_bootstat2.dat
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_320]
call qword [sym.imp.MSVCR80.dll__swprintf]
test ebx, ebx
je 0x14022592e
lea rdx, [rsp + 0x540]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_320]
jmp 0x14022593e
lea rdx, [rsp + reloc.MFC80U.DLL_Ordinal_320]
lea rcx, [rsp + 0x540]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rcx, qword [rsp + 0xd40]
xor rcx, rsp
call fcn.140161080
add rsp, 0xd50
pop rbx
ret

Function at 0x140225c90
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x160
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_336], rax
test rcx, rcx
mov rbx, rcx
jne 0x140225cf7
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, Ordinal_280
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], Ordinal_280
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x34], 5
jne 0x140225d48
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140225cf0
cmp eax, 1
jne 0x140225d48
mov eax, 1
jmp 0x140225d67
mov rax, qword [rcx]
xor esi, esi
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_376], rdi
mov dword [rsp + 0x20], esi
mov dword [rsp + 0x24], esi
call qword [rax + 0x30]
mov rdx, qword [rbx]
mov rcx, rbx
mov rdi, rax
call qword [rdx + 0x38]
mov rdx, qword [rdi]
mov rcx, rdi
mov rbx, rax
call qword [rdx + 0x50]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x24]
mov r9, rbx
mov r8d, eax
call fcn.140224950
mov rdi, qword [rsp + reloc.MFC80U.DLL_Ordinal_376]
test eax, eax
jne 0x140225d4c
xor eax, eax
jmp 0x140225d67
cmp dword [rsp + 0x24], 5
jne 0x140225d65
mov eax, dword [rsp + 0x20]
test eax, eax
je 0x140225d60
cmp eax, 1
jne 0x140225d65
mov esi, 1
mov eax, esi
mov rcx, qword [rsp + reloc.MFC80U.DLL_Ordinal_336]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x180]
add rsp, 0x160
pop rsi
ret
Function at 0x140225f10
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x1b0
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov ebx, ecx
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, Ordinal_280
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], Ordinal_280
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x44], 6
jae 0x140225fc6
xor eax, eax
lea rdx, [0x140371840]
lea rcx, [rsp + 0x160]
mov r8d, ebx
mov word [rsp + 0x160], 0
mov qword [rsp + 0x162], rax
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_362], rax
mov qword [rsp + 0x172], rax
mov qword [rsp + 0x17a], rax
mov qword [rsp + 0x182], rax
mov qword [rsp + 0x18a], rax
mov qword [rsp + 0x192], rax
mov dword [rsp + 0x19a], eax
mov word [rsp + 0x19e], ax
call qword [sym.imp.MSVCR80.dll__swprintf]
jmp 0x140225ffc
call fcn.1400494c0
mov edx, ebx
mov r8, qword [rax]
mov rcx, rax
call qword [r8 + 0x18]
test eax, eax
jns 0x140225fe1
or rax, 0xffffffffffffffff
jmp 0x14022602f
lea rdx, [0x140371868]
lea rcx, [rsp + 0x160]
mov r9d, ebx
mov r8d, eax
call qword [sym.imp.MSVCR80.dll__swprintf]
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x160]
lea r8d, [r9 + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140161080
add rsp, 0x1b0
pop rbx
ret
Function at 0x140226d30
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, reloc.MFC80U.DLL_Ordinal_320
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea rbx, [0x140c47670]
mov r8d, reloc.MFC80U.DLL_Ordinal_512
xor ecx, ecx
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, 0x5c
mov rcx, rbx
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
je 0x140226e00
mov byte [rax], 0
xor eax, eax
or rcx, 0xffffffffffffffff
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_336], rdi
mov rdi, rbx
xor edx, edx
repne scasb al, byte [rdi]
mov rax, qword [0x140371c70]
lea rcx, [rsp + 0x31]
mov qword [rdi - 1], rax
movzx eax, byte [0x140371c78]
mov r8d, 0xff
mov byte [rdi + 7], al
mov byte [rsp + 0x30], 0
call sub.ntdll.dll_memset
lea r9, [rsp + 0x30]
lea r8, [0x14036dfa4]
lea rdx, [0x14036dfbc]
lea rcx, [0x140371c7c]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rcx, [rsp + 0x30]
call fcn.1402231b0
mov rdi, qword [rsp + reloc.MFC80U.DLL_Ordinal_336]
movzx eax, al
jmp 0x140226e02
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140161080
add rsp, reloc.MFC80U.DLL_Ordinal_320
pop rbx
ret
Function at 0x1402271a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x360
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x350], rax
test rcx, rcx
mov rdi, rcx
jne 0x1402271cd
call fcn.140225970
jmp 0x140227389
mov qword [rsp + 0x378], rbx
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0xfe
mov qword [rsp + 0x380], rbp
mov word [rsp + 0x40], 0
mov qword [rsp + 0x388], rsi
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x142]
xor edx, edx
mov r8d, 0x206
mov word [rsp + reloc.MFC80U.DLL_Ordinal_320], 0
call sub.ntdll.dll_memset
call fcn.140049400
mov rdx, qword [rdi]
mov rcx, rdi
mov rbp, rax
call qword [rdx + 0x30]
mov rdx, qword [rdi]
mov rsi, qword [rbp]
mov rcx, rdi
mov rbx, rax
call qword [rdx + 0x38]
mov rdx, qword [rbx]
mov rcx, rbx
mov rdi, rax
call qword [rdx + 0x50]
lea rdx, [rsp + 0x40]
mov r8d, 0x80
mov rcx, rbp
mov r9d, eax
mov qword [rsp + 0x20], rdi
call qword [rsi + 0x58]
mov rbp, qword [rsp + 0x380]
test eax, eax
jne 0x140227347
call fcn.140049470
lea rbx, [0x140c48ec0]
xor edx, edx
mov rcx, rbx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, [0x140371a70]
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x1402272b3
xor ebx, ebx
jmp 0x140227330
xor eax, eax
lea rdx, [0x140372d0c]
lea rcx, [rsp + 0x30]
mov r8d, Ordinal_340
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x31], rax
mov word [rsp + 0x39], ax
mov byte [rsp + 0x3b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x1402272f0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x30]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x140227320
mov rax, qword [rsi]
lea rdx, str._s:_GetVolumeGuid_failed.
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x140227379
lea r8, [rsp + 0x40]
lea rdx, str._Volume_sWindowsSysWOW64
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_320]
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rcx, [rsp + reloc.MFC80U.DLL_Ordinal_320]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x378]
mov rsi, qword [rsp + 0x388]
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.140161080
add rsp, 0x360
pop rdi
ret
Function at 0x1402273b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbp, rdx
xor edx, edx
mov rdi, rcx
call fcn.140225d90
test eax, eax
jne 0x1402274b7
call fcn.140049470
lea rbx, [0x140c48ec0]
xor edx, edx
mov rcx, rbx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, [0x140371918]
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x140227420
xor ebx, ebx
jmp 0x1402274a0
xor eax, eax
lea rdx, [0x140372d0c]
lea rcx, [rsp + 0x48]
lea r8d, [rax + 0x72]
mov byte [rsp + 0x48], 0
mov qword [rsp + 0x49], rax
mov word [rsp + 0x51], ax
mov byte [rsp + 0x53], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x140227460
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x48]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x140227490
mov rax, qword [rsi]
lea rdx, [0x140371930]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x140227534
lea rax, [rsp + 0x44]
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x70000
mov rcx, rdi
mov dword [rsp + 0x28], 0x18
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, dword [rsp + 0x5c]
mov ecx, reloc.MFC80U.DLL_Ordinal_512
test eax, eax
lea r9, [rsp + 0x40]
mov rdx, rbp
cmove esi, ecx
mov rcx, rdi
mov dword [rsp + 0x40], ebx
mov r8d, esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140227532
mov eax, dword [rsp + 0x40]
xor edx, edx
div esi
test edx, edx
jne 0x140227532
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x140227560
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbp, rdx
xor edx, edx
mov rdi, rcx
call fcn.140225d90
test eax, eax
jne 0x140227667
call fcn.140049470
lea rbx, [0x140c48ec0]
xor edx, edx
mov rcx, rbx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, [0x1403718d0]
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x1402275d0
xor ebx, ebx
jmp 0x140227650
xor eax, eax
lea rdx, [0x140372d0c]
lea rcx, [rsp + 0x48]
lea r8d, [rax + 0x5d]
mov byte [rsp + 0x48], 0
mov qword [rsp + 0x49], rax
mov word [rsp + 0x51], ax
mov byte [rsp + 0x53], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x140227610
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x48]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x140227640
mov rax, qword [rsi]
lea rdx, [0x1403718e8]
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x1402276e4
lea rax, [rsp + 0x44]
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x70000
mov rcx, rdi
mov dword [rsp + 0x28], 0x18
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, dword [rsp + 0x5c]
mov ecx, reloc.MFC80U.DLL_Ordinal_512
test eax, eax
lea r9, [rsp + 0x40]
mov rdx, rbp
cmove esi, ecx
mov rcx, rdi
mov dword [rsp + 0x40], ebx
mov r8d, esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1402276e2
mov eax, dword [rsp + 0x40]
xor edx, edx
div esi
test edx, edx
jne 0x1402276e2
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x140227de0
Capabilities:
Copy file

Disassembly:
push rbx
sub rsp, 0x230
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rbx, rcx
lea rdx, [0x140c47670]
mov r8d, reloc.MFC80U.DLL_Ordinal_512
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [0x140c47670]
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
je 0x140227f27
mov byte [rax], 0
xor eax, eax
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x248], rdi
lea rdi, [0x140c47670]
lea r9, [0x140c47670]
repne scasb al, byte [rdi]
mov rax, qword [0x140371c70]
lea rdx, [0x14036dfec]
mov qword [rdi - 1], rax
movzx eax, byte [0x140371c78]
lea rcx, [0x140371c84]
mov r8, rbx
mov byte [rdi + 7], al
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
call fcn.140226d30
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, Ordinal_512
mov ebx, eax
mov byte [rsp + 0x20], 0
call sub.ntdll.dll_memset
lea rdx, [rsp + 0x20]
mov r8d, reloc.MFC80U.DLL_Ordinal_512
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rsp + 0x20]
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
je 0x140227f04
mov byte [rax], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
lea rdx, [rsp + 0x20]
xor r8d, r8d
repne scasb al, byte [rdi]
mov rax, qword [str.x64cfg.ini]
lea rcx, [0x140c47670]
mov qword [rdi - 1], rax
mov eax, dword [0x140371c98]
mov dword [rdi + 7], eax
movzx eax, byte [0x140371c9c]
mov byte [rdi + 0xb], al
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov rdi, qword [rsp + 0x248]
mov eax, ebx
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140161080
add rsp, 0x230
pop rbx
ret
xor eax, eax
jmp 0x140227f0e
Function at 0x140254eb0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea rcx, [rsp + 0x252]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x250], 0
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], 0
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x250]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
xor ebx, ebx
test eax, eax
mov esi, ebx
setne sil
test esi, esi
jne 0x140255032
lea rcx, [0x140c490d0]
xor edx, edx
mov r8d, 0x80
call sub.ntdll.dll_memset
lea edx, [rbx + 0x5c]
lea rcx, [0x140375f98]
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x140254fe7
xor eax, eax
lea rdx, [0x140376694]
lea rcx, [rsp + 0x30]
mov r8d, Ordinal_369
mov byte [rsp + 0x30], bl
mov qword [rsp + 0x31], rax
mov word [rsp + 0x39], ax
mov byte [rsp + 0x3b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
lea rcx, [0x140c490d0]
sub rcx, rdx
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x140254fa0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x140c490d0]
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x30]
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x140254fd0
lea rbx, [0x140c490d0]
call fcn.140049470
lea r8, str.GetSystemWindowsDirectory_tszWinDir__sizeof_tszWinDir__sizeof_tszWinDir_0____0
lea rdx, str._s_return_code:_0x_08X___s.
mov rdi, qword [rax]
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [rdi + 0x10]
mov eax, esi
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140161080
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
lea r8, [rsp + 0x250]
lea rdx, str._s_ammark2.tag
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14025500b
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov ebx, eax
jne 0x14025500d
lea rcx, [0x140376020]
mov edx, 0x173
call fcn.1402542d0
mov rdi, rax
call fcn.140049470
lea r8, str.DeleteFile_tszTagFil_
mov r10, qword [rax]
lea rdx, str._s_return_code:_0x_08X___s.
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x20], rdi
call qword [r10 + 0x10]
mov eax, ebx
jmp 0x14025500d
Function at 0x1402550c0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea rcx, [rsp + 0x252]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x250], 0
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], 0
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x250]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
xor ebx, ebx
test eax, eax
mov esi, ebx
setne sil
test esi, esi
jne 0x140255242
lea rcx, [0x140c490d0]
xor edx, edx
mov r8d, 0x80
call sub.ntdll.dll_memset
lea edx, [rbx + 0x5c]
lea rcx, [0x140375ee8]
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
je 0x1402551f7
xor eax, eax
lea rdx, [0x140376694]
lea rcx, [rsp + 0x30]
mov r8d, 0x15d
mov byte [rsp + 0x30], bl
mov qword [rsp + 0x31], rax
mov word [rsp + 0x39], ax
mov byte [rsp + 0x3b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
lea rcx, [0x140c490d0]
sub rcx, rdx
nop
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x1402551b0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x140c490d0]
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x30]
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1402551e0
lea rbx, [0x140c490d0]
call fcn.140049470
lea r8, [0x140375f00]
lea rdx, str._s_return_code:_0x_08X___s.
mov rdi, qword [rax]
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [rdi + 0x10]
mov eax, esi
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140161080
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
lea r8, [rsp + 0x250]
lea rdx, str._s_ammark.tag
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCR80.dll__swprintf]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14025521b
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov ebx, eax
jne 0x14025521d
lea rcx, [0x140375f70]
mov edx, Ordinal_355
call fcn.1402542d0
mov rdi, rax
call fcn.140049470
lea r8, [0x140375f80]
mov r10, qword [rax]
lea rdx, str._s_return_code:_0x_08X___s.
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x20], rdi
call qword [r10 + 0x10]
mov eax, ebx
jmp 0x14025521d
Function at 0x140279d10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rsi, rdx
mov r12d, r8d
mov r13, rcx
mov r8d, r8d
xor edx, edx
mov rcx, rsi
call sub.ntdll.dll_memset
xor ebp, ebp
shr r12d, 1
mov ebx, ebp
mov rdi, rsi
je 0x140279d97
nop
nop
lea r9, [rsp + 0x60]
mov r8d, 2
mov rdx, rdi
mov rcx, r13
mov dword [rsp + 0x60], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140279e33
cmp dword [rsp + 0x60], ebp
je 0x140279e33
movzx eax, word [rdi]
add ebx, 1
add rdi, 2
cmp ax, 0xa
je 0x140279d97
cmp ebx, r12d
jb 0x140279d50
mov word [rdi], bp
cmp byte [rsi], 0xff
jne 0x140279ddf
cmp byte [rsi + 1], 0xfe
jne 0x140279ddf
movzx ecx, word [rsi + 2]
lea rax, [rsi + 2]
test cx, cx
je 0x140279dd6
mov rdx, rsi
nop
nop
nop
add rax, 2
mov word [rdx], cx
add ebp, 1
mov cx, word [rax]
add rdx, 2
test cx, cx
jne 0x140279dc0
movsxd rax, ebp
mov word [rsi + rax*2], 0
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
cmp ecx, 2
jl 0x140279e18
movsxd rax, ecx
cmp word [rsi + rax*2 - 4], 0xd
jne 0x140279e18
cmp word [rsi + rax*2 - 2], 0xa
jne 0x140279e18
mov word [rsi + rax*2 - 4], 0
mov word [rsi + rax*2 - 2], 0
mov eax, ecx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
mov ecx, ebx
mov eax, ebx
mov word [rdi + rcx*2], bp
jmp 0x140279e1a