joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403190
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4090d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0
call sub.MFC42.DLL_CString::CString
push 0x40d47c
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 1
call sub.MFC42.DLL_CString::CString_1
mov eax, 4
mov byte [esp + 0x3c], 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x20], 0
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403239
mov ecx, dword [esi + 0xb0]
push ecx
push str.uid:_s_no_internet_settings_key
push 0x40dc40
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, esi
push 0x40dc40
call fcn.00405510
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push str.EnableAutodial
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403284
push eax
mov eax, dword [esi + 0xb0]
push eax
push str.uid:_s_no_isv:_d
push 0x40dc40
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, esi
push 0x40dc40
call fcn.00405510
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4032d9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push 0
push str.EnableAutodial
push ecx
call edi
test eax, eax
je 0x4032d9
mov edx, dword [esi + 0xb0]
push eax
push edx
push str.uid:_s_ftc_is:_d
push 0x40dc40
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, esi
push 0x40dc40
call fcn.00405510
push 0x40dc48
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x30]
push 1
lea ecx, [esi + 0xb4]
push eax
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x24]
push ecx
push edx
push eax
mov ecx, esi
mov byte [esp + 0x50], 3
call fcn.004033c0
test eax, eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 2
setne bl
call fcn.004084dc
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40336d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push 0
push str.EnableAutodial
push ecx
call edi
test eax, eax
je 0x40336d
mov edx, dword [esi + 0xb0]
push eax
push edx
push str.uid:_s_fl_cls_a_d:_d
push 0x40dc40
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, esi
push 0x40dc40
call fcn.00405510
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 1
call fcn.004084dc
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 0
call fcn.004084dc
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004084dc
mov ecx, dword [esp + 0x34]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 4
Function at 0x4038b0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x20c
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
lea edx, [esp + 4]
push 0x100
push eax
push ecx
lea eax, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x120]
push 0x100
push ecx
push 0x40d550
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [esp]
mov edx, eax
mov ecx, eax
and edx, 0xff
push edx
xor edx, edx
shr ecx, 4
mov dl, ah
and ecx, 0xff
shr eax, 0xc
push ecx
and eax, 0xff
push edx
push eax
mov eax, dword [esp + 0x220]
push str._02.2X___02.2X___02.2X___02.2X_
push eax
call sub.MFC42.DLL_CString::Format
mov al, 1
add esp, 0x224
ret 4
Function at 0x404bf0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40939b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30c
push ebx
push esi
mov esi, dword [esp + 0x324]
push str.default
mov ecx, esi
mov bl, 1
mov dword [esp + 0x14], 0x100
call fcn.004084e8
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
push 0x40d6d4
push eax
mov dword [esp + 0x324], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0xc]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREClasses.htm
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404cdf
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
lea eax, [esp + 0x114]
push edx
push eax
push 0
push 0
push 0x40dc48
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404cdf
lea edx, [esp + 0x114]
lea ecx, [esp + 8]
push edx
call fcn.004084e8
lea eax, [esp + 8]
mov ecx, esi
push eax
call fcn.004085f0
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::MakeLower
push str.htmlfile
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Find
mov ecx, dword [esp + 0xc]
test eax, eax
push ecx
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
mov dword [esp + 0x31c], 0xffffffff
call fcn.004084dc
mov ecx, dword [esp + 0x314]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x318
ret 4
Function at 0x405e10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4095cf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
push 0x40dc48
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0xb0]
mov byte [esp + 0x28], 2
mov eax, dword [eax - 8]
lea edi, [eax - 1]
test edi, edi
jl 0x405e85
mov ecx, dword [esi + 0xb0]
mov dl, 0xa4
mov al, byte [edi + ecx]
lea ecx, [esp + 0xc]
sub dl, al
push edx
call sub.MFC42.DLL_CString::operator_2
sub edi, 2
jns 0x405e69
push 0x40d8e4
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
mov edi, dword [esp + 0x34]
push 0x2e
mov ecx, edi
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x1c]
push 0
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::Mid_1
mov edi, eax
push 2
lea ecx, [esp + 0x18]
push 2
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 3
call sub.MFC42.DLL_CString::Mid_1
mov ebp, eax
push 1
lea edx, [esp + 0x38]
push 0
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_CString::Mid_1
mov ecx, dword [edi]
mov edx, dword [ebp]
mov eax, dword [eax]
push ecx
mov ecx, dword [esi + 0xec]
push edx
push eax
push ecx
lea edx, [esp + 0x20]
push str._s_scnt_s_s.exe
push edx
mov byte [esp + 0x40], 5
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 4
call fcn.004084dc
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.004084dc
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call fcn.004084dc
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 1
call fcn.004084dc
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.004084dc
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x405f80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40961f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [edi + 0xb0]
push 0x40d03c
push eax
mov byte [esp + 0x30], 2
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x405fec
push 0x40d8f8
lea ecx, [esp + 0xc]
call fcn.004084e8
jmp 0x40601a
mov eax, dword [edi + 0xb0]
xor esi, esi
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x40601a
mov al, byte [eax + esi]
mov cl, 0xa3
sub cl, al
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [edi + 0xb0]
add esi, 2
cmp esi, dword [eax - 8]
jl 0x405ffb
push 1
lea edx, [esp + 0x1c]
push 2
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Mid_1
mov esi, eax
mov edi, dword [esp + 0x34]
push 0x2e
mov ecx, edi
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x18]
push 0
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::Mid_1
mov edi, eax
push 2
lea ecx, [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_CString::Mid_1
mov edx, dword [esi]
mov ecx, dword [edi]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x18]
push str._s_sw64_s.exe
push eax
mov byte [esp + 0x3c], 5
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.004084dc
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.004084dc
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call fcn.004084dc
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x1c], 1
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.004084dc
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.004084dc
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x406100
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
push ebp
mov ebp, ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x406291
lea eax, [esp + 4]
push esi
push eax
push 0x40a614
push 1
push 0
push 0x40a624
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x40624f
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x220]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x228]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x22c]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0x40a634
mov edx, dword [eax]
push eax
call dword [edx]
mov esi, eax
test esi, esi
jl 0x406209
push ebx
mov ebx, dword [esp + 0x228]
lea edx, [esp + 0x18]
push 0x104
push edx
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
push esi
push ebx
push edi
push str.Crt_lnk_4_:_s_s__X_
push 0x40dc40
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, ebp
push 0x40dc40
call fcn.00405510
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
pop ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
pop ebp
add esp, 0x210
ret 0x10
mov edx, dword [esp + 0x224]
push esi
push edx
push edi
push str.Crt_lnk_2_:_s_s__X_
push 0x40dc40
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, ebp
push 0x40dc40
call fcn.00405510
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
pop ebp
add esp, 0x210
ret 0x10
mov edx, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push esi
push edx
push eax
push str.Crt_lnk_3_:_s_s__X_
push 0x40dc40
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, ebp
push 0x40dc40
call fcn.00405510
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
pop ebp
add esp, 0x210
ret 0x10
mov eax, dword [esp + 8]
pop ebp
add esp, 0x210
ret 0x10
Function at 0x407b50
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4098cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
lea eax, [esp + 4]
push esi
push eax
push 0
mov esi, ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0xf0]
push 0x40dc48
push eax
mov dword [esp + 0x120], 0
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x407c09
mov eax, dword [esp + 0x124]
lea edx, [esp + 0xc]
mov ecx, dword [eax]
lea eax, [esp + 4]
push ecx
push edx
push str._s_s.url
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x13c]
mov edx, dword [esp + 0x138]
add esp, 0x10
mov eax, dword [ecx]
mov ecx, dword [edx]
mov edx, dword [esp + 0x120]
push 0
push eax
mov eax, dword [esp + 0xc]
mov edx, dword [edx]
push ecx
push eax
push edx
mov ecx, esi
call fcn.00407d90
jmp 0x407c54
mov ecx, dword [esp + 0x124]
lea eax, [esp + 0xc]
mov edx, dword [ecx]
lea ecx, [esp + 4]
push edx
push eax
push str._s_s.lnk
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x13c]
mov ecx, dword [esp + 0x138]
add esp, 0x10
mov eax, dword [edx]
mov edx, dword [esp + 0x120]
mov ecx, dword [ecx]
push eax
mov eax, dword [esp + 8]
mov edx, dword [edx]
push ecx
push eax
push edx
mov ecx, esi
call fcn.00407c90
lea ecx, [esp + 4]
mov dword [esp + 0x118], 0xffffffff
call fcn.004084dc
mov ecx, dword [esp + 0x110]
mov al, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret 0x10

Function at 0x407c90
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov ecx, dword [ecx + 0xf0]
sub esp, 0x318
lea eax, [esp + 8]
lea edx, [esp + 0xc]
push eax
push edx
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x407cc4
mov eax, 0x80004005
add esp, 0x318
ret 0x10
lea eax, [esp]
push eax
push 0x40a614
push 1
push 0
push 0x40a624
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x407d84
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x40a634
mov ecx, dword [eax]
push eax
call dword [ecx]
mov eax, dword [esp]
lea edx, [esp + 0xc]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
jl 0x407d84
mov eax, dword [esp]
mov edx, dword [esp + 0x31c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
jl 0x407d84
mov eax, dword [esp]
mov edx, dword [esp + 0x324]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
jl 0x407d84
mov eax, dword [esp]
mov edx, dword [esp + 0x328]
push 0
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
test eax, eax
jl 0x407d84
mov ecx, dword [esp + 0x320]
lea eax, [esp + 0x110]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 4]
lea ecx, [esp + 0x110]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
add esp, 0x318
ret 0x10
Function at 0x407e90
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4098f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
lea eax, [esp + 4]
mov dword [esp + 0x114], 1
push eax
push 1
push 0
push ecx
push edx
mov dword [esp + 0x1c], 0xff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x407f1a
mov edx, dword [esp + 0x124]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push ecx
push esi
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x407f1a
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x12c]
call fcn.004084e8
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x120]
mov byte [esp + 0x114], 0
call fcn.004084dc
lea ecx, [esp + 0x124]
mov dword [esp + 0x114], 0xffffffff
call fcn.004084dc
mov ecx, dword [esp + 0x10c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret 0x10

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

Disassembly:
sub esp, 0x1c
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov edx, dword [esp + 0x28]
mov esi, eax
add esi, edx
mov dword [esp + 0x28], esi
call edi
cmp eax, esi
jae 0x407ff2
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebp
push 1
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call esi
test eax, eax
je 0x407fe4
lea ecx, [esp + 0x10]
push ecx
call edi
lea edx, [esp + 0x10]
push edx
call ebx
push 1
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call esi
test eax, eax
jne 0x407fc3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [esp + 0x30]
jb 0x407fa9
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x1c
ret 4
Function at 0x410edb
Capabilities:
Create mailslot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push edi
mov dword [ebp - 8], 0x43ec88
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov al, byte [eax]
mov byte [ebp - 1], al
inc dword [ebp - 8]
cmp byte [ebp - 1], 0
jne 0x410ef0
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xd727d
jne 0x410fb3
push 0x43ec88
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x18fdd
jne 0x410fb3
mov dword [0x43ec80], 0xd28ed42a
or dword [0x43ec84], 0xffffffff
push 0xaaf1d2c
push 0x7835429d
call fcn.0040302d
pop ecx
pop ecx
push 0
push 0
call fcn.00402dfa
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
call fcn.004010e5
lea ecx, [ebp - 0x40]
call fcn.0040107d
xor edx, edx
xor ecx, ecx
call fcn.004010f2
fstp st(0)
lea ecx, [ebp - 0x34]
call fcn.004010e5
lea ecx, [ebp - 0x34]
call fcn.0040107d
push 0x41a794
mov edx, 0x41a798
mov ecx, 0x43ec88
call fcn.00401006
pop ecx
xor ecx, ecx
call fcn.00401129
fstp st(0)
lea ecx, [ebp - 0x34]
call fcn.00401092
lea ecx, [ebp - 0x40]
call fcn.00401092
and dword [ebp - 0xc], 0
jmp 0x410fc0
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2b26a3ce
jge 0x410fe2
cmp dword [ebp - 0xc], 0x23e4d9
jge 0x410fe0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMailslotA]
jmp 0x410fb9
call fcn.00411100
mov eax, dword [str.Virtual]
mov dword [0x43ec88], eax
mov eax, dword [0x41a7a4]
mov dword [0x43ec8c], eax
mov eax, 0x43ec88
dec eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov al, byte [eax + 1]
mov byte [ebp - 2], al
inc dword [ebp - 0x10]
cmp byte [ebp - 2], 0
jne 0x411004
mov edi, dword [ebp - 0x10]
mov eax, dword [str.Protect]
mov dword [edi], eax
mov eax, dword [0x41a7ac]
mov dword [edi + 4], eax
push 0x43ec88
push dword [0x459d9c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x455f08], eax
and dword [ebp - 0x14], 0
jmp 0x41104b
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x45d48f
jge 0x41108a
cmp dword [ebp - 0x14], 0x348f5a
jne 0x411075
lea eax, [ebp - 0x28]
push eax
push 0x40
push dword [0x43ec7c]
push dword [0x455f0c]
call dword [0x455f08]
cmp dword [0x43ec7c], 0xea7
jne 0x411088
and dword [0x43ec78], 0
jmp 0x411044
push 0x41c788
mov edx, dword [0x43ec7c]
mov ecx, dword [0x455f0c]
call fcn.004113b2
and dword [ebp - 0x18], 0
jmp 0x4110ad
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x6ea9ee
jge 0x4110d0
cmp dword [ebp - 0x18], 0x33989d
jne 0x4110ce
mov eax, dword [0x455f0c]
add eax, 0
mov dword [0x455f0c], eax
jmp 0x4110a6
and dword [ebp - 0x1c], 0
jmp 0x4110dd
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x702513
jge 0x4110f7
cmp dword [ebp - 0x1c], 0x252838
jne 0x4110f5
jmp dword [0x455f0c]
jmp 0x4110d6
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4113b2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, edx
shr esi, 3
push edi
mov edi, ecx
test esi, esi
je 0x411403
push ebx
xor ebx, ebx
cmp dword [0x43ec7c], 0xac
jne 0x4113f0
push ebx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.0041140b
add edi, 8
sub esi, 1
jne 0x4113c8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x411653
Capabilities:
Access the windows event log
Clear windows event logs
Delete file
Enumerate gui resources
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x18], ecx
cmp dword [0x43ec7c], 0x448
push edi
mov edi, edx
jne 0x411692
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 3]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x820]
push eax
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push dword [edi]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor edx, edx
mov ebx, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edx
cmp dword [edi], edx
jbe 0x4117e8
mov ecx, dword [0x43ec7c]
cmp ecx, 0x6d0
jne 0x4116e8
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push ebx
lea eax, [ebp - 0x820]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProfileStringW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
mov ecx, dword [0x43ec7c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov bh, byte [eax + edx]
mov bl, byte [eax + edx + 2]
mov byte [ebp - 1], bh
mov bh, byte [eax + edx + 1]
mov byte [ebp - 3], bl
mov bl, byte [eax + edx + 3]
mov byte [ebp - 2], bh
mov bh, bl
shl bh, 2
cmp ecx, 0x2a5
jne 0x41172d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_ObjectPrivilegeAuditAlarmA]
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_LockFile]
mov dword [ebp - 8], 0x9e8a8df6
add dword [ebp - 8], 0x617572ca
and bh, byte [ebp - 8]
mov ecx, dword [0x43ec7c]
cmp ecx, 0xca4
jne 0x41175c
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
mov ecx, dword [0x43ec7c]
or byte [ebp - 1], bh
cmp ecx, 0xd2f
jne 0x411784
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp - 0x20]
push eax
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [0x43ec7c]
mov al, bl
and al, 0xfc
shl al, 4
or byte [ebp - 2], al
cmp ecx, 0xe7b
jne 0x4117a6
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerW]
mov ecx, dword [0x43ec7c]
shl bl, 6
cmp ecx, 0xbe3
jne 0x4117bb
push 0
push 0
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrW]
mov eax, dword [ebp - 0x14]
mov bh, byte [ebp - 1]
or bl, byte [ebp - 3]
mov edx, dword [ebp - 0xc]
mov byte [esi + eax], bh
add edx, 4
mov bh, byte [ebp - 2]
mov byte [esi + eax + 1], bh
mov byte [esi + eax + 2], bl
add esi, 3
mov dword [ebp - 0xc], edx
cmp edx, dword [edi]
jb 0x4116ad
mov ebx, eax
cmp dword [0x43ec7c], 0x1240
jne 0x411806
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
mov eax, dword [ebp - 0x18]
mov dword [eax], ebx
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret