joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a7eb3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x410], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40c], eax
xor eax, eax
push 0x60
push eax
push esi
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x408], eax
call ebx
mov edi, eax
test edi, edi
jne 0x4a7f1c
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x4a7f1c
call fcn.00436f53
mov esi, eax
jmp 0x4a7fbd
push dword [ebp - 0x40c]
push dword [ebp - 0x410]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4a7f3c
call fcn.00436f53
jmp 0x4a7fb0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4a7f35
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x4a7f62
mov esi, 0x8007000e
jmp 0x4a7fb2
push eax
lea ecx, [ebp - 0x408]
call fcn.00497c04
cmp dword [ebp - 0x408], 0
je 0x4a7f5b
push esi
push dword [ebp - 0x408]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x4a7f35
mov eax, dword [ebp - 0x408]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x418]
push dword [ebp - 0x408]
call fcn.004a7d6c
mov esi, eax
test edi, edi
je 0x4a7fbd
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x4a7fd6
lea ecx, [ebp - 0x408]
call fcn.0047f288
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3004
leave
ret 0x10
Function at 0x4a9961
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov dword [ebp - 0x14], ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 4]
call fcn.00404190
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00413a13
pop ecx
pop ecx
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004137bd
add esp, 0xc
lea ecx, [ebp - 4]
push eax
call fcn.004048f0
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.004023e0
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004023e0
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov esi, str..url
push esi
call edi
pop ecx
push eax
push esi
lea ecx, [ebp - 4]
call fcn.0040c36b
mov esi, dword [ebp - 4]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a9a84
lea eax, [ebp - 8]
push eax
call fcn.0043f82a
push ebx
call fcn.004b1619
xor edx, edx
pop ecx
inc edx
test eax, eax
pop ecx
movzx ecx, bl
cmove ecx, edx
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 4]
call fcn.00404190
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004137bd
add esp, 0xc
lea ecx, [ebp - 4]
push eax
call fcn.004048f0
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004023e0
push str..url
call edi
pop ecx
push eax
push str..url
lea ecx, [ebp - 4]
call fcn.0040c36b
mov ecx, dword [ebp - 0x14]
call fcn.004abc02
mov edi, dword [ebp - 4]
push ebx
push edi
push esi
call fcn.004b1783
test eax, eax
je 0x4a9a66
push esi
call fcn.004b1799
call fcn.0043ff8c
inc ebx
lea ecx, [edi - 0x10]
call fcn.004023e0
cmp byte [ebp - 0xc], 0
je 0x4a9a79
call fcn.004b17af
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004023e0
lea ecx, [esi - 0x10]
call fcn.004023e0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004023e0
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x4a9ae3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ecx, ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], ecx
push eax
push ecx
push 0x2001f
push ecx
push ecx
push ecx
push str.SoftwareKingsoftAntivirus
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x4a9b46
mov esi, dword [ebp - 4]
lea eax, [ebp + 8]
push 4
push eax
push 4
push 0
push str.AllowProductRecommend
push esi
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x4a9b46
push esi
call edi
xor esi, esi
and dword [ebp + 8], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
xor eax, eax
push eax
push 0x2001f
push eax
push eax
push eax
push str.SOFTWAREKingsoftAntiviruscfg
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4a9b98
test esi, esi
je 0x4a9b78
push esi
call edi
mov esi, dword [ebp + 8]
test eax, eax
jne 0x4a9b98
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push 4
push 0
push str.receive_spread_notification
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x4a9b9f
push esi
call edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4aab38
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
lea ecx, [ebp - 8]
cmp dword [ebp + 0x10], ebx
mov edi, str.SOFTWAREKingsoft_shoujizhushoucfg
mov eax, edi
mov esi, ebx
cmovne eax, dword [ebp + 0x10]
push eax
call fcn.004040f0
lea eax, [ebp - 0xc]
mov dword [ebp + 0x10], ebx
push eax
lea eax, [ebp + 0x10]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4aabab
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x4aabab
push esi
call edi
mov esi, ebx
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004023e0
test esi, esi
je 0x4aabbd
push esi
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4aabc2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
lea ecx, [ebp - 4]
cmp dword [ebp + 0x10], ebx
mov eax, str.SOFTWAREKingsoftAntiviruscfg
push esi
cmovne eax, dword [ebp + 0x10]
push edi
push eax
mov edi, ebx
call fcn.004040f0
mov esi, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], ebx
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4aac36
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push 0
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x4aac36
push edi
call ebx
xor edi, edi
lea ecx, [esi - 0x10]
call fcn.004023e0
test edi, edi
je 0x4aac45
push edi
call ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4aac4a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
lea ecx, [ebp - 4]
cmp dword [ebp + 0x10], ebx
mov eax, str.SOFTWAREKingsoftAntiviruscfg
push esi
cmovne eax, dword [ebp + 0x10]
push edi
push eax
mov edi, ebx
call fcn.004040f0
mov esi, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], ebx
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push esi
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4aacbe
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push 0
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x4aacbe
push edi
call ebx
xor edi, edi
lea ecx, [esi - 0x10]
call fcn.004023e0
test edi, edi
je 0x4aaccd
push edi
call ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4abc2b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push str.SOFTWAREkingsoftAntivirus
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
xor edi, edi
inc edi
mov dword [ebp - 8], edi
cmp dword [ebp - 4], esi
je 0x4abc81
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
push str.uninstall_flag
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmove esi, edi
cmp dword [ebp - 4], 0
je 0x4abc81
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x4ac00d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
mov esi, ecx
push edi
push eax
call fcn.0049e8ba
pop ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.004040f0
lea ecx, [ebp - 0x210]
call fcn.00411fe5
lea ecx, [ebp - 0x214]
call fcn.00404190
lea ecx, [ebp - 0x218]
call fcn.00404190
push str.kislive.exe
lea ecx, [ebp - 0x210]
call fcn.00412004
mov ecx, esi
call fcn.004a0065
push eax
lea eax, [ebp - 0x214]
push str._vip__level:_d
push eax
call fcn.0040c593
mov esi, dword [ebp - 0x214]
add esp, 0xc
mov edi, dword [ebp - 0x210]
push 1
push 0
push esi
push edi
push 0x61594c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0x218]
lea ecx, [ecx - 0x10]
call fcn.004023e0
lea ecx, [esi - 0x10]
call fcn.004023e0
lea ecx, [edi - 0x10]
call fcn.004023e0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b3004
leave
ret

Function at 0x4ac129
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x5d8]
mov ecx, dword [esi + 0x5d4]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x4ac19d
push 0xfa0
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
jne 0x4ac19d
mov eax, dword [esi + 0x5d8]
mov ecx, dword [esi + 0x5d4]
sub eax, ecx
push edi
sar eax, 2
xor edi, edi
test eax, eax
je 0x4ac196
mov eax, dword [esi + 0x5d4]
push 0
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x5d8]
inc edi
mov ecx, dword [esi + 0x5d4]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x4ac16f
mov dword [esi + 0x5d8], ecx
pop edi
pop esi
ret

Function at 0x4ae73c
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push esi
push edi
call fcn.00404190
lea eax, [ebp - 8]
push eax
call fcn.00413914
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.004048f0
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.004023e0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push dword [eax - 0xc]
push eax
call fcn.0040c36b
mov edi, dword [ebp - 4]
add ebx, 0xfffffff0
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4ae7b2
push ebx
call fcn.00404b40
pop ecx
push 5
push 0
lea esi, [eax + 0x10]
push esi
push edi
push 0x61594c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esi - 0x10]
call fcn.004023e0
lea ecx, [edi - 0x10]
call fcn.004023e0
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004023e0
mov ecx, ebx
call fcn.004023e0
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4aeca1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
lea eax, [edi + 0x140c]
push eax
lea ecx, [edi + 0x5c0]
call fcn.004a97d1
mov dword [ebp - 4], eax
test eax, eax
je 0x4aecd1
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x5d4]
call fcn.004333f3
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
lea esi, [edi + 0x1374]
mov ecx, esi
call fcn.0042f224
push 0xffffffffffffffff
mov ecx, esi
call fcn.0042f532
lea esi, [edi + 0x1a24]
mov ecx, esi
call fcn.0042f224
push 0xffffffffffffffff
mov ecx, esi
call fcn.0042f532
mov ecx, edi
call fcn.004b0f16
mov ecx, edi
call fcn.004ac129
push dword [ebp + 8]
mov ecx, edi
call fcn.00465154
pop edi
pop esi
leave
ret 4
Function at 0x4b1f6f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x104
mov edi, ecx
call fcn.004047c0
push eax
push 1
xor esi, esi
push esi
push 0x801a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, edi
test eax, eax
jns 0x4b1fa2
push esi
call fcn.00404790
xor eax, eax
jmp 0x4b1fe9
push 0xffffffffffffffff
call fcn.0040e311
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax - 0xc]
dec eax
push eax
call fcn.0040b6d0
cmp ax, 0x5c
jne 0x4b1fd3
mov eax, dword [edi]
mov ecx, edi
mov esi, dword [eax - 0xc]
dec esi
push esi
call fcn.004047c0
push esi
mov ecx, edi
call fcn.00404790
mov ecx, dword [ebp + 8]
push dword [ecx]
push str.kingsoftkvip_suserhead
push edi
call fcn.0040da34
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret 4

Function at 0x4b23cf
Capabilities:
Acquire debug privileges

Disassembly:
push 0x2c
push 0x6a1cf0
call fcn.004b3c70
xor esi, esi
mov ebx, esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], esi
xorps xmm0, xmm0
movlpd qword [ebp - 0x3c], xmm0
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x30]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4b2456
lea eax, [ebp - 0x3c]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4b2456
xor edi, edi
inc edi
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 2
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
cmovne ebx, edi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.004b2479
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b25fe
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x18], ebx
jne 0x4b268d
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x1c], eax
test eax, eax
je 0x4b268d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
call esi
push str.EnumProcessModulesEx
push dword [edi + 0x1c]
mov dword [edi + 8], eax
call esi
push str.EnumProcesses
push dword [edi + 0x1c]
mov dword [edi + 0x14], eax
call esi
push str.GetModuleBaseNameW
push dword [edi + 0x1c]
mov dword [edi], eax
call esi
push str.GetModuleFileNameExW
push dword [edi + 0x1c]
mov dword [edi + 4], eax
call esi
push str.GetProcessImageFileNameW
push dword [edi + 0x1c]
mov dword [edi + 0xc], eax
call esi
mov dword [edi + 0x10], eax
pop esi
cmp dword [edi], ebx
je 0x4b268a
cmp dword [edi + 4], ebx
je 0x4b268a
cmp dword [edi + 8], ebx
je 0x4b268a
cmp dword [edi + 0xc], ebx
je 0x4b268a
test eax, eax
je 0x4b268a
inc ebx
mov dword [edi + 0x18], ebx
mov eax, dword [edi + 0x18]
pop edi
pop ebx
ret

Function at 0x4b2693
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x65c], eax
mov dword [ebp - 0x660], ecx
mov ebx, esi
push edi
test eax, eax
je 0x4b27f0
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4b27f0
push 0x228
lea eax, [ebp - 0x654]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x658], 0x22c
lea eax, [ebp - 0x658]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4b27e5
push 0x104
lea eax, [ebp - 0x634]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push dword [ebp - 0x65c]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x4b2766
push 0x22c
lea eax, [ebp - 0x658]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x658], 0x22c
lea eax, [ebp - 0x658]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4b270e
jmp 0x4b27e3
push dword [ebp - 0x650]
mov dword [ebp - 0x65c], 1
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4b27e0
push 0x424
lea eax, [ebp - 0x428]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x42c], 0x428
lea eax, [ebp - 0x42c]
push eax
push ebx
call sub.KERNEL32.dll_Module32FirstW
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
mov ecx, dword [ebp - 0x660]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00404cd0
mov ebx, dword [ebp - 0x65c]
jmp 0x4b27e3
xor ebx, ebx
inc ebx
mov esi, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4b27f2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3004
leave
ret
Function at 0x4b28d4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4b2900
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x4b2902
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4b2905
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x58]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x58], esi
lea edi, [ebp - 0x14]
add esp, 0xc
stosd dword es:[edi], eax
lea ecx, [ebp - 4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
inc edi
mov dword [ebp - 0x2c], edi
call fcn.00404190
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push dword [ebp + 8]
push str.__s___s
push eax
call fcn.0040c593
add esp, 0x10
cmp dword [ebp + 0x14], ebx
je 0x4b295c
push 0xa
pop eax
jmp 0x4b295e
xor eax, eax
mov esi, dword [ebp - 4]
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0x1c]
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4b29ab
cmp dword [ebp + 0x10], ebx
je 0x4b29a9
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4b29a9
cmp dword [ebp + 0x18], ebx
je 0x4b29a9
push dword [ebp + 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, edi
cmp dword [ebp - 0x14], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4b29c0
push dword [ebp - 0x14]
call edi
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0
je 0x4b29cf
push dword [ebp - 0x10]
call edi
and dword [ebp - 0x10], 0
lea ecx, [esi - 0x10]
call fcn.004023e0
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4b2aaf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
xor edi, edi
lea ecx, [ebp - 8]
mov dword [ebp - 4], edi
call fcn.00404190
cmp dword [ebp - 4], edi
je 0x4b2ad1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4b2b94
mov esi, edi
mov dword [ebp - 0xc], edi
cmp dword [ebp - 4], esi
je 0x4b2b94
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push str.CurrentBuildNumber
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x10], 1
je 0x4b2b20
cmp dword [ebp - 0x10], 2
jne 0x4b2b94
lea ecx, [ebp - 8]
call fcn.004041c0
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
shr eax, 1
inc eax
push eax
call fcn.004047c0
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x14], eax
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push str.CurrentBuildNumber
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b2b67
mov eax, dword [ebp - 0xc]
xor edx, edx
mov ecx, dword [ebp - 0x14]
xor esi, esi
shr eax, 1
inc esi
mov word [ecx + eax*2], dx
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.0040e311
test esi, esi
je 0x4b2b94
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], edi
je 0x4b2b97
push 0xa
push edi
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstol]
mov ecx, dword [ebp + 8]
xor edi, edi
add esp, 0xc
inc edi
mov dword [ecx], eax
jmp 0x4b2b97
mov esi, dword [ebp - 8]
lea ecx, [esi - 0x10]
call fcn.004023e0
cmp dword [ebp - 4], 0
pop esi
je 0x4b2baf
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret
Function at 0x4b2c38
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
xor ebx, ebx
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x120]
push eax
call esi
test eax, eax
jne 0x4b2c99
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call esi
test eax, eax
je 0x4b2d49
mov eax, dword [ebp - 0x110]
sub eax, 1
je 0x4b2d34
sub eax, 1
jne 0x4b2d49
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x118]
push 6
pop edx
cmp eax, edx
jne 0x4b2ce9
cmp ecx, 1
jne 0x4b2cd6
xor ebx, ebx
cmp byte [ebp - 6], cl
setne bl
add ebx, 8
jmp 0x4b2d49
test ecx, ecx
jne 0x4b2d1c
cmp byte [ebp - 6], 1
push 9
pop ebx
push 7
pop eax
cmove ebx, eax
jmp 0x4b2d49
cmp eax, 5
jne 0x4b2d0e
mov eax, dword [ebp - 0x118]
cmp eax, 2
jne 0x4b2cfd
push 5
jmp 0x4b2d15
cmp eax, 1
jne 0x4b2d06
mov ebx, edx
jmp 0x4b2d49
test eax, eax
jne 0x4b2d49
push 3
jmp 0x4b2d15
cmp eax, 4
ja 0x4b2d18
push 4
pop ebx
jmp 0x4b2d49
cmp eax, edx
jb 0x4b2d49
cmp ecx, 2
jae 0x4b2d25
cmp eax, edx
jbe 0x4b2d49
cmp byte [ebp - 6], 1
jne 0x4b2d49
call fcn.004b2e54
mov ebx, eax
jmp 0x4b2d49
mov eax, dword [ebp - 0x114]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb ebx, ebx
add ebx, 2
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3004
leave
ret

Function at 0x4b2dc8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4b2e4e
push edi
push ebx
call fcn.004b2ff6
pop ecx
mov edi, eax
push edi
push ebx
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4b2e42
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x613008
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4b2e42
cmp dword [ebp - 8], esi
je 0x4b2e42
mov ecx, dword [ebp - 0xc]
inc esi
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
test edi, edi
je 0x4b2e4d
push edi
call fcn.004b2fff
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret