joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ae40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x40ae50
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40ae60
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40b370
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x4a5584]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x40b3ea
xor eax, eax
cmp ecx, ebp
je 0x40b3d2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x40b3f8
cmp ecx, ebp
je 0x40b48b
push ecx
jmp 0x40b485
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x40b45a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.0040b370
mov ebx, eax
cmp ebx, ebp
jne 0x40b4a8
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x40b420
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40b46d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.0040b500
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40b48b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00451a7d
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x40b4b7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40b48d
Function at 0x40bf80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x487820
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4a5584]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x40bfff
call fcn.0040a760
mov esi, eax
jmp 0x40c0e1
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x40c01b
call fcn.0040a760
jmp 0x40c0d8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x40c034
call fcn.0040a760
jmp 0x40c0d8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x40c068
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x40c056
lea eax, [ebp]
call fcn.0040aeb0
lea esi, [ebp - 0x1c]
call fcn.0040ae90
mov eax, 0x8007000e
jmp 0x40c0f3
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.0040a720
mov dword [ebp - 4], 1
jmp 0x40c091
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x40c09f
mov esi, 0x8007000e
jmp 0x40c0da
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x40c0bd
call fcn.0040a760
jmp 0x40c0d8
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.0040be30
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x40c0f1
lea eax, [ebp]
call fcn.0040aeb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00451a7d
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40cb50
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
sub esp, 0x244
mov eax, dword [0x4a5584]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
push esi
push edi
push 0
mov edi, ecx
push 2
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
je 0x40cbbc
push 0x228
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00458270
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push esi
mov dword [esp + 0x24], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40cbc3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40cca9
mov esi, dword [edi + 0xc]
cmp esi, dword [edi + 0x10]
jbe 0x40cbd0
call fcn.00452c03
mov ebx, dword [edi]
mov ebp, esi
mov esi, dword [edi + 0x10]
cmp dword [edi + 0xc], esi
jbe 0x40cbe1
call fcn.00452c03
mov eax, dword [edi]
test ebx, ebx
je 0x40cbeb
cmp ebx, eax
je 0x40cbf0
call fcn.00452c03
cmp ebp, esi
je 0x40cc83
test ebx, ebx
jne 0x40cc7b
call fcn.00452c03
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x40cc0d
call fcn.00452c03
mov eax, dword [ebp]
lea edx, [esp + 0x40]
push edx
push eax
call fcn.00451dd7
add esp, 8
test eax, eax
jne 0x40cc5e
mov esi, dword [esp + 0x24]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, esi
je 0x40cc56
push esi
push edi
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40cc56
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x18]
test ebx, ebx
jne 0x40cc7f
call fcn.00452c03
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x40cc73
call fcn.00452c03
add ebp, 4
jmp 0x40cbd4
mov eax, dword [ebx]
jmp 0x40cc03
mov eax, dword [ebx]
jmp 0x40cc69
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40cbc3
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x250]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00451a7d
add esp, 0x244
ret
Function at 0x40d0c0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x4010
call fcn.0046ad70
mov eax, dword [0x4a5584]
xor eax, esp
mov dword [esp + 0x400c], eax
xor eax, eax
push 0x3ffe
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.00458270
add esp, 0xc
mov dword [esp + 4], 0
test esi, esi
je 0x40d1a1
test edi, edi
je 0x40d1a1
lea edx, [esp + 4]
push edx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x40d1a1
cmp eax, 0x3fff
ja 0x40d1a1
lea ecx, [esp + 0xc]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40d1a1
lea edx, [esp + 8]
push edx
lea eax, [esp + 4]
push eax
push 0x4944dc
lea ecx, [esp + 0x18]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40d1a1
push 0x208
push 0
push edi
call fcn.00458270
mov eax, dword [esp + 0xc]
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push edx
push eax
push 0x4987f4
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
mov eax, 1
mov ecx, dword [esp + 0x400c]
xor ecx, esp
call fcn.00451a7d
add esp, 0x4010
ret
mov ecx, dword [esp + 0x400c]
xor ecx, esp
xor eax, eax
call fcn.00451a7d
add esp, 0x4010
ret

Function at 0x40d260
Capabilities:
Check os version

Disassembly:
sub esp, 0x144
mov eax, dword [0x4a5584]
xor eax, esp
mov dword [esp + 0x140], eax
mov eax, dword [0x4a7400]
test eax, eax
jl 0x40d29b
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00451a7d
add esp, 0x144
ret
xor eax, eax
push esi
push 0x11c
push eax
lea edx, [esp + 0x30]
push edx
mov dword [0x4a7400], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.00458270
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0x11c
call esi
test eax, eax
jne 0x40d30b
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x114
call esi
test eax, eax
je 0x40d35d
push str.GetNativeSystemInfo
push 0x498858
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d35d
lea edx, [esp + 4]
push edx
call eax
mov eax, dword [esp + 4]
cmp ax, 9
je 0x40d33d
cmp ax, 6
jne 0x40d35d
mov eax, 1
mov dword [0x4a7400], eax
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00451a7d
add esp, 0x144
ret
mov ecx, dword [esp + 0x144]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00451a7d
add esp, 0x144
ret
Function at 0x40d380
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
lea eax, [esp + 0xc]
push eax
push 0x28
mov dword [esp + 0x14], 0
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push eax
call edi
test eax, eax
je 0x40d3f3
lea ecx, [esp + 0x14]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40d3e8
mov eax, dword [esp + 0xc]
push 0
push 0
push 0x10
lea edx, [esp + 0x1c]
push edx
push 0
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
call fcn.0040cb50
lea edx, [esp + 0xc]
push edx
push 0x28
mov ebp, eax
mov dword [esp + 0x14], 0
call esi
push eax
call edi
test eax, eax
je 0x40d45f
lea eax, [esp + 0x14]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40d454
mov edx, dword [esp + 0xc]
push 0
push 0
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push 0
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x14
ret

Function at 0x40f700
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4a5584]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
mov dword [esp + 0xc], 0x114
call fcn.00458270
add esp, 0xc
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40f75f
cmp dword [esp + 4], 6
jb 0x40f75f
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00451a7d
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.00451a7d
add esp, 0x118
ret
Function at 0x4127d0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 4]
push 0x7d0
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esi + 0x118]
call fcn.00407d60
call fcn.00416390
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop esi
ret
Function at 0x415c80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x486900
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4a5584]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x5e0]
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x14], 1
push esi
mov edi, ebx
mov dword [esp + 0x34], 0
call fcn.00415f30
test eax, eax
je 0x415cfd
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [0x4a8404]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a8404
call eax
mov edx, dword [0x4a8404]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4a8404
call eax
mov edx, dword [0x4a8404]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4a8404
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, esi
lea edi, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.00403f60
mov eax, dword [ebp + 0xc]
lea edi, [esp + 0x1c]
call fcn.00403f60
mov eax, dword [ebp + 0x10]
lea edi, [esp + 0x20]
call fcn.00403f60
mov esi, dword [ebx + 0x5d8]
mov edx, dword [esi + 4]
add ebx, 0x5c4
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
call fcn.00417c60
mov ecx, ebx
mov edi, eax
call fcn.00417d00
mov ecx, dword [ebp + 8]
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
push 0
mov dword [eax], edi
mov edx, dword [ecx + 0x600]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
lea esi, [esp + 0x18]
call fcn.00415de0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x416330
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x5fc], eax
test eax, eax
jne 0x41634b
xor eax, eax
ret
push 0
push 0x7fffffff
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [esi + 0x600], eax
test eax, eax
je 0x416348
push 0
push 0
push esi
push 0x416050
push 0
push 0
call fcn.00454b36
xor ecx, ecx
add esp, 0x18
test eax, eax
setne cl
mov dword [esi + 0x5f8], eax
mov eax, ecx
ret
Function at 0x416390
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 0x5fc]
test eax, eax
je 0x4163a1
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x5f8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4163e7
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4163d4
mov eax, dword [esi + 0x5f8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x5f8]
push ecx
call edi
mov dword [esi + 0x5f8], 0
mov eax, dword [esi + 0x5fc]
test eax, eax
je 0x4163fe
push eax
call edi
mov dword [esi + 0x5fc], 0
mov eax, dword [esi + 0x600]
test eax, eax
je 0x416415
push eax
call edi
mov dword [esi + 0x600], 0
pop edi
ret

Function at 0x418990
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x486f33
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4a5584]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x18], 0
mov dword [ebx], vtable.mf_bind_t_1_class_CMainWnd__class_CMainWnd___void__struct__INSTALL_ITEM_.0
mov eax, dword [0x4a8404]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a8404
lea esi, [ebx + 0x14]
call edx
add eax, 0x10
mov dword [esi], eax
mov eax, dword [0x4a8404]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a8404
call edx
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [0x4a8404]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a8404
call edx
add eax, 0x10
mov dword [esi + 8], eax
mov edx, dword [esp + 0x24]
mov byte [esp + 0x18], 1
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [ebx + 8], eax
lea eax, [esp + 0x28]
mov edi, esi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], edx
call fcn.00403f60
lea edi, [esi + 4]
lea eax, [esp + 0x2c]
call fcn.00403f60
lea edi, [esi + 8]
lea eax, [esp + 0x30]
call fcn.00403f60
lea esi, [esp + 0x28]
call fcn.00415de0
mov eax, ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x1c
Function at 0x418b40
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x486f33
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4a5584]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x18], 0
mov dword [ebx], vtable.mf_bind_t_2_class_CMainWnd__class_CMainWnd___void__struct__INSTALL_ITEM__int_.0
mov eax, dword [0x4a8404]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a8404
lea esi, [ebx + 0x14]
call edx
add eax, 0x10
mov dword [esi], eax
mov eax, dword [0x4a8404]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a8404
call edx
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [0x4a8404]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a8404
call edx
add eax, 0x10
mov dword [esi + 8], eax
mov edx, dword [esp + 0x24]
mov byte [esp + 0x18], 1
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [ebx + 8], eax
lea eax, [esp + 0x28]
mov edi, esi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], edx
call fcn.00403f60
lea edi, [esi + 4]
lea eax, [esp + 0x2c]
call fcn.00403f60
lea edi, [esi + 8]
lea eax, [esp + 0x30]
call fcn.00403f60
mov eax, dword [esp + 0x34]
lea esi, [esp + 0x28]
mov dword [ebx + 0x20], eax
call fcn.00415de0
mov eax, ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x20
Function at 0x41e150
Capabilities:
Check os version

Disassembly:
sub esp, 0x38
push ebp
push esi
xor esi, esi
push edi
cmp dword [0x4a9f6c], esi
je 0x41e169
xor al, al
pop edi
pop esi
pop ebp
add esp, 0x38
ret
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.USER32.DLL
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UpdateLayeredWindow
push eax
call ebp
mov dword [0x4a9f6c], eax
cmp eax, esi
je 0x41e160
cmp dword [0x4ae0ec], esi
jne 0x41e1aa
push 0x4a6d88
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [0x4ae0ec], 1
cmp dword [0x4a6d98], 2
jne 0x41e1db
cmp dword [0x4a6d8c], 6
jb 0x41e1db
push str.dwmapi.dll
call edi
cmp eax, esi
je 0x41e1db
push str.DwmIsCompositionEnabled
push eax
mov byte [0x4a9f15], 1
call ebp
mov dword [0x4a9f70], eax
push 0x30
lea eax, [esp + 0x14]
push esi
push eax
mov dword [0x4a7020], ebx
call fcn.00458270
mov ecx, dword [sym.imp.USER32.dll_DefWindowProcW]
add esp, 0xc
push 0x7f00
push esi
mov dword [esp + 0x18], 0x30
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
call dword [sym.imp.USER32.dll_LoadCursorW]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 6
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], 0x499b38
mov dword [esp + 0x40], esi
call dword [sym.imp.USER32.dll_RegisterClassExW]
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x38
ret

Function at 0x41e260
Capabilities:
Hide graphical window

Disassembly:
push ecx
cmp dword [0x4a9f6c], 0
push edi
mov edi, dword [esp + 0xc]
je 0x41e319
lea eax, [esp + 0xc]
push eax
call fcn.0041f1a0
mov ecx, dword [0x4a7020]
push 0
push ecx
push 0
push edi
push 0
push 0
push 0
push 0x80000000
push 0x80880000
push 0
push 0x499b38
push 0x80020
mov dword [eax], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
mov eax, dword [0x4a9f70]
mov byte [esi + 0xc], 1
mov dword [esp + 4], 0
test eax, eax
je 0x41e2d7
lea edx, [esp + 4]
push edx
call eax
cmp dword [esp + 4], 0
je 0x41e2d7
or byte [esi + 0xc], 8
test byte [esi + 0xc], 2
je 0x41e2f3
mov eax, dword [esi + 4]
push 8
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
mov ecx, esi
call fcn.0041e590
jmp 0x41e2ff
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0x41e320
push 0xfffffffffffffffc
push edi
mov dword [esi + 8], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop edi
pop ecx
ret 4
Function at 0x41f170
Capabilities:
Hide graphical window

Disassembly:
test byte [esi + 0xc], 2
je 0x41f189
mov eax, dword [esi + 4]
push 8
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
jmp fcn.0041e590
mov edx, dword [esi + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
ret 4
Function at 0x4229a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x486e01
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x4a5584]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push esi
push edi
mov eax, dword [0x4a5584]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov eax, dword [0x4aedec]
mov esi, ecx
mov ecx, dword [eax]
push 0x4aedec
mov dword [esp + 0x30], vtable._BaseModule::CAutoLocker.0
mov dword [esp + 0x34], 0x4aedec
call ecx
mov dword [esp + 0x110], 0
mov eax, dword [esi]
sub eax, 0x10
call fcn.00404890
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x110], 1
mov eax, dword [esi - 0xc]
test eax, eax
jle 0x422a5d
lea ecx, [eax - 1]
test ecx, ecx
jl 0x422bb6
cmp ecx, eax
jg 0x422bb6
movzx eax, word [esi + ecx*2]
cmp ax, 0xa
je 0x422a5d
push 1
push 0x4944d8
lea edx, [esp + 0x1c]
push edx
call fcn.00403a10
mov esi, dword [esp + 0x14]
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
mov word [esp + 0x1c], ax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov word [esp + 0x2a], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor edx, edx
push 0xc6
push edx
lea eax, [esp + 0x3e]
push eax
mov word [esp + 0x40], dx
call fcn.00458270
movzx ecx, word [esp + 0x30]
movzx edx, word [esp + 0x2e]
movzx eax, word [esp + 0x2c]
add esp, 0xc
push ecx
movzx ecx, word [esp + 0x22]
push edx
movzx edx, word [esp + 0x22]
push eax
movzx eax, word [esp + 0x24]
push ecx
push edx
push eax
push str._04d__02d__02d__02d:_02d:_02d
lea ecx, [esp + 0x50]
push 0x400
push ecx
call fcn.00423040
add esp, 0x24
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403870
add esp, 8
mov ebx, eax
mov edi, 0x4aee08
mov byte [esp + 0x110], 2
call fcn.00403c90
mov byte [esp + 0x110], 1
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422b27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [0x4aee18]
mov ecx, eax
sub ecx, dword [0x4aee14]
sar ecx, 2
cmp ecx, 0x64
jbe 0x422b46
call fcn.00422c90
mov eax, dword [0x4aee18]
sub eax, dword [0x4aee14]
mov byte [esp + 0x110], 0
sar eax, 2
mov edi, eax
lea eax, [esi - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x422b75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x110], 0xffffffff
mov ecx, dword [0x4aedec]
mov edx, dword [ecx + 4]
push 0x4aedec
call edx
mov eax, edi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.00451a7d
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401000
int3