joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4083c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x41d330
push 0x41d128
push 0x41d004
lea eax, [ebp - 0x108]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push str..ini
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret

Function at 0x408430
Capabilities:
Delete directory
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x41d330
push 0x41d128
push 0x41d004
lea eax, [ebp - 0x20c]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push str..ini
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x20c]
push edx
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x417c64
push str.uninstall
push str.Link
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov bl, 0x2a
cmp byte [ebp - 0x108], bl
je 0x4084bf
lea ecx, [ebp - 0x108]
push ecx
call edi
lea edx, [ebp - 0x20c]
push edx
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x417c64
push str.desktop
push str.Link
call esi
cmp byte [ebp - 0x108], bl
je 0x4084f4
lea ecx, [ebp - 0x108]
push ecx
call edi
lea edx, [ebp - 0x20c]
push edx
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x417c64
push str.read_me
push str.Link
call esi
cmp byte [ebp - 0x108], bl
je 0x408529
lea ecx, [ebp - 0x108]
push ecx
call edi
lea edx, [ebp - 0x20c]
push edx
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x417c64
push 0x418304
push str.Link
call esi
cmp byte [ebp - 0x108], bl
je 0x40855e
lea ecx, [ebp - 0x108]
push ecx
call edi
xor edi, edi
push edi
lea edx, [ebp - 0x310]
push str.exe_02d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0x417c64
lea edx, [ebp - 0x310]
push edx
push str.Link
call esi
cmp byte [ebp - 0x108], bl
je 0x4085b1
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc edi
cmp edi, 8
jl 0x408560
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call edi
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
lea edx, [ebp - 0x108]
push edx
push 0x417c64
push str.game
push str.Link
call esi
cmp byte [ebp - 0x108], bl
je 0x4085fd
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x3e8
call edi
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
lea edx, [ebp - 0x108]
push edx
push 0x417c64
push str.brand
push str.Link
call esi
cmp byte [ebp - 0x108], bl
pop edi
pop esi
pop ebx
je 0x408640
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
Function at 0x408a30
Capabilities:
Copy file
Create process on windows
Get disk information
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x41cd90]
mov ecx, dword [0x41cd8c]
push esi
push 0
push 0x407c20
push eax
push 0x72
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
test eax, eax
jne 0x408a73
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
push 0x41cdfc
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x408ba8
lea edx, [ebp - 0x330]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp - 0x322]
movzx ecx, word [ebp - 0x324]
movzx edx, word [ebp - 0x326]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
movzx eax, word [ebp - 0x328]
push ecx
movzx ecx, word [ebp - 0x32a]
push edx
movzx edx, word [ebp - 0x32e]
push eax
movzx eax, word [ebp - 0x330]
push ecx
push edx
push eax
lea ecx, [ebp - 0x218]
push str.UNINST__d_d_d_d_d_d_d.exe
push ecx
call esi
push 0x41d330
push 0x41d128
push 0x41d004
lea edx, [ebp - 0x110]
push str._s_s_s
push edx
call esi
add esp, 0x38
push str..ini
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x218]
push edx
push str.ExeName
push str.UNINSTALL
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [ebp - 0x110]
push eax
push 0x104
push 0x41d434
push 0x417c64
push str.InstallFold
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.Setup.exe
push 0x41d434
lea ecx, [ebp - 0x320]
push 0x417c5c
push ecx
call esi
lea edx, [ebp - 0x218]
push edx
push 0x41d128
push 0x41d004
lea eax, [ebp - 0x110]
push str._s_s_s
push eax
call esi
add esp, 0x24
push 0
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x320]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x408bc7
push str.Setup.exe
push 0x41cdfc
lea eax, [ebp - 0x110]
push 0x417c5c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [0x41cd88]
test eax, eax
je 0x408be1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41cd88], 0
push 0x3c
lea ecx, [ebp - 0x36c]
push 0
push ecx
call fcn.0040fab0
add esp, 0xc
lea eax, [ebp - 0x36c]
lea edx, [ebp - 0x110]
push eax
mov dword [ebp - 0x36c], 0x3c
mov dword [ebp - 0x35c], edx
mov dword [ebp - 0x350], 1
mov dword [ebp - 0x358], str.Uninstall
mov dword [ebp - 0x354], 0x41d004
mov dword [ebp - 0x368], 0x8000
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
Function at 0x40a570
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x314], esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
mov dword [ebp - 0x318], eax
call ebx
mov dword [ebp - 0x31c], eax
lea esi, [edi + 0x60]
test dword [ebp - 0x318], edi
je 0x40a638
push esi
lea eax, [ebp - 0x108]
push str._c:_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x40a638
push 0x104
lea edx, [ebp - 0x310]
push edx
push 0
push 0
push 0
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea edx, [ebp - 0x20c]
push edx
call ebx
cmp eax, dword [ebp - 0x31c]
jne 0x40a638
push eax
mov eax, dword [ebp - 0x314]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0040aaca
add esp, 0xc
test eax, eax
je 0x40a657
inc esi
add edi, edi
cmp esi, 0x7a
jle 0x40a5b1
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040aabb
mov esp, ebp
pop ebp
ret

Function at 0x40a670
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x160
lea eax, [ebp - 0x168]
push 0
push eax
call fcn.0040fab0
add esp, 0xc
push 0x200
push 0x160
lea ecx, [ebp - 0x168]
push ecx
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [ebp - 0x15c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a6c0
sub eax, edx
jne 0x40a6db
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x15c]
push edx
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40a6cb
push 0
push 0xf060
push 0x112
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0040aabb
mov esp, ebp
pop ebp
ret
Function at 0x40a8e0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x14], eax
cmp eax, 1
jge 0x40a907
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x40a8fe
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push 1
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0xf
mov dword [ebp - 0x10], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0xc], 4
mov edi, edi
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
rdtsc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
jmp 0x40a970
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
rdtsc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov edx, eax
sub edx, ecx
cmp edx, 0x9c40
jb 0x40a970
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 8]
add edi, edx
adc ebx, 0
sub eax, ecx
mov ecx, 0x989680
mul ecx
mov ecx, dword [ebp - 0x34]
push ecx
mov ecx, dword [ebp - 0x38]
push ecx
push edx
push eax
call fcn.00412460
add dword [ebp - 0x30], eax
adc dword [ebp - 0x2c], edx
dec dword [ebp - 0xc]
jne 0x40a950
mov edx, dword [ebp - 0x10]
push edx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [ebp - 0x14]
mov eax, 1
shl eax, cl
dec eax
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
push ecx
push edx
push ebx
push edi
call fcn.00412460
pop edi
lea eax, [eax + eax*4]
pop esi
add eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40aabb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b004]
jne 0x40aac5
repz ret
jmp fcn.0040b4f6
Function at 0x410fcc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040d224
and dword [ebp - 0x14], 0
cmp dword [0x41cd60], 0
mov dword [ebp - 0x18], eax
jne 0x41107f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x411127
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x411127
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x417b88
push ebx
mov dword [0x41cd60], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41cd64], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41cd68], eax
call edi
push eax
call esi
mov dword [0x41cd70], eax
test eax, eax
je 0x41107f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41cd6c], eax
mov eax, dword [0x41cd6c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4110d8
cmp dword [0x41cd70], ecx
je 0x4110d8
push eax
call esi
push dword [0x41cd70]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4110d8
test ebx, ebx
je 0x4110d8
call edi
test eax, eax
je 0x4110cf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4110cf
test byte [ebp - 8], 1
jne 0x4110d8
or dword [ebp + 0x10], 0x200000
jmp 0x41110b
mov eax, dword [0x41cd64]
cmp eax, dword [ebp - 0x18]
je 0x41110b
push eax
call esi
test eax, eax
je 0x41110b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41110b
mov eax, dword [0x41cd68]
cmp eax, dword [ebp - 0x18]
je 0x41110b
push eax
call esi
test eax, eax
je 0x41110b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41cd60]
call esi
test eax, eax
je 0x411127
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x411129
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aabb
leave
ret
Function at 0x57d370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x57d38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x5a6074
push ecx
mov edi, eax
call fcn.00591198
mov esi, eax
add esp, 8
test esi, esi
jne 0x57d3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0059102e
push esi
call fcn.00590fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x580850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x5808ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x5ab720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5808ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.005911e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x5808ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x5ab720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x58092a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00592082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x580957
mov word [eax], si
add eax, 2
push eax
call fcn.00592030
add esp, 4
jmp 0x580959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x5808ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x5808b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x580ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x581080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x5810c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x5a6458
push ecx
call fcn.005911e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.005911e1
add esp, 0x10
jmp 0x5810d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0059120b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00590dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00581050
mov eax, dword [0x5ab728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x58113b
push esi
call fcn.00580fb0
add esp, 4
mov dword [0x5ab728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x58114c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00580ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x584440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x5844b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x58448e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x584471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x58447e
add edx, ecx
cmp ebx, edx
jb 0x58448a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x584467
xor ecx, ecx
jmp 0x5844a2
test eax, eax
jne 0x584492
xor ecx, ecx
jmp 0x5844a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.005843c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x5848f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x584921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x584946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x58496e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x584993
push ecx
push esi
call fcn.005844c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x585c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x585c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x585c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x585c38
add edx, eax
cmp ebx, edx
jb 0x585c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x585c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x585c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x585c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x585cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x585c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x585ca8
add edx, ecx
cmp ebx, edx
jb 0x585cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x585c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x585f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00592145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x585ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x585fdd
lea eax, [esp + 0x18]
push eax
jmp 0x585fe2
push 0x5ab720
call fcn.00591fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x585fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x585f40
push 4
push ecx
push eax
call fcn.0059243f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x586310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00592145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x5863ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x58638d
lea eax, [esp + 0x18]
push eax
jmp 0x586392
push 0x5ab720
call fcn.00591fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x586360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x585f40
push 4
push ecx
push eax
call fcn.0059243f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x587f20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0x587fd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x587fcf
push ebx
push edi
push 0x5ab770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x587fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x5ab770
push esi
call ebx
test eax, eax
je 0x587fae
mov ebp, 3
cmp dword [0x5ab774], ebp
jne 0x587faa
push 0x3e8
call edi
push 0x5ab770
push esi
call ebx
test eax, eax
jne 0x587f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x587fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x587fbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret