joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454e54
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004056d0
xor eax, eax
push ebp
push 0x454f1e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x454f34
call fcn.00409808
test al, al
jne 0x454eaf
mov eax, dword [ebp - 4]
cmp byte [eax], 0xd
je 0x454eaf
push 0x454f48
push dword [ebx + 0x48]
push 0x454f54
push 0x454f60
push dword [ebp - 4]
lea eax, [ebp - 4]
mov edx, 5
call fcn.004055e4
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push 0x454f64
call sub.KERNEL32.DLL_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x454f08
push 2
push 0
push 0
push ebx
call sub.KERNEL32.DLL_SetFilePointer_1
mov eax, dword [ebp - 4]
test eax, eax
je 0x454eea
sub eax, 4
mov eax, dword [eax]
mov esi, eax
push 0
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
call fcn.00405740
push eax
push ebx
call sub.KERNEL32.DLL_WriteFile_1
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454f25
lea eax, [ebp - 4]
call fcn.00405234
ret

Function at 0x454f70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
push ebx
xor ecx, ecx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004056d0
xor eax, eax
push ebp
push 0x4550c9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x45509e
push 0x105
lea eax, [ebp - 0x125]
push eax
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 0x12c]
lea edx, [ebp - 0x125]
mov ecx, 0x105
call fcn.004054a4
mov edx, dword [ebp - 0x12c]
mov eax, dword [ebx + 0x48]
call fcn.00405678
je 0x455089
lea eax, [ebx + 0x48]
lea edx, [ebp - 0x125]
mov ecx, 0x105
call fcn.004054a4
call fcn.0040adb0
fstp qword [ebp - 0x18]
wait
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov edx, dword [0x45ed34]
mov edx, dword [edx]
lea eax, [ebp - 8]
call fcn.0040b9b0
call fcn.0040adb0
fstp qword [ebp - 0x20]
wait
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov edx, dword [0x45ee18]
mov edx, dword [edx]
lea eax, [ebp - 0xc]
call fcn.0040b9b0
push 0x4550e0
push dword [ebx + 0x48]
push 0x4550f0
push 0x4550fc
push dword [ebp - 8]
push 0x455108
push dword [ebp - 0xc]
push 0x455114
push 0x455120
lea eax, [ebp - 0x130]
mov edx, 9
call fcn.004055e4
mov edx, dword [ebp - 0x130]
mov eax, ebx
call fcn.00454e54
lea eax, [ebx + 0x44]
mov edx, dword [ebp - 4]
call fcn.0040551c
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00454e54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4550d0
lea eax, [ebp - 0x130]
mov edx, 2
call fcn.00405258
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405258
ret
Function at 0x4553dc
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056d0
xor eax, eax
push ebp
push 0x455459
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x164]
xor ecx, ecx
mov edx, 0x160
call fcn.0040396c
push 0x400
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.004056e0
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, ebx
lea edx, [ebp - 0x54]
mov ecx, 0x50
call fcn.004054a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455460
lea eax, [ebp - 4]
call fcn.00405234
ret

Function at 0x455740
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056d0
xor eax, eax
push ebp
push 0x455801
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4557df
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x22]
xor ecx, ecx
mov edx, 0x1e
call fcn.0040396c
lea eax, [ebp - 0x122]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.0040396c
lea eax, [ebp - 0x122]
mov edx, dword [ebp - 4]
call fcn.00457668
xor eax, eax
mov dword [ebp - 0x22], eax
lea eax, [ebp - 0x122]
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x1e], 3
mov word [ebp - 0x12], 0x40
or word [ebp - 0x12], 0x10
or word [ebp - 0x12], 4
lea eax, [ebp - 0x22]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4557eb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455808
lea eax, [ebp - 4]
call fcn.00405234
ret

Function at 0x455814
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056d0
xor eax, eax
push ebp
push 0x455891
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x164]
xor ecx, ecx
mov edx, 0x160
call fcn.0040396c
push 0x400
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.004056e0
push eax
call sub.shell32.dll_SHGetFileInfoA
mov eax, ebx
lea edx, [ebp - 0x54]
mov ecx, 0x50
call fcn.004054a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455898
lea eax, [ebp - 4]
call fcn.00405234
ret
Function at 0x455be8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x88], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x455cc8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405234
lea eax, [ebp - 0x81]
push eax
push 0x81
call sub.KERNEL32.DLL_GetLogicalDriveStringsA
test eax, eax
je 0x455caf
lea esi, [ebp - 0x81]
jmp 0x455caa
lea eax, [ebp - 0x88]
mov edx, esi
call fcn.0040542c
mov edx, dword [ebp - 0x88]
mov eax, ebx
call fcn.0040551c
push esi
call sub.KERNEL32.DLL_GetDriveTypeA
sub eax, 2
je 0x455c63
dec eax
je 0x455c71
dec eax
je 0x455c7f
dec eax
je 0x455c8d
jmp 0x455c9b
mov eax, ebx
mov edx, 0x455ce0
call fcn.0040551c
jmp 0x455ca7
mov eax, ebx
mov edx, 0x455cec
call fcn.0040551c
jmp 0x455ca7
mov eax, ebx
mov edx, 0x455cf8
call fcn.0040551c
jmp 0x455ca7
mov eax, ebx
mov edx, 0x455d04
call fcn.0040551c
jmp 0x455ca7
mov eax, ebx
mov edx, 0x455cec
call fcn.0040551c
add esi, 4
cmp byte [esi], 0
jne 0x455c33
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455ccf
lea eax, [ebp - 0x88]
call fcn.00405234
ret

Function at 0x455f80
Capabilities:
Create thread

Disassembly:
mov dword [0x46485c], eax
mov dl, 1
mov eax, dword [0x415aa8]
call fcn.00404388
mov dword [0x464860], eax
mov eax, dword [0x464860]
call fcn.004187c8
push 0x464864
push 0
push 0
push 0x455d08
push 0
push 0
call sub.KERNEL32.DLL_CreateThread_2
ret

Function at 0x457318
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
xor eax, eax
push ebp
push 0x457386
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, 0x45739c
call fcn.004575b0
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00409af8
mov edx, dword [ebp - 8]
mov eax, 0x4648a4
pop ecx
call fcn.00405568
push 0x4648b0
push 0
push 0
push 0x45729c
push 0
push 0
call sub.KERNEL32.DLL_CreateThread_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45738d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405258
ret

Function at 0x457588
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push esp
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
mov edx, ebx
mov eax, esp
call fcn.00409c7c
add esp, 0x108
pop ebx
ret
Function at 0x458cff
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push 8
call sub.KERNEL32.DLL_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x458cac
call sub.KERNEL32.DLL_GetLastError_1
cmp eax, 0x3f0
jne 0x458cac
lea eax, [esp + 4]
push eax
push 8
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x458d43
mov eax, 0x400
call fcn.00402ea0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x400
push esi
push 2
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
test ebx, ebx
je 0x458d3c
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x45ec1c
call sub.advapi32.dll_AllocateAndInitializeSid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x458d32
inc ebx
xor edi, edi
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x458d2e
mov byte [esp], 1
jmp 0x458d32
inc edi
dec ebx
jne 0x458d15
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.00402ebc
movzx eax, byte [esp]
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x459090
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45910a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xff
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405914
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004056e0
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x4590e8
push ebx
mov ecx, dword [ebp - 8]
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405748
jmp 0x4590f4
mov eax, ebx
mov edx, 0x459120
call fcn.00405288
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459111
lea eax, [ebp - 4]
call fcn.00405234
ret

Function at 0x459128
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
mov dword [esp], pe_nt_image_headers32
push esp
lea eax, [esp + 8]
push eax
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
je 0x459159
mov eax, ebx
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.004054a4
jmp 0x459160
mov eax, ebx
call fcn.00405234
add esp, 0x104
pop ebx
ret

Function at 0x459168
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x105
lea eax, [esp + 4]
push eax
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowTextA
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.004054a4
add esp, 0x108
pop ebx
ret
Function at 0x4592c8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
push esp
push 0
push 0
push 0
push 0
call sub.shfolder.dll_SHGetFolderPathA
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.004054a4
mov eax, dword [ebx]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x108]
test eax, eax
je 0x459306
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
dec eax
test edx, edx
je 0x459312
cmp eax, dword [edx - 4]
jb 0x459317
call fcn.00404318
inc eax
cmp byte [edx + eax - 1], 0x5c
je 0x45932b
mov eax, ebx
mov edx, 0x45933c
call fcn.0040551c
add esp, 0x10c
pop ebx
ret

Function at 0x459340
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
push esp
push 0
push 0
push 5
push 0
call sub.shfolder.dll_SHGetFolderPathA
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.004054a4
mov eax, dword [ebx]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x108]
test eax, eax
je 0x45937e
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
dec eax
test edx, edx
je 0x45938a
cmp eax, dword [edx - 4]
jb 0x45938f
call fcn.00404318
inc eax
cmp byte [edx + eax - 1], 0x5c
je 0x4593a3
mov eax, ebx
mov edx, 0x4593b4
call fcn.0040551c
add esp, 0x10c
pop ebx
ret

Function at 0x4593b8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056d0
xor eax, eax
push ebp
push 0x45942a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp byte [ebp - 5], 0
je 0x4593eb
mov esi, 1
jmp 0x4593ed
xor esi, esi
test esi, esi
jns 0x4593f6
call fcn.00404318
push esi
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004056e0
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA_1
cmp eax, 0x20
jbe 0x459414
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459431
lea eax, [ebp - 4]
call fcn.00405234
ret

Function at 0x45943c
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004056d0
mov eax, dword [ebp - 8]
call fcn.004056d0
mov eax, dword [ebp - 0xc]
call fcn.004056d0
xor eax, eax
push ebp
push 0x4594fa
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00405568
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00405568
lea eax, [ebp - 0xc]
call fcn.00405740
mov edx, 1
dec edx
test eax, eax
je 0x4594a7
cmp edx, dword [eax - 4]
jb 0x4594ac
call fcn.00404318
inc edx
lea eax, [eax + edx - 1]
push eax
lea eax, [ebp - 8]
call fcn.00405740
mov edx, 1
dec edx
test eax, eax
je 0x4594c9
cmp edx, dword [eax - 4]
jb 0x4594ce
call fcn.00404318
inc edx
lea eax, [eax + edx - 1]
push eax
call sub.KERNEL32.DLL_MoveFileA
test eax, eax
je 0x4594df
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459501
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405258
ret
Function at 0x459508
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
xor ebx, ebx
test eax, eax
jns 0x459515
call fcn.00404318
push eax
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
mov esi, eax
test esi, esi
je 0x459533
push 0
push esi
call sub.KERNEL32.DLL_TerminateProcess
test eax, eax
je 0x459533
mov bl, 1
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4596dc
Capabilities:
Find taskbar

Disassembly:
push ebx
push ecx
push esp
push 0
push 0x459718
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [esp]
push eax
push 0
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
call fcn.00454c1c
push 0x3e8
call sub.KERNEL32.DLL_Sleep
mov eax, ebx
pop edx
pop ebx
ret

Function at 0x459980
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x459a25
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00424624
lea eax, [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
call fcn.00424428
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4599dd
inc ebx
xor esi, esi
mov eax, esi
call fcn.004244e8
fmul dword [0x459a34]
call fcn.004033a4
mov edi, eax
inc esi
dec ebx
jne 0x4599c5
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 8]
call fcn.0040930c
push dword [ebp - 0x2c]
push 0x459a40
lea edx, [ebp - 0x30]
mov eax, edi
call fcn.0040930c
push dword [ebp - 0x30]
mov eax, dword [ebp - 4]
mov edx, 3
call fcn.004055e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459a2c
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00405258
ret
Function at 0x401400
Capabilities:
Extract resource via kernel32 functions
Get common file path
Timestomp file
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x318
push ebx
push ebp
push esi
push edi
push 0x406264
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4015d0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4015d0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x4015d0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dl, byte [0x406a94]
mov ebx, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x121]
mov byte [esp + 0x120], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x1c]
push 0x104
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x406260
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x208
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x330]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x124]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
push 3
push 0
push 3
lea ecx, [esp + 0x134]
push 0x80000000
push ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x401545
lea edx, [esp + 0x10]
push edx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call fcn.00401310
add esp, 0xc
test eax, eax
je 0x4015b8
push 0
push 0
push 2
push 0
push 3
lea eax, [esp + 0x30]
push 0xc0000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x4015a8
lea ecx, [esp + 0x18]
push 0
push ecx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4015a1
lea edx, [esp + 0x10]
push edx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x318
ret
mov eax, dword [esp + 0x330]
test eax, eax
je 0x4015d0
lea eax, [esp + 0x1c]
push eax
call fcn.00401380
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x318
ret
Function at 0x4015e0
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x15c
push ebx
push ebp
push esi
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x28]
push 0x104
rep stosd dword es:[edi], eax
mov al, byte [0x406a94]
mov ecx, 0x40
mov byte [esp + 0x6c], al
xor eax, eax
lea edi, [esp + 0x6d]
mov dword [esp + 0x28], 0x44
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x6c]
mov dword [esp + 0x54], 1
push ecx
mov word [esp + 0x5c], 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str._setup98.ex_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x68]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x7f02
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edi, dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x10], eax
mov esi, 6
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0
push 0
push 0x20
push 1
push 0
lea edx, [esp + 0x84]
push 0
push edx
push 0
call edi
mov eax, dword [esp + 0x14]
push 0xbb8
push eax
call ebx
push 0x1f4
call ebp
dec esi
jne 0x401693
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_SetCursor]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x15c
ret
Function at 0x403510
Capabilities:
Get file version info

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push esi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x4035b5
push edi
push esi
call sub.MFC42.DLL_operatornew
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4035ab
push 0x34
mov dword [esp + 0x10], 0x34
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
push ecx
push edx
push 0x406260
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4035ab
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax + 0x10]
shr ecx, 0x10
mov dword [edx], ecx
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov cx, word [eax + 0x10]
mov dword [edx], ecx
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x24]
shr ecx, 0x10
mov dword [edx], ecx
mov edx, dword [esp + 0x28]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov dword [edx], ecx
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebx
add esp, 8
ret

Function at 0x403660
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
push 0x406264
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40367d
pop esi
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40368d
pop esi
pop ebx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x40369d
pop esi
pop ebx
ret
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [esp + 0x10]
push 1
push 0
push 0
push 1
push esi
mov edi, eax
call fcn.004035c0
add esp, 0x14
test eax, eax
jne 0x4036f3
push eax
push eax
push 2
push eax
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4036f3
lea ecx, [esp + 0x14]
push 0
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x403760
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push 0
push 0x403700
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ecx
ret