joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e092
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, 0x4329ec
call fcn.0042f560
sub esp, 0x210
push ebx
xor ebx, ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
push 0x434d7c
push 1
push ebx
push 0x43505c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x41e16f
mov eax, dword [ebp - 0x10]
push edi
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
push dword [ebp + 8]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21a]
mov word [ebp - 0x21c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcslen]
push eax
lea eax, [ebp - 0x21c]
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0x10
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x21c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
cmp dword [ebp + 0x10], ebx
pop edi
je 0x41e145
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push 0x43548c
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x41e16f
mov eax, dword [ebp - 0x14]
push 2
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x41e16f
push 1
pop esi
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x41e17f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x41e190
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41e67f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
lea eax, [ebp - 0x114]
push esi
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [ebp - 0x104], 2
push 1
mov dword [0x4453c0], eax
mov dword [0x4453cc], eax
mov dword [0x4453c4], eax
mov dword [0x4453c8], eax
pop esi
jne 0x41e720
cmp dword [ebp - 0x110], 5
jne 0x41e6eb
cmp dword [ebp - 0x10c], eax
jne 0x41e6db
mov dword [0x4453cc], esi
jmp 0x41e72e
cmp dword [ebp - 0x10c], esi
jne 0x41e72e
mov dword [0x4453c4], esi
jmp 0x41e72e
cmp dword [ebp - 0x110], 6
jne 0x41e72e
cmp dword [ebp - 0x10c], eax
je 0x41e704
cmp dword [ebp - 0x10c], esi
jne 0x41e72e
cmp dword [ebp - 0x10c], esi
mov dword [0x4453c4], esi
mov dword [0x4453c8], esi
jne 0x41e72e
mov dword [0x4453d0], esi
jmp 0x41e72e
cmp dword [ebp - 0x104], esi
jne 0x41e72e
mov dword [0x4453c0], esi
mov ax, word [0x443154]
push edi
mov word [ebp - 0x31c], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x31a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x31c]
push 0x103
push eax
call fcn.0041f7ff
cmp word [ebp - 0x31c], 0x37
pop ecx
pop ecx
pop edi
jne 0x41e773
mov dword [0x4453d4], esi
jmp 0x41e795
cmp word [ebp - 0x31c], 0x36
jne 0x41e785
mov dword [0x4453d8], esi
jmp 0x41e795
cmp word [ebp - 0x31c], 0x38
jne 0x41e795
mov dword [0x4453dc], esi
pop esi
leave
ret

Function at 0x41e807
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x104], 2
jne 0x41e87b
cmp dword [ebp - 0x110], 5
jne 0x41e87b
cmp dword [ebp - 0x10c], 1
jne 0x41e87b
push esi
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea eax, [ebp - 0x100]
push str.Service_Pack_2
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x41e875
lea eax, [ebp - 0x100]
push str.Service_Pack_3
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x41e875
xor eax, eax
jmp 0x41e878
push 1
pop eax
pop esi
leave
ret
xor eax, eax
leave
ret

Function at 0x41f046
Capabilities:
Delete file
Move file

Disassembly:
cmp dword [esp + 8], 0
jne 0x41f067
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x41f05f
xor eax, eax
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41f06a
push 5
pop eax
cmp eax, 5
je 0x41f078
cmp eax, 0x20
je 0x41f078
push 1
pop eax
ret
cmp dword [0x4453c0], 0
je 0x41f099
push 0
push dword [esp + 8]
call fcn.0041f0ab
pop ecx
pop ecx
xor ecx, ecx
test eax, eax
setne cl
inc ecx
mov eax, ecx
ret
push 4
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 2
pop eax
ret
Function at 0x41f28a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, 0x207
lea eax, [ebp - 0x208]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x41f30b
cmp eax, esi
ja 0x41f30b
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp word [ebp + eax*2 - 0x20a], 0x5c
pop ecx
je 0x41f2dc
lea eax, [ebp - 0x208]
push 0x43af64
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
pop ecx
pop ecx
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x208]
push str.wininit.ini
push eax
push 0x43f208
push esi
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
and word [edi + esi*2 - 2], 0
push 1
pop eax
pop edi
jmp 0x41f30d
xor eax, eax
pop esi
leave
ret

Function at 0x41f310
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x167c
call fcn.0042f4a0
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x41f409
push ebx
push edi
mov ecx, 0x513
xor eax, eax
lea edi, [ebp - 0x167a]
mov word [ebp - 0x167c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x441574]
mov ebx, dword [sym.imp.MSVCRT.dll_wcstok]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call ebx
pop ecx
pop ecx
mov edx, eax
test edx, edx
je 0x41f3cb
and word [ebp - 0x22c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x22a]
rep stosd dword es:[edi], eax
push edx
push dword [ebp + 8]
stosw word es:[edi], ax
push 0x441568
lea eax, [ebp - 0x22c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edi, eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp + esi*2 - 0x167c]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 4]
lea esi, [esi + edi + 1]
push eax
push 0
call ebx
add esp, 0x28
jmp 0x41f35c
xor esi, esi
push 0x1e
lea eax, [ebp - 0x24]
push esi
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x167c]
add esp, 0xc
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0xe], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0xa], esi
mov dword [ebp - 0x20], 3
mov word [ebp - 0x14], 0x454
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop edi
pop ebx
jmp 0x41f40b
xor eax, eax
pop esi
leave
ret

Function at 0x41f7b1
Capabilities:
Get common file path
Get program files directory

Disassembly:
xor eax, eax
push esi
cmp word [0x4453ec], ax
mov esi, 0x4453ec
jne 0x41f7db
push eax
push 0x26
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.internet_exploreriexplore.exe
push esi
call dword [sym.imp.MSVCRT.dll_wcscat]
pop ecx
pop ecx
mov eax, esi
pop esi
ret
Function at 0x41f7ff
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push esi
call fcn.0041f7b1
push eax
call fcn.0042b234
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x41f850
lea eax, [ebp + 0xc]
mov dword [ebp + 8], 4
push eax
lea eax, [ebp + 8]
push esi
push eax
push str.Version
push str.SoftwareMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x41f850
cmp word [esi], ax
je 0x41f850
push 1
pop edi
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x41fde6
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], edi
je 0x41fee6
lea eax, [ebp - 4]
push esi
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x40000
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x41fed7
push dword [ebp + 0x10]
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x41fed7
cmp dword [ebp + 0x14], edi
je 0x41fed4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x20019
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x41fed7
push edi
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push edi
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x41fed7
push 0x20a
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [ebp - 8], edi
pop ecx
mov esi, eax
jbe 0x41fecd
push 0x105
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, edi
jne 0x41fec0
push 1
push dword [ebp + 0x10]
push esi
push dword [ebp - 4]
call fcn.0041fde6
add esp, 0x10
jmp 0x41fec7
cmp eax, 0x103
je 0x41fecd
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x41fe99
push esi
call fcn.0042f3fe
pop ecx
push 1
pop ebx
cmp dword [ebp - 4], edi
pop esi
je 0x41fee6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop ebx
leave
ret
Function at 0x42079f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x441610]
push esi
cmp eax, 0xffffffff
jne 0x420922
push edi
push 0x44
pop ecx
xor eax, eax
lea edi, [ebp - 0x110]
mov dword [ebp - 0x114], 0x114
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x114]
mov dword [0x441610], 0xfffffc18
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
je 0x42091d
cmp dword [ebp - 0x104], 2
jne 0x42091d
cmp dword [ebp - 0x110], 5
jne 0x420896
cmp dword [ebp - 0x10c], 0
jne 0x420819
push 1
jmp 0x4208f0
cmp dword [ebp - 0x10c], 1
jne 0x420885
mov esi, dword [sym.imp.MSVCRT.dll__wcsnicmp]
lea eax, [ebp - 0x100]
push 0x7f
push eax
push 0x441618
call esi
add esp, 0xc
test eax, eax
jne 0x420846
push 3
jmp 0x4208f0
lea eax, [ebp - 0x100]
push 0x7f
push eax
push str.Service_Pack_2
call esi
add esp, 0xc
test eax, eax
jne 0x420864
push 4
jmp 0x4208f0
lea eax, [ebp - 0x100]
push 0x7f
push eax
push str.Service_Pack_3
call esi
add esp, 0xc
neg eax
sbb eax, eax
and al, 0xfd
add eax, 5
jmp 0x420916
cmp dword [ebp - 0x10c], 2
jne 0x42091d
push 6
jmp 0x4208f0
cmp dword [ebp - 0x110], 6
jne 0x420900
cmp dword [ebp - 0x10c], 0
jne 0x4208e5
mov esi, dword [sym.imp.MSVCRT.dll__wcsnicmp]
lea eax, [ebp - 0x100]
push 0x7f
push eax
push 0x441618
call esi
add esp, 0xc
test eax, eax
jne 0x4208c9
push 8
jmp 0x4208f0
lea eax, [ebp - 0x100]
push 0x7f
push eax
push str.Service_Pack_2
call esi
add esp, 0xc
neg eax
sbb eax, eax
add eax, 8
jmp 0x420916
cmp dword [ebp - 0x10c], 1
jne 0x4208f3
push 9
pop eax
jmp 0x420916
cmp dword [ebp - 0x10c], 2
jne 0x42091d
push 0xa
jmp 0x4208f0
xor eax, eax
cmp dword [ebp - 0x110], 7
setne al
dec eax
and ax, 0xfc21
add eax, 0x3e8
mov dword [0x441610], eax
jmp 0x420922
mov eax, dword [0x441610]
pop esi
leave
ret
Function at 0x420a4d
Capabilities:
Check if file exists
Enumerate process modules
Terminate process

Disassembly:
mov eax, 0x432a30
call fcn.0042f560
mov eax, 0x122c
call fcn.0042f4a0
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x420bd1
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x420bd1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1238]
push 0x1000
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x420a9f
or eax, 0xffffffff
jmp 0x420bd3
mov edx, dword [ebp - 0x28]
mov al, byte [ebp + 0xb]
push esi
push edi
shr edx, 2
mov byte [ebp - 0x24], al
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
push 0
mov ecx, 0x82
pop eax
lea edi, [ebp - 0x236]
mov word [ebp - 0x238], bx
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], ebx
je 0x420bbf
lea esi, [ebp - 0x1238]
mov edi, edx
push dword [esi]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x420b58
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x14]
push 4
push ecx
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x420b4f
lea eax, [ebp - 0x238]
push 0x104
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call sub.PSAPI.DLL_GetModuleFileNameExW
push dword [ebp + 8]
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x420b4f
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x24]
push eax
call fcn.004210ef
jmp 0x420b58
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
dec edi
jne 0x420ae1
cmp dword [ebp - 0x20], ebx
je 0x420bbf
mov esi, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x20]
sar esi, 2
je 0x420bbf
mov eax, esi
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
cmp edi, ebx
je 0x420ba8
xor eax, eax
cmp esi, ebx
jbe 0x420b94
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + eax*4]
mov dword [edi + eax*4], ecx
inc eax
cmp eax, esi
jb 0x420b86
push dword [ebp + 0xc]
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push edi
call fcn.0042f3fe
pop ecx
xor edi, edi
cmp esi, ebx
jbe 0x420bbf
mov eax, dword [ebp - 0x20]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, esi
jb 0x420bae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004210cf
pop edi
xor eax, eax
pop esi
jmp 0x420bd3
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x420be0
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
mov eax, 0x432a44
call fcn.0042f560
mov eax, 0x1434
call fcn.0042f4a0
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x420c67
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x232]
mov word [ebp - 0x234], bx
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp word [esi + eax*2 - 2], 0x5c
pop ecx
push esi
jne 0x420c30
push 0x441644
jmp 0x420c35
push str._s
lea eax, [ebp - 0x234]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
or dword [ebp - 0x10], 0xffffffff
add esp, 0x10
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1440]
push 0x1000
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x420c6f
or eax, 0xffffffff
jmp 0x420da1
mov edx, dword [ebp - 0x28]
mov al, byte [ebp + 0xb]
shr edx, 2
mov byte [ebp - 0x24], al
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
push 0
mov ecx, 0x82
pop eax
lea edi, [ebp - 0x43e]
mov word [ebp - 0x440], bx
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], ebx
je 0x420d92
lea esi, [ebp - 0x1440]
mov edi, edx
push dword [esi]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x420d28
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x14]
push 4
push ecx
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x420d1f
lea eax, [ebp - 0x440]
push 0x104
push eax
push dword [ebp - 0x14]
push dword [ebp + 8]
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x420d1f
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp + 8]
lea ecx, [ebp - 0x24]
push eax
call fcn.004210ef
jmp 0x420d28
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
dec edi
jne 0x420caf
cmp dword [ebp - 0x20], ebx
je 0x420d92
mov esi, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x20]
sar esi, 2
je 0x420d92
mov eax, esi
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
cmp edi, ebx
je 0x420d7b
xor eax, eax
cmp esi, ebx
jbe 0x420d64
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + eax*4]
mov dword [edi + eax*4], ecx
inc eax
cmp eax, esi
jb 0x420d56
push dword [ebp + 0xc]
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push edi
mov dword [ebp - 0x10], eax
call fcn.0042f3fe
pop ecx
xor edi, edi
cmp esi, ebx
jbe 0x420d92
mov eax, dword [ebp - 0x20]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, esi
jb 0x420d81
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004210cf
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x420ed0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
xor esi, esi
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov dword [ebp - 0x28], 0x81
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x420f5f
cmp dword [ebp + 0x10], esi
jbe 0x420f31
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp + 0x14]
cmp edi, esi
je 0x420f4c
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x420f4c
mov dword [edi], 1
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
push 1
pop esi
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x420f65
Capabilities:
Delete registry key
Set registry value

Disassembly:
push esi
push edi
push 2
mov edi, str.CLSID1A893393_71A8_4a50_95A1_2B89DE87B24C
push dword [0x441614]
mov esi, SysReAllocStringLen
push 4
push 0x443154
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x420f98
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov al, 1
jmp 0x420f9a
xor al, al
pop edi
pop esi
ret
Function at 0x420f9d
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1224
call fcn.0042f4a0
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0x10], edi
je 0x4210ca
cmp dword [ebp + 8], edi
je 0x4210ca
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1224]
push 0x1000
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4210ca
mov eax, dword [ebp - 0x14]
push ebx
shr eax, 2
push esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
je 0x4210c3
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1224]
mov dword [ebp - 4], eax
jmp 0x421009
xor edi, edi
mov eax, dword [ebp - 4]
push dword [eax]
push edi
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x4210a7
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4210a4
mov word [ebp - 0x224], di
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x222]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x224]
push 0x104
push eax
push dword [ebp - 0xc]
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x4210a4
push dword [ebp + 0xc]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x4210a4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x4210a4
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_wcsstr]
pop ecx
test eax, eax
pop ecx
jne 0x4210bc
push esi
call ebx
inc dword [ebp - 8]
add dword [ebp - 4], 4
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jb 0x421007
jmp 0x4210c3
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
jmp 0x4210cc
xor eax, eax
pop edi
leave
ret
Function at 0x4212d0
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x421364
lea eax, [ebp - 8]
xor ebx, ebx
push eax
mov dword [ebp - 8], ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
je 0x421364
push esi
push edi
mov byte [ebp - 1], bl
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
cmp esi, ebx
je 0x421356
push esi
push edi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x421356
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp + 8]
push eax
push 0x43af64
push esi
mov dword [ebp + 8], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x421356
push 0x34
lea eax, [ebp - 0x40]
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [ebp - 0x40], 0xfeef04bd
sete byte [ebp - 1]
push esi
call dword [sym.imp.MSVCRT.dll_free]
cmp byte [ebp - 1], bl
pop ecx
pop esi
jne 0x421368
xor al, al
jmp 0x421392
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0xc]
shr eax, 0x10
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
movzx eax, word [ebp - 0x38]
mov dword [ecx], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0x14]
shr eax, 0x10
mov dword [ecx], eax
mov ecx, dword [ebp + 0x18]
movzx eax, word [ebp - 0x34]
mov dword [ecx], eax
mov al, 1
pop edi
pop ebx
leave
ret

Function at 0x42158a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x421603
and word [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x208]
push dword [ebp + 8]
push str._s_d.tmp
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea eax, [ebp - 0x208]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
pop edi
jne 0x421607
xor al, al
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
leave
ret