joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4036d5
Capabilities:
Check os version

Disassembly:
mov eax, 0x41065c
call fcn.00410160
sub esp, 0x320
push ebx
push esi
push edi
lea eax, [ebp - 0x124]
mov dword [ebp - 0x10], esp
xor edi, edi
push eax
mov dword [ebp - 4], edi
xor esi, esi
mov dword [ebp - 0x124], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403774
cmp dword [ebp - 0x114], 2
jne 0x403774
cmp dword [ebp - 0x120], 6
jb 0x403722
push 1
pop esi
cmp dword [ebp + 8], edi
jne 0x40372e
push edi
call fcn.00403075
pop ecx
lea eax, [ebp - 0x32c]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x403774
push esi
lea eax, [ebp - 0x32c]
push dword [ebp + 8]
push eax
call fcn.004033be
add esp, 0xc
cmp eax, edi
je 0x403774
cmp dword [ebp + 8], edi
je 0x403769
push 1
call fcn.00403075
pop ecx
push 1
pop eax
jmp 0x403776
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4037e1
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x11c]
xor esi, esi
push eax
mov dword [edi], esi
xor ebx, ebx
mov dword [ebp - 0x11c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4038e1
cmp dword [ebp - 0x10c], 2
jne 0x4038e1
cmp dword [ebp - 0x118], 6
jb 0x403841
push 1
pop ebx
push esi
push esi
push 3
push esi
push 3
push 0xc0000000
push str..IDMWFP
jmp 0x403852
push esi
push esi
push 3
push esi
push 3
push 0xc0000000
push str..IDMTDI
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x40386b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
mov dword [edi], eax
jmp 0x4038e3
call fcn.00403037
neg eax
sbb eax, eax
lea ecx, [ebp + 8]
and eax, 0x100
push ecx
add eax, 0x20019
cmp ebx, esi
push eax
mov dword [edi], esi
push esi
je 0x403891
push str.SYSTEMCurrentControlSetServicesIDMWFP
jmp 0x403896
push str.SYSTEMCurrentControlSetServicesIDMTDI
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x4038e1
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push str.Start
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4038d8
push 1
pop eax
cmp dword [ebp - 4], eax
je 0x4038d8
cmp dword [ebp - 4], 2
je 0x4038d8
mov dword [edi], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4038e8
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor esi, esi
push eax
mov dword [ebp - 0xc], esi
call fcn.004037e1
cmp dword [ebp - 0xc], esi
pop ecx
mov dword [ebp - 8], eax
je 0x4039e2
lea eax, [ebp - 0x15c]
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0x15c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov edi, str.open
mov ebx, str.stop_IDMWFP
je 0x4039aa
cmp dword [ebp - 0x14c], 2
jne 0x4039aa
cmp dword [ebp - 0x158], 6
jb 0x4039aa
cmp dword [ebp - 8], esi
mov dword [ebp - 4], 1
je 0x4039aa
push 0x3c
lea eax, [ebp - 0x48]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x40
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], str.net.exe
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x34], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4039aa
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
push 1
push dword [ebp + 8]
call fcn.004033be
add esp, 0xc
cmp dword [ebp - 8], esi
jne 0x4039c9
cmp dword [ebp - 4], esi
je 0x4039e2
push esi
push esi
push ebx
jmp 0x4039d5
cmp dword [ebp - 4], esi
je 0x4039e2
push esi
push esi
push str.start_IDMWFP
push 0x415410
push edi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403f60
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SoftwareDownloadManagerIDMBI
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4040b0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.idman
push dword [ebp - 4]
call esi
push str.services
push dword [ebp - 4]
call esi
push str.svchost
push dword [ebp - 4]
call esi
push str.lsass
push dword [ebp - 4]
call esi
push str.wininit
push dword [ebp - 4]
call esi
push str.mnmsrvc
push dword [ebp - 4]
call esi
push str.wermgr
push dword [ebp - 4]
call esi
push str.dexplore
push dword [ebp - 4]
call esi
push str.msfeedssync
push dword [ebp - 4]
call esi
push str.navapw32
push dword [ebp - 4]
call esi
push str.vpc32
push dword [ebp - 4]
call esi
push str.SymProxySvc
push dword [ebp - 4]
call esi
push str.morpheus
push dword [ebp - 4]
call esi
push str.ccApp
push dword [ebp - 4]
call esi
push str.avguard
push dword [ebp - 4]
call esi
push str.avgupd
push dword [ebp - 4]
call esi
push str.ccSvcHst
push dword [ebp - 4]
call esi
push str.update
push dword [ebp - 4]
call esi
push str.zlclient
push dword [ebp - 4]
call esi
push str.pcictlui
push dword [ebp - 4]
call esi
push 0x41581c
push dword [ebp - 4]
call esi
push str.avwebgrd
push dword [ebp - 4]
call esi
push str.AvastSvc
push dword [ebp - 4]
call esi
push str.avgnsx
push dword [ebp - 4]
call esi
push str.ekrn
push dword [ebp - 4]
call esi
push str.AdMunch
push dword [ebp - 4]
call esi
push str.TmProxy
push dword [ebp - 4]
call esi
push str.privoxy
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x4045bd
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push esi
call fcn.00403037
neg eax
sbb eax, eax
lea ecx, [ebp - 4]
and eax, 0x100
push ecx
add eax, 0xf003f
xor esi, esi
push eax
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4046c6
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 0x804]
push eax
push esi
mov edi, 0x41b418
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
push dword [ebp - 4]
mov dword [ebp + 8], 0x800
call esi
test eax, eax
jne 0x404668
lea eax, [ebp - 0x804]
push eax
call sub.MSVCRT.dll__wcsupr
lea eax, [ebp - 0x804]
mov dword [esp], 0x415b70
push eax
call sub.MSVCRT.dll_wcsstr
pop ecx
test eax, eax
pop ecx
jne 0x40465e
lea eax, [ebp - 0x804]
push str.RUNAS
push eax
call sub.MSVCRT.dll_wcsstr
pop ecx
test eax, eax
pop ecx
je 0x404668
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp + 8]
mov edi, 0x41b620
push eax
lea eax, [ebp - 0x804]
push eax
push 0
push 0
push edi
push dword [ebp - 4]
mov dword [ebp + 8], 0x800
call esi
test eax, eax
jne 0x4046bc
lea eax, [ebp - 0x804]
push eax
call sub.MSVCRT.dll__wcsupr
lea eax, [ebp - 0x804]
mov dword [esp], 0x415b70
push eax
call sub.MSVCRT.dll_wcsstr
pop ecx
test eax, eax
pop ecx
je 0x4046bc
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret
Function at 0x4057b7
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x4106b0
call fcn.00410160
sub esp, 0x210
or dword [ebp - 0x14], 0xffffffff
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], esp
push edi
call esi
cmp eax, 0xffffffff
jne 0x405879
lea eax, [edi + 6]
push 0x5c
push eax
call sub.MSVCRT.dll_wcschr
pop ecx
mov ebx, eax
pop ecx
lea eax, [ebp - 0x21c]
push 0x208
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
test ebx, ebx
je 0x40581b
mov eax, ebx
sub eax, edi
sar eax, 1
jmp 0x405822
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x21c]
push edi
push eax
call sub.MSVCRT.dll_wcsncpy
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
call esi
cmp eax, 0xffffffff
jne 0x40586a
lea eax, [ebp - 0x21c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40586a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push edi
call esi
cmp eax, 0xffffffff
jne 0x405879
mov eax, dword [ebp - 0x14]
jmp 0x405893
test ebx, ebx
je 0x40585d
add ebx, 2
push 0x5c
push ebx
jmp 0x4057f0
push 0x4140b0
push edi
call fcn.00405be1
pop ecx
xor eax, eax
pop ecx
jmp 0x405893
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4058a2
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push esi
mov esi, 0x41bf14
push esi
lea eax, [ebp - 0x464]
push 0x41604c
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x405964
lea ecx, [ebp - 0x25c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
push ecx
push eax
call edi
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 4]
call edi
test eax, eax
je 0x405940
lea eax, [ebp - 0x230]
push eax
push esi
lea eax, [ebp - 0x66c]
push 0x4146e4
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0xc]
push 0
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x66c]
push eax
call fcn.00405972
jmp 0x4058ff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
pop edi
jne 0x405964
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
call fcn.00405972
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x405be1
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, 0x4106bc
call fcn.00410160
sub esp, 0x14
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push esi
push esi
push 3
push esi
push 3
push 0xc0000000
push 0x41afe8
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x1c], ebx
jne 0x405c22
push 0xfffffffffffffffe
pop eax
jmp 0x405d27
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
push dword [ebp + 0xc]
mov edx, eax
mov dword [ebp - 0x18], edx
call edi
mov ecx, dword [ebp - 0x18]
add ecx, eax
lea eax, [ecx + ecx + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
push dword [ebp + 8]
push 0x4146e4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
jbe 0x405cee
push esi
push edi
push esi
push 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x405cee
push esi
push esi
push esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x405ce0
lea eax, [edi + edi + 2]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x405cd4
push edi
push dword [ebp + 0xc]
push ebx
call sub.MSVCRT.dll_memcpy
push dword [ebp - 0x14]
mov word [ebx + edi*2], si
push ebx
call sub.MSVCRT.dll_wcsstr
add esp, 0x14
test eax, eax
je 0x405ccd
mov dword [ebp - 0x18], 1
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, dword [ebp - 0x1c]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], esi
jne 0x405d14
push 2
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x20]
push esi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x14]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x405d3c
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4106c8
call fcn.00410160
sub esp, 0x7f4
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
je 0x405d79
push edi
lea eax, [ebp - 0x14]
push edi
push eax
push 0x400
push dword [ebp + 0xc]
push edi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
lea eax, [ebp - 0x30]
push 0xa
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll__itow
add esp, 0xc
cmp dword [ebp + 0x14], edi
je 0x405e4c
cmp dword [ebp + 0x10], edi
jne 0x405db6
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x800]
push dword [ebp + 8]
push str._s._Error_ID_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x405de5
push dword [ebp + 0x10]
call sub.MSVCRT.dll_wcslen
cmp eax, 0x104
pop ecx
ja 0x405de5
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x800]
push dword [ebp + 0x10]
push dword [ebp + 8]
push str._s.__s_Error_ID_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push edi
push edi
push 4
push edi
push 1
push 0x10000000
push 0x41c734
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
mov ebx, eax
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x1c]
push edi
push eax
lea eax, [ebp - 0x800]
push eax
call sub.MSVCRT.dll_wcslen
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x800]
push eax
push ebx
call esi
lea eax, [ebp - 0x18]
push edi
push eax
push dword [ebp + 0x1c]
call sub.MSVCRT.dll_wcslen
pop ecx
shl eax, 1
push eax
push dword [ebp + 0x1c]
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x18], edi
je 0x405eb6
cmp dword [ebp - 0x14], edi
je 0x405e63
push dword [ebp - 0x14]
call sub.MSVCRT.dll_wcslen
pop ecx
mov esi, eax
jmp 0x405e65
xor esi, esi
push dword [ebp + 8]
call sub.MSVCRT.dll_wcslen
lea eax, [eax + esi + 0x64]
add eax, eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
mov eax, dword [ebp - 0x14]
pop ecx
cmp eax, edi
pop ecx
jne 0x405e89
mov eax, 0x41afe4
lea ecx, [ebp - 0x30]
push ecx
push eax
push dword [ebp + 8]
push str._s_r_n_s_r_nError_ID:__s
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x10
push str.Error
push esi
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
cmp dword [ebp - 0x14], edi
je 0x405ec4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
add eax, ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x405f4f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor ebx, ebx
push eax
push 0x20
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x406051
push 1
push str.SeTakeOwnershipPrivilege
push dword [ebp - 0xc]
call fcn.00405ee5
add esp, 0xc
test eax, eax
jne 0x405f9c
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406051
push str.Advapi32
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x406051
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetNamedSecurityInfoW
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x406051
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x28]
push 2
push eax
mov byte [ebp - 0x28], bl
mov byte [ebp - 0x27], bl
mov byte [ebp - 0x26], bl
mov byte [ebp - 0x25], bl
mov byte [ebp - 0x24], bl
mov byte [ebp - 0x23], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x406051
push ebx
push ebx
push ebx
push dword [ebp - 4]
push 1
push 4
push dword [ebp + 8]
call dword [ebp - 0x10]
test eax, eax
jne 0x406051
push str.AllocateAndInitializeSid
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x406051
push str.GetLengthSid
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x406051
push str.InitializeAcl
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x406051
push str.AddAccessAllowedAce
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x406058
xor eax, eax
jmp 0x4060db
lea eax, [ebp - 8]
mov byte [ebp - 0x30], bl
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x30]
push 1
push eax
mov byte [ebp - 0x2f], bl
mov byte [ebp - 0x2e], bl
mov byte [ebp - 0x2d], bl
mov byte [ebp - 0x2c], bl
mov byte [ebp - 0x2b], 1
call dword [ebp - 0x14]
push dword [ebp - 8]
call dword [ebp - 0x18]
mov esi, eax
add esi, 0x10
push esi
call sub.MSVCRT.dll_malloc
pop ecx
mov edi, eax
push 2
push esi
push edi
call dword [ebp - 0x1c]
push dword [ebp - 8]
push 0x10000000
push 2
push edi
call dword [ebp - 0x20]
push ebx
push edi
push ebx
push ebx
push 4
push 4
push dword [ebp + 8]
call dword [ebp - 0x10]
push edi
call sub.MSVCRT.dll_free
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
pop ecx
je 0x4060ce
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], ebx
je 0x4060d8
push dword [ebp - 8]
call esi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4071bf
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ax, word [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
and dword [esi + 0x38], 0
mov word [esi + 0x18], ax
call fcn.0040726e
mov ax, word [esi + 0x18]
cmp ax, 9
je 0x407229
mov ebx, dword [esi + 4]
xor ecx, ecx
test ebx, ebx
jle 0x407229
movzx edi, ax
mov eax, dword [esi + 8]
lea edx, [eax + 0x24]
cmp dword [edx], edi
je 0x407202
inc ecx
add edx, 0x28
cmp ecx, ebx
jl 0x4071f4
jmp 0x407229
lea edi, [ecx + ecx*4]
mov dword [esi + 0x38], 1
shl edi, 3
lea ecx, [esi + 0x1c]
push dword [eax + edi]
call fcn.00406edc
mov eax, dword [esi + 8]
lea ecx, [esi + 0x28]
push dword [eax + edi + 0xc]
call fcn.00406edc
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
je 0x407255
mov eax, dword [esi + 0x3c]
cmp eax, ecx
je 0x407260
movzx edx, word [esi + 0x18]
mov dword [ebp + 8], edx
lea edx, [ebp + 8]
push 4
push edx
push 4
push ecx
push str.LanguageID
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x407260
cmp dword [esi + 0x38], ecx
jne 0x407260
mov word [esi + 0x18], 9
mov ecx, esi
call fcn.00407a6c
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4074a9
Capabilities:
Get keyboard layout
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov dword [ebp - 4], eax
and ax, 0x3ff
cmp ax, 9
jne 0x407558
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov dword [ebp - 4], eax
and ax, 0x3ff
cmp ax, 9
jne 0x407558
and dword [ebp - 8], 0
mov esi, str.Kernel32
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
jne 0x40750c
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [ebp - 8], 1
test edi, edi
je 0x407558
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSystemDefaultUILanguage
push edi
call esi
push str.GetUserDefaultUILanguage
push edi
mov ebx, eax
call esi
test ebx, ebx
mov esi, eax
je 0x407532
call ebx
movzx eax, ax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and ax, 0x3ff
cmp ax, 9
jne 0x40754b
test esi, esi
je 0x40754b
call esi
movzx eax, ax
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x407558
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
push 9
and cx, 0x3ff
pop eax
cmp cx, ax
jne 0x4075d5
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push eax
mov dword [ebp - 8], eax
call esi
mov ebx, eax
test ebx, ebx
je 0x4075d5
shl eax, 4
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
test edi, edi
je 0x4075d5
push edi
push ebx
call esi
xor edx, edx
test eax, eax
jbe 0x4075c1
xor ecx, ecx
mov cx, word [edi + ecx*4]
mov esi, ecx
and si, 0x3ff
cmp si, 9
je 0x4075b9
inc dword [ebp - 8]
cmp dword [ebp - 8], 1
jne 0x4075b9
mov dword [ebp - 0xc], ecx
inc edx
movzx ecx, dx
cmp ecx, eax
jb 0x40759c
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
cmp dword [ebp - 8], 0
pop ecx
jle 0x4075d5
movzx eax, word [ebp - 0xc]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
pop edi
mov eax, edx
pop esi
and eax, 0x3ff
cmp edx, 0x416
pop ebx
je 0x40760f
cmp edx, 0xc1a
je 0x40760f
cmp edx, 0x403
je 0x40760f
mov ecx, 0x804
cmp edx, ecx
je 0x40760b
cmp edx, 0x1004
jne 0x407611
mov eax, ecx
leave
ret
mov eax, edx
leave
ret
Function at 0x407868
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
call fcn.004074a9
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.00406d9d
mov edi, dword [ebp + 8]
lea ebx, [esi + 0xc]
push edi
mov ecx, ebx
call fcn.00406edc
push edi
call sub.MSVCRT.dll_wcslen
cmp word [edi + eax*2 - 2], 0x5c
pop ecx
je 0x4078ab
push 0x4140b8
mov ecx, ebx
call fcn.004079c0
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004085c9
mov eax, dword [esi + 0x3c]
push 1
xor ebx, ebx
pop edi
cmp eax, ebx
mov dword [ebp - 0xc], edi
je 0x407936
lea ecx, [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ecx
lea ecx, [ebp - 8]
push ecx
push ebx
push ebx
push str.LanguageID
push eax
mov dword [ebp + 8], 4
call edi
test eax, eax
jne 0x4078fe
push ebx
mov ecx, esi
push dword [ebp - 8]
call fcn.004071bf
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0xc], ebx
jne 0x4078fe
mov byte [esi + 0x34], 1
lea eax, [ebp + 8]
mov dword [ebp + 8], 4
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push str.bShLc2
push dword [esi + 0x3c]
call edi
test eax, eax
jne 0x40792a
push 1
pop eax
cmp dword [ebp - 8], eax
jne 0x40792a
mov dword [0x41baf4], eax
cmp dword [ebp - 0xc], ebx
je 0x4079b9
push 1
pop edi
cmp dword [ebp + 0xc], ebx
push ebx
je 0x407947
push 9
mov ecx, esi
call fcn.004071bf
jmp 0x4079b9
push dword [ebp - 4]
mov ecx, esi
call fcn.004071bf
cmp dword [0x41c93c], ebx
jne 0x4079b9
cmp word [ebp - 4], 0x13
je 0x40796b
cmp word [ebp - 4], 0x11
je 0x40796b
mov eax, edi
jmp 0x40796d
xor eax, eax
cmp word [esi + 0x18], 9
jne 0x40797f
cmp word [ebp - 4], 9
je 0x4079b9
cmp eax, ebx
je 0x4079b9
push ebx
push 0x407613
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0x76
push dword [0x41bf10]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov esi, dword [esi + 0x3c]
mov dword [ebp + 0xc], edi
cmp esi, ebx
je 0x4079b9
lea eax, [ebp + 0xc]
push 4
push eax
push 4
push ebx
push str.LIDwa
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
leave
ret 8