joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4079aa
Capabilities:
Copy file
Create thread

Disassembly:
mov eax, 0x431c06
call fcn.00425db8
sub esp, 0x428
push ebx
push edi
push dword [ebp + 8]
mov ebx, ecx
call fcn.00407bb8
test al, al
je 0x4079dd
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x407b61
and byte [ebp - 0x434], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x433]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x434]
push esi
push eax
mov ecx, ebx
push dword [ebp + 8]
call fcn.00407be0
mov esi, 0x400
xor edi, edi
push esi
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push esi
mov dword [ebx + 0x90], eax
push eax
lea eax, [ebp - 0x434]
push 0xffffffffffffffff
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push esi
push eax
push 0xffffffffffffffff
mov dword [ebx + 0x94], eax
push dword [ebp + 0xc]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x2c
call fcn.00425dd7
pop ecx
mov dword [ebp + 8], eax
cmp eax, edi
mov dword [ebp - 4], edi
je 0x407a73
push 4
push ebx
push dword [ebx + 0x90]
mov ecx, eax
call fcn.00407b71
jmp 0x407a75
xor eax, eax
mov dword [ebx + 0x98], eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push ebx
push 0x40795e
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 4
mov dword [ebp - 0x10], esi
call fcn.00425dd7
mov dword [eax], esi
pop ecx
mov esi, 0xff
mov dword [ebp + 8], eax
push esi
push 0xffffffffffffffff
push edi
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 1
mov dword [ebp + 0xc], eax
jne 0x407afd
push 1
push edi
push edi
lea eax, [ebp - 0x34]
push edi
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x407af4
cmp dword [ebp - 0x30], 0x8032
jne 0x407ae8
mov ecx, dword [ebx + 0x98]
call fcn.00407fe3
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x407ac1
push esi
push 0xffffffffffffffff
push edi
push dword [ebp + 8]
jmp 0x407ab1
push dword [ebp + 8]
call fcn.0042540e
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop ecx
push dword [ebx + 0x90]
call esi
push dword [ebx + 0x94]
call esi
mov ebx, dword [ebx + 0x98]
pop esi
cmp ebx, edi
je 0x407b36
lea ecx, [ebx + 8]
call fcn.00407d3c
push ebx
call fcn.0042540e
pop ecx
cmp dword [ebp + 0xc], 0xffffffff
jne 0x407b40
xor eax, eax
jmp 0x407b61
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x14], edi
setge al
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x407f75
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x10]
test ebx, ebx
jne 0x407f8e
xor esi, esi
jmp 0x407fbb
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004264e0
xor eax, eax
mov esi, esp
push eax
push eax
and byte [esi], 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x407fd9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x64
jl 0x407f80
lea esp, [ebp - 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fb99
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x2c]
push edi
push eax
push dword [0x441a2c]
call esi
lea eax, [ebp - 0x6c]
xor ebx, ebx
push eax
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call edi
push eax
push ebx
call edi
push eax
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0x1e
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
call fcn.0041aa8a
cmp dword [eax], 1
je 0x40fc03
cmp dword [eax + 4], ebx
je 0x40fc58
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40fc58
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0x46
push eax
push edi
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SubtractRect]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
sub esi, ebx
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov edi, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 4]
sub ecx, edi
push 5
push 0
push 0
sub ebx, eax
mov eax, ecx
cdq
idiv dword [ebp - 4]
sub ebx, dword [ebp - 8]
add ebx, esi
push ebx
sub edi, eax
sub edi, dword [ebp - 0xc]
add edi, ecx
push edi
push 0
push dword [0x441a2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4126c8
Capabilities:
Check os version

Disassembly:
mov eax, 0x432834
call fcn.00425db8
sub esp, 0x3e8
push ebx
push esi
lea eax, [ebp - 0xe8]
push edi
mov dword [ebp - 0x10], ecx
push eax
mov dword [ebp - 0xe8], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xe4], 5
jne 0x412824
cmp dword [ebp - 0xe0], 2
jne 0x412824
cmp byte [ebp - 0x4e], 1
je 0x412824
push 0x43bb40
push dword [ebp + 8]
call fcn.00426680
pop ecx
pop ecx
test eax, eax
push 1
je 0x412812
lea eax, [ebp + 0xb]
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp + 8]
call fcn.004014ff
xor ebx, ebx
cmp dword [ebp - 0x40], ebx
mov dword [ebp - 4], ebx
je 0x412804
mov al, byte [ebp + 0xb]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x24], al
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x4c]
push eax
push 0x2c
mov byte [ebp - 4], 1
call fcn.004174dd
mov dword [ebp - 0x14], ebx
xor esi, esi
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x4127f9
mov eax, dword [ebp - 0x1c]
push 0x28
sub eax, ecx
pop edi
cdq
idiv edi
cmp dword [ebp - 0x14], eax
jae 0x4127f9
add ecx, esi
call fcn.004016f0
push eax
lea eax, [ebp - 0x1ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x1ec]
push str.dotnetfxsp1.exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2f0]
push 1
push eax
lea eax, [ebp - 0x1ec]
push eax
call fcn.00415586
test eax, eax
je 0x4127d6
inc dword [ebp - 0x14]
add esi, edi
jmp 0x412775
mov ecx, dword [ebp - 0x10]
call fcn.004171c4
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.004178fc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0040191f
xor eax, eax
jmp 0x412813
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.004178fc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0040191f
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
push 0x43bb40
push dword [ebp + 8]
call fcn.00426680
pop ecx
test eax, eax
pop ecx
jne 0x412810
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x3f4]
push 1
push eax
push str.dotnetfxsp1.exe
call fcn.00415586
test eax, eax
jne 0x412810
mov ecx, dword [ebp - 0x10]
call fcn.004171c4
jmp 0x4127f5
Function at 0x412d3b
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
mov eax, 0x432848
call fcn.00425db8
sub esp, 0x118
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 8]
push 1
pop esi
cmp ecx, 0x2000
mov dword [eax], esi
je 0x412db6
cmp ecx, 0xbc2
je 0x412db6
xor ebx, ebx
cmp ecx, 0x800704c7
je 0x412d7d
cmp ecx, 0x642
jne 0x412d89
cmp dword [ebp + 0x18], ebx
je 0x412d89
mov dword [eax], ebx
jmp 0x412eb0
cmp ecx, ebx
je 0x412eb0
cmp ecx, 0x1008
je 0x412eb0
mov ecx, dword [ebp - 0x10]
mov dword [0x443124], 0x66d
call fcn.004171c4
xor eax, eax
jmp 0x412eb2
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x1f]
mov byte [ebp - 0x20], bl
mov ecx, dword [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x20]
push 0x10
push eax
push 0x43bd44
push str.DotNetDelayReboot
push dword [0x43466c]
call fcn.00401046
mov ecx, eax
add ecx, 0x4020
call fcn.00402344
cmp byte [ebp - 0x20], 0x59
mov byte [ebp + 0x17], bl
je 0x412e01
cmp byte [ebp - 0x20], 0x79
jne 0x412e05
mov byte [ebp + 0x17], 1
call fcn.0041fc1c
test eax, eax
jne 0x412e27
cmp dword [ebp + 8], 0xbc2
jne 0x412e1c
cmp byte [ebp + 0x17], bl
je 0x412e27
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
jmp 0x412e31
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x18], ebx
mov dword [eax + 0x38], esi
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], ebx
call fcn.0040f9b2
test eax, eax
jne 0x412ea1
push 0x40
lea edi, [ebp - 0x123]
pop ecx
mov byte [ebp - 0x124], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push str.InstallerLocation
mov dword [ebp + 0xc], ebx
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 0x18], ebx
pop edi
je 0x412eb0
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x4139d3
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
mov eax, 0x4328cf
call fcn.00425db8
sub esp, 0x5c0
and byte [ebp - 0x5cc], 0
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x5cb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x5cc]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0xf]
push 1
push eax
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x64]
call fcn.004014ff
and dword [ebp - 4], 0
mov eax, 0x43be10
mov ecx, eax
mov dword [ebp - 0x3c], 0x43447c
test ecx, ecx
mov dword [ebp - 0x1c], 0x434474
jne 0x413a47
mov eax, 0x440144
lea ecx, [ebp - 0xd]
push 0
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040ba8c
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 1
call fcn.00417400
and byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.0040191f
or edi, 0xffffffff
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x1cc]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 2
call fcn.004016f0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, edi
je 0x413b43
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x1c0]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x413b21
lea eax, [ebp - 0xd]
push 1
push eax
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004014ff
lea eax, [ebp - 0xe]
push 1
push eax
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.004014ff
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 4
call fcn.00417400
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.0040191f
lea ecx, [ebp - 0x3c]
call fcn.004016f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.0040191f
lea eax, [ebp - 0x1cc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x413a9f
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x413b43
push esi
call eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], edi
call fcn.0040191f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4151d3
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and byte [ebp - 0x108], 0
push ebx
push esi
push edi
mov esi, ecx
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov ebx, dword [ebp + 0xc]
rep stosd dword es:[edi], eax
and dword [ebx], 0
and byte [ebp + 0xf], 0
stosw word es:[edi], ax
mov ecx, esi
stosb byte es:[edi], al
call fcn.00401046
add eax, 0xac
push eax
push str.2.0.2600.0
call fcn.0041f933
pop ecx
test eax, eax
pop ecx
jge 0x41523e
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push str.__s___q
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edi, 0x43c0f0
jmp 0x41528d
mov ecx, esi
mov byte [ebp + 0xf], 1
call fcn.00401046
mov ecx, eax
call fcn.0041c594
push dword [ebp + 8]
test eax, eax
je 0x415273
lea eax, [ebp - 0x108]
push str.__s___quiet__norestart
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edi, str._quiet__norestart
jmp 0x41528d
lea eax, [ebp - 0x108]
push str.__s___c:_msiinst__delayrebootq_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edi, str._c:_msiinst__delayrebootq_
mov ecx, esi
call fcn.00401046
mov ecx, eax
call fcn.0041c594
test eax, eax
je 0x4152b4
mov ecx, esi
call fcn.00401046
push eax
push 1
push edi
push dword [ebp + 8]
call fcn.0042015c
jmp 0x4152c2
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.0041fa3d
mov esi, eax
test esi, esi
je 0x415380
cmp esi, 0xbc2
je 0x4152ef
push 0
push esi
mov dword [0x443124], 0x484
call fcn.0041edb6
pop ecx
mov eax, esi
pop ecx
jmp 0x415382
cmp byte [ebp + 0xf], 0
je 0x41537a
and dword [ebp + 8], 0
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 8]
mov dword [ebx], 2
call fcn.0040f9b2
test eax, eax
jne 0x415369
and byte [ebp - 0x20c], al
push 0x40
pop ecx
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0xc]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 4]
push eax
push 0
push str.InstallerLocation
mov dword [ebp + 0xc], 0x104
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 8], 0
je 0x415380
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x415380
mov dword [ebx], 1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x416674
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x432b0e
call fcn.00425db8
sub esp, 0x18c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x12]
mov ebx, 0x43447c
mov esi, 0x434474
push edi
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x4c], esi
call fcn.00401581
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
call fcn.0041687b
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004016f0
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], edi
push ecx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x4166fd
lea ecx, [ebp - 0x10]
call fcn.0040a986
mov ecx, dword [ebp + 0xc]
cmp eax, edi
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
sete byte [ebp + 0xf]
call fcn.0040191f
cmp byte [ebp + 0xf], 0
je 0x416833
and byte [ebp - 0x198], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x197]
and dword [ebp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x104
push eax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push str.Version
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41677d
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xf]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.00401581
mov dword [ebp - 0x18], 1
jmp 0x41684f
lea eax, [ebp + 0xf]
push 1
push eax
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x44]
call fcn.004014ff
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 4
call fcn.0040b9af
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040191f
mov eax, 0x43c1f8
mov dword [ebp - 0x44], ebx
mov ecx, eax
mov dword [ebp - 0x24], esi
test ecx, ecx
mov edi, 0x440144
jne 0x4167c6
mov eax, edi
lea ecx, [ebp + 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.0040ba8c
mov eax, 0x43c1f4
mov byte [ebp - 4], 5
mov ecx, eax
mov dword [ebp - 0x94], ebx
test ecx, ecx
mov dword [ebp - 0x74], esi
jne 0x4167ef
mov eax, edi
lea ecx, [ebp - 0x11]
push 0
push ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.0040ba8c
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 6
call fcn.004175ae
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.0040191f
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040191f
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x6c]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.0040b9f9
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.0040191f
cmp dword [ebp - 0x10], 0
je 0x41686a
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x418f67
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x418f7b
push 0x28
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x418faf
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.00423037
test al, al
jne 0x418fe2
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00411e87
lea eax, [ebp - 0x4c]
push 0x437450
push eax
call fcn.00427387
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x418fe2
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00411cb4
lea eax, [ebp - 0x48]
push 0x437440
push eax
call fcn.00427387
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x418fea
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x418ffe
push 0x50
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x419032
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.00423037
test al, al
jne 0x419065
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00411e87
lea eax, [ebp - 0x4c]
push 0x437450
push eax
call fcn.00427387
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x419065
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00411cb4
lea eax, [ebp - 0x48]
push 0x437440
push eax
call fcn.00427387
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x4196ba
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
and dword [ebp - 0x14], 0
push esi
push edi
mov edi, ecx
call fcn.0040104a
push 1
lea eax, [ebp - 0xd0]
pop esi
mov dword [ebp - 0xd0], 0x94
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 4], eax
sub eax, 0
mov dword [ebp - 8], ecx
je 0x41976a
dec eax
je 0x41975f
dec eax
jne 0x419771
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], 2
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x3c]
push 4
dec eax
pop ecx
je 0x41974f
dec eax
je 0x419746
dec eax
jne 0x419752
mov dword [ebp - 0x18], 5
jmp 0x419752
mov dword [ebp - 0x18], 3
jmp 0x419752
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0xcc], ecx
jb 0x419771
mov dword [ebp - 0x14], esi
jmp 0x419771
movzx eax, cx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jmp 0x419771
mov dword [ebp - 0x18], 7
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00401046
mov ecx, eax
call fcn.0041aa91
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x419b46
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
dec edx
test eax, eax
je 0x419b80
mov eax, dword [ecx + 0x70]
push esi
lea esi, [edx + 1]
mov edx, dword [ebp + 8]
push edi
mov ecx, dword [ebp + 0x10]
movzx edi, byte [edx]
and ecx, 0xff
xor ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 8
mov ecx, dword [eax + ecx*4]
inc edx
xor edi, ecx
dec esi
mov dword [ebp + 0x10], edi
jne 0x419b5e
pop edi
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc
Function at 0x41bd24
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41bdda
lea eax, [ebp - 0x118]
push 0xff
push eax
push dword [ebp + 0xc]
call fcn.0041ef13
add esp, 0xc
cmp dword [ebp + 0xc], 0x452
jne 0x41bdca
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x41bd86
lea eax, [ebp - 0x118]
push 0x43b278
push eax
call fcn.004278c0
pop ecx
test eax, eax
pop ecx
jne 0x41bda2
mov eax, 0x486
push eax
mov dword [0x443124], eax
call fcn.0041ee9c
pop ecx
push dword [0x443124]
call fcn.004277c0
lea eax, [ebp - 0x18]
push eax
push 0
call fcn.004200f9
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
leave
ret 8