joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f00d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4197a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040b3e7
mov dword [ebp - 0x14], eax
cmp dword [0x818a00], esi
jne 0x40f100
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40f08d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40f1e0
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40f1e0
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f1e0
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x818a00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x818a04], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x818a08], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x818a10], eax
test eax, eax
je 0x40f0fd
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x818a0c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40f125
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40f118
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40f13a
push 4
pop eax
jmp 0x40f1e2
cmp dword [ebp - 0x14], esi
je 0x40f13a
push dword [0x818a00]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40f11f
mov eax, dword [0x818a0c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40f198
cmp dword [0x818a10], edi
je 0x40f198
push eax
call ebx
push dword [0x818a10]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40f198
test eax, eax
je 0x40f198
call ecx
test eax, eax
je 0x40f18d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40f18d
test byte [ebp - 8], 1
jne 0x40f198
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40f1c8
mov eax, dword [0x818a04]
cmp eax, edi
je 0x40f1c5
push eax
call ebx
test eax, eax
je 0x40f1c5
call eax
mov esi, eax
test esi, esi
je 0x40f1c5
mov eax, dword [0x818a08]
cmp eax, edi
je 0x40f1c5
push eax
call ebx
test eax, eax
je 0x40f1c5
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x818a00]
call ebx
test eax, eax
je 0x40f1e0
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40f1e2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403ef8
mov esp, ebp
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401e70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540bd6
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x5a3ea8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x130]
call fcn.0040801d
mov dword [ebp - 4], 0
call fcn.004069e1
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x401ecb
push 0x80004005
call fcn.00401a90
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x114], eax
push 0xff
lea eax, [ebp - 0x110]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401f00
sub eax, edx
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x114]
call fcn.00404bd0
push 0xd
push str.SysWow64.
lea ecx, [ebp - 0x114]
call fcn.00401990
mov esi, dword [ebp - 0x114]
push 0
push esi
lea ecx, [ebp - 0x130]
call fcn.00408261
test eax, eax
setne bl
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401f65
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x130]
mov dword [ebp - 4], 0xffffffff
call fcn.004081c5
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00526d92
mov esp, ebp
pop ebp
ret

Function at 0x401fa0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 4]
push eax
push str.SoftwareDownloadCenter
push SysReAllocStringLen
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push dword [ebp - 4]
test eax, eax
je 0x402014
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov al, byte [esi + 0xd0]
cmp al, 0x13
je 0x401fe3
cmp al, 0x12
jne 0x402025
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x552354
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
shrd ecx, eax, 0x1e
shr eax, 0x1e
xor eax, eax
cmp ecx, 0xa
setg al
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402030
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540c13
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x5a3ea8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.004069e1
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x402081
push 0x80004005
call fcn.00401a90
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x314], esi
push str.SoftwareMicrosoftWindows_NTCurrentVersion
lea eax, [ebp - 0x310]
push 0x552388
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x318], 0xff
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea eax, [ebp - 0x31c]
push eax
push 0xf023f
push 0
lea eax, [ebp - 0x310]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x402108
lea eax, [ebp - 0x31c]
push eax
push 0xf013f
push 0
lea eax, [ebp - 0x310]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x402108
cmp dword [ebp - 0x318], 1
jne 0x402147
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push 0x55238c
push dword [ebp - 0x31c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4021aa
push 0
push 0x551cfc
lea ecx, [ebp - 0x314]
call fcn.00404bd0
mov esi, dword [ebp - 0x314]
xor bl, bl
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x402169
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40218a
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00526d92
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x314]
push 0x552388
push eax
call fcn.00402660
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x314]
add esp, 0xc
test eax, eax
je 0x402147
cmp dword [esi - 0xc], 0
jl 0x402147
push eax
push esi
call fcn.00526b91
add esp, 8
test eax, eax
je 0x402147
sub eax, esi
cmp eax, 0xffffffff
je 0x402147
mov bl, 1
jmp 0x402149
Function at 0x4027f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x5a3ea8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
mov esi, ecx
push 2
mov dword [ebp - 0x134], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402843
push 0
push 0x5520f8
push str.CreateToolhelp32Snapshot_fail___
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00526d92
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x12c]
push eax
push ebx
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x402889
push eax
push 0x5520f8
push str.Process32First_fail___
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00526d92
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00402340
push edi
push 0xc
call fcn.004055f9
mov edi, eax
add esp, 4
test edi, edi
je 0x4028bc
call fcn.004069e1
test eax, eax
je 0x40298c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
jmp 0x4028be
xor edi, edi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x130], edi
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4028d0
sub ecx, edx
push ecx
lea eax, [ebp - 0x108]
push eax
mov ecx, edi
call fcn.00404bd0
mov eax, dword [ebp - 0x124]
mov dword [edi + 4], eax
add esi, 0xd4
mov dword [edi + 8], ebx
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x130]
cmp eax, ecx
jae 0x402938
mov eax, dword [esi]
lea edx, [ebp - 0x130]
cmp eax, edx
ja 0x402938
mov edi, edx
sub edi, eax
sar edi, 2
cmp ecx, dword [esi + 8]
jne 0x402928
push 1
mov ecx, esi
call fcn.004052a0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40294f
mov eax, dword [esi]
mov eax, dword [eax + edi*4]
mov dword [ecx], eax
jmp 0x40294f
cmp ecx, dword [esi + 8]
jne 0x402946
push 1
mov ecx, esi
call fcn.004052a0
mov eax, dword [esi + 4]
test eax, eax
je 0x40294f
mov dword [eax], edi
add dword [esi + 4], 4
lea eax, [ebp - 0x12c]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40296f
mov esi, dword [ebp - 0x134]
jmp 0x402891
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00526d92
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401a90
int3
Function at 0x403eb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540da0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5a3ea8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00401030
push 0xb
push str.GSetup.ini
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.00401990
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x3011
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00406ff2
mov edx, dword [ebp + 0xc]
mov ecx, edx
mov byte [ebp - 4], 2
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403f25
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00407898
lea ecx, [ebp - 0x28]
call fcn.00407287
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0040705b
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403f70
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x404890
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540ebb
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x5a3ea8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.004069e1
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4048db
push 0x80004005
call fcn.00401a90
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x314], esi
mov al, byte [edi + 0xd0]
mov dword [ebp - 4], 0
cmp al, 0x1b
je 0x404904
cmp al, 0x1a
jne 0x4049a7
mov ecx, edi
call fcn.004029a0
push eax
lea ecx, [ebp - 0x314]
call fcn.00401460
mov esi, dword [ebp - 0x314]
push esi
lea eax, [ebp - 0x310]
push str._sdevcon.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x210]
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor ecx, ecx
jmp 0x404950
mov al, byte [ebp + ecx - 0x210]
mov byte [ebp + ecx - 0x110], al
lea ecx, [ecx + 1]
test al, al
jne 0x404950
lea ecx, [ebp - 0x110]
dec ecx
lea esp, [esp]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x404970
mov eax, dword [str.devcon.exe]
mov dword [ecx], eax
mov eax, dword [0x5523dc]
mov dword [ecx + 4], eax
mov eax, dword [0x5523e0]
mov dword [ecx + 8], eax
push 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4049c8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00526d92
mov esp, ebp
pop ebp
ret
Function at 0x4049f0
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540ebb
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x5a3ea8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.004069e1
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x404a3b
push 0x80004005
call fcn.00401a90
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x314], eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.004029a0
push eax
lea ecx, [ebp - 0x314]
call fcn.00401460
push dword [ebp - 0x314]
lea eax, [ebp - 0x310]
push str._sRun.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x314]
push 0xa
push 0x552318
call fcn.00401990
push 0xff
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor eax, eax
jmp 0x404ab0
mov cl, byte [ebp + eax - 0x210]
mov byte [ebp + eax - 0x110], cl
lea eax, [eax + 1]
test cl, cl
jne 0x404ab0
lea ecx, [ebp - 0x110]
dec ecx
lea esp, [esp]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x404ad0
mov eax, dword [str.GSetup.exe]
mov esi, dword [ebp - 0x314]
mov dword [ecx], eax
mov eax, dword [0x552328]
mov dword [ecx + 4], eax
mov eax, dword [0x55232c]
mov dword [ecx + 8], eax
push 0
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x210]
push eax
mov ecx, edi
call fcn.00403eb0
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x404b3d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00526d92
mov esp, ebp
pop ebp
ret
Function at 0x404d10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1118
call fcn.005271e0
mov eax, dword [0x5a3ea8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x110c], eax
lea eax, [ebp - 0x1114]
push eax
push 0x1000
lea eax, [ebp - 0x1108]
push eax
call dword [0x5a547c]
test eax, eax
jne 0x404d5b
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00526d92
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 0x1114]
push edi
shr ebx, 2
xor edi, edi
test ebx, ebx
je 0x404e2d
push esi
jmp 0x404d80
mov eax, dword [str.unknown]
mov dword [ebp - 0x108], eax
mov eax, dword [0x551ee0]
push 0xfc
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.00527210
add esp, 0xc
push dword [ebp + edi*4 - 0x1108]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x404e1c
lea eax, [ebp - 0x1118]
push eax
push 4
lea eax, [ebp - 0x1110]
push eax
push esi
call dword [0x5a5480]
test eax, eax
je 0x404e1c
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x1110]
push esi
call dword [0x5a5488]
push dword [ebp - 0x110c]
lea eax, [ebp - 0x108]
push eax
call fcn.00401db0
add esp, 8
test eax, eax
je 0x404e1c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, ebx
jb 0x404d80
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00526d92
mov esp, ebp
pop ebp
ret

Function at 0x404e40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x5a3ea8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x124
lea eax, [ebp - 0x128]
push 0
push eax
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x12c], 0
call fcn.00527210
add esp, 0xc
push 0
push 2
call dword [0x5a5464]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404ea1
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00526d92
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x12c]
push eax
push edi
mov dword [ebp - 0x12c], 0x128
call dword [0x5a5468]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x404f1d
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00401db0
add esp, 8
test eax, eax
je 0x404f06
push dword [ebp - 0x124]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
mov esi, dword [ebp - 0x130]
lea eax, [ebp - 0x12c]
push eax
push edi
call dword [0x5a546c]
test eax, eax
jne 0x404ec4
lea esi, [eax + 1]
jmp 0x404f1f
xor esi, esi
push edi
call ebx
mov ecx, dword [ebp - 4]
pop ebx
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00526d92
mov esp, ebp
pop ebp
ret
Function at 0x4051b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4051c5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405204
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x405200
lea ebx, [ebx]
cmp esi, edx
jae 0x405204
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4051f0
cmp esi, edx
jb 0x405209
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x405450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00409493

Function at 0x4094ef
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00408ae8
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x409526
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00409545
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x40ce12
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x40ce5c
call fcn.00408ae8
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40ce59
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40ce95
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test edi, edi
je 0x40ce7e
push dword [ebp + 0x10]
mov edx, dword [eax]
push edi
push dword [ebp + 8]
mov ecx, eax
call dword [edx + 0x20]
mov ebx, eax
test esi, esi
je 0x40ce7e
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
test ecx, ecx
je 0x40ce93
mov eax, dword [ecx]
push dword [ebp + 0x10]
call dword [eax + 0xa0]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc