joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424900
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add al, 0
add byte [eax], al
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.00424044
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00423ff9
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.00424044
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00423ff9
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.00424034
cmpsd dword [esi], dword es:[edi]
sar edx, 0x80
movsd dword es:[edi], dword [esi]
int3
Function at 0x4d24f0
Capabilities:
Get common file path

Disassembly:
lea ecx, [edi + 0xea4]
call fcn.004eb440
test eax, eax
je 0x4d2543
cmp dword [eax], 0xa0
push esi
jne 0x4d251a
mov al, 1
cmp byte [edi + 0x62d], al
je 0x4d2542
mov byte [edi + 0x62d], al
jmp 0x4d252a
cmp byte [edi + 0x62d], 0
je 0x4d2542
mov byte [edi + 0x62d], 0
push 0
lea ecx, [edi + 0x20c]
call fcn.00478110
lea eax, [edi + 0x20c]
call fcn.00476590
pop esi
cmp dword [edi + 0xb5f8], 0
je 0x4d2553
mov ecx, edi
jmp fcn.004d2930
ret
Function at 0x401000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, eax
xor eax, eax
mov dword [ebp - 0xc], eax
test edi, edi
je 0x40113c
cmp dword [ebp + 8], eax
je 0x40113c
test ebx, ebx
je 0x40113c
push eax
push pe_nt_image_headers32
push 2
push eax
push 3
push 0xc0000000
push edi
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401139
call fcn.00401e00
test eax, eax
je 0x4010aa
push 0
lea eax, [ebp - 8]
push eax
push 1
push 0x4045bc
call dword [sym.imp.advapi32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x4010aa
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x14]
push eax
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.advapi32.dll_GetSecurityDescriptorSacl]
test eax, eax
je 0x4010a0
mov edx, dword [ebp - 4]
push edx
push 0
push 0
push 0
push 0x10
push 1
push edi
call dword [sym.imp.advapi32.dll_SetNamedSecurityInfoA]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_LocalFree]
push 1
push 0
push 0
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
push ebx
push 0
mov edi, eax
push edi
push esi
call dword [sym.imp.kernel32.dll_LockFile]
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 8]
push ecx
push ebx
push edx
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
push 0
push ebx
push 0
push edi
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.kernel32.dll_UnlockFile]
cmp dword [ebp + 8], 0
je 0x401105
push esi
call dword [sym.imp.kernel32.dll_SetEndOfFile]
mov edi, 1
test eax, eax
jne 0x401108
mov edi, dword [ebp - 0xc]
mov dword [ebp + 8], 0
test esi, esi
je 0x40112f
lea eax, [ebp + 8]
push eax
push esi
call dword [sym.imp.kernel32.dll_GetHandleInformation]
test eax, eax
je 0x40112f
test byte [ebp + 8], 2
jne 0x40112f
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x401150
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0xc], esi
cmp eax, esi
je 0x40127b
push esi
push pe_nt_image_headers32
push 3
push esi
push 3
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40127b
lea eax, [ebp - 0x1c]
push eax
push edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.kernel32.dll_GetFileSizeEx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x401254
lea eax, [ebx + 0x13]
and eax, 0xfffffff0
push eax
push 8
mov dword [ebp - 8], eax
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4011d5
mov ecx, dword [ebp - 8]
push ecx
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 8], esi
test esi, esi
je 0x401254
push 1
push 0
push 0
push edi
mov dword [ebp - 0x10], 0
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
push ebx
push 0
push eax
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.kernel32.dll_LockFile]
push 0
lea edx, [ebp - 0x10]
push edx
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
push 0
push ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
push 0
push eax
push edi
call dword [sym.imp.kernel32.dll_UnlockFile]
cmp dword [ebp - 0x18], 0
jne 0x401251
mov ebx, dword [sym.imp.kernel32.dll_GetProcessHeap]
push esi
push 0
call ebx
push eax
call dword [sym.imp.kernel32.dll_HeapValidate]
test eax, eax
je 0x40124a
push esi
push 0
call ebx
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 8], 0
mov esi, dword [ebp - 8]
mov dword [ebp - 8], 0
test edi, edi
je 0x40127b
lea ecx, [ebp - 8]
push ecx
push edi
call dword [sym.imp.kernel32.dll_GetHandleInformation]
test eax, eax
je 0x40127b
test byte [ebp - 8], 2
jne 0x40127b
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, dword [ebp + 8]
test edi, edi
je 0x40129f
push 4
push edi
call dword [sym.imp.kernel32.dll_IsBadWritePtr]
test eax, eax
mov eax, esi
jne 0x4012a1
mov edx, dword [ebp - 0xc]
mov dword [edi], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4012b0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push 0x401cb0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.kernel32.dll_VirtualQuery]
mov edx, dword [ebp - 0x18]
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push edx
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.shlwapi.dll_PathFileExistsA]
test eax, eax
je 0x401380
push esi
lea ecx, [ebp - 0x328]
push ecx
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea edx, [ebp - 0x120]
push edx
push 0
push 0
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, dword [sym.imp.kernel32.dll_MoveFileExA]
push 1
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x224]
push edx
call esi
test eax, eax
je 0x40137f
push 0
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.kernel32.dll_DeleteFileA]
test eax, eax
jne 0x40137f
push 4
push eax
lea edx, [ebp - 0x120]
push edx
call esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4014b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
push esi
push edi
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x58]
push ebx
push eax
mov dword [ebp - 0x5c], ebx
call sub.msvcrt.dll_memset
push 0x103
xor eax, eax
lea ecx, [ebp - 0x163]
push ebx
push ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov byte [ebp - 0x164], bl
call sub.msvcrt.dll_memset
mov edx, dword [ebp + 8]
add esp, 0x18
push 0x104
push edx
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyn]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x5c]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x164]
push eax
mov dword [ebp - 0x5c], 0x44
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
je 0x40158f
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.kernel32.dll_GetHandleInformation]
mov esi, eax
mov dword [ebp + 8], ebx
cmp eax, ebx
je 0x40155d
lea ecx, [ebp + 8]
push ecx
push eax
call edi
test eax, eax
je 0x40155d
test byte [ebp + 8], 2
jne 0x40155d
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov esi, eax
mov dword [ebp + 8], ebx
cmp eax, ebx
je 0x401581
lea edx, [ebp + 8]
push edx
push eax
call edi
test eax, eax
je 0x401581
test byte [ebp + 8], 2
jne 0x401581
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4015a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
push ebx
push esi
push edi
xor esi, esi
push 0x124
lea eax, [esp + 0x18]
push esi
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call sub.msvcrt.dll_memset
add esp, 0xc
push esi
push 2
call dword [sym.imp.kernel32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4015e7
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0x128
call dword [sym.imp.kernel32.dll_Process32First]
mov edi, dword [sym.imp.shlwapi.dll_StrStrIA]
mov ebx, dword [sym.imp.kernel32.dll_Process32Next]
mov edx, dword [ebp + 8]
push edx
lea eax, [esp + 0x38]
push eax
call edi
test eax, eax
jne 0x40165b
lea ecx, [esp + 0x10]
push ecx
push esi
call ebx
test eax, eax
jne 0x401607
mov edi, dword [esp + 0xc]
mov dword [esp + 0xc], 0
test esi, esi
je 0x401650
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.kernel32.dll_GetHandleInformation]
test eax, eax
je 0x401650
test byte [esp + 0xc], 2
jne 0x401650
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [esp + 0x18]
jmp 0x401626
Function at 0x401b20
Capabilities:
Access pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 4], 0
test eax, eax
je 0x401bd7
lea ecx, [ebp - 4]
push ecx
call fcn.00401150
mov esi, eax
test esi, esi
je 0x401bd7
push esi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov ebx, eax
test ebx, ebx
je 0x401bb5
rdtsc
xor dword [0x45984c], eax
call dword [sym.imp.kernel32.dll_GetTickCount]
xor dword [0x45984c], eax
push 0x404560
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
je 0x401b95
push 0x40456c
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x401b95
push 0x45984c
call eax
mov ecx, dword [0x45984c]
mov eax, ecx
xor edx, edx
or edi, 0xffffffff
div edi
push esi
add eax, ecx
mov dword [ebx + 0x58], eax
mov ebx, dword [ebp - 4]
mov eax, dword [ebp + 8]
call section..text
mov edi, dword [sym.imp.kernel32.dll_GetProcessHeap]
push esi
push 0
call edi
push eax
call dword [sym.imp.kernel32.dll_HeapValidate]
test eax, eax
je 0x401bd7
push esi
push 0
call edi
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x401be0
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_CreateFileA]
push 0
push pe_nt_image_headers32
push 3
push 0
push 3
push 0x80000000
push 0x40452c
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x401ca5
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x20]
push edx
push esi
call dword [sym.imp.kernel32.dll_GetFileTime]
mov dword [ebp - 8], 0
test esi, esi
je 0x401c4c
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.kernel32.dll_GetHandleInformation]
test eax, eax
je 0x401c4c
test byte [ebp - 8], 2
jne 0x401c4c
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
push 0
push pe_nt_image_headers32
push 3
push 0
push 3
push 0xc0000000
push ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x401ca5
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.kernel32.dll_SetFileTime]
mov dword [ebp + 8], 0
test esi, esi
je 0x401ca5
lea edx, [ebp + 8]
push edx
push esi
call dword [sym.imp.kernel32.dll_GetHandleInformation]
test eax, eax
je 0x401ca5
test byte [ebp + 8], 2
jne 0x401ca5
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x401cf0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push 0x220
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x224]
push eax
call sub.msvcrt.dll_memset
mov ebx, dword [sym.imp.kernel32.dll_CreateToolhelp32Snapshot]
add esp, 0xc
push edi
push 8
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x401d88
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x18
jne 0x401deb
call dword [sym.imp.kernel32.dll_SwitchToThread]
push edi
push 8
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x401deb
mov edi, dword [ebp - 4]
mov dword [ebp - 4], 0
test esi, esi
je 0x401d7f
lea ecx, [ebp - 4]
push ecx
push esi
call dword [sym.imp.kernel32.dll_GetHandleInformation]
test eax, eax
je 0x401d7f
test byte [ebp - 4], 2
jne 0x401d7f
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x228]
push ecx
push esi
mov dword [ebp - 0x228], 0x224
call dword [sym.imp.kernel32.dll_Module32First]
test eax, eax
je 0x401d55
mov edi, dword [sym.imp.shlwapi.dll_StrStrIA]
mov ebx, dword [sym.imp.kernel32.dll_Module32Next]
push 0x404598
lea edx, [ebp - 0x208]
push edx
call edi
test eax, eax
je 0x401dce
push 0x4045a0
push eax
call edi
test eax, eax
jne 0x401de1
lea eax, [ebp - 0x228]
push eax
push esi
call ebx
test eax, eax
jne 0x401db0
jmp 0x401d55
mov edi, 1
jmp 0x401d58
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4020e0
Capabilities:
Get common file path
Get program files directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405288
push 0x403c32
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov byte [ebp - 0x120], bl
push 0x103
push ebx
lea eax, [ebp - 0x11f]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor esi, esi
lea ecx, [ebp - 0x120]
push ecx
push ebx
push ebx
push 0x26
push ebx
call dword [sym.imp.shell32.dll_SHGetFolderPathA]
test eax, eax
js 0x4021a7
push 0x404da0
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.shlwapi.dll_PathAppendA]
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x4021a7
push 0x404db4
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x4021a7
push 0x404dc4
push esi
call dword [sym.imp.kernel32.dll_GetProcAddress]
cmp eax, ebx
je 0x4021a7
mov dword [ebp - 4], ebx
push ebx
call eax
mov dword [ebp - 4], 0xffffffff
jmp 0x4021a7
test esi, esi
je 0x4021b2
push esi
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4021d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
push ebx
xor ebx, ebx
push esi
push ebx
push pe_nt_image_headers32
push 3
push ebx
push ebx
push ebx
push 0x404dd0
mov dword [ebp - 0xb4], 0xb4
mov dword [ebp - 0xb0], 0x10
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], 0x7b761e52
mov dword [ebp - 0x88], 0x1c94cc7
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x70], 1
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x64], 0x20000000
mov dword [ebp - 0x60], 0x1210064
mov dword [ebp - 0x5c], 0x22
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], 0x4d0007
mov dword [ebp - 0x50], 0x730065
mov dword [ebp - 0x4c], 0x610073
mov dword [ebp - 0x48], 0x650067
mov dword [ebp - 0x44], 0x420000
mov dword [ebp - 0x40], 0xb0022
mov dword [ebp - 0x3c], 0x490000
mov dword [ebp - 0x38], 0x530053
mov dword [ebp - 0x34], 0x560045
mov dword [ebp - 0x30], 0x4e0045
mov dword [ebp - 0x2c], 0x490054
mov dword [ebp - 0x28], 0x3d0044
mov dword [ebp - 0x24], 0x300034
mov dword [ebp - 0x20], 0x320030
mov dword [ebp - 0x1c], 0x650000
mov dword [ebp - 0x18], 0x70006d
mov dword [ebp - 0x14], 0x790074
mov dword [ebp - 0x10], 0x45003d
mov dword [ebp - 0xc], 0x70006d
mov dword [ebp - 8], 0x790074
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402350
push ebx
lea eax, [ebp - 0xbc]
push eax
push 4
lea ecx, [ebp - 0xb8]
push ecx
push 0xb4
lea edx, [ebp - 0xb4]
push edx
push 0x86000054
push esi
call dword [sym.imp.kernel32.dll_DeviceIoControl]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
xor ebx, ebx
push esi
push ebx
push 0x80000080
xor eax, eax
push 3
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 3
push 0xc0000000
push 0x404df0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x60], 0xd48a445e
mov dword [ebp - 0x5c], 0x466e1597
mov dword [ebp - 0x58], 0x327416ba
mov dword [ebp - 0x54], 0x68ccde15
mov dword [ebp - 0x50], 5
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], 0x11
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], 0x11
mov dword [ebp - 0x38], 0xb5cb6c63
mov dword [ebp - 0x34], 0x46df52db
mov dword [ebp - 0x30], 0x65aa6b83
mov dword [ebp - 0x2c], 0x229bf18e
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402444
push edi
mov edi, dword [sym.imp.kernel32.dll_WriteFile]
push ebx
lea ecx, [ebp - 4]
push ecx
push 0x28
lea edx, [ebp - 0x60]
push edx
push esi
call edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.kernel32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
push ebx
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x23], ecx
push 0x1c
lea ecx, [ebp - 0x38]
push ecx
push esi
mov dword [ebp - 0x1f], edx
call edi
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402450
Capabilities:
Get common file path
Get program files directory
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.shell32.dll_SHGetFolderPathA]
cmp eax, 1
je 0x402535
xor eax, eax
lea esp, [esp]
mov cl, byte [ebp + eax - 0x104]
mov byte [ebp + eax - 0x208], cl
inc eax
test cl, cl
jne 0x402480
lea eax, [ebp - 0x104]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4024a0
mov ecx, dword [0x404e08]
mov edx, dword [0x404e0c]
mov dword [eax], ecx
mov ecx, dword [0x404e10]
mov dword [eax + 4], edx
mov edx, dword [0x404e14]
mov dword [eax + 8], ecx
mov ecx, dword [0x404e18]
mov dword [eax + 0xc], edx
mov dl, byte [0x404e1c]
mov dword [eax + 0x10], ecx
mov byte [eax + 0x14], dl
lea eax, [ebp - 0x208]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4024e4
mov ecx, dword [0x404e20]
mov edx, dword [0x404e24]
mov dword [eax], ecx
mov ecx, dword [0x404e28]
mov dword [eax + 4], edx
mov edx, dword [0x404e2c]
mov dword [eax + 8], ecx
mov ecx, dword [0x404e30]
mov dword [eax + 0xc], edx
mov dl, byte [0x404e34]
mov dword [eax + 0x10], ecx
mov byte [eax + 0x14], dl
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.kernel32.dll_MoveFileA]
mov esp, ebp
pop ebp
ret
Function at 0x402540
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
push 0x23
push 0
mov byte [ebp - 1], 0
call dword [sym.imp.shell32.dll_SHGetFolderPathA]
cmp eax, 1
je 0x402670
lea eax, [ebp - 0x10c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x402572
mov ecx, dword [0x404e38]
mov edx, dword [0x404e3c]
push esi
push 0
push pe_nt_image_headers32
mov dword [eax], ecx
mov ecx, dword [0x404e40]
push 3
mov dword [eax + 4], edx
mov edx, dword [0x404e44]
push 0
mov dword [eax + 8], ecx
mov ecx, dword [0x404e48]
push 3
mov dword [eax + 0xc], edx
push 0xc0000000
lea edx, [ebp - 0x10c]
push edx
mov dword [eax + 0x10], ecx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40266f
push ebx
push edi
mov edi, dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
push 0
push 0x17a8
push esi
call edi
mov ebx, dword [sym.imp.kernel32.dll_WriteFile]
push 0
lea eax, [ebp - 8]
push eax
push 1
lea ecx, [ebp - 1]
push ecx
push esi
call ebx
push 0
push 0
push 0xb98
push esi
call edi
push 0
lea edx, [ebp - 8]
push edx
push 1
lea eax, [ebp - 1]
push eax
push esi
call ebx
push 0
push 0
push 0x17e4
push esi
call edi
push 0
lea ecx, [ebp - 8]
push ecx
push 1
lea edx, [ebp - 1]
push edx
push esi
call ebx
push 0
push 0
push 0x17dc
push esi
call edi
push 0
lea eax, [ebp - 8]
push eax
push 1
lea ecx, [ebp - 1]
push ecx
push esi
call ebx
push 0
push 0
push 0x3380
push esi
call edi
push 0
lea edx, [ebp - 8]
push edx
push 1
lea eax, [ebp - 1]
push eax
push esi
call ebx
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret