joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4415e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x471c33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00465126
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046a7c2
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046bcde
test eax, eax
je 0x4416fc
mov ecx, dword [esp + 0x3c]
call fcn.0046a7ef
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4416c0
push edi
mov ecx, esi
call fcn.00467e51
mov ecx, esi
call fcn.00441860
cmp dword [esp + 0x38], 1
jne 0x4416f5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00467f8c
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x444120
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x444153
push esi
call fcn.00447220
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44414c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4441d9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4441c2
mov eax, dword [esi + 8]
test eax, eax
je 0x444177
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4441be
cmp eax, 2
je 0x4441c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44416a
cmp eax, 3
je 0x44419d
cmp eax, 1
jne 0x44416a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44416a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44416a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00444200
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4441e8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00444200
add esp, 4
pop esi
ret

Function at 0x44f4d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x44f536
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x44f536
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x44f517
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x44f8c0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x44f8f8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4505d0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x450619
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x450a90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x472130
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00450640
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004506c0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004506c0
lea ecx, [esi + 0xc]
call fcn.00463b00
lea ecx, [esi + 0x10]
call fcn.00463b00
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00451c60
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00451c60
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00451c60
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00463b75
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00463b75
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x465f1c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x465f54
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00463fd0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00463fa8
jmp 0x465f60
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46760e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x467650
call fcn.0046d389
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x467650
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x467647
xor eax, eax
jmp 0x467658
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046765e
pop edi
pop esi
pop ebx
ret 4

Function at 0x46d8b9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46d8e7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46d905
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046d81f
jmp 0x46d905
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46d905
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046d81f
test edi, edi
mov eax, edi
jne 0x46d8ef
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401390
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40314b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x204
push 0x4050c0
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x21c]
mov dword [esp + 0x20c], 0
test edx, edx
je 0x4013e9
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x4013e9
push edx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp]
lea eax, [esp + 8]
lea ecx, [esp + 0x220]
push eax
mov eax, dword [esp + 0x224]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x401447
lea ecx, [esp]
mov dword [esp + 0x20c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x204]
mov dword fs:[0], ecx
add esp, 0x210
ret 0x10
mov eax, dword [esp + 0x214]
lea ecx, [esp + 4]
push esi
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x228]
push edx
push 0
push 0
push eax
push ecx
mov dword [esp + 0x20], 0x1f4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x224]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
je 0x4014b6
lea ecx, [esp]
mov dword [esp + 0x20c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x204]
mov dword fs:[0], ecx
add esp, 0x210
ret 0x10
mov eax, dword [esp + 4]
test eax, eax
jne 0x4014c3
mov byte [esp + 0xc], 0
mov ecx, dword [esp + 0x218]
lea eax, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp]
mov dword [esp + 0x20c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x204]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x210
ret 0x10
Function at 0x4015c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4031b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0xc]
mov ecx, esi
push eax
mov byte [esp + 0x1c], 1
call fcn.00401510
push 0x40511c
lea ecx, [esp + 0xc]
push eax
push ecx
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 8]
mov byte [esp + 0x18], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x20]
lea eax, [esp + 4]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 4]
push 1
push 0
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 4]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x4015d8
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4031b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0xc]
mov ecx, esi
push eax
mov byte [esp + 0x1c], 1
call fcn.00401510
push 0x40511c
lea ecx, [esp + 0xc]
push eax
push ecx
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 8]
mov byte [esp + 0x18], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x20]
lea eax, [esp + 4]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 4]
push 1
push 0
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 4]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x401c90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x403260
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
push edi
mov edx, dword [esp + 0x2c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x405180
mov esi, edi
mov edi, dword [esp + 0x34]
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x2c], 0
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
add esp, 8
test eax, eax
jne 0x401d0a
push 0xa
push 0x4b3
push 0
call edi
mov esi, eax
jmp 0x401d0e
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
push 0x405170
push eax
call ebp
add esp, 8
test eax, eax
jne 0x401d2d
push 0xa
push 0x4b2
push eax
call edi
mov esi, eax
mov ecx, dword [esp + 0x2c]
push 0x405160
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x401d4c
push 0xa
push 0x4b1
push eax
call edi
mov esi, eax
mov edx, dword [esp + 0x2c]
push 0x405154
push edx
call ebp
add esp, 8
test eax, eax
jne 0x401d6b
push 0xa
push 0x4b4
push eax
call edi
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x401dc6
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov eax, dword [esp + 0x30]
push 0x1001
push eax
lea ecx, [esp + 0x14]
call fcn.00402c54
push edi
push esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x401df0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x403280
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.00402c66
mov ebp, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push ebp
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x34], 1
call fcn.00401ef0
mov eax, dword [esp + 0x18]
xor edi, edi
test eax, eax
jle 0x401e64
mov edx, dword [esp + 0x14]
mov ecx, esi
mov eax, dword [edx + edi*4]
push eax
call fcn.00402090
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jl 0x401e4c
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CStringArray::SetSize
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.004020b0
mov eax, dword [esp + 0x18]
xor edi, edi
test eax, eax
jle 0x401ea4
mov edx, dword [esp + 0x14]
mov ecx, esi
mov eax, dword [edx + edi*4]
push eax
call fcn.00402230
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jl 0x401e8c
push ebp
mov ecx, esi
call fcn.00402230
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CStringArray::CStringArray
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret 4

Function at 0x402090
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret 4

Function at 0x402230
Capabilities:
Delete directory
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret 4

Function at 0x402250
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x40331f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
lea ecx, [esp]
mov dword [esp + 4], 0
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 8]
mov dword [esp + 0x18], 1
push eax
push 0
push 0
push 0x405224
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x4022be
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, 0x14
call fcn.00402e70
push eax
lea ecx, [esp + 4]
push 0x405220
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push esi
mov esi, dword [esp + 0x24]
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.00402c2a
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x402300
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x154
push esi
push edi
mov edi, str.cleanmgr
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x5c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x11
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
xor ecx, ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], ecx
push eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
push ecx
push ecx
push 0x20
push ecx
push ecx
mov dword [esp + 0x30], ecx
push ecx
lea ecx, [esp + 0x7c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
add esp, 0x154
ret

Function at 0x402540
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40337b
push eax
mov dword fs:[0], esp
sub esp, 0x158
call fcn.004018d0
cmp eax, 1
jne 0x402624
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_CString::CString_2
push 0x4050ec
lea ecx, [esp + 0xc]
mov dword [esp + 0x16c], 0
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 8]
lea edx, [esp + 0x60]
push ecx
push str._sGreenSetup.exe
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x60]
push eax
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
lea ecx, [esp + 8]
mov dword [esp + 0x168], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x40b7a0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x467f5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045ca74
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b822
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045a95d
mov eax, dword [eax]
push 0x47e1e0
push eax
call fcn.0044d7c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045ccff
test bl, bl
je 0x40b822
push 0x47e1e0
lea ecx, [esp + 0xc]
call fcn.0045d08f
push 0x481d54
lea ecx, [esp + 0xc]
call fcn.0045d08f
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40b85e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045ccff
jmp 0x40b929
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40b8e2
lea edx, [esp + 0x7c]
push 0x481d50
push edx
call fcn.0044d7c4
add esp, 8
test eax, eax
je 0x40b8e2
lea eax, [esp + 0x7c]
push 0x481d4c
push eax
call fcn.0044d7c4
add esp, 8
test eax, eax
je 0x40b8e2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b872
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045ccff
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40c120
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40c182
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc