joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b59a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cbaec
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x5142b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x14]
call fcn.00403f00
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
cmp dword [0x515c08], 0
je 0x4b5a15
mov eax, dword [0x515c08]
push eax
lea ecx, [ebp - 0x14]
call fcn.004075f0
push 0x4ee57c
lea ecx, [ebp - 0x14]
call fcn.004092d0
push 0x4ee5e4
lea ecx, [ebp - 0x14]
call fcn.004092d0
jmp 0x4b5a22
push 0x4ee674
lea ecx, [ebp - 0x14]
call fcn.004075f0
cmp dword [ebp + 8], 0
jne 0x4b5ae1
mov ecx, dword [ebp - 0x44]
call fcn.004c7a70
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4b5a4c
push str.successfully_updated_the_InvProcessRecord_XML._n
call fcn.00423db0
add esp, 4
jmp 0x4b5a59
push str.Problem_in_Deleting_Old_Records..._n
call fcn.00423ad0
add esp, 4
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00403f60
mov byte [ebp - 4], 2
push 0x4ee8b8
lea ecx, [ebp - 0x1c]
call fcn.004092d0
lea ecx, [ebp - 0x1c]
call fcn.00402650
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4b5ad0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push str.DeleteFile_Failed_for_file_Name___S_errorcode____d_n
call fcn.00423ad0
add esp, 0xc
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x30], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00401ed0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401ed0
mov eax, dword [ebp - 0x30]
jmp 0x4b5bdf
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00401ed0
jmp 0x4b5b6c
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0x4ee8fc
mov dword [ebp - 0x28], 0
push str.Invsw
lea edx, [ebp - 0x2c]
push edx
call fcn.0042fac0
add esp, 8
mov dword [ebp - 0x24], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x4ee91c
call fcn.00407450
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 3
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
lea edx, [ebp - 0x14]
push edx
call fcn.00403f60
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x24]
push ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x44]
call fcn.004b5680
cmp dword [ebp - 0x24], 0
je 0x4b5b6c
mov edx, dword [ebp - 0x24]
push edx
call fcn.0048efd8
add esp, 4
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401ed0
mov eax, dword [ebp - 0x3c]
jmp 0x4b5bdf
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4ba280
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca706
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5142b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x10]
call fcn.00403f00
mov dword [ebp - 4], 0
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x4ba3d7
push str.StringFileInfo040904e4_
lea ecx, [ebp - 0x10]
call fcn.00401f20
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004092b0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x10]
call fcn.004041b0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4ba316
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401ed0
mov eax, dword [ebp - 0x18]
jmp 0x4ba45d
push 0x4f1dec
lea ecx, [ebp - 0x10]
call fcn.00401f20
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
push str._04X04B0_s
lea ecx, [ebp - 0x10]
push ecx
call fcn.00405340
add esp, 0x10
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x10]
call fcn.004041b0
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4ba37f
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401ed0
mov eax, dword [ebp - 0x1c]
jmp 0x4ba45d
push str.StringFileInfo00000000_
lea ecx, [ebp - 0x10]
call fcn.00401f20
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.004092b0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004041b0
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4ba3d5
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401ed0
mov eax, dword [ebp - 0x20]
jmp 0x4ba45d
jmp 0x4ba444
push str.StringFileInfo_
lea ecx, [ebp - 0x10]
call fcn.00401f20
mov eax, dword [ebp + 0xc]
push eax
movzx ecx, word [ebp + 0x1c]
push ecx
movzx edx, word [ebp + 0x18]
push edx
push str._04x_04x_s
lea eax, [ebp - 0x10]
push eax
call fcn.00405340
add esp, 0x14
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x10]
call fcn.004041b0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4ba444
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401ed0
mov eax, dword [ebp - 0x24]
jmp 0x4ba45d
mov dword [ebp - 0x28], 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401ed0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4bbd60
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cabd8
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x228
mov eax, dword [0x5142b0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x224], 0
mov eax, dword [0x4f07d4]
mov dword [ebp - 0x220], eax
mov ecx, dword [0x4f07d8]
mov dword [ebp - 0x21c], ecx
mov edx, dword [0x4f07dc]
mov dword [ebp - 0x218], edx
mov eax, dword [0x4f07e0]
mov dword [ebp - 0x214], eax
mov ecx, dword [0x4f07e4]
mov dword [ebp - 0x210], ecx
push 0x1f4
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.00492ac0
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0x224]
push eax
push 4
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x4bbe67
push 0x104
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
test eax, eax
je 0x4bbe44
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00401f20
jmp 0x4bbe62
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetProcessName__:_Error_in_GetModuleBaseName_Error____d_n
call fcn.00423ad0
add esp, 8
mov eax, 0x7b
jmp 0x4bbf66
jmp 0x4bbf36
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetProcessName__:_Error_in_EnumProcessModules_Error____d_n
call fcn.00423ad0
add esp, 8
push 0x208
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004b68b0
add esp, 0xc
test eax, eax
je 0x4bbf1b
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00401f20
push 0x5c
mov ecx, dword [ebp + 0xc]
call fcn.00403fe0
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0xffffffff
je 0x4bbf19
mov ecx, dword [ebp + 0xc]
call fcn.00401880
push eax
mov ecx, dword [ebp - 0x228]
add ecx, 1
push ecx
lea edx, [ebp - 0x22c]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00404080
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x238], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x238]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00403fc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x22c]
call fcn.00401ed0
jmp 0x4bbf36
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._GetProcessName__:_Error_in_DCGetProcessImageFileName____d_n
call fcn.00423ad0
add esp, 8
mov eax, 0x7b
jmp 0x4bbf66
xor eax, eax
jmp 0x4bbf66
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0048ed61
mov esp, ebp
pop ebp
ret
Function at 0x4bbf90
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cadb9
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x24
mov eax, dword [0x5142b0]
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4bc081
lea ecx, [ebp - 0x18]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4bc081
mov dword [ebp - 0x30], 1
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 2
push 0
push 0
push 0
lea ecx, [ebp - 0x30]
push ecx
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4bc055
push 0x40e8e0
push str.SUCCESSFULLY_CHANGED_TOKEN_PRIVILEGES
push 0x515f68
call fcn.00405460
add esp, 8
mov ecx, eax
call fcn.0040f3b0
jmp 0x4bc081
push 0x40e8e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FAILED_TO_CHANGE_TOKEN_PRIVILEGES__CODE:
push 0x515f68
call fcn.00405460
add esp, 8
mov ecx, eax
call fcn.0040f3d0
mov ecx, eax
call fcn.0040f3b0
cmp dword [ebp - 0x1c], 0
je 0x4bc098
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
xor eax, eax
jmp 0x4bc0c2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0048ed61
mov esp, ebp
pop ebp
ret
Function at 0x4be680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb3c4
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x5142b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
push 0x4eb5c3
lea eax, [ebp + 8]
push eax
call fcn.00401360
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4be6fb
mov dword [ebp - 0x1c], 0xc0000001
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401ed0
mov eax, dword [ebp - 0x1c]
jmp 0x4be8b9
push 0
push 0x80
push 2
push 0
push 1
push 2
lea ecx, [ebp + 8]
call fcn.00402650
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4be786
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.004be580
add esp, 8
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x3c]
call fcn.004041b0
push eax
lea ecx, [ebp + 8]
call fcn.00401380
push eax
push 0x4ef6f4
call fcn.00423db0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00401ed0
mov dword [ebp - 0x24], 0xc0000005
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401ed0
mov eax, dword [ebp - 0x24]
jmp 0x4be8b9
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0x4ef720
call fcn.0048f020
add esp, 4
add eax, 1
push eax
push str.DATE_t_tSTARTTIME_t_tDATASTATUS_t_tENDTIME_t_n
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4be7e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4ef770
call fcn.00423ad0
add esp, 8
mov dword [ebp - 0x28], 0xc0000008
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401ed0
mov eax, dword [ebp - 0x28]
jmp 0x4be8b9
push 0
lea eax, [ebp - 0x18]
push eax
push 0x4ef7a0
call fcn.0048f020
add esp, 4
add eax, 1
push eax
push str._____t_t__________t_t___________t_t________t_n
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4be83b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InitializeAccessLog______WriteFile_error_:__d_n
call fcn.00423ad0
add esp, 8
mov dword [ebp - 0x2c], 0xc0000008
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401ed0
mov eax, dword [ebp - 0x2c]
jmp 0x4be8b9
cmp dword [ebp - 0x14], 0xffffffff
je 0x4be852
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401ed0
mov eax, dword [ebp - 0x30]
jmp 0x4be8b9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bf100
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca91e
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5142b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CSWFileKeyValue.0
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.00403f00
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00403f00
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.00403f00
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.00403f00
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.00403f00
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.00403f00
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.00403f00
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.00403f00
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.00403f00
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x58
call fcn.0040c660
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x34], 0xffffffff
push 0x4eb6bb
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.004075f0
mov edx, 0x3a
mov eax, dword [ebp - 0x10]
mov word [eax + 0x2c], dx
mov ecx, 0x7c
mov edx, dword [ebp - 0x10]
mov word [edx + 0x2e], cx
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov word [ecx + 0x30], ax
mov edx, dword [ebp - 0x10]
add edx, 0x40
push edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4bfb60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb41d
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5142b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 0x4eb745
mov eax, dword [ebp - 0x20]
add eax, 8
push eax
call fcn.0040c560
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x4bfbd3
push 0x4f5a58
mov edx, dword [ebp - 0x20]
add edx, 8
push edx
call fcn.0040c560
add esp, 8
movzx eax, al
test eax, eax
je 0x4bfbea
push str._CSWFileKeyValue::Writelinefile__:__m_strFilename____m_strFilename____so_we_dont_write_Info_n
call fcn.00423ad0
add esp, 4
mov eax, 0xc0000001
jmp 0x4bfce8
cmp dword [ebp + 8], 0
je 0x4bfbf6
cmp dword [ebp + 0xc], 0
jne 0x4bfc0d
push str._CSWFileKeyValue::Writelinefile__:__lpBuffer__NULL__NoofBytesWrite_0__so_we_dont_write_Info_n
call fcn.00423ad0
add esp, 4
mov eax, 0xc0000002
jmp 0x4bfce8
push 0
mov ecx, dword [ebp - 0x20]
call fcn.004bf230
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 0x34], 0xffffffff
jne 0x4bfc37
push str._CSWFileKeyValue::Writelinefile__:_m_hFile__INVALID_HANDLE_VALUE_so_we_dont_write_Info_n
call fcn.00423ad0
add esp, 4
mov eax, 0xc0000005
jmp 0x4bfce8
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4bfc75
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
push str._CSWFileKeyValue::Writelinefile__:WriteFile_failed_so_we_dont_write_Info_errcode___d_n
call fcn.00423ad0
add esp, 8
mov eax, dword [ebp - 0x18]
jmp 0x4bfce8
push 0
lea edx, [ebp - 0x14]
push edx
push 0x4f5c20
call fcn.00490910
add esp, 4
push eax
push 0x4f5c28
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4bfcbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
push str._CSWFileKeyValue::Writelinefile__:_WriteFile_failed_so_we_dont_write_Info_errcode___d_n
call fcn.00423ad0
add esp, 8
mov eax, dword [ebp - 0x18]
jmp 0x4bfce8
xor eax, eax
jmp 0x4bfce8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4c05b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb7ba
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x5142b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], ecx
push 0x4eb7a7
lea ecx, [ebp - 0x18]
call fcn.00407450
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x3c]
add ecx, 0x58
call fcn.004132b0
test eax, eax
ja 0x4c0654
mov ecx, dword [ebp - 0x3c]
add ecx, 0x14
call fcn.00402650
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4c0640
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x14]
push ecx
push str._NEEDTOSEE_::_CSWFileKeyValue::UpdateSafeFileFromList______Could_not_Delete_The_File____S_due_to_Errcode_:__d_n
call fcn.00423ad0
add esp, 0xc
jmp 0x4c0654
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x14]
push eax
push str.Success_Fully_Deleted_the_File____S
call fcn.00423db0
add esp, 8
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x3c]
add ecx, 0x58
call fcn.0040bc90
mov edx, dword [eax]
mov dword [ebp - 0x1c], edx
jmp 0x4c0678
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004075c0
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x3c]
add ecx, 0x58
call fcn.004096e0
push eax
lea ecx, [ebp - 0x1c]
call fcn.00413da0
movzx edx, al
test edx, edx
je 0x4c0764
push 0x4eb7e9
lea ecx, [ebp - 0x18]
call fcn.004075f0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00413d50
add eax, 8
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.004bea10
cmp dword [ebp - 0x14], 0
jne 0x4c070f
push 2
push 2
push 2
lea ecx, [ebp - 0x18]
call fcn.00401880
shl eax, 1
push eax
lea ecx, [ebp - 0x18]
call fcn.00402650
push eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0x14
push ecx
mov edx, esp
mov dword [ebp - 0x2c], esp
push ecx
mov ecx, edx
call fcn.00403f60
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x3c]
call fcn.004bf8b0
jmp 0x4c0756
push 4
push 2
push 4
lea ecx, [ebp - 0x18]
call fcn.00401880
shl eax, 1
push eax
lea ecx, [ebp - 0x18]
call fcn.00402650
push eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0x14
push ecx
mov edx, esp
mov dword [ebp - 0x30], esp
push ecx
mov ecx, edx
call fcn.00403f60
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x3c]
call fcn.004bf8b0
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
jmp 0x4c066a
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401ed0
mov eax, dword [ebp - 0x34]
jmp 0x4c07c5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c2d40
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb181
mov eax, dword fs:[0]
push eax
sub esp, 0x62c
mov eax, dword [0x5142b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x638], 0
xor eax, eax
mov word [ebp - 0x414], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x412]
push ecx
call fcn.00492ac0
add esp, 0xc
push 0x4f982c
lea ecx, [ebp - 0x418]
call fcn.00401e50
mov dword [ebp - 4], 1
lea edx, [ebp - 0x414]
push edx
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4c2f4f
mov eax, dword [0x4f9830]
mov dword [ebp - 0x424], eax
mov cx, word [0x4f9834]
mov word [ebp - 0x420], cx
mov dword [ebp - 0x630], 0
lea edx, [ebp - 0x414]
mov dword [ebp - 0x41c], edx
mov eax, dword [ebp - 0x41c]
mov cx, word [eax]
mov word [ebp - 0x424], cx
push 0x200
lea edx, [ebp - 0x62c]
push edx
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4c2f17
lea ecx, [ebp - 0x62c]
push ecx
call fcn.00490910
add esp, 4
mov dword [ebp - 0x634], eax
cmp dword [ebp - 0x634], 0x104
jae 0x4c2f17
mov edx, dword [ebp - 0x634]
push edx
lea eax, [ebp - 0x62c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00491036
add esp, 0xc
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x630], eax
lea edx, [ebp - 0x62c]
push edx
lea eax, [ebp - 0x424]
push eax
push str.Drive_Letter____S_Device_Name____S_n
call fcn.00423db0
add esp, 0xc
cmp dword [ebp - 0x630], 0
je 0x4c2f0a
mov ecx, dword [ebp - 0x634]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
push eax
lea ecx, [ebp - 0x424]
push ecx
push 0x4f985c
lea edx, [ebp - 0x418]
push edx
call fcn.00405340
add esp, 0x10
lea ecx, [ebp - 0x418]
call fcn.004041b0
push eax
push str.Device_Path____S_n
call fcn.00423db0
add esp, 8
lea eax, [ebp - 0x418]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403f60
mov ecx, dword [ebp - 0x638]
or ecx, 1
mov dword [ebp - 0x638], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x418]
call fcn.00401ed0
mov eax, dword [ebp + 8]
jmp 0x4c2f7f
push str.Device_Path_not_found_n
call fcn.00423db0
add esp, 4
mov edx, dword [ebp - 0x41c]
movzx eax, word [edx]
mov ecx, dword [ebp - 0x41c]
add ecx, 2
mov dword [ebp - 0x41c], ecx
test eax, eax
je 0x4c2f35
jmp 0x4c2f17
cmp dword [ebp - 0x630], 0
jne 0x4c2f4f
mov edx, dword [ebp - 0x41c]
movzx eax, word [edx]
test eax, eax
jne 0x4c2df4
lea ecx, [ebp - 0x418]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403f60
mov edx, dword [ebp - 0x638]
or edx, 1
mov dword [ebp - 0x638], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x418]
call fcn.00401ed0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048ed61
mov esp, ebp
pop ebp
ret