joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405740
Capabilities:
Create process on windows
Generate random numbers via winapi
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004024d0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405858
lea edx, [ebp - 0x47c]
push edx
push 0
push 0
push 0x20
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 2
push 5
lea eax, [ebp - 0x18]
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x47c]
push edx
push str._s_S.exe
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x274]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x405802
mov dword [ebp - 0x10], 0
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4000
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x44
push 0
lea eax, [ebp - 0x6c]
push eax
call fcn.00401940
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x28]
push ecx
call fcn.00401940
add esp, 0xc
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x274]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esp, ebp
pop ebp
ret
Function at 0x405860
Capabilities:
Delete file
Delete registry key
Persist via run registry key
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x1388
mov eax, dword [0x407b68]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40588d
push 1
mov ecx, dword [0x407b68]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x1388
mov edx, dword [0x407b64]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4058b4
push 1
mov eax, dword [0x407b64]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x1388
mov ecx, dword [0x407b60]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4058dc
push 1
mov edx, dword [0x407b60]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x4072b0]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
push 0x1388
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x405911
push 1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.SoftwareResilience_Software
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], eax
push str..DEFAULTSOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], eax
push 0x407700
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0xc], eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4010d5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a004]
jne 0x4010df
repz ret
jmp fcn.00403bbf

Function at 0x40b2ed
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004065c0
and dword [ebp - 4], 0
cmp dword [0x41f73c], 0
mov ebx, eax
jne 0x40b39e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b44f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b44f
push eax
call fcn.0040654e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41f73c], eax
call esi
push eax
call fcn.0040654e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41f740], eax
call esi
push eax
call fcn.0040654e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41f744], eax
call esi
push eax
call fcn.0040654e
pop ecx
mov dword [0x41f74c], eax
test eax, eax
je 0x40b39e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040654e
pop ecx
mov dword [0x41f748], eax
mov eax, dword [0x41f748]
cmp eax, ebx
je 0x40b3f6
cmp dword [0x41f74c], ebx
je 0x40b3f6
push eax
call fcn.004065c9
push dword [0x41f74c]
mov esi, eax
call fcn.004065c9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b3f6
test edi, edi
je 0x40b3f6
call esi
test eax, eax
je 0x40b3ed
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b3ed
test byte [ebp - 0xc], 1
jne 0x40b3f6
or dword [ebp + 0x10], 0x200000
jmp 0x40b42f
mov eax, dword [0x41f740]
cmp eax, ebx
je 0x40b42f
push eax
call fcn.004065c9
pop ecx
test eax, eax
je 0x40b42f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b42f
mov eax, dword [0x41f744]
cmp eax, ebx
je 0x40b42f
push eax
call fcn.004065c9
pop ecx
test eax, eax
je 0x40b42f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41f73c]
call fcn.004065c9
pop ecx
test eax, eax
je 0x40b44f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b451
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d530
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1868
call fcn.0040ace0
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x101c], 0
push 0x44
push 0
lea eax, [ebp - 0x1868]
push eax
call fcn.004010f0
add esp, 0xc
mov dword [ebp - 0x1868], 0x44
mov dword [ebp - 0x183c], 1
mov ecx, 1
mov word [ebp - 0x1838], cx
push str.WinSta0default
lea edx, [ebp - 0x1820]
push edx
call fcn.00401198
add esp, 8
lea eax, [ebp - 0x1820]
mov dword [ebp - 0x1860], eax
cmp dword [ebp + 0xc], 0
je 0x40d5e4
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x1018]
push edx
call fcn.00401198
add esp, 8
push 0x4175ac
lea eax, [ebp - 0x1018]
push eax
call fcn.0040116a
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x1018]
push edx
call fcn.0040116a
add esp, 8
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1868]
push ecx
push 0
push 0
push 0x20
push 1
push 0
push 0
mov edx, dword [ebp + 0xc]
neg edx
sbb edx, edx
lea eax, [ebp - 0x1018]
and edx, eax
push edx
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40d643
push 0xffffffffffffffff
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x101c], 1
mov eax, dword [ebp - 0x101c]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004010d5
mov esp, ebp
pop ebp
ret

Function at 0x40e210
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3010
call fcn.0040ace0
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x2010]
mov dword [ebp - 4], eax
push 0xd000
push 0
push 0x431538
call fcn.004010f0
add esp, 0xc
lea ecx, [ebp - 0x2010]
push ecx
push 0x2000
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x40e2ed
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
je 0x40e2ed
mov ecx, dword [ebp - 4]
push ecx
call fcn.00402ca5
add esp, 4
mov dword [ebp - 8], eax
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax + 4], dx
mov ecx, dword [ebp - 4]
push ecx
call fcn.004030f8
add esp, 4
push 0x7ff
lea edx, [ebp - 0x3010]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40e2db
lea ecx, [ebp - 0x3010]
push ecx
call fcn.004030f8
add esp, 4
lea edx, [ebp - 0x3010]
push edx
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
sub ecx, 0x41
shl ecx, 0xb
add ecx, 0x431538
push ecx
call fcn.00401198
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx*2 + 2]
mov dword [ebp - 4], ecx
jmp 0x40e25e
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004010d5
mov esp, ebp
pop ebp
ret
Function at 0x40e810
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
jmp 0x40e82f
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jge 0x40e8c7
mov edx, dword [ebp - 8]
imul edx, edx, 0x78
mov eax, dword [ebp + 8]
cmp dword [eax + edx + 0x74], 0
je 0x40e8c2
push 0x10
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0x78
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x64]
push eax
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0x78
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx + 0x74]
push eax
call fcn.00401625
add esp, 0xc
test eax, eax
je 0x40e8c2
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push 0x10
mov edx, dword [ebp - 8]
imul edx, edx, 0x78
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx + 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40e8c2
push 0x10
mov edx, dword [ebp - 8]
imul edx, edx, 0x78
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0x64]
push ecx
mov edx, dword [ebp - 8]
imul edx, edx, 0x78
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx + 0x74]
push ecx
call fcn.004012c0
add esp, 0xc
jmp 0x40e826
mov esp, ebp
pop ebp
ret
Function at 0x40ff20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040d430
add esp, 0xc
test eax, eax
jne 0x40ff7d
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ff73
mov dword [ebp - 8], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x40ff90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040d430
add esp, 0xc
test eax, eax
jne 0x410043
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410039
mov ecx, dword [ebp - 0xc]
add ecx, 4
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004033d9
add esp, 4
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp + 0x14]
cmp dword [edx], 0
je 0x410039
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41002b
mov dword [ebp - 8], 1
jmp 0x410039
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
call fcn.00402dfe
add esp, 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x410050
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040d400
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41009c
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x410760
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.0040e210
push str.NTDLL.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
push str.ZwQueryInformationProcess
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x43e548], eax
push str.ZwQuerySystemInformation
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x43e54c], eax
push str.ZwQueryInformationThread
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x43e540], eax
push str.ZwQueryObject
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x43e544], eax
push str.ZwOpenProcess
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x43e53c], eax
push str.ZwTerminateProcess
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x43e538], eax
push str.Psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x410819
push str.GetProcessImageFileNameW
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x445b34], eax
mov esp, ebp
pop ebp
ret
Function at 0x410a80
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.0040ace0
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x2014], 0
call fcn.0040d490
push str.SoftwareMicrosoftWindowsCurrentVersionPolicies_
lea eax, [ebp - 0x2010]
push eax
call fcn.00401198
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x2010]
push edx
call fcn.0040116a
add esp, 8
cmp dword [ebp - 4], 0
je 0x410bb9
push 0x400
lea eax, [ebp - 0x1008]
push eax
mov ecx, dword [ebp - 0x2014]
push ecx
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x410bb9
push str.Classes
lea edx, [ebp - 0x1008]
push edx
call fcn.004010c0
add esp, 8
test eax, eax
jne 0x410ba5
lea eax, [ebp - 0x1008]
push eax
lea ecx, [ebp - 0x2010]
push ecx
call fcn.00401198
add esp, 8
push 0x4180b4
lea edx, [ebp - 0x2010]
push edx
call fcn.0040116a
add esp, 8
push str.SoftwareMicrosoftWindowsCurrentVersionPolicies_
lea eax, [ebp - 0x2010]
push eax
call fcn.0040116a
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x2010]
push edx
call fcn.0040116a
add esp, 8
lea eax, [ebp - 0x100c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x2010]
push edx
push 0x80000003
call fcn.0040ff20
add esp, 0x10
test eax, eax
je 0x410ba5
mov eax, dword [ebp - 0x100c]
xor ecx, ecx
cmp eax, dword [ebp + 0x10]
sete cl
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x2014]
add edx, 1
mov dword [ebp - 0x2014], edx
jmp 0x410ad4
push str.SoftwareMicrosoftWindowsCurrentVersionPolicies_
lea eax, [ebp - 0x2010]
push eax
call fcn.00401198
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x2010]
push edx
call fcn.0040116a
add esp, 8
lea eax, [ebp - 0x100c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x2010]
push edx
push 0x80000001
call fcn.0040ff20
add esp, 0x10
test eax, eax
je 0x410c14
mov eax, dword [ebp - 0x100c]
xor ecx, ecx
cmp eax, dword [ebp + 0x10]
sete cl
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004010d5
mov esp, ebp
pop ebp
ret
Function at 0x411c20
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1248
call fcn.0040ace0
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x100c], eax
mov dword [ebp - 0x1248], 0x22c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x1014], eax
cmp dword [ebp + 0xc], 0
je 0x411c73
mov dword [0x4313a4], 0
cmp dword [ebp - 0x1014], 0xffffffff
je 0x411d86
lea eax, [ebp - 0x1248]
push eax
mov ecx, dword [ebp - 0x1014]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x411d79
cmp dword [ebp - 0x1240], 0
je 0x411d5e
cmp dword [ebp - 0x1240], 0
jbe 0x411d5e
mov edx, dword [ebp - 0x1240]
cmp edx, dword [ebp - 0x100c]
je 0x411d5e
mov eax, dword [ebp - 0x1240]
push eax
push 0x410
call fcn.0040df30
add esp, 8
mov dword [ebp - 0x1010], eax
cmp dword [ebp - 0x1010], 0
je 0x411d51
mov ecx, dword [ebp - 0x1240]
push ecx
push 0x800
lea edx, [ebp - 0x1008]
push edx
mov eax, dword [ebp - 0x1010]
push eax
call fcn.00410670
add esp, 0x10
test eax, eax
je 0x411d51
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x1008]
push edx
call fcn.004032f7
add esp, 8
test eax, eax
jne 0x411d51
cmp dword [0x4313a4], 0x64
jge 0x411d51
mov eax, dword [0x4313a4]
mov ecx, dword [ebp - 0x1240]
mov dword [eax*4 + 0x4313a8], ecx
mov edx, dword [0x4313a4]
add edx, 1
mov dword [0x4313a4], edx
mov eax, dword [ebp - 0x1010]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1248]
push ecx
mov edx, dword [ebp - 0x1014]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x411c9b
mov eax, dword [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4313a4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004010d5
mov esp, ebp
pop ebp
ret
Function at 0x411e90
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.0040ace0
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x2014], 0
call fcn.0040d490
push str.SoftwareMicrosoftWindowsCurrentVersionPolicies_
lea eax, [ebp - 0x2010]
push eax
call fcn.00401198
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x2010]
push edx
call fcn.0040116a
add esp, 8
push 0x400
lea eax, [ebp - 0x1008]
push eax
mov ecx, dword [ebp - 0x2014]
push ecx
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x411ffe
push 0x4180b8
lea edx, [ebp - 0x1008]
push edx
call fcn.004010c0
add esp, 8
test eax, eax
jne 0x411fea
lea eax, [ebp - 0x1008]
push eax
lea ecx, [ebp - 0x2010]
push ecx
call fcn.00401198
add esp, 8
push 0x4180c8
lea edx, [ebp - 0x2010]
push edx
call fcn.0040116a
add esp, 8
push str.SoftwareMicrosoftWindowsCurrentVersionPolicies_
lea eax, [ebp - 0x2010]
push eax
call fcn.0040116a
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x2010]
push edx
call fcn.0040116a
add esp, 8
lea eax, [ebp - 0x100c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x2010]
push edx
push 0x80000003
call fcn.0040ff20
add esp, 0x10
test eax, eax
je 0x411fea
mov eax, dword [ebp - 0x100c]
cmp eax, dword [ebp + 0x10]
je 0x411fea
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x2010]
push eax
push 0x80000003
call fcn.00411b80
add esp, 0x10
test eax, eax
je 0x411fd7
cmp dword [ebp - 4], 0
je 0x411fd7
mov dword [ebp - 0x2018], 1
jmp 0x411fe1
mov dword [ebp - 0x2018], 0
mov ecx, dword [ebp - 0x2018]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x2014]
add edx, 1
mov dword [ebp - 0x2014], edx
jmp 0x411ee4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004010d5
mov esp, ebp
pop ebp
ret
Function at 0x413990
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3014
call fcn.0040ace0
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x100c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040d430
add esp, 0xc
test eax, eax
jne 0x413a73
mov dword [ebp - 0x1010], 0x1000
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x3010]
push ecx
lea edx, [ebp - 0x3014]
push edx
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x100c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413a66
lea edx, [ebp - 0x3010]
push edx
call fcn.004030f8
add esp, 4
lea eax, [ebp - 0x1008]
push eax
lea ecx, [ebp - 0x3010]
push ecx
call fcn.0040f990
add esp, 8
test eax, eax
je 0x413a66
movzx edx, word [ebp - 0x3010]
test edx, edx
je 0x413a4e
push 1
push 1
lea eax, [ebp - 0x2010]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x3010]
push edx
call fcn.00413360
add esp, 0x14
lea eax, [ebp - 0x1008]
push eax
lea ecx, [ebp - 0x3010]
push ecx
call fcn.00401198
add esp, 8
jmp 0x413a0b
mov edx, dword [ebp - 0x100c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004010d5
mov esp, ebp
pop ebp
ret
Function at 0x401a18
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.004017a1
or byte [edx + 0x458d40f9], bh
test al, 0x50
call fcn.004017b1
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00401766
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x401a8f
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.004017a1
invalid

Function at 0x404966
Capabilities:
Terminate process

Disassembly:
mov dword [0x406fa0], 1
cmp dword [esp + 8], 0
push ebx
push esi
mov ebx, dword [esp + 0x14]
mov byte [0x406f9c], bl
jne 0x4049c2
cmp dword [0x406508], 0
je 0x4049b0
mov esi, dword [0x406500]
sub esi, 4
cmp dword [0x406508], esi
ja 0x4049b0
mov eax, dword [esi]
test eax, eax
je 0x4049a5
call eax
sub esi, 4
cmp dword [0x406508], esi
jbe 0x40499d
push 0x406018
push 0x406014
call fcn.004049e5
add esp, 8
push 0x406020
push 0x40601c
call fcn.004049e5
add esp, 8
test ebx, ebx
jne 0x4049e2
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebx
ret