joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401069
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x442030]
jne 0x401073
repz ret
jmp fcn.00401e41

Function at 0x408aeb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404d3a
and dword [ebp - 4], 0
cmp dword [0x444b68], 0
mov ebx, eax
jne 0x408b9c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408c4d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408c4d
push eax
call fcn.00404cc8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x444b68], eax
call esi
push eax
call fcn.00404cc8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x444b6c], eax
call esi
push eax
call fcn.00404cc8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x444b70], eax
call esi
push eax
call fcn.00404cc8
pop ecx
mov dword [0x444b78], eax
test eax, eax
je 0x408b9c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404cc8
pop ecx
mov dword [0x444b74], eax
mov eax, dword [0x444b74]
cmp eax, ebx
je 0x408bf4
cmp dword [0x444b78], ebx
je 0x408bf4
push eax
call fcn.00404d43
push dword [0x444b78]
mov esi, eax
call fcn.00404d43
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408bf4
test edi, edi
je 0x408bf4
call esi
test eax, eax
je 0x408beb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408beb
test byte [ebp - 0xc], 1
jne 0x408bf4
or dword [ebp + 0x10], 0x200000
jmp 0x408c2d
mov eax, dword [0x444b6c]
cmp eax, ebx
je 0x408c2d
push eax
call fcn.00404d43
pop ecx
test eax, eax
je 0x408c2d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408c2d
mov eax, dword [0x444b70]
cmp eax, ebx
je 0x408c2d
push eax
call fcn.00404d43
pop ecx
test eax, eax
je 0x408c2d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x444b68]
call fcn.00404d43
pop ecx
test eax, eax
je 0x408c4d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408c4f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40af50
Capabilities:
Set console window title

Disassembly:
sub esp, 0x820
mov eax, dword [0x442030]
xor eax, esp
mov dword [esp + 0x81c], eax
mov eax, dword [0x2c2255c]
push ebx
mov ebx, dword [0x2c22280]
push esi
mov esi, dword [0x442f60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40af91
push str.Kapoza_yodiralozor
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [0x2c2255c]
mov dword [0x444d0c], esi
cmp eax, 0x114e
jne 0x40afbb
lea eax, [esp + 0xc]
push eax
push str.Gijetuhe_batawuwafadis_fomikayemes_zeruru
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [0x2c2255c]
cmp eax, 0x2f
jne 0x40afdb
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
call fcn.0040ae50
mov ecx, dword [esp + 0x828]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401069
add esp, 0x820
ret
Function at 0x4014a9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x250
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x228], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x21c], 6
push ebx
push ebx
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push esi
push esi
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x220], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push edx
push edx
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x238]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterClassA]
push ecx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
lea ebx, [ebp - 0x210]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push esi
push esi
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
lea esp, [ebp - 8]
lea eax, [ebx - 3]
pop ebx
pop esi
pop ebp
ret

Function at 0x401692
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 1
call fcn.004014a9
test eax, eax
jne 0x40172c
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x402196
sub eax, 0x401734
mov dword [esp], 0x401734
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x40172c
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.0040141d
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.00401626
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1b400
mov dword [esp], 0x40300c
call fcn.00401e99
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x404580
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x808]
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
lea eax, [ebp - 0x808]
je 0x4045c6
push 0x401
push eax
call fcn.0041ed70
add esp, 8
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
Function at 0x405d30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x808]
push esi
mov esi, dword [ebp + 0xc]
push 0x400
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x808]
push eax
call fcn.00416a70
add esp, 4
test eax, eax
jne 0x405d84
or eax, 0xffffffff
or edx, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
push edi
push esi
call fcn.00405c40
mov edi, eax
mov esi, edx
lea eax, [ebp - 0x808]
push eax
call fcn.004f1575
add esp, 8
mov edx, esi
mov ecx, edi
fstp qword [ebp - 0x810]
push dword [ebp + 0x10]
call fcn.004e23c0
mulsd xmm0, qword [ebp - 0x810]
call fcn.004e226f
push edx
push eax
call fcn.00415690
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
call fcn.004e1f40
mov esp, ebp
pop ebp
ret

Function at 0x406050
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push 0x14b
push edi
mov dword [ebp - 0x14], eax
call ebx
cmp dword [ebp + 0x10], 0
je 0x4060a6
push str.FIRST_AVAILABLE
call fcn.004bb8b0
add esp, 4
push eax
push 0
push 0x143
push edi
call ebx
push 0xffffffffffffffff
push eax
push 0x151
push edi
call ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov edx, eax
xor esi, esi
mov dword [ebp - 0x10], edx
mov eax, 1
mov ecx, esi
shl eax, cl
cmp dword [ebp + 0x14], 0
jne 0x4060c9
test edx, eax
je 0x4060cd
jmp 0x4060f6
test edx, eax
je 0x4060f6
lea eax, [esi + 0x41]
mov dword [ebp - 0xa], 0x3a
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x143
push edi
call ebx
push esi
push eax
push 0x151
push edi
call ebx
mov edx, dword [ebp - 0x10]
inc esi
cmp esi, 0x1a
jl 0x4060b4
mov eax, dword [ebp - 0x14]
pop esi
test eax, eax
je 0x40611e
push eax
push edi
call fcn.004066d0
add esp, 8
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x14e
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
Function at 0x408ab0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
push 0
push 0
push 3
push 0
push 3
push 0
push eax
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x408af5
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
push edi
push 8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call fcn.004f1588
mov edi, eax
add esp, 4
test edi, edi
je 0x408b3c
push 0
lea eax, [ebp - 0x14]
push eax
push 8
push edi
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
jne 0x408b55
push edi
call fcn.004ec0b7
add esp, 4
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
push ebx
push eax
mov dword [ebp - 0x18], eax
call fcn.004f1588
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x408b8e
push edi
call fcn.004ec0b7
add esp, 4
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push ebx
push 0xc
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push edi
test eax, eax
jne 0x408bd7
call fcn.004ec0b7
push ebx
call fcn.004ec0b7
add esp, 8
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x1c]
mov dword [ecx], eax
call fcn.004ec0b7
push ebx
call fcn.004ec0b7
add esp, 8
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
Function at 0x414dc0
Capabilities:
Read file on windows
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], 0xffffffff
push edi
push edi
push 3
push edi
push 3
push SysReAllocString
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x414e83
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x414e83
push 0x10000
call fcn.004f1588
mov esi, eax
add esp, 4
test esi, esi
je 0x414e83
push edi
lea eax, [ebp - 4]
push eax
push 0x10000
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edi, eax
test edi, edi
je 0x414e7e
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x414e7e
push 0
lea eax, [ebp - 0xc]
push eax
push ecx
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x414e83
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jne 0x414e83
push 0
lea eax, [ebp - 4]
push eax
push 0x10000
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edi, eax
test edi, edi
jne 0x414e41
mov edi, 1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x414eb0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileTime]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
mov ecx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp ebx, 0xffffffff
je 0x414ec4
push ebx
call ecx
mov ecx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
je 0x414ecf
push eax
call ecx
test esi, esi
je 0x414edc
push esi
call fcn.004ec0b7
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415230
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41525f
or eax, eax
or edx, edi
pop edi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
jne 0x415290
push esi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
or eax, 0xffffffff
pop esi
or edx, eax
pop edi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4152b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], 0
push esi
push esi
push 3
push esi
push 3
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.DLL_SetLastError]
mov edi, eax
cmp edi, 0xffffffff
je 0x415337
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x415331
inc eax
push eax
call fcn.004f1588
mov esi, eax
add esp, 4
test esi, esi
je 0x415331
mov ecx, dword [ebx]
lea eax, [ebp - 4]
push 0
push eax
mov byte [esi + ecx], 0
push dword [ebx]
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x41536b
mov eax, dword [ebp - 4]
cmp eax, dword [ebx]
jne 0x41536b
mov dword [ebp - 8], 1
mov ebx, dword [sym.imp.KERNEL32.DLL_SetLastError]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
jne 0x415351
push esi
call fcn.004ec0b7
add esp, 4
xor esi, esi
cmp edi, 0xffffffff
je 0x41535d
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0xc]
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.DLL_SetLastError]
test eax, eax
jne 0x415337
push 0x26
call ebx
jmp 0x415337
Function at 0x415390
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], 0
push esi
push esi
push 3
push esi
push 3
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.DLL_SetLastError]
mov edi, eax
cmp edi, 0xffffffff
je 0x415436
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, 0xffffffff
je 0x415436
dec eax
xor edx, edx
div dword [ebp + 0x10]
lea ebx, [eax + 1]
imul ebx, dword [ebp + 0x10]
inc ebx
push ebx
call fcn.004f1588
mov esi, eax
add esp, 4
test esi, esi
je 0x415430
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
sub ebx, ecx
push ebx
add ecx, esi
push 0
push ecx
call fcn.004e46b0
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 4]
add esp, 0xc
push 0
push eax
push dword [ebx]
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x41546a
mov eax, dword [ebp - 4]
cmp eax, dword [ebx]
jne 0x41546a
mov dword [ebp - 8], 1
mov ebx, dword [sym.imp.KERNEL32.DLL_SetLastError]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
jne 0x415450
push esi
call fcn.004ec0b7
add esp, 4
xor esi, esi
cmp edi, 0xffffffff
je 0x41545c
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0xc]
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.DLL_SetLastError]
test eax, eax
jne 0x415436
push 0x26
call ebx
jmp 0x415436
Function at 0x415480
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], 0
push esi
push esi
push 3
push esi
push 3
push SysReAllocString
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.DLL_SetLastError]
mov edi, eax
cmp edi, 0xffffffff
je 0x41553d
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x41553d
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov edx, dword [ebp + 0xc]
add ecx, edx
adc eax, dword [ebp + 0x10]
cmp dword [ebp - 0x10], eax
jg 0x4154e3
jl 0x415539
cmp dword [ebp - 0x14], ecx
jb 0x415539
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x41553d
push dword [ebp + 0x14]
call fcn.004f1588
mov esi, eax
add esp, 4
test esi, esi
je 0x41553d
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x41552f
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 4], eax
jne 0x41552f
mov dword [ebp - 8], 1
jmp 0x41553d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x41553d
push 0x26
call ebx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
jne 0x415557
push esi
call fcn.004ec0b7
add esp, 4
xor esi, esi
cmp edi, 0xffffffff
je 0x415563
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0xc]
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4155e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
xor eax, eax
push esi
push edi
xor esi, esi
test ebx, ebx
push esi
push esi
setne al
mov dword [ebp - 4], esi
add eax, 2
push eax
push esi
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41564d
test ebx, ebx
je 0x415628
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
je 0x41564d
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x41564d
mov eax, dword [ebp + 0x10]
mov ecx, 1
cmp eax, dword [ebp - 4]
cmove esi, ecx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x14], eax
cmp edi, 0xffffffff
je 0x415662
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test esi, esi
jne 0x415675
test ebx, ebx
jne 0x415675
push dword [ebp + 8]
call fcn.004f1f51
add esp, 4
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.DLL_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415870
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 0
jne 0x4158ba
push dword [ebp + 0xc]
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov dword [esi], eax
cmp dword [esi], 0
je 0x4158b5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x4158ba
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi], 0
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret

Function at 0x4158d0
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp word [eax], 0
jne 0x4158e0
xor eax, eax
pop ebp
ret
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.DLL_OpenMutexW]
test eax, eax
jne 0x41590f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x4158dc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor ecx, ecx
cmp eax, 5
sete cl
mov eax, ecx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 1
pop ebp
ret

Function at 0x415e30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4218
call fcn.004e1f60
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x420c]
push 0x4000
push 0
push eax
call fcn.004e46b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea eax, [ebp - 0x4218]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
jne 0x415e9d
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x420c]
push ecx
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x415e8c
lea eax, [ebp - 0x4210]
mov dword [ebp - 0x4210], 0
push eax
lea eax, [ebp - 0x4214]
push eax
push 0x518b40
lea eax, [ebp - 0x420c]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x415e8c
mov ecx, dword [ebp - 0x4214]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x518b44
push esi
call fcn.004054c0
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
Function at 0x416c80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x518bd0]
movups xmm0, xmmword [str._select___]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x7f8], eax
mov ax, word [0x518bd4]
push 0x7ec
mov word [ebp - 0x7f4], ax
lea eax, [ebp - 0x7f2]
push 0
push eax
movups xmmword [ebp - 0x808], xmm0
call fcn.004e46b0
add esp, 0xc
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x416cd7
lea edi, [ebp - 0x808]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x416cf0
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x808]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x416d13
mov eax, dword [0x518bd8]
push 1
push 0
mov dword [edi], eax
lea eax, [ebp - 0x808]
push eax
push 0x518bdc
push 0x518484
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e1f40
mov esp, ebp
pop ebp
ret

Function at 0x416d60
Capabilities:
Create process on windows
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
movsx eax, byte [ebp + 8]
add eax, 0x41
push eax
lea eax, [ebp - 0x10]
push str._c:_
push eax
call fcn.004054c0
add esp, 0xc
lea eax, [ebp - 0x2c4]
push 0
push 0x2b4
push eax
push 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 1
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0x518484
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret