joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6103bdbc
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x61048110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x210]
push ecx
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, esi
jae 0x6103bf9c
test eax, eax
jne 0x6103be09
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x6103bf9f
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x6103bf9c
lea ecx, [ebp - 0x210]
cmp eax, ecx
je 0x6103bf9c
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x210]
cmp ax, 0x41
jb 0x6103be3c
cmp ax, 0x5a
jbe 0x6103be45
lea ecx, [eax - 0x61]
cmp cx, 0x19
ja 0x6103be69
cmp word [ebp - 0x20e], 0x3a
jne 0x6103be69
cmp word [ebp - 0x20c], 0x5c
jne 0x6103bf9c
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x214], ecx
push 0x5c
pop edi
cmp ax, di
jne 0x6103beab
cmp word [ebp - 0x20e], di
jne 0x6103beab
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.6102c413
pop ecx
pop ecx
test eax, eax
je 0x6103bf9c
add eax, 2
push edi
push eax
call fcn.6102c413
pop ecx
pop ecx
mov dword [ebp - 0x214], eax
test eax, eax
je 0x6103bf9c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x6103bed5
and al, 0x10
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xfffffef5
add eax, 0x10b
jmp 0x6103bf9f
mov esi, dword [ebp - 0x218]
lea eax, [ebp - 0x210]
cmp esi, eax
jne 0x6103bee9
mov esi, eax
jmp 0x6103beec
add esi, 0xfffffffe
cmp esi, dword [ebp - 0x214]
je 0x6103bf9c
cmp word [esi], di
jne 0x6103bf9c
cmp esi, dword [ebp - 0x214]
jbe 0x6103bf9c
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.6102c80f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x6103bf9c
movzx ebx, word [edi + 2]
xor eax, eax
mov word [edi + 2], ax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov word [edi + 2], bx
cmp eax, 0xffffffff
jne 0x6103bf64
mov esi, edi
cmp edi, dword [ebp - 0x214]
ja 0x6103bf0d
cmp esi, dword [ebp - 0x214]
jbe 0x6103bf9c
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ebx, ebx
jmp 0x6103bf85
test al, 0x10
jne 0x6103bf52
mov eax, 0x10b
jmp 0x6103bf9f
cmp word [esi + 2], bx
je 0x6103bf98
push 0x5c
pop eax
push esi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
push ebx
lea eax, [ebp - 0x210]
push eax
call edi
test eax, eax
jne 0x6103bf6f
jmp 0x6103bdfe
xor eax, eax
jmp 0x6103bf9f
push 0x7b
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6102b2c1
leave
ret 4
Function at 0x6103c5a3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xchg edi, eax
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.6103c1e9
push eax
push esi
push dword [ebp + 8]
call fcn.6103c19e
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.6103c1e9
push eax
push esi
push dword [ebp + 8]
call fcn.6103c19e
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.6103c1d9
add eax, 0x8891f2c4
popfd
jl 0x6103c65e
invalid
invalid

Function at 0x6103cecd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmp dword [ebp + 0xc], 8
jne 0x6103d05f
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
invalid
test dword [eax - 7], ebx
invalid
invalid
Function at 0xce1190
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0xce11d0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0xce11c7
push 0
lea edx, [ebp - 4]
push edx
push ebx
push esi
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xce1220
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0xcf0008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x105
push 0
push esi
call fcn.00ce76b0
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00ce76b0
add esp, 0x18
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x214], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0xcf2c8c], eax
test eax, eax
je 0xce1294
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0xcf2c8c]
cmp byte [ebp - 0x214], 0
push edi
push 0x105
je 0xce12b7
lea edx, [ebp - 0x210]
push edx
mov edi, 0xca
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
jmp 0xce12c9
lea eax, [ebp - 0x210]
push eax
mov edi, 0xc9
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.DumpIt.sys
lea ecx, [ebp - 0x210]
push ecx
push str._sDrivers_s
push 0x105
push esi
call fcn.00ce1dc5
movzx edi, di
push esi
mov eax, edi
call fcn.00ce1190
add esp, 0x18
test al, al
jne 0xce13b0
push 0x20a
lea edx, [ebp - 0x210]
push 0
push edx
call fcn.00ce76b0
push str.DumpIt.sys
push str._TEMP__s
lea eax, [ebp - 0x210]
push 0x20a
push eax
call fcn.00ce1dc5
add esp, 0x1c
push 0x105
push esi
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
mov eax, edi
call fcn.00ce1190
add esp, 4
test al, al
jne 0xce13b0
push 0x20a
lea edx, [ebp - 0x210]
push 0
push edx
call fcn.00ce76b0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push str.DumpIt.sys
lea ecx, [ebp - 0x210]
push ecx
push str._s_s
push 0x105
push esi
call fcn.00ce1dc5
push esi
mov eax, edi
call fcn.00ce1190
add esp, 0x18
test al, al
jne 0xce13b0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00ce1db6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop edi
call fcn.00ce1db6
mov esp, ebp
pop ebp
ret
Function at 0xce1720
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0xcf0008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.DumpIt
push str.RegistryMachineSystemCurrentControlSetServices_s
lea eax, [ebp - 0x218]
push 0x20a
xor esi, esi
push eax
mov dword [ebp - 0x21c], esi
call fcn.00ce1dc5
add esp, 0x10
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x224]
push edx
call dword [0xcf1b48]
lea eax, [ebp - 0x224]
push eax
call dword [0xcf1b4c]
test eax, eax
jne 0xce17b9
lea ecx, [ebp - 0x21c]
push ecx
push 0xf003f
push eax
push str.SYSTEMCurrentControlSetServices
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xce17b9
mov edx, dword [ebp - 0x21c]
push str.DumpIt
push edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0xce17b9
lea esi, [eax + 1]
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0xce17ca
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00ce1db6
mov esp, ebp
pop ebp
ret

Function at 0xce1870
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0xcf0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [ebp - 0x664]
push ecx
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x664], 0x20
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0x20a
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.00ce76b0
movzx ecx, word [ebp - 0x654]
movzx edx, word [ebp - 0x656]
movzx eax, word [ebp - 0x658]
add esp, 0xc
push ecx
movzx ecx, word [ebp - 0x65a]
push edx
movzx edx, word [ebp - 0x65e]
push eax
movzx eax, word [ebp - 0x660]
push ecx
push edx
push eax
lea ecx, [ebp - 0x24]
push ecx
push str._s__04d_02d_02d__02d_02d_02d.raw
lea edx, [ebp - 0x238]
push 0x20a
push edx
call fcn.00ce1dc5
push 0x20a
lea eax, [ebp - 0x448]
push 0
push eax
call fcn.00ce76b0
add esp, 0x34
lea ecx, [ebp - 0x670]
push ecx
lea edx, [ebp - 0x448]
push edx
push 0x105
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [ebp - 0x650]
push ecx
lea edx, [ebp - 0x66c]
push edx
call dword [0xcf1b48]
push 0
push 0
lea eax, [ebp - 0x66c]
push eax
lea ecx, [ebp - 0x448]
push ecx
call dword [0xcf1b44]
mov bl, al
test bl, bl
je 0xce19a1
movzx eax, word [ebp - 0x66c]
lea esi, [eax + 2]
shr esi, 1
cmp esi, 0x20a
ja 0xce19a1
mov edx, dword [ebp - 0x668]
push eax
push edx
push edi
call fcn.00ceab20
add esp, 0xc
xor eax, eax
mov word [edi + esi*2 - 2], ax
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00ce1db6
mov esp, ebp
pop ebp
ret
Function at 0xce1a70
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0xcf0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x38]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0xce1ab2
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00ce1db6
mov esp, ebp
pop ebp
ret
push str.NtQuerySystemInformation
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [0xcf1b40], esi
test esi, esi
je 0xce1a9f
push 0x2c
lea ecx, [ebp - 0x30]
push 0
push ecx
call fcn.00ce76b0
add esp, 0xc
push 0
push 0x2c
lea edx, [ebp - 0x30]
push edx
push 0
call esi
test eax, eax
js 0xce1a9f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
inc eax
mul dword [ebp - 0x28]
mov ebx, eax
mov eax, dword [ebp - 0x38]
mov esi, edx
mul dword [ebp - 0x3c]
push 0
push ecx
push edx
push eax
call fcn.00ceb2e0
mov dword [ebp - 0x48], eax
mov edi, edx
mov edx, ebx
mov eax, esi
shrd edx, eax, 0x14
shr eax, 0x14
push eax
push edx
push 7
push esi
push ebx
push 0xf
push str._n____Address_space_size:____I64d_bytes___I64d_Mb__n
call fcn.00ce1e01
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, edi
shrd ecx, edx, 0x14
shr edx, 0x14
push edx
push ecx
push 7
push edi
push eax
push 0xf
push str.____Free_space_size:_______I64d_bytes___I64d_Mb__n_n
call fcn.00ce1e01
add esp, 0x38
cmp edi, esi
ja 0xce1b6b
jb 0xce1a9f
cmp dword [ebp - 0x48], ebx
jb 0xce1a9f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00ce1db6
mov esp, ebp
pop ebp
ret
Function at 0xce1b80
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3cc
mov eax, dword [0xcf0008]
xor eax, esp
mov dword [esp + 0x3c8], eax
push ebx
push esi
push edi
push str.__DumpIt___v1.3.2.20110401___One_click_memory_memory_dumper_n
call fcn.00ce1060
add esp, 4
push 0xcee348
call fcn.00ce1e01
add esp, 4
push str.__Copyright__c__2010___2011__MoonSols__http:__www.moonsols.com__n_n
call fcn.00ce1e01
add esp, 4
call fcn.00ce17e0
test al, al
jne 0xce1bf6
push str._______Error:_Cannot_import_functions._n
call fcn.00ce1000
add esp, 4
call fcn.00ce2140
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c8]
xor ecx, esp
call fcn.00ce1db6
mov esp, ebp
pop ebp
ret
xor ebx, ebx
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x44], ebx
mov word [esp + 0x48], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esp + 0xc], eax
cmp eax, ebx
je 0xce1c54
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0xce1c43
mov dword [esp + 0xc], ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [esp + 0xc], ebx
jne 0xce1c7d
push str._______Error:_This_application_requires_Administrator_privileges._n
call fcn.00ce1000
add esp, 4
call fcn.00ce2140
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c8]
xor ecx, esp
call fcn.00ce1db6
mov esp, ebp
pop ebp
ret
call fcn.00ce1a70
test al, al
jne 0xce1caf
push str._______You_dont_have_enough_space_on_disk_to_dump_the_physical_memory._n
call fcn.00ce1000
add esp, 4
call fcn.00ce2140
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c8]
xor ecx, esp
call fcn.00ce1db6
mov esp, ebp
pop ebp
ret
push 0x3b0
lea edx, [esp + 0x24]
push ebx
push edx
call fcn.00ce76b0
add esp, 0xc
lea edi, [esp + 0x94]
mov dword [esp + 0x28], 0x300021
call fcn.00ce1870
push str._____Destination_
call fcn.00ce1060
add esp, 4
mov eax, edi
push eax
push 0xcee5f8
call fcn.00ce10c0
add esp, 8
call fcn.00ce1120
test eax, eax
je 0xce1d9f
call fcn.00ce19c0
mov esi, eax
cmp esi, 0xffffffff
je 0xce1d9f
push str._____Processing...
call fcn.00ce1060
add esp, 4
push ebx
lea ecx, [esp + 0x18]
push ecx
push 0x3b0
lea edx, [esp + 0x2c]
push edx
push 0x3b0
mov eax, edx
push eax
push 0x22c000
push esi
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0xce1d65
push str.Failed._r_n_r_n
call fcn.00ce1e01
add esp, 4
push str._______Error:_DeviceIoControl____Cannot_send_IOCTL._r_n_r_n
call fcn.00ce1e01
add esp, 4
jmp 0xce1d93
cmp dword [esp + 0x24], ebx
jl 0xce1d81
cmp dword [esp + 0x20], 0x57333244
jne 0xce1d81
push str.Success._n
call fcn.00ce10c0
jmp 0xce1d8b
push str.Failed._n
call fcn.00ce1000
add esp, 4
call fcn.00ce2140
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00ce1720
mov ecx, dword [esp + 0x3d4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00ce1db6
mov esp, ebp
pop ebp
ret
Function at 0xce1db6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0xcf0008]
jne 0xce1dc0
repz ret
jmp fcn.00ce22d9

Function at 0xce8f75
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xcf0008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00ce5809
and dword [ebp - 0x14], 0
cmp dword [0xcf1b20], 0
mov dword [ebp - 0x18], eax
jne 0xce9028
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0xce90d0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0xce90d0
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0xcf1b20], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0xcf1b24], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0xcf1b28], eax
call edi
push eax
call esi
mov dword [0xcf1b30], eax
test eax, eax
je 0xce9028
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0xcf1b2c], eax
mov eax, dword [0xcf1b2c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0xce9081
cmp dword [0xcf1b30], ecx
je 0xce9081
push eax
call esi
push dword [0xcf1b30]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0xce9081
test ebx, ebx
je 0xce9081
call edi
test eax, eax
je 0xce9078
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0xce9078
test byte [ebp - 8], 1
jne 0xce9081
or dword [ebp + 0x10], 0x200000
jmp 0xce90b4
mov eax, dword [0xcf1b24]
cmp eax, dword [ebp - 0x18]
je 0xce90b4
push eax
call esi
test eax, eax
je 0xce90b4
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0xce90b4
mov eax, dword [0xcf1b28]
cmp eax, dword [ebp - 0x18]
je 0xce90b4
push eax
call esi
test eax, eax
je 0xce90b4
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0xcf1b20]
call esi
test eax, eax
je 0xce90d0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0xce90d2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00ce1db6
leave
ret
Function at 0x4024e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xb0
mov eax, 4
push ebp
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xb8]
push esi
test eax, eax
push edi
mov dword [esp + 0xc], 0
jne 0x40255d
mov edi, str.SYSTEMCurrentControlSetControlLsa
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x3c]
mov eax, ecx
mov esi, edi
mov edi, ebp
lea ebp, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov edx, reloc.OLEAUT32.dll_SysReAllocString
rep movsb byte es:[edi], byte [esi]
mov edi, str.restrictanonymous
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x402611
cmp eax, 1
jne 0x4025b5
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, SysReAllocString
mov eax, ecx
mov esi, edi
mov edi, ebp
lea ebp, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.HideFileExt
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x402611
cmp eax, 2
jne 0x40260d
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionPolicies_system
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, reloc.OLEAUT32.dll_SysReAllocString
mov eax, ecx
mov esi, edi
mov edi, ebp
lea ebp, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.dontdisplaylastusername
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x402611
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
lea eax, [esp + 0x3c]
push ecx
push 0xf003f
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
pop ebp
je 0x402646
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0xb0
ret 4
lea edx, [esp + 0xc]
lea eax, [esp]
push edx
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402673
mov dword [esp], 0
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0xb0
ret 4
Function at 0x402690
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x60
test eax, eax
push ebx
push esi
push edi
jne 0x4026f2
mov edi, str.SYSTEMCurrentControlSetControlLsa
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, ebx
lea ebx, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov edx, reloc.OLEAUT32.dll_SysReAllocString
rep movsb byte es:[edi], byte [esi]
mov edi, str.restrictanonymous
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4027a6
cmp eax, 1
jne 0x40274a
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, SysReAllocString
mov eax, ecx
mov esi, edi
mov edi, ebx
lea ebx, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.HideFileExt
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4027a6
cmp eax, 2
jne 0x4027a2
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionPolicies_system
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, reloc.OLEAUT32.dll_SysReAllocString
mov eax, ecx
mov esi, edi
mov edi, ebx
lea ebx, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.dontdisplaylastusername
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4027a6
mov edx, dword [esp + 0x70]
lea ecx, [esp + 0x70]
lea eax, [esp + 0x2c]
push ecx
push 0xf003f
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4027cf
mov ecx, dword [esp + 0x70]
push ecx
call esi
mov ecx, dword [esp + 0x70]
lea edx, [esp + 0x74]
push 4
push edx
push 4
lea eax, [esp + 0x18]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x70]
push edx
call esi
pop edi
pop esi
pop ebx
add esp, 0x60
ret 8
Function at 0x403f70
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x403f8f
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x403fd9
xor eax, eax
add esp, 0x14
ret
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret