joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eec0
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServices
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40efc6
push str.Admin_Test
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp]
push eax
push str.Admin_Test
push 1
push 0
push str.Rising
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40ef21
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x1c
ret
xor eax, eax
lea ecx, [esp + 4]
mov dword [esp + 0xd], eax
lea edx, [esp + 0xc]
mov dword [esp + 0x11], eax
push ecx
mov dword [esp + 0x19], eax
mov ecx, dword [esp + 4]
mov word [esp + 0x1d], ax
push edx
mov byte [esp + 0x23], al
lea eax, [esp + 0x10]
push eax
push 0
push str.Rising
push ecx
mov byte [esp + 0x24], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40ef83
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x1c
ret
mov eax, dword [esp]
push str.Rising
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esp + 0xc]
push str.Admin_Test
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40efbb
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0x1c
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x1c
ret
Function at 0x40f410
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
sub esp, 0x22c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x139]
mov byte [esp + 0x138], bl
push 0x43ae74
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x13c]
push str._sVirPatch.ini
push eax
call fcn.00426b7c
add esp, 0xc
lea ecx, [esp + 0x138]
mov dword [esp + 0x10], ebx
push ecx
push ebx
push str.Count
push str.File
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
cmp esi, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jle 0x40f54b
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp dword [esp + 0x10], ebx
jne 0x40f516
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, esi
lea edx, [esp + 0x14]
push eax
push str.File_d
push edx
dec esi
call fcn.00426b7c
add esp, 0xc
lea eax, [esp + 0x138]
lea ecx, [esp + 0x34]
lea edx, [esp + 0x14]
push eax
push 0x104
push ecx
push 0x43965c
push edx
push str.File
call ebp
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40f50c
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40f50c
mov dword [esp + 0x10], 1
cmp esi, ebx
jg 0x40f491
cmp dword [esp + 0x10], ebx
je 0x40f54b
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x43ae74
lea ecx, [esp + 0x38]
push str._sRsVPatch.rp
push ecx
stosb byte es:[edi], al
call fcn.00426b7c
lea edx, [esp + 0x40]
push edx
call fcn.00423590
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret

Function at 0x40f560
Capabilities:
Modify service
Query service status
Start service

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0
mov ebx, 1
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40f5e7
mov ecx, dword [esp + 0x30]
push 4
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x40f5e7
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x10], 4
je 0x40f5d5
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x1c
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret 8
Function at 0x4104d0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x410558
push ebx
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push edi
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41053b
lea ecx, [esp + 0x18]
lea edx, [esp + 0xc]
push ecx
push esi
push edx
push eax
mov eax, dword [esp + 0x24]
push str.SystemRoot
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jne 0x410550
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call edi
pop edi
pop ebx
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret

Function at 0x410560
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x410600
push ebx
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push edi
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4105cf
lea ecx, [esp + 0x18]
lea edx, [esp + 0xc]
push ecx
push esi
push edx
push eax
mov eax, dword [esp + 0x24]
push str.SystemRoot
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jne 0x4105ec
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
call edi
pop edi
pop ebx
pop esi
pop ecx
ret
push str._system32
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call edi
pop edi
pop ebx
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret

Function at 0x410610
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
lea ecx, [esp]
push esi
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [esp + 0x10]
test eax, eax
jne 0x410678
mov ecx, dword [esp + 4]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0xc]
push esi
push eax
push 0
push str.CommonFilesDir
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x14], eax
xor eax, eax
pop esi
add esp, 8
ret 8
Function at 0x410690
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push esi
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [esp + 0x10]
test eax, eax
jne 0x4106f0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push esi
push eax
push 0
push str.ProgramFilesDir
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x14], eax
xor eax, eax
pop esi
add esp, 8
ret 8

Function at 0x410970
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x110
lea eax, [esp]
push esi
push eax
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4109e7
push edi
mov ecx, 0x40
lea edi, [esp + 0x15]
mov byte [esp + 0x14], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x124]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
je 0x4109f3
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0x110
ret 0x10
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x120]
test esi, esi
je 0x4109e7
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
pop esi
add esp, 0x110
ret 0x10

Function at 0x410a30
Capabilities:
Get disk information

Disassembly:
sub esp, 0x108
push ebx
push ebp
xor eax, eax
push esi
push edi
mov word [esp + 0x11], ax
mov ecx, 0x40
lea edi, [esp + 0x15]
mov byte [esp + 0x13], al
mov byte [esp + 0x14], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
mov byte [esp + 0x10], 0
stosb byte es:[edi], al
push ecx
push 0x104
xor edi, edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebx, eax
cmp esi, ebx
jae 0x410aa7
mov al, byte [esp + esi + 0x14]
test al, al
jne 0x410aa1
lea edx, [esp + esi + 0x11]
push 3
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00427d70
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call ebp
mov edi, eax
inc esi
cmp edi, 3
jne 0x410a78
mov eax, dword [esp + 0x11c]
test eax, eax
je 0x410ace
cmp edi, 3
jne 0x410ace
mov edx, dword [esp + 0x120]
lea ecx, [esp + 0x10]
dec edx
push edx
push ecx
push eax
call fcn.00427d70
add esp, 0xc
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x108
ret 8
Function at 0x411670
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
mov eax, dword [esp + 0xa0]
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [esi + 4], eax
mov ecx, 0x20
xor eax, eax
lea edi, [esi + 0x1c]
mov dword [esi], 0x432644
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x41
xor eax, eax
lea edi, [esi + 0x9e]
rep stosd dword es:[edi], eax
mov ecx, esi
call fcn.00411830
mov dword [esi + 0x1b0], eax
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x1c], 2
jne 0x41170d
cmp dword [esp + 0x10], 5
jne 0x41170d
mov eax, 1
pop edi
mov dword [esi + 0x1b4], eax
mov eax, esi
pop esi
pop ebx
add esp, 0x9c
ret 4
xor eax, eax
pop edi
mov dword [esi + 0x1b4], eax
mov eax, esi
pop esi
pop ebx
add esp, 0x9c
ret 4

Function at 0x411830
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50
push esi
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
xor esi, esi
push eax
push 1
push esi
push str.SoftwareMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4118b0
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push esi
push str.Version
push ecx
mov dword [esp + 0x24], 0x41
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4118a5
movsx esi, byte [esp + 0x14]
sub esi, 0x30
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 5
pop edi
sbb eax, eax
pop esi
inc eax
add esp, 0x50
ret

Function at 0x411910
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1ac]
test eax, eax
je 0x41192d
push 0xa
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x41194c
lea eax, [esi + 0x1a8]
push eax
push 0
push esi
push 0x411820
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1ac], eax
pop esi
ret
Function at 0x412c90
Capabilities:
Get file attributes
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x118]
or esi, 0xffffffff
test eax, eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x104
je 0x412ce8
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x10]
push edx
push ecx
push 0
push str.installpath
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 8], ecx
je 0x412d49
lea eax, [esp + ecx + 0xf]
mov cl, byte [esp + ecx + 0xf]
cmp cl, 0x5c
jne 0x412d0c
mov byte [eax], 0
mov edi, str.Update_setup.exe
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
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
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
pop ebx
xor eax, eax
cmp esi, 0xffffffff
pop edi
pop esi
setne al
add esp, 0x10c
ret 4
Function at 0x414743
Capabilities:
Suspend thread

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x414759
mov eax, 1
pop esi
add esp, 0xc
ret 0x10
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x41478a
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [esi + 4]
push 0
push 0
push 0x501
push eax
mov dword [esi + 0x3c], 0
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
pop esi
add esp, 0xc
ret 0x10
mov edx, dword [esi + 0x58]
lea ecx, [esp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ecx
push 1
push 0x407
push edx
call edi
push 0xffffffffffffffff
lea eax, [esp + 0xc]
push 2
push eax
mov dword [esi + 0x38], 1
call fcn.00422b30
mov ecx, dword [esp + 0x14]
push 7
push 0x24
push ecx
call fcn.00422db0
add esp, 0x18
cmp eax, 6
mov dword [esi + 0x38], 0
jne 0x414816
mov edx, dword [esi + 0x58]
push 0
push 0
push 0x408
push edx
call edi
cmp eax, dword [esp + 0x10]
jae 0x414816
mov eax, dword [esp + 0x20]
test eax, eax
je 0x414816
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 0x3f0
push 0x1410
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [esi + 0x34], 1
mov eax, dword [esp + 8]
mov edx, dword [0x4350bc]
pop edi
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x414846
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x414846
mov edx, dword [esp + 4]
add edx, 0xfffffff4
push edx
call fcn.00426ac0
add esp, 4
xor eax, eax
pop esi
add esp, 0xc
ret 0x10
Function at 0x414d30
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x118
push ebx
xor ebx, ebx
push ebp
push ebx
push ebx
push 3
mov dword [esp + 0x24], ecx
push ebx
push 1
push SysReAllocString
mov ecx, 0x4396a0
call fcn.00404410
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x414e4f
push esi
push edi
push ebx
push ebp
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [esp + 0x18], esi
lea eax, [esi + 1]
push eax
call fcn.00428461
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [esp + 0x14], edi
je 0x414e46
lea ecx, [esp + 0x10]
push ebx
push ecx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414e46
push 0xa
push edi
mov esi, edi
call fcn.00424fc0
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x414e39
jmp 0x414dc8
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, ebp
sub edx, edi
cmp edx, eax
jae 0x414e39
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], 0
rep stosd dword es:[edi], eax
mov edx, ebp
sub edx, esi
stosw word es:[edi], ax
mov dword [esp + 0x10], edx
dec edx
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x28]
push esi
push eax
call fcn.00427d70
mov edx, dword [esp + 0x2c]
add esp, 0xc
lea ecx, [esp + 0x24]
mov eax, ebx
push ecx
push eax
mov eax, dword [edx + 0x54]
push 0x181
push eax
inc ebx
call dword [sym.imp.USER32.dll_SendMessageA]
lea esi, [ebp + 1]
test esi, esi
je 0x414e35
push 0xa
push esi
call fcn.00424fc0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x414dc4
mov edi, dword [esp + 0x14]
push edi
call fcn.00428378
mov ebp, dword [esp + 0x20]
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret
Function at 0x414e60
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x158
push ebx
mov ebx, ecx
push edi
mov ecx, 0x12
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], al
lea edx, [esp + 0x5c]
rep stosd dword es:[edi], eax
mov ecx, dword [0x43b324]
mov dword [esp + 0x10], 0x4c
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
mov eax, dword [0x439698]
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], str.Setup_Log__.log_
push ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], 0x104
mov dword [esp + 0x44], eax
mov dword [esp + 0x50], 0x435fc4
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
test eax, eax
je 0x414fcc
push 0
push 0
push 2
push 0
push 1
lea edx, [esp + 0x70]
push 0x40000000
push edx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
mov dword [esp + 8], eax
je 0x414fcc
mov ecx, dword [ebx + 0x54]
push ebp
lea eax, [esp + 0x60]
push esi
push eax
push 0
push 0x189
push ecx
mov ebp, 1
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x414fbf
lea edi, [esp + 0x64]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x414fbf
mov edi, 0x435794
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x64]
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
push eax
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
push eax
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x18]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x70]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebx + 0x54]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x64]
mov eax, ebp
push ecx
push eax
push 0x189
push edx
inc ebp
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x414f31
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x158
ret
Function at 0x416670
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x2c
push esi
push edi
mov edi, dword [esp + 0x3c]
mov esi, ecx
test edi, edi
mov dword [esp + 0x18], esi
je 0x4167b1
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4167b1
mov ecx, dword [edi]
lea eax, [esp + 0x1c]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x4167b1
mov edx, dword [esi + 4]
push ebx
push ebp
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
push ebx
mov dword [esp + 0x20], ebx
call esi
mov ecx, dword [edi]
mov ebp, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push eax
mov dword [esp + 0x18], eax
call ebp
push ebx
mov dword [esp + 0x1c], eax
call esi
mov esi, dword [esp + 0x48]
mov edi, eax
push esi
push esi
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
mov eax, dword [esp + 0x28]
xor edx, edx
xor ecx, ecx
div esi
mov dword [esp + 0x48], ecx
test eax, eax
jbe 0x416764
mov dword [esp + 0x44], ecx
push ebx
push edi
call ebp
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
push 0xcc0020
push 0
push eax
push ecx
push esi
push esi
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x14]
push edx
push edi
call ebp
mov eax, dword [esp + 0x40]
push 0xffffff
push ebx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov eax, dword [esp + 0x44]
xor edx, edx
add eax, esi
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x28]
div esi
inc ecx
mov dword [esp + 0x48], ecx
cmp ecx, eax
jb 0x416704
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
push edx
push esi
call ebp
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push eax
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
test ebx, ebx
je 0x41678e
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
test edi, edi
je 0x41679b
push edi
call ebx
test esi, esi
je 0x4167a2
push esi
call ebx
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x2c
ret 0xc
pop edi
xor eax, eax
pop esi
add esp, 0x2c
ret 0xc