joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42493a
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
and dword [ebp - 0x254], 0
push ebx
push esi
push edi
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x250]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
rep stosd dword es:[edi], eax
mov ax, word [0x467084]
mov ecx, 0x81
mov word [ebp - 0x86c], ax
xor eax, eax
lea edi, [ebp - 0x86a]
push 0x465d80
push dword [ebp + 8]
mov ebx, 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x43d538
lea eax, [ebp - 0x86c]
push ebx
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x86c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
test eax, eax
mov dword [ebp - 4], eax
je 0x424b27
cmp eax, 0xffffffff
je 0x424b27
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea eax, [ebp - 0x228]
push 0x465d7c
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x424af0
lea eax, [ebp - 0x228]
push 0x43f510
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x424af0
test byte [ebp - 0x254], 0x10
je 0x424a72
mov ax, word [0x467084]
mov ecx, 0x81
mov word [ebp - 0x664], ax
xor eax, eax
lea edi, [ebp - 0x662]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x664]
push dword [ebp + 8]
push 0x43d538
push ebx
push eax
call esi
push dword [ebp + 0x14]
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 0x1c
test eax, eax
je 0x424af0
push dword [ebp + 0x14]
lea eax, [ebp - 0x664]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.0042493a
add esp, 0x10
jmp 0x424af0
and word [ebp - 0x45c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x45a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x45c]
push dword [ebp + 8]
push 0x43d538
push ebx
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 0x1c
test eax, eax
je 0x424af0
push dword [ebp + 0x10]
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
je 0x424af0
lea eax, [ebp - 0x45c]
push 0xa0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4249c7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x424b29
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424fb7
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, 0x432f1c
call fcn.004327f0
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 0x4370ec
push 1
push ebx
push 0x4373cc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x425094
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 0x42506a
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 0x4377fc
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x425094
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 0x425094
push 1
pop esi
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x4250a4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4250b5
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 0x4255a4
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 [0x46a940], eax
mov dword [0x46a94c], eax
mov dword [0x46a944], eax
mov dword [0x46a948], eax
pop esi
jne 0x425645
cmp dword [ebp - 0x110], 5
jne 0x425610
cmp dword [ebp - 0x10c], eax
jne 0x425600
mov dword [0x46a94c], esi
jmp 0x425653
cmp dword [ebp - 0x10c], esi
jne 0x425653
mov dword [0x46a944], esi
jmp 0x425653
cmp dword [ebp - 0x110], 6
jne 0x425653
cmp dword [ebp - 0x10c], eax
je 0x425629
cmp dword [ebp - 0x10c], esi
jne 0x425653
cmp dword [ebp - 0x10c], esi
mov dword [0x46a944], esi
mov dword [0x46a948], esi
jne 0x425653
mov dword [0x46a950], esi
jmp 0x425653
cmp dword [ebp - 0x104], esi
jne 0x425653
mov dword [0x46a940], esi
mov ax, word [0x467084]
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.00426724
cmp word [ebp - 0x31c], 0x37
pop ecx
pop ecx
pop edi
jne 0x425698
mov dword [0x46a954], esi
jmp 0x4256ba
cmp word [ebp - 0x31c], 0x36
jne 0x4256aa
mov dword [0x46a958], esi
jmp 0x4256ba
cmp word [ebp - 0x31c], 0x38
jne 0x4256ba
mov dword [0x46a95c], esi
pop esi
leave
ret

Function at 0x42572c
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 0x4257a0
cmp dword [ebp - 0x110], 5
jne 0x4257a0
cmp dword [ebp - 0x10c], 1
jne 0x4257a0
push esi
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea eax, [ebp - 0x100]
push 0x465dd0
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x42579a
lea eax, [ebp - 0x100]
push 0x465db0
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x42579a
xor eax, eax
jmp 0x42579d
push 1
pop eax
pop esi
leave
ret
xor eax, eax
leave
ret

Function at 0x425f6b
Capabilities:
Delete file
Move file

Disassembly:
cmp dword [esp + 8], 0
jne 0x425f8c
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x425f84
xor eax, eax
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x425f8f
push 5
pop eax
cmp eax, 5
je 0x425f9d
cmp eax, 0x20
je 0x425f9d
push 1
pop eax
ret
cmp dword [0x46a940], 0
je 0x425fbe
push 0
push dword [esp + 8]
call fcn.00425fd0
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 0x4261af
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 0x426230
cmp eax, esi
ja 0x426230
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp word [ebp + eax*2 - 0x20a], 0x5c
pop ecx
je 0x426201
lea eax, [ebp - 0x208]
push 0x43f45c
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 0x465e40
push eax
push str._s_s
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 0x426232
xor eax, eax
pop esi
leave
ret

Function at 0x426235
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x167c
call fcn.00432710
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x42632e
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 [0x465e58]
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 0x4262f0
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 0x465e4c
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 0x426281
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 0x426330
xor eax, eax
pop esi
leave
ret

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

Disassembly:
xor eax, eax
push esi
cmp word [0x46a96c], ax
mov esi, 0x46a96c
jne 0x426700
push eax
push 0x26
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x465e68
push esi
call dword [sym.imp.MSVCRT.dll_wcscat]
pop ecx
pop ecx
mov eax, esi
pop esi
ret
Function at 0x426724
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.004266d6
push eax
call fcn.00429abe
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x426775
lea eax, [ebp + 0xc]
mov dword [ebp + 8], 4
push eax
lea eax, [ebp + 8]
push esi
push eax
push 0x465994
push 0x465ea8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x426775
cmp word [esi], ax
je 0x426775
push 1
pop edi
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x426d0b
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 0x426e0b
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 0x426dfc
push dword [ebp + 0x10]
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x426dfc
cmp dword [ebp + 0x14], edi
je 0x426df9
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 0x426dfc
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 0x426dfc
push 0x20a
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [ebp - 8], edi
pop ecx
mov esi, eax
jbe 0x426df2
push 0x105
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, edi
jne 0x426de5
push 1
push dword [ebp + 0x10]
push esi
push dword [ebp - 4]
call fcn.00426d0b
add esp, 0x10
jmp 0x426dec
cmp eax, 0x103
je 0x426df2
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x426dbe
push esi
call fcn.0043265a
pop ecx
push 1
pop ebx
cmp dword [ebp - 4], edi
pop esi
je 0x426e0b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop ebx
leave
ret
Function at 0x4276c4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
cmp dword [0x465f48], 0xffffffff
push esi
jne 0x42786d
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 [0x465f48], 0xfffffc18
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
je 0x42786d
push 2
pop ecx
cmp dword [ebp - 0x104], ecx
jne 0x42786d
mov eax, dword [ebp - 0x110]
cmp eax, 5
jne 0x4277dd
cmp dword [ebp - 0x10c], 0
jne 0x427749
mov dword [0x465f48], 1
jmp 0x42786d
cmp dword [ebp - 0x10c], 1
jne 0x4277c2
mov esi, dword [sym.imp.MSVCRT.dll__wcsnicmp]
lea eax, [ebp - 0x100]
push 0x7f
push eax
push 0x465f68
call esi
add esp, 0xc
test eax, eax
jne 0x42777e
mov dword [0x465f48], 3
jmp 0x42786d
lea eax, [ebp - 0x100]
push 0x7f
push eax
push 0x465dd0
call esi
add esp, 0xc
test eax, eax
jne 0x4277a4
mov dword [0x465f48], 4
jmp 0x42786d
lea eax, [ebp - 0x100]
push 0x7f
push eax
push 0x465db0
call esi
add esp, 0xc
neg eax
sbb eax, eax
and al, 0xfd
add eax, 5
jmp 0x42782f
cmp dword [ebp - 0x10c], ecx
jne 0x42786d
mov dword [0x465f48], 6
jmp 0x42786d
cmp eax, 6
jne 0x427857
mov eax, dword [ebp - 0x10c]
test eax, eax
jne 0x427836
mov esi, dword [sym.imp.MSVCRT.dll__wcsnicmp]
lea eax, [ebp - 0x100]
push 0x7f
push eax
push 0x465f68
call esi
add esp, 0xc
test eax, eax
jne 0x427815
mov dword [0x465f48], 8
jmp 0x42786d
lea eax, [ebp - 0x100]
push 0x7f
push eax
push 0x465dd0
call esi
add esp, 0xc
neg eax
sbb eax, eax
add eax, 8
mov dword [0x465f48], eax
jmp 0x42786d
cmp eax, 1
jne 0x427847
mov dword [0x465f48], 9
jmp 0x42786d
cmp eax, ecx
jne 0x427861
mov dword [0x465f48], 0xa
jmp 0x42786d
cmp eax, 7
je 0x42783b
cmp eax, 8
jmp 0x427849
jbe 0x42786d
mov dword [0x465f48], 0x3e8
mov eax, dword [0x465f48]
pop esi
leave
ret
Function at 0x42799d
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
mov eax, 0x432f60
call fcn.004327f0
mov eax, 0x122c
call fcn.00432710
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x4279c0
xor eax, eax
jmp 0x427b1d
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1238]
push 0x1000
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x4279e1
or eax, 0xffffffff
jmp 0x427b1d
mov eax, dword [ebp - 0x2c]
mov cl, byte [ebp + 0xb]
push esi
push edi
shr eax, 2
mov byte [ebp - 0x28], cl
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
je 0x427b0d
lea esi, [ebp - 0x1238]
mov dword [ebp - 0x18], eax
push dword [esi]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x427aa0
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x14]
push 4
push ecx
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x427a97
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x236]
mov word [ebp - 0x238], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x238]
push 0x104
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x427a97
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 0x427a97
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.0042847d
jmp 0x427aa0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
dec dword [ebp - 0x18]
jne 0x427a0d
cmp dword [ebp - 0x24], ebx
je 0x427b0d
mov esi, dword [ebp - 0x20]
sub esi, dword [ebp - 0x24]
sar esi, 2
je 0x427b0d
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 0x427af6
xor eax, eax
cmp esi, ebx
jbe 0x427ae2
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + eax*4]
mov dword [edi + eax*4], ecx
inc eax
cmp eax, esi
jb 0x427ad4
push dword [ebp + 0xc]
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push edi
call fcn.0043265a
pop ecx
xor edi, edi
cmp esi, ebx
jbe 0x427b0d
mov eax, dword [ebp - 0x24]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, esi
jb 0x427afc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0042845d
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x427b2a
Capabilities:
Check if file exists
Enumerate process modules
Terminate process

Disassembly:
mov eax, 0x432f74
call fcn.004327f0
mov eax, 0x122c
call fcn.00432710
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x427cae
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x427cae
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1238]
push 0x1000
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x427b7c
or eax, 0xffffffff
jmp 0x427cb0
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 0x427c9c
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 0x427c35
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 0x427c2c
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 0x427c2c
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.0042847d
jmp 0x427c35
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
dec edi
jne 0x427bbe
cmp dword [ebp - 0x20], ebx
je 0x427c9c
mov esi, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x20]
sar esi, 2
je 0x427c9c
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 0x427c85
xor eax, eax
cmp esi, ebx
jbe 0x427c71
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + eax*4]
mov dword [edi + eax*4], ecx
inc eax
cmp eax, esi
jb 0x427c63
push dword [ebp + 0xc]
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push edi
call fcn.0043265a
pop ecx
xor edi, edi
cmp esi, ebx
jbe 0x427c9c
mov eax, dword [ebp - 0x20]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, esi
jb 0x427c8b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0042845d
pop edi
xor eax, eax
pop esi
jmp 0x427cb0
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x428281
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 0x428310
cmp dword [ebp + 0x10], esi
jbe 0x4282e2
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp + 0x14]
cmp edi, esi
je 0x4282fd
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x4282fd
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 0x428316
Capabilities:
Delete registry key
Set registry value

Disassembly:
push esi
push edi
push 2
mov edi, 0x466100
push dword [0x465f4c]
mov esi, SysReAllocString
push 4
push 0x467084
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x428349
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov al, 1
jmp 0x42834b
xor al, al
pop edi
pop esi
ret
Function at 0x42834e
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1220
call fcn.00432710
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
mov dword [ebp - 8], esi
je 0x428458
cmp dword [ebp + 8], esi
je 0x428458
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1220]
push 0x1000
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x428458
push ebx
push edi
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
shr edi, 2
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], esi
je 0x428451
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1220]
mov dword [ebp + 8], eax
jmp 0x4283ba
xor esi, esi
mov eax, dword [ebp + 8]
push dword [eax]
push esi
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x428438
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push 4
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x428435
and word [ebp - 0x220], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x220]
push 0x104
push eax
push dword [ebp - 0x10]
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x42842d
push dword [ebp + 0xc]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
je 0x42844a
push esi
call ebx
mov edi, dword [ebp - 0xc]
jmp 0x428438
push esi
call ebx
inc dword [ebp - 4]
add dword [ebp + 8], 4
cmp dword [ebp - 4], edi
jb 0x4283b8
jmp 0x428451
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop ebx
jmp 0x42845a
xor eax, eax
pop esi
leave
ret