joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417b0c
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x417c57
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x14]
mov ecx, ebx
mov edx, 0x417c70
call fcn.00403bf4
mov eax, dword [ebp - 0x14]
call fcn.00403b78
push eax
call sub.KERNEL32.dll_CreateFileW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x417c3f
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov edi, dword [ebp - 8]
mov edi, dword [edi]
sub edi, 0x18
dec edi
test edi, edi
jl 0x417b9a
inc edi
xor esi, esi
mov al, byte [ebp - 0x10]
xor al, byte [ecx]
mov edx, esi
and dl, 0xff
xor al, dl
mov byte [ecx], al
inc ecx
inc esi
dec edi
jne 0x417b87
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
sub edx, 0x18
mov eax, dword [ebp - 8]
add eax, 0x18
call fcn.0040fae4
mov eax, dword [ebp - 8]
lea esi, [ebp - 0x28]
lea edi, [eax + 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 8]
add ecx, 0x18
mov edi, dword [ebp - 8]
mov edi, dword [edi]
sub edi, 0x18
dec edi
test edi, edi
jl 0x417bfc
inc edi
xor esi, esi
mov eax, esi
mov ebx, 0x14
cdq
idiv ebx
mov eax, dword [ebp - 8]
mov al, byte [eax + edx + 4]
xor edx, edx
mov dl, al
shr edx, 4
xor dl, byte [ecx]
and al, 0xf
shl eax, 4
xor dl, al
mov byte [ecx], dl
inc ecx
inc esi
dec edi
jne 0x417bd4
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_DeviceIoControl
cmp eax, 1
sbb ebx, ebx
inc ebx
call sub.KERNEL32.dll_GetLastError
mov esi, eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_SetLastError
jmp 0x417c41
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417c5e
lea eax, [ebp - 0x14]
call fcn.004039ec
ret

Function at 0x417c7c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, edx
mov edi, eax
push esp
push 0xf003f
push 0
push ebp
push edi
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
jne 0x417cd9
xor esi, esi
push 0x208
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
jmp 0x417cb5
mov edx, ebx
mov eax, dword [esp]
call fcn.00417c7c
inc esi
push 0x104
push ebx
push esi
mov eax, dword [esp + 0xc]
push eax
call sub.ADVAPI32.dll_RegEnumKeyW
test eax, eax
je 0x417caa
push ebx
call sub.KERNEL32.dll_LocalFree
mov eax, dword [esp]
push eax
call sub.ADVAPI32.dll_RegCloseKey
push ebp
push edi
call sub.ADVAPI32.dll_RegDeleteKeyW
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4182f8
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
xor ebx, ebx
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call sub.KERNEL32.dll_CreateFileW
mov edi, eax
cmp edi, 0xffffffff
je 0x41839f
push 0
push 0
push 0
push 2
push 0
push edi
call sub.KERNEL32.dll_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x418399
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x418393
push 0
push edi
call sub.KERNEL32.dll_GetFileSize
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x41836a
cmp ebx, dword [ebp - 8]
jbe 0x41836a
mov ebx, dword [ebp - 8]
lea ecx, [ebp - 0x20]
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0040fae4
mov eax, dword [ebp - 4]
push esi
push edi
lea esi, [ebp - 0x20]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
push edi
call sub.KERNEL32.dll_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419078
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4191db
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
call sub.KERNEL32.dll_lstrlenW
mov edx, eax
cmp byte [ebp - 1], 0
je 0x4190c5
mov eax, edx
sub eax, 2
cmp eax, 1
jl 0x4190c5
cmp word [ebx + eax*2], 0x5c
jne 0x4190c0
mov word [ebx + eax*2], 0
mov edx, eax
jmp 0x4190c5
dec eax
test eax, eax
jne 0x4190af
test edx, edx
jle 0x4190de
cmp word [ebx + edx*2 - 2], 0x5c
je 0x4190de
mov word [ebx + edx*2], 0x5c
mov word [ebx + edx*2 + 2], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax], 0
jne 0x41911c
lea ecx, [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax]
mov dl, 1
call fcn.00410874
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
xor edx, edx
mov eax, ebx
call fcn.00410874
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
pop ecx
call fcn.004036b8
jmp 0x419158
lea eax, [ebp - 0x14]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx]
call fcn.00403610
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov dl, 1
call fcn.004108c8
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
xor edx, edx
mov eax, ebx
call fcn.00410874
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
pop ecx
call fcn.004036b8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
call fcn.0040366c
cmp eax, 6
jle 0x4191a6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
cmp byte [eax + 2], 0x3a
je 0x419193
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
cmp byte [eax], 0x5c
jne 0x4191a6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
cmp byte [eax + 2], 0x5c
jne 0x4191a6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
push eax
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x4191aa
xor ebx, ebx
jmp 0x4191ac
mov bl, 1
test bl, bl
je 0x4191c0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4191e2
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.0040343c
ret
Function at 0x4191ec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov bl, 1
push ebp
xor edx, edx
xor eax, eax
call fcn.00419078
pop ecx
test al, al
jne 0x4192a7
push 0x104
lea eax, [ebp - 0x212]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameW
push ebp
lea eax, [ebp - 0x212]
mov dl, 1
call fcn.00419078
pop ecx
test al, al
jne 0x4192a7
push 0x104
lea eax, [ebp - 0x212]
push eax
mov eax, dword [0x47f658]
push eax
call sub.KERNEL32.dll_GetModuleFileNameW
push ebp
lea eax, [ebp - 0x212]
mov dl, 1
call fcn.00419078
pop ecx
test al, al
jne 0x4192a7
lea eax, [ebp - 0x212]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryW
push ebp
lea eax, [ebp - 0x212]
xor edx, edx
call fcn.00419078
pop ecx
test al, al
jne 0x4192a7
push 0x104
lea eax, [ebp - 0x212]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryW
push ebp
lea eax, [ebp - 0x212]
xor edx, edx
call fcn.00419078
pop ecx
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41ae54
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0
push 1
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 1
push 0
push 1
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
call fcn.00419e30
mov ebx, eax
test bl, bl
je 0x41aeac
test esi, 4
jne 0x41aeb7
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_ResumeThread
jmp 0x41aeb7
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_TerminateProcess
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41d5c8
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
xor eax, eax
mov dword [ebp - 0x154], eax
xor eax, eax
push ebp
push 0x41d66d
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
lea eax, [ebp - 0x154]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
call fcn.00403610
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x150]
xor ecx, ecx
call fcn.0041b994
mov ebx, eax
test bl, bl
je 0x41d654
mov eax, dword [ebp - 0x144]
push eax
call sub.KERNEL32.dll_CloseHandle
push 0x64
mov eax, dword [ebp - 0x12c]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
push 0
mov eax, dword [ebp - 0x12c]
push eax
call sub.KERNEL32.dll_TerminateThread
mov eax, dword [ebp - 0x148]
push eax
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 0x12c]
push eax
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d674
lea eax, [ebp - 0x154]
call fcn.00403418
ret
Function at 0x41d8f8
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x41dae2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x47e150], 0
jne 0x41dac7
lea eax, [ebp - 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.dll_OpenProcessToken
test eax, eax
je 0x41dac0
xor eax, eax
push ebp
push 0x41dab9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 3
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_GetTokenInformation
cmp dword [ebp - 8], 0
je 0x41daa2
mov eax, dword [ebp - 8]
add eax, eax
push eax
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebx
push 3
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_GetTokenInformation
test eax, eax
je 0x41da9c
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [0x47dcf4]
call fcn.00406ab4
mov eax, dword [ebp - 0x24]
call fcn.0040386c
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x41d9d0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x28]
mov eax, dword [0x47dcf8]
call fcn.00406ab4
mov eax, dword [ebp - 0x28]
call fcn.0040386c
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x41da03
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [0x47dcfc]
call fcn.00406ab4
mov eax, dword [ebp - 0x2c]
call fcn.0040386c
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x41da36
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov esi, dword [ebx]
dec esi
test esi, esi
jl 0x41da88
inc esi
xor ecx, ecx
lea edi, [ecx + ecx*2]
mov eax, dword [ebx + edi*4 + 4]
mov edx, dword [ebx + edi*4 + 8]
cmp edx, dword [ebp - 0xc]
jne 0x41da53
cmp eax, dword [ebp - 0x10]
je 0x41da84
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x14]
jne 0x41da68
cmp eax, dword [ebp - 0x18]
je 0x41da84
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x1c]
jne 0x41da7d
cmp eax, dword [ebp - 0x20]
je 0x41da84
or dword [ebx + edi*4 + 0xc], 2
inc ecx
dec esi
jne 0x41da40
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_AdjustTokenPrivileges
push ebx
call sub.KERNEL32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41dac0
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
ret
mov byte [0x47e150], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41dae9
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.0040343c
ret
Function at 0x422370
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x10], 0
jne 0x422394
push 0
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00420910
add esp, 0xc
mov eax, dword [ebp + 8]
jmp 0x422494
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.004222e0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4223da
mov eax, dword [ebp + 0x10]
push eax
call fcn.00448532
add esp, 4
push 0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00420910
add esp, 0xc
mov eax, dword [ebp + 8]
jmp 0x422494
cmp dword [ebp - 4], 0
jbe 0x4223e8
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
jmp 0x4223ef
mov dword [ebp - 0x14], 1
mov ecx, dword [ebp - 0x14]
push ecx
call dword [0x472cb4]
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x422426
mov edx, dword [ebp + 0x10]
push edx
call fcn.00448532
add esp, 4
push 0
push 3
mov eax, dword [ebp + 8]
push eax
call fcn.00420910
add esp, 0xc
mov eax, dword [ebp + 8]
jmp 0x422494
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp - 0xc]
push eax
call fcn.004483f7
add esp, 0x10
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00448532
add esp, 4
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 4]
je 0x422475
mov eax, dword [ebp - 0xc]
push eax
call dword [0x472cb8]
add esp, 4
push 0
push 2
mov ecx, dword [ebp + 8]
push ecx
call fcn.00420910
add esp, 0xc
mov eax, dword [ebp + 8]
jmp 0x422494
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00422a80
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x424bf0
Capabilities:
Check if file exists
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e468
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x471644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
push str.Enter_RunExe_location:1____ShellOutside___
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp + 8]
call fcn.0042a350
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x424d6d
push str.Enter_RunExe_location:2____ShellOutside___
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp + 8]
call fcn.0042a350
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp + 0xc]
call fcn.0042a350
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x10]
call fcn.0042a4e0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
push eax
push str._n___s_
lea ecx, [ebp - 0x10]
push ecx
call fcn.0042a320
add esp, 0xc
push str.____To_Enter_RunExe_location:2.1____ShellOutside___
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.00429e40
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
call fcn.0042a350
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x14]
call fcn.0042a380
push str.____At_Enter_RunExe_location:2.1____ShellOutside___
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.00429e40
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
call fcn.0042a350
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x18]
call fcn.0042a380
push 5
push 0
lea ecx, [ebp - 0x10]
call fcn.0042a350
push eax
lea ecx, [ebp + 8]
call fcn.0042a350
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push str.At_Enter_RunExe_location:2.2____ShellOutside___
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00429e40
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
call fcn.0042a350
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x1c]
call fcn.0042a380
mov dword [ebp - 0x20], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0042a380
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0042a380
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0042a380
mov eax, dword [ebp - 0x20]
jmp 0x424dba
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0042a380
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0042a380
mov eax, dword [ebp - 0x24]
jmp 0x424dba
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x425030
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e758
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x471644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4250dc
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00429710
mov dword [ebp - 4], 0
push str..wx.delete
lea ecx, [ebp - 0x10]
call fcn.004294b0
lea ecx, [ebp - 0x10]
call fcn.0042a350
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4250a5
lea ecx, [ebp - 0x10]
call fcn.0042a350
push eax
call fcn.00425030
add esp, 4
lea ecx, [ebp - 0x10]
call fcn.0042a350
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00448c24
add esp, 8
push 4
push 0
lea ecx, [ebp - 0x10]
call fcn.0042a350
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042a380
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x427230
Capabilities:
Print debug messages
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x3c], ecx
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x427269
push str.MarkDecryptedFile_hFileNULL
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx ecx, word [ebp - 0x2c]
movzx edx, word [ebp - 0x2a]
imul edx, edx, 5
lea eax, [edx + ecx*4 + 0x63]
movzx ecx, word [ebp - 0x28]
imul ecx, ecx, 6
add eax, ecx
mov dword [ebp - 4], eax
mov dx, word [ebp - 4]
mov word [ebp - 0x26], dx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x427dd0
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e5f6
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x471644]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x824], ecx
mov dword [ebp - 0x820], 0
lea ecx, [ebp - 0x81c]
call fcn.0042a4e0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x824]
mov ecx, dword [eax + 0x6040]
push ecx
push str._s.ini
lea edx, [ebp - 0x81c]
push edx
call fcn.0042a320
add esp, 0xc
xor eax, eax
mov word [ebp - 0x814], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x812]
push ecx
call fcn.004493d0
add esp, 0xc
lea edx, [ebp - 0x814]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x818]
call fcn.00429710
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x81c]
push ecx
lea ecx, [ebp - 0x818]
call fcn.00429050
push 0x467464
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x818]
call fcn.0042a350
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str._______
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea edx, [ebp - 0x818]
push edx
mov ecx, dword [ebp + 8]
call fcn.00429e20
mov eax, dword [ebp - 0x820]
or eax, 1
mov dword [ebp - 0x820], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x818]
call fcn.0042a380
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x81c]
call fcn.0042a380
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.00446d08
mov esp, ebp
pop ebp
ret 4