joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40425c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x18]
xor edi, edi
push eax
push 3
lea eax, [ebp - 0x28]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x28], 0x4df0c730
mov word [ebp - 0x24], 0xdf9d
mov word [ebp - 0x22], 0x4ae3
mov byte [ebp - 0x20], 0x91
mov byte [ebp - 0x1f], 0x53
mov byte [ebp - 0x1e], 0xaa
mov byte [ebp - 0x1d], 0x6b
mov byte [ebp - 0x1c], 0x82
mov byte [ebp - 0x1b], 0xe9
mov byte [ebp - 0x1a], 0x79
mov byte [ebp - 0x19], 0x5a
mov dword [ebp - 0x18], 0x8be2d872
mov word [ebp - 0x14], 0x86aa
mov word [ebp - 0x12], 0x4d47
mov byte [ebp - 0x10], 0xb7
mov byte [ebp - 0xf], 0x76
mov byte [ebp - 0xe], 0x32
mov byte [ebp - 0xd], 0xcc
mov byte [ebp - 0xc], 0xa4
mov byte [ebp - 0xb], 0xc
mov byte [ebp - 0xa], 0x70
mov byte [ebp - 9], 0x18
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x404321
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x404321
mov ecx, dword [esi + 0x18]
lea esi, [ebp - 8]
push esi
mov dword [ebp - 8], edi
mov edx, dword [eax]
push 1
push ecx
push eax
call dword [edx + 0x28]
test eax, eax
jne 0x404318
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x404318
mov ecx, dword [eax]
push 1
pop edi
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x404634
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and word [ebp - 0x420], 0
mov dword [ebp - 8], eax
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x41e]
mov ebx, 0x104
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x420]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp - 8]
lea eax, [ebp - 0x420]
add esi, 0x10
push eax
push str._s_d
push esi
call fcn.00403c5c
add esp, 0x10
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [esi]
and word [ebp - 0x214], 0
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x212]
push str._s_theworld3zip.exe
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x214]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
push 0xe4
lea eax, [ebp - 0x214]
push 0x40c2d4
push eax
call fcn.004091d6
mov eax, dword [ebp - 4]
add esp, 0x1c
push dword [esi]
lea edi, [eax + 0x14]
push str._sTheWorld_3
push edi
mov dword [ebp - 4], edi
call fcn.00403c5c
add esp, 0xc
xor esi, esi
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x62a]
mov word [ebp - 0x62c], si
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
push dword [eax]
lea eax, [ebp - 0x214]
push eax
push str._s__P_s
lea eax, [ebp - 0x62c]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
push 0xffffffffffffffff
lea eax, [ebp - 0x62c]
push esi
push eax
call fcn.00408e54
add esp, 0x20
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4050f6
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
and word [ebp - 0x208], 0
push esi
mov edx, 0x81
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x206]
and word [ebp - 0x410], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push dword [ebp + 0xc]
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40e]
push dword [ebp + 8]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x103
push str._s_s
lea eax, [ebp - 0x208]
push edi
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
push str._s.bak
lea eax, [ebp - 0x410]
push edi
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x410]
push 0
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop edi
pop esi
leave
ret 8

Function at 0x40518a
Capabilities:
Delete file
Move file

Disassembly:
push 4
push 0
push dword [ecx + 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
ret

Function at 0x405198
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10
mov eax, dword [0x40c020]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
push 0x40c0ac
lea eax, [esp + 0x14]
push 0x40c234
mov ebp, ecx
push eax
call fcn.00403c5c
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ebx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall46AA30DF_ED7B_438a_9462_60AB9A6D57E4
mov ecx, dword [eax - 8]
mov edi, 0x80000002
shl ecx, 1
push ecx
push eax
push 1
push str.DisplayName
push ebx
push edi
call esi
lea eax, [ebp + 0x18]
push 0x40ccf0
push 0x40ccec
mov dword [esp + 0x24], eax
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004059cf
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004059cf
lea ecx, [esp + 0x18]
call fcn.00404036
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
shl ecx, 1
push ecx
push eax
push 1
push str.UninstallString
push ebx
push edi
call esi
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
push str.3.6.1.1
call ebp
pop ecx
shl eax, 1
push eax
push str.3.6.1.1
push 1
push str.DisplayVersion
push ebx
push edi
call esi
push 0x40cc90
call ebp
pop ecx
shl eax, 1
push eax
push 0x40cc90
push 1
push str.Publisher
push ebx
push edi
call esi
push str.http:__www.ioage.com_tw3_index.htm
call ebp
pop ecx
shl eax, 1
push eax
push str.http:__www.ioage.com_tw3_index.htm
push 1
push str.HelpLink
push ebx
push edi
call esi
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
push eax
mov dword [esp + 0x20], eax
call ebp
pop ecx
shl eax, 1
push eax
push dword [esp + 0x20]
push 1
push str.InstallLocation
push ebx
push edi
call esi
lea ecx, [esp + 0x14]
call fcn.00404036
lea ecx, [esp + 0x10]
call fcn.00404036
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4052be
Capabilities:
Persist via app paths registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
add ecx, 0x18
push edi
push ecx
lea ecx, [ebp - 4]
call fcn.004058cf
lea eax, [ebp - 4]
push 0x40ca38
push eax
lea eax, [ebp - 8]
push eax
call fcn.004059cf
mov eax, dword [ebp - 8]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ebx, str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsTheWorld.exe
mov edi, 0x80000002
mov ecx, dword [eax - 8]
shl ecx, 1
push ecx
push eax
push 1
push 0x40d820
push ebx
push edi
call esi
mov eax, dword [ebp - 4]
mov ecx, dword [eax - 8]
shl ecx, 1
push ecx
push eax
push 1
push str.Path
push ebx
push edi
call esi
lea ecx, [ebp - 8]
call fcn.00404036
lea ecx, [ebp - 4]
call fcn.00404036
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405b67
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x405aa2
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x40607a
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [ecx + 4]
call fcn.0040101c
mov ecx, eax
call fcn.004013b9
add eax, 0x20
push esi
mov ecx, eax
call fcn.0040628e
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4060a9
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 0x10

Function at 0x406910
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
mov word [ebp - 0x20c], bx
push 0x3f7
push dword [esi + 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x20c]
push 0x103
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x20c]
push 0x40d504
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
pop ecx
test eax, eax
pop ecx
jne 0x406981
push ebx
push 0x40d4f4
push 0x40d4dc
push dword [esi + 4]
jmp 0x4069ab
lea eax, [ebp - 0x20c]
push eax
call fcn.004093f6
lea eax, [ebp - 0x20c]
push eax
call fcn.0040947a
pop ecx
test al, al
pop ecx
jne 0x4069b6
push ebx
push 0x40cbe8
push 0x40d4a0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x406a71
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
dec eax
cmp word [ebp + eax*2 - 0x20c], 0x5c
pop ecx
lea eax, [ebp + eax*2 - 0x20c]
jne 0x4069da
mov word [eax], bx
lea eax, [ebp - 0x20c]
push eax
call fcn.00404225
mov ecx, eax
call fcn.00406a7a
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
mov ebx, 0xf0
push ebx
push dword [esi + 0x19c]
call edi
mov dword [ebp - 4], eax
call fcn.00404225
mov ecx, dword [ebp - 4]
push 0
push 0
push ebx
mov dword [eax + 0x44], ecx
push dword [esi + 0x1a4]
call edi
mov dword [ebp - 4], eax
call fcn.00404225
mov ecx, dword [ebp - 4]
push 0
push 0
push ebx
mov dword [eax + 0x48], ecx
push dword [esi + 0x1ac]
call edi
mov edi, eax
call fcn.00404225
mov dword [eax + 0x40], edi
mov esi, dword [esi + 4]
call fcn.0040101c
mov ecx, eax
call fcn.004013b9
add eax, 0x20
push esi
mov ecx, eax
call fcn.0040628e
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406a71
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x406b50
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00404225
mov edi, dword [eax + 8]
call fcn.004080e9
test edi, edi
je 0x406b9f
mov esi, dword [esi + 4]
cmp edi, 3
je 0x406b86
call fcn.0040101c
mov ecx, eax
call fcn.00401b43
add eax, 0x20
push esi
mov ecx, eax
call fcn.00406ddb
jmp 0x406bb9
call fcn.0040101c
mov ecx, eax
call fcn.00401d58
add eax, 0x20
push esi
mov ecx, eax
call fcn.00406e37
jmp 0x406bb9
mov esi, dword [esi + 4]
call fcn.0040101c
mov ecx, eax
call fcn.00401053
add eax, 0x20
push esi
mov ecx, eax
call fcn.00406ddb
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406bcd
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x406be7
Capabilities:
Get disk size
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x40c020]
and word [ebp - 0x448], 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], eax
push 0x3f7
mov ecx, 0x82
push dword [esi + 4]
xor eax, eax
lea edi, [ebp - 0x446]
rep stosd dword es:[edi], eax
call ebx
lea ecx, [ebp - 0x448]
push 0x104
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x448]
test eax, eax
je 0x406c4e
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x448]
push ecx
push eax
lea ecx, [ebp - 4]
call fcn.00405965
xor edi, edi
lea ecx, [ebp - 4]
push edi
push 0x40d504
call fcn.00406ef3
cmp eax, edi
jle 0x406dce
add eax, 2
lea ecx, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.00406e93
mov dword [ebp - 0x24], edi
xor eax, eax
and dword [ebp - 0x1c], eax
lea edi, [ebp - 0x20]
and dword [ebp - 0x14], eax
stosd dword es:[edi], eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x406d8b
mov eax, dword [0x40c020]
mov edx, dword [ebp - 0x10]
push 0x14
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
pop ecx
call fcn.00409710
push eax
push 3
lea eax, [ebp - 8]
push 0x40d540
push eax
call fcn.00403c5c
add esp, 0x10
push dword [ebp - 8]
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_SetWindowTextW]
and word [ebp - 0x23c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x23a]
rep stosd dword es:[edi], eax
push 0x3f7
push dword [esi + 4]
stosw word es:[edi], ax
call ebx
lea ecx, [ebp - 0x23c]
push 0x103
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x23c]
lea edi, [esi + 0x1b8]
test eax, eax
je 0x406d47
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x23c]
push ecx
push eax
mov ecx, edi
call fcn.00405965
lea eax, [ebp - 0x34]
push 1
push eax
mov dword [ebp - 0x34], 0x90
push dword [esi + 4]
mov dword [ebp - 0x30], 0x8c
mov dword [ebp - 0x2c], 0x1bc
mov dword [ebp - 0x28], 0xa6
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [ebp - 8]
call fcn.00404036
jmp 0x406dc6
push 0
push dword [0x40d76c]
push 0x40d528
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, dword [esi + 0x1b8]
push 0x3f7
push dword [esi + 4]
call ebx
push edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 1
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [ebp - 0xc]
call fcn.00404036
lea ecx, [ebp - 4]
call fcn.00404036
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4071c4
Capabilities:
Hide graphical window

Disassembly:
push esi
push 0
push 0
mov esi, ecx
push 0x3403
call fcn.00405b81
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x407242
Capabilities:
Hide graphical window

Disassembly:
push esi
push 0
push 0
mov esi, ecx
push 0x3403
call fcn.00405b81
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 0x10

Function at 0x40726b
Capabilities:
Hide graphical window

Disassembly:
push esi
push 0
push 1
mov esi, ecx
push 0x3403
call fcn.00405b81
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 0x10

Function at 0x40749f
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 1
push esi
mov esi, ecx
jne 0x40753a
cmp dword [esi + 0xd4], 0xffffffff
push edi
lea edi, [esi + 0xd4]
jne 0x4074c2
call fcn.0040742a
mov eax, dword [esi + 0xd8]
cmp eax, dword [edi]
pop edi
jge 0x4074e0
inc eax
lea ecx, [esi + 0xa8]
push eax
mov dword [esi + 0xd8], eax
call fcn.0040886f
cmp dword [esi + 0xd8], 0x64
jl 0x40753a
push 0x64
lea ecx, [esi + 0xa8]
call fcn.0040886f
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [esi + 4]
call fcn.0040101c
mov ecx, eax
call fcn.00401643
add eax, 0x20
push esi
mov ecx, eax
call fcn.0040754d
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40753a
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 4

Function at 0x407a16
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 4]
call fcn.0040101c
mov ecx, eax
call fcn.004013b9
add eax, 0x20
push esi
mov ecx, eax
call fcn.0040628e
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x407a48
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0xf0
push dword [edi + 0x10c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
call fcn.00404225
mov dword [eax + 0x40], esi
pop edi
xor eax, eax
pop esi
ret 0x10

Function at 0x407fc1
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
call fcn.00404225
mov ecx, eax
call fcn.00405566
test eax, eax
jne 0x407ff3
push edi
push eax
push eax
push 0xf0
push dword [esi + 0xe0]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
call fcn.00404225
mov dword [eax + 0x40], edi
pop edi
mov esi, dword [esi + 4]
call fcn.0040101c
mov ecx, eax
call fcn.004013b9
add eax, 0x20
push esi
mov ecx, eax
call fcn.0040628e
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x408021
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 0x10

Function at 0x408027
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [ecx + 4]
call fcn.0040101c
mov ecx, eax
call fcn.00401868
add eax, 0x20
push esi
mov ecx, eax
call fcn.00406ddb
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x408056
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 0x10
Function at 0x408934
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, 0x40995c
call fcn.004098c0
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 0x40a424
push 1
push ebx
push 0x40a434
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x408a11
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 0x4089e7
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 0x40a444
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x408a11
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 0x408a11
push 1
pop esi
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x408a21
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x408a32
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 0x408b21
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x40d670]
push esi
cmp eax, 0xffffffff
jne 0x408c81
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 [0x40d670], 0xfffffc18
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
je 0x408c7c
cmp dword [ebp - 0x104], 2
jne 0x408c7c
cmp dword [ebp - 0x110], 5
jne 0x408c11
cmp dword [ebp - 0x10c], 0
jne 0x408b9b
push 1
jmp 0x408c74
cmp dword [ebp - 0x10c], 1
jne 0x408c04
mov esi, dword [sym.imp.MSVCRT.dll__wcsnicmp]
lea eax, [ebp - 0x100]
push 0x7f
push eax
push str.Service_Pack_1
call esi
add esp, 0xc
test eax, eax
jne 0x408bc8
push 3
jmp 0x408c74
lea eax, [ebp - 0x100]
push 0x7f
push eax
push str.Service_Pack_2
call esi
add esp, 0xc
test eax, eax
jne 0x408be6
push 4
jmp 0x408c74
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 0x408c75
cmp dword [ebp - 0x10c], 2
jne 0x408c7c
push 6
jmp 0x408c74
cmp dword [ebp - 0x110], 6
jne 0x408c69
cmp dword [ebp - 0x10c], 0
jne 0x408c60
mov esi, dword [sym.imp.MSVCRT.dll__wcsnicmp]
lea eax, [ebp - 0x100]
push 0x7f
push eax
push str.Service_Pack_1
call esi
add esp, 0xc
test eax, eax
jne 0x408c44
push 8
jmp 0x408c74
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 0x408c75
cmp dword [ebp - 0x10c], 1
jmp 0x408c70
cmp dword [ebp - 0x110], 7
jne 0x408c7c
push 9
pop eax
mov dword [0x40d670], eax
jmp 0x408c81
mov eax, dword [0x40d670]
pop esi
leave
ret
Function at 0x408c84
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
mov eax, 0x40998c
call fcn.004098c0
mov eax, 0x1434
call fcn.004096e0
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x408d0b
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 0x408cd4
push str._s
jmp 0x408cd9
push 0x40d6e0
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 0x408d13
or eax, 0xffffffff
jmp 0x408e45
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 0x408e36
lea esi, [ebp - 0x1440]
mov edi, edx
push dword [esi]
push ebx
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x408dcc
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 0x408dc3
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 0x408dc3
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.00408ef0
jmp 0x408dcc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
dec edi
jne 0x408d53
cmp dword [ebp - 0x20], ebx
je 0x408e36
mov esi, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x20]
sar esi, 2
je 0x408e36
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 0x408e1f
xor eax, eax
cmp esi, ebx
jbe 0x408e08
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + eax*4]
mov dword [edi + eax*4], ecx
inc eax
cmp eax, esi
jb 0x408dfa
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.00409672
pop ecx
xor edi, edi
cmp esi, ebx
jbe 0x408e36
mov eax, dword [ebp - 0x20]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, esi
jb 0x408e25
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00408ed0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret