joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Create service

Disassembly:
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
mov ecx, dword [esp + 0x10]
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push 1
push 3
push 1
push 0xf01ff
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x401030
ret
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
ret

Function at 0x4010b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x40
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
cmp eax, 5
jb 0x4010d4
mov eax, dword [esp + 0x44]
lea ecx, [esp]
push eax
push str..Global_s
push ecx
jmp 0x4010e3
mov edx, dword [esp + 0x44]
lea eax, [esp]
push edx
push str.._s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x401114
xor eax, eax
add esp, 0x40
ret
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x401127
mov dword [ecx], eax
mov eax, 1
add esp, 0x40
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x40
ret

Function at 0x401140
Capabilities:
Stop service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x1c
push esi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401164
pop esi
add esp, 0x1c
ret
lea edx, [esp + 4]
push edi
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x402be0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x432319
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x43ee7c]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], eax
mov ecx, dword [0x43ee7c]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 4], ecx
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
mov edx, dword [esp + 0x1c]
mov ecx, esi
push edx
mov byte [esp + 0x18], 3
call fcn.00401920
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x28], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x405c70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4325e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x43ee7c]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x38]
mov eax, dword [esi + 0xc]
cmp ebx, eax
mov dword [esp + 0x30], 0
jne 0x405d1e
mov eax, dword [esi + 0x24]
test eax, eax
je 0x405d1e
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi + 0x1c]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00405920
add esp, 0xc
test al, al
je 0x405e76
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
lea ecx, [esp + 0x10]
push ecx
push edx
push eax
mov ecx, esi
call fcn.004064f0
mov ecx, dword [esp + 0x10]
mov edi, dword [esi + 0x24]
mov edx, dword [esi + 8]
mov eax, dword [ecx - 8]
mov ecx, esi
sub eax, edi
push eax
push ebx
push edx
call fcn.004078c0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [eax - 8]
mov dword [esi + 0x24], eax
call fcn.00425dde
mov al, 1
jmp 0x405e89
test ebx, ebx
je 0x405e76
mov ecx, dword [esi + 0x30]
mov edi, ebx
sar edi, 0x10
mov ebp, ebx
shl edi, 2
and ebp, 0xffff
mov edx, dword [edi + ecx]
shl ebp, 5
mov eax, dword [edx + ebp + 0x14]
test eax, eax
jne 0x405e76
mov eax, dword [esp + 0x40]
test al, 1
je 0x405d7f
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.00405b40
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 1
call fcn.00425f17
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x3c]
jmp 0x405db6
mov edx, dword [esp + 0x3c]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call fcn.00405680
lea eax, [esp + 0x44]
push eax
call fcn.00401f60
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 2
call fcn.00425f17
mov byte [esp + 0x30], 0
lea ecx, [esp + 0x3c]
call fcn.00425dde
mov ecx, dword [0x43ee7c]
xor eax, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], 0x1002
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x10]
lea ecx, [esp + 0x24]
push edx
mov byte [esp + 0x34], 3
call fcn.00425f17
lea eax, [esp + 0x14]
lea ecx, [esp + 0x38]
push eax
push ecx
push ebx
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.00406690
mov edx, dword [esp + 0x24]
push 0
mov ecx, dword [edx - 8]
sub ecx, eax
mov dword [esp + 0x44], ecx
push ecx
push ebx
mov ecx, esi
call fcn.004065a0
mov eax, dword [esi + 0x30]
mov edx, dword [esp + 0x40]
mov ecx, dword [edi + eax]
mov ebx, dword [ecx + ebp + 4]
lea eax, [ecx + ebp + 4]
add ebx, edx
mov dword [eax], ebx
mov eax, dword [esi + 0x30]
mov ecx, dword [edi + eax]
mov eax, dword [ecx + ebp + 0xc]
test eax, 0x200000
lea ebp, [ecx + ebp + 0xc]
je 0x405e53
and eax, 0xffdfffff
mov dword [ebp], eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 0
call fcn.00425dde
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.00425dde
mov al, 1
jmp 0x405e89
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call fcn.00425dde
xor al, al
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 0xc
Function at 0x4082e0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x43ee7c]
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov dword [ebx + 0x18], eax
mov ecx, dword [0x43ee7c]
mov dword [ebx + 0x20], ecx
mov edx, dword [0x43ee7c]
mov dword [ebx + 0x24], edx
mov eax, dword [0x43ee7c]
mov dword [ebx + 0x28], eax
mov ecx, dword [0x43ee7c]
mov dword [ebx + 0x2c], ecx
mov edx, dword [0x43ee7c]
mov dword [ebx + 0x30], edx
mov eax, dword [0x43ee7c]
mov dword [ebx + 0x34], eax
mov ecx, dword [0x43ee7c]
mov dword [ebx + 0x38], ecx
mov edx, dword [0x43ee7c]
mov dword [ebx + 0x3c], edx
mov eax, dword [0x43ee7c]
mov dword [ebx + 0x4c], eax
mov ecx, dword [0x43ee7c]
mov dword [ebx + 0x50], ecx
mov edx, dword [0x43ee7c]
mov dword [ebx + 0xbe8], edx
mov eax, dword [0x43ee7c]
mov dword [ebx + 0xbf0], eax
mov ecx, dword [0x43ee7c]
mov dword [ebx + 0xbf4], ecx
mov edx, dword [0x43ee7c]
mov dword [ebx + 0xbf8], edx
mov eax, dword [0x43ee7c]
mov dword [ebx + 0xbfc], eax
mov ecx, dword [0x43ee7c]
mov dword [ebx + 0xc00], ecx
mov edx, dword [0x43ee7c]
mov dword [ebx + 0xc04], edx
mov eax, dword [0x43ee7c]
mov dword [ebx + 0xc08], eax
mov ecx, dword [0x43ee7c]
mov dword [ebx + 0xc0c], ecx
mov edx, dword [0x43ee7c]
mov dword [ebx + 0xc1c], edx
mov eax, dword [0x43ee7c]
mov dword [ebx + 0xc20], eax
lea ebp, [ebx + 0x17b0]
xor eax, eax
mov ecx, 0x41
mov edi, ebp
mov dword [ebx + 0x17ac], eax
mov dword [ebx + 0x17a8], eax
push 0x104
rep stosd dword es:[edi], eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str._vrvpolicy.xml
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x2df
lea edi, [ebx + 0x54]
rep stosd dword es:[edi], eax
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x408430
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x43283e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea edi, [esi + 0xbd0]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x50]
mov byte [esp + 0x18], 1
call fcn.00425dde
lea ecx, [edi + 0x4c]
mov byte [esp + 0x18], 0xa
call fcn.00425dde
lea ecx, [edi + 0x3c]
mov byte [esp + 0x18], 9
call fcn.00425dde
lea ecx, [edi + 0x38]
mov byte [esp + 0x18], 8
call fcn.00425dde
lea ecx, [edi + 0x34]
mov byte [esp + 0x18], 7
call fcn.00425dde
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 6
call fcn.00425dde
lea ecx, [edi + 0x2c]
mov byte [esp + 0x18], 5
call fcn.00425dde
lea ecx, [edi + 0x28]
mov byte [esp + 0x18], 4
call fcn.00425dde
lea ecx, [edi + 0x24]
mov byte [esp + 0x18], 3
call fcn.00425dde
lea ecx, [edi + 0x20]
mov byte [esp + 0x18], 2
call fcn.00425dde
lea ecx, [edi + 0x18]
mov byte [esp + 0x18], 0
call fcn.00425dde
lea ecx, [esi + 0x50]
mov dword [esp + 0x18], 0xb
call fcn.00425dde
lea ecx, [esi + 0x4c]
mov dword [esp + 0x18], 0x14
call fcn.00425dde
lea ecx, [esi + 0x3c]
mov byte [esp + 0x18], 0x13
call fcn.00425dde
lea ecx, [esi + 0x38]
mov byte [esp + 0x18], 0x12
call fcn.00425dde
lea ecx, [esi + 0x34]
mov byte [esp + 0x18], 0x11
call fcn.00425dde
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 0x10
call fcn.00425dde
mov byte [esp + 0x18], 0xf
lea ecx, [esi + 0x2c]
call fcn.00425dde
lea ecx, [esi + 0x28]
mov byte [esp + 0x18], 0xe
call fcn.00425dde
lea ecx, [esi + 0x24]
mov byte [esp + 0x18], 0xd
call fcn.00425dde
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 0xc
call fcn.00425dde
lea ecx, [esi + 0x18]
mov dword [esp + 0x18], 0xffffffff
call fcn.00425dde
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x409650
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
call fcn.00409790
test eax, eax
jne 0x40965e
pop esi
ret
mov ecx, esi
call fcn.00408d20
test eax, eax
jne 0x409678
push 0x43d69c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop esi
ret
push edi
lea edi, [esi + 0x54]
add esi, 0xc24
mov ecx, 0x2df
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
pop edi
pop esi
setne al
ret

Function at 0x409790
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x18
push esi
push edi
push 0
mov esi, ecx
push 0x80
push 3
push 0
push 1
lea eax, [esi + 0x17b0]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4097c5
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x4097f0
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
add esp, 0x18
ret
mov eax, dword [esi + 0x17ac]
test eax, eax
je 0x409850
mov edx, dword [esi + 0x17a8]
test edx, edx
je 0x409850
mov ecx, dword [esp + 0xc]
cmp eax, ecx
mov eax, dword [esp + 8]
jne 0x409825
cmp edx, eax
jne 0x409825
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
add esp, 0x18
ret
mov dword [esi + 0x17a0], eax
push 0x43d710
mov dword [esi + 0x17a4], ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
add esp, 0x18
ret
push 0x43d6f4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esi + 0x17a0], ecx
mov dword [esi + 0x17a4], edx
push edi
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
add esp, 0x18
ret
Function at 0x40b370
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov eax, 0x181c
call fcn.004143e0
mov edx, dword [esp + 0x1820]
push ebx
push esi
mov esi, ecx
lea eax, [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x82c]
push 0x1000
push ecx
push 1
push edx
xor ebx, ebx
mov dword [esp + 0x30], 2
mov dword [esp + 0x2c], 0x1000
call dword [esi + 0x20]
test eax, eax
jne 0x40b3cd
push str.GetTokenInformation_Fail__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x181c
ret 8
mov eax, dword [esp + 0x828]
push 1
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [esi + 0x24]
test eax, eax
je 0x40b3fc
push str.RtlConvertSidToUnicodeString_Fail__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x181c
ret 8
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push ebx
lea edx, [esp + 0x30]
push 0x800
stosb byte es:[edi], al
mov eax, dword [esp + 0x30]
push edx
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x20]
push ecx
call dword [esi + 0x28]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40b44f
pop edi
pop esi
pop ebx
add esp, 0x181c
ret 8
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorer
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2c]
mov esi, edi
mov ebp, ecx
mov edi, edx
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
lea eax, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x30]
push ecx
push ebx
push 0xf003f
push ebx
push 0x442da0
push ebx
push edx
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
pop ebp
je 0x40b4b8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x181c
ret 8
mov ecx, dword [esp + 0x1830]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
push ebx
push str.Logon_User_Name
push eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b4f4
mov ebx, 1
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x181c
ret 8
Function at 0x40b870
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1114
call fcn.004143e0
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x121]
mov byte [esp + 0x120], bl
mov byte [esp + 0x1c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x104
mov ecx, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
xor eax, eax
lea edi, [esp + 0x1d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x1128]
mov dword [esp + 0x14], 0x1000
cmp edi, ebx
jne 0x40b8dd
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1114
ret 8
mov edx, dword [esp + 0x1124]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x124]
push 0x1000
push ecx
push 1
push edx
call dword [esi + 0x20]
test eax, eax
jne 0x40b919
push str.GetTokenInformation_Fail__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1114
ret 8
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x128]
lea eax, [esp + 0x14]
push edx
push eax
push edi
push ecx
push ebx
call dword [esi + 0x4c]
test eax, eax
jne 0x40b957
push str.LookupAccountSid_Fail__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x1114
ret 8
mov ebx, 1
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x1114
ret 8

Function at 0x40be50
Capabilities:
Find taskbar
Print debug messages

Disassembly:
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov eax, dword [edi + 0x30]
test eax, eax
jne 0x40be76
pop edi
xor eax, eax
pop esi
add esp, 8
ret
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x40be9c
push str.CVista:_EXPLORER_NOT_FOUND_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 8
ret
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 0xc]
push edx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x40bed5
push str.CVista:_OpenProcess_EXPLORER_Fail_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 8
ret
lea eax, [esp + 8]
push eax
push 0xf01ff
push esi
call dword [edi + 0x30]
test eax, eax
jne 0x40bef2
push str.CVista:_OpenProcessToken_EXPLORER_Fail_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 8
ret

Function at 0x40c0c0
Capabilities:
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x40c0cd
mov eax, 0x442da8
push esi
xor ecx, ecx
mov edx, eax
mov eax, ecx
mov esi, 8
test al, 1
je 0x40c0e6
shr eax, 1
xor eax, 0xedb88320
jmp 0x40c0e8
shr eax, 1
dec esi
jne 0x40c0d9
mov dword [edx], eax
inc ecx
add edx, 4
cmp ecx, 0x400
jl 0x40c0d2
pop esi
ret
Function at 0x40c100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
jne 0x40c10f
mov eax, dword [esp + 8]
pop ebp
ret
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x40c11e
mov edi, 0x442da8
mov esi, dword [esp + 0x18]
xor ecx, ecx
test esi, esi
jbe 0x40c14e
mov eax, dword [esp + 0x10]
push ebx
xor edx, edx
mov ebx, eax
mov dl, byte [ecx + ebp]
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edi + edx*4]
xor eax, edx
inc ecx
cmp ecx, esi
jb 0x40c12d
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
ret

Function at 0x40c220
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp], 0xffffffff
push eax
push str.aegisdsk
call fcn.004010b0
mov eax, dword [esp + 8]
add esp, 8
cmp eax, 0xffffffff
jne 0x40c257
push str.VRVSAFEC:___StartSYS_Error_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
add esp, 8
ret
lea ecx, [esp + 4]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0x83000014
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.VRVSAFEC:___StartSYS_OK_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
add esp, 8
ret

Function at 0x40c2a0
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
lea eax, [esp]
mov dword [esp], 0xffffffff
push eax
push str.aegisdsk
call fcn.004010b0
mov eax, dword [esp + 8]
add esp, 8
cmp eax, 0xffffffff
jne 0x40c2d7
push str.VRVSAFEC:StopSYS_Error_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
add esp, 8
ret
lea ecx, [esp + 4]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0x83000010
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.VRVSAFEC:StopSYS_OK_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
add esp, 8
ret
Function at 0x40d190
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x40d1da
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
jne 0x40d1da
pop edi
pop esi
add esp, 0x9c
ret
cmp dword [esp + 0x18], 2
jne 0x40d235
mov eax, dword [esp + 0xc]
cmp eax, 6
jb 0x40d1f8
pop edi
mov eax, 4
pop esi
add esp, 0x9c
ret
cmp eax, 5
jne 0x40d227
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x40d214
pop edi
mov eax, 3
pop esi
add esp, 0x9c
ret
cmp eax, 1
jne 0x40d227
pop edi
mov eax, 2
pop esi
add esp, 0x9c
ret
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x9c
ret
Function at 0x40e310
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
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 0x40e32f
add esp, 0x1c
ret
lea ecx, [esp + 4]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x40e356
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x1c
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
push 0x10
push edx
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x40e3a3
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x1c
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x1c
ret
Function at 0x40e3c0
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x432c66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x20]
xor ebx, ebx
push 0x104
push eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x43e500
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.VRVHOOK.DLL
call fcn.00425e4c
lea eax, [esp + 0x18]
push eax
call fcn.00410030
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
add esp, 8
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.00425dde
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [0x43ee7c]
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x20]
push 0x43d190
push edx
mov dword [esp + 0x134], ebx
call fcn.00413497
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x40e56c
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.Vrvhook.dll
call fcn.00425e4c
lea eax, [esp + 0x14]
push eax
call fcn.00410030
add esp, 8
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [esp + 0x134]
push 0x43e4e4
cmp ecx, ebx
je 0x40e4fc
push str.IDR_VRV_NT
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x40e50e
jmp 0x40e52f
push str.IDR_VRV_9X
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x40e52f
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x40e52f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
jne 0x40e541
lea ecx, [esp + 0x10]
mov byte [esp + 0x12c], bl
call fcn.00425dde
jmp 0x40e57a
push edi
push 1
push eax
push ebp
call fcn.004134aa
push edi
call fcn.00412eb8
add esp, 0x14
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], 1
mov byte [esp + 0x12c], bl
call fcn.00425dde
lea edx, [esp + 0x20]
lea ecx, [esp + 0x1c]
push edx
call fcn.00425f67
cmp edi, ebx
je 0x40e587
push edi
call fcn.00412eb8
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00425dde
mov ecx, dword [esp + 0x124]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x120
ret