joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e300
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49ac76
mov eax, dword fs:[0]
push eax
sub esp, 0x69c
mov eax, dword [0x4cc3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 3
jb 0x40e511
mov edi, dword [esi + 0x14]
mov eax, esi
cmp edi, 8
jb 0x40e347
mov eax, dword [esi]
cmp word [eax + 2], 0x3a
jne 0x40e511
mov eax, esi
cmp edi, 8
jb 0x40e35b
mov eax, dword [esi]
cmp word [eax + 4], 0x5c
je 0x40e376
mov eax, esi
cmp edi, 8
jb 0x40e36b
mov eax, dword [esi]
cmp word [eax + 4], 0x2f
jne 0x40e511
xor eax, eax
push 0x20a
push eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x648]
push eax
call fcn.00473e20
push 0x20a
lea eax, [ebp - 0x43c]
push 0
push eax
call fcn.00473e20
push 0x20a
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.00473e20
add esp, 0x24
mov eax, esi
cmp edi, 8
jb 0x40e3cb
mov eax, dword [esi]
push 0x105
lea ecx, [ebp - 0x230]
push ecx
push 0x105
lea ecx, [ebp - 0x43c]
push ecx
push 0x105
lea ecx, [ebp - 0x648]
push ecx
push 0xa
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0047eb53
lea ecx, [ebp - 0x24]
add esp, 0x24
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e404
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jne 0x40e511
mov ecx, dword [ebp - 0x24]
lea eax, [ecx - 0x41]
cmp ax, 0x19
ja 0x40e430
add word [ebp - 0x24], 0x20
mov ecx, dword [ebp - 0x24]
lea eax, [ecx - 0x61]
cmp ax, 0x19
ja 0x40e46e
cmp word [ebp - 0x22], 0x3a
jne 0x40e46e
push 0x4a49a0
lea eax, [ebp - 0x24]
push 0xa
push eax
call fcn.0047e4f2
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x40e467
cmp eax, 6
jne 0x40e46e
mov al, 1
jmp 0x40e513
lea eax, [ebp - 0x690]
push esi
push eax
call fcn.00469d70
push eax
lea eax, [ebp - 0x678]
mov dword [ebp - 4], 0
push eax
call fcn.00469a70
push eax
lea eax, [ebp - 0x660]
mov byte [ebp - 4], 1
push eax
call fcn.0046a9b0
add esp, 0x18
lea ecx, [ebp - 0x678]
call fcn.004022a0
lea ecx, [ebp - 0x690]
mov byte [ebp - 4], 4
call fcn.004022a0
cmp dword [ebp - 0x64c], 8
lea eax, [ebp - 0x6a8]
push 1
lea esi, [ebp - 0x660]
cmovae esi, dword [ebp - 0x660]
push eax
call fcn.004621c0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x40e4ea
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsPrefixW]
test eax, eax
lea ecx, [ebp - 0x6a8]
setne bl
call fcn.004022a0
lea ecx, [ebp - 0x660]
call fcn.004022a0
mov al, bl
jmp 0x40e513
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472108
mov esp, ebp
pop ebp
ret
Function at 0x40f290
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp + 0xc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test esi, esi
je 0x40f2c1
cmp esi, 0xffffffff
je 0x40f2c1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret 8

Function at 0x40f300
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4cc3d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40f3de
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareKingsoftwpscloudperfinfoc
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40f3de
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x40f39d
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
sub ecx, 0xd53e8000
push 0
push 0x2710
sbb eax, 0x19db1de
push eax
push ecx
call fcn.00472350
jmp 0x40f3a1
xor eax, eax
xor edx, edx
push 8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 0xb
push 0
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x24], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472108
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00472108
mov esp, ebp
pop ebp
ret 8
Function at 0x410fa0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b105
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4cc3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ecx + 4]
lea eax, [ebp - 0x3c]
push eax
call fcn.00405c60
mov ebx, dword [ebp - 0x38]
xor ecx, ecx
mov eax, ebx
mov dword [ebp - 4], 0
mov edx, 4
mov dword [ebp - 0x34], ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00471ea9
mov ecx, dword [ebp - 0x3c]
add esp, 4
mov edx, eax
mov dword [ebp - 0x2c], edx
mov esi, dword [ecx]
cmp esi, ecx
je 0x411109
mov ebx, edx
jmp 0x411020
lea ecx, [esi + 8]
mov dword [ebx], 0
call fcn.00405e00
test eax, eax
jne 0x4110f5
lea ecx, [esi + 8]
call fcn.00405de0
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4110f5
lea ecx, [esi + 8]
call fcn.00405df0
test eax, eax
jne 0x4111a0
lea ecx, [esi + 8]
call fcn.00405c50
test eax, eax
je 0x4111a0
call fcn.004042e0
mov ecx, eax
call fcn.00404320
mov dword [ebp - 0x40], eax
lea ecx, [esi + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.00405dc0
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 1
jb 0x41109e
mov eax, dword [eax]
mov ecx, dword [ebp - 0x40]
push 0
push 0
push 0
push str._NOTIFY_EXIT_
push eax
call fcn.00411fa0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x4110f0
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4110e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4111b1
push edx
push ecx
call fcn.00471e9b
add esp, 8
mov edi, dword [ebp - 0x30]
mov dword [ebx], edi
mov esi, dword [esi]
add ebx, 4
cmp esi, dword [ebp - 0x3c]
jne 0x411020
mov edx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x34]
push 0x2710
push 1
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor esi, esi
test ebx, ebx
jle 0x411171
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx]
mov eax, dword [ecx + esi*4]
test eax, eax
je 0x41116b
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push ecx
push eax
call ebx
test eax, eax
je 0x411160
cmp dword [ebp - 0x30], 0x103
jne 0x411160
mov eax, dword [ebp - 0x2c]
push 0
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x2c]
push dword [eax + esi*4]
call edi
mov ecx, dword [ebp - 0x2c]
inc esi
cmp esi, dword [ebp - 0x34]
jl 0x411130
push dword [ebp - 0x2c]
call fcn.00471eb2
add esp, 4
lea ecx, [ebp - 0x3c]
call fcn.00405530
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472108
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x30]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x4110f3
call fcn.0047d41e
int3
Function at 0x413300
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4cc3d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.00473e20
add esp, 0xc
mov dword [ebp - 0x210], 0x104
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00403330
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00472108
mov esp, ebp
pop ebp
ret 4
Function at 0x413cd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
call fcn.00413f90
cmp eax, 3
jne 0x413cf4
push dword [ebp + 8]
mov ecx, esi
call fcn.00413c70
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.004142c0
test al, al
jne 0x413d0d
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
inc eax
jmp 0x413dc7
cmp dword [esi], 0
je 0x413d52
call fcn.004142c0
test al, al
je 0x413d52
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 1
push eax
push 4
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 0
push eax
push 0x12
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x413d52
mov eax, dword [ebp - 8]
cmp eax, 2
je 0x413dcf
cmp eax, 3
je 0x413dcf
call fcn.004142c0
test al, al
jne 0x413d68
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
inc eax
jmp 0x413dc7
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413dbf
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push str.EnableLUA
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0xc], eax
setne al
test eax, eax
je 0x413e4f
mov ecx, esi
call fcn.00413f90
cmp eax, 2
jne 0x413e4f
mov eax, dword [esi]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x413e4f
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push ecx
push 1
push 2
push 0
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x413e4f
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x18]
push 0x2000
mov dword [ebp - 0x18], eax
call fcn.00414c60
test eax, eax
je 0x413e41
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x413e30
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov dword [esi], eax
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x413e4f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x413f90
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4cc3d0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov ecx, dword [edi]
test ecx, ecx
jne 0x413fba
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472108
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
test eax, eax
jne 0x4140eb
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 1
push ecx
call esi
push dword [ebp - 0x10]
call fcn.00471ea9
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push ebx
push 1
push dword [edi]
call esi
test eax, eax
je 0x41408c
mov esi, dword [ebx]
test esi, esi
je 0x41408c
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x41408c
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x41408c
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push ebx
call fcn.00471eb2
add esp, 4
test esi, esi
je 0x414095
pop esi
pop ebx
mov dword [edi + 4], 1
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472108
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00471eb2
add esp, 4
push 0x220
mov ecx, edi
call fcn.00414100
test eax, eax
je 0x4140dd
mov ecx, edi
call fcn.00413e60
cmp eax, 3
je 0x4140c4
mov ecx, edi
call fcn.00413eb0
cmp eax, 0x2000
mov eax, 2
jne 0x4140c9
mov eax, 3
pop esi
pop ebx
mov dword [edi + 4], eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472108
mov esp, ebp
pop ebp
ret
pop esi
mov dword [edi + 4], 4
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00472108
mov esp, ebp
pop ebp
ret
Function at 0x414100
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4cc3d0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x4142ad
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push 0x20
push 2
push eax
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4142ad
push esi
mov ecx, edi
xor esi, esi
call fcn.00413e60
cmp eax, 3
jne 0x414234
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push eax
mov ecx, edi
mov dword [ebp - 0x18], esi
call fcn.00413bd0
mov edi, dword [ebp - 0x1c]
test eax, eax
je 0x414285
mov esi, dword [ebp - 0x14]
test edi, edi
je 0x4141c0
test esi, esi
je 0x4141c0
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x4141c0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb esi, esi
and esi, dword [ebp - 0x10]
jne 0x414285
jmp 0x4141c2
xor esi, esi
test edi, edi
je 0x414290
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x414285
mov esi, dword [ebp - 0x14]
push ebx
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x414224
test esi, esi
je 0x414224
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x414224
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
push ebx
sbb esi, esi
and esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
jmp 0x414285
xor esi, esi
test ebx, ebx
je 0x414231
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
jmp 0x414285
mov eax, dword [edi]
test eax, eax
je 0x414290
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x414290
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
test edi, edi
je 0x414283
test esi, esi
je 0x414283
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x414283
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb esi, esi
and esi, dword [ebp - 0x10]
jmp 0x414289
xor esi, esi
test edi, edi
je 0x414290
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472108
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.00472108
mov esp, ebp
pop ebp
ret 4
Function at 0x414b80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.004142c0
test al, al
jne 0x414ba2
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
pop esi
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret
cmp dword [esi], 0
je 0x414bed
call fcn.004142c0
test al, al
je 0x414bed
lea eax, [ebp - 8]
mov dword [ebp - 4], 1
push eax
push 4
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 0x12
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x414bed
mov eax, dword [ebp - 4]
cmp eax, 2
je 0x414be3
cmp eax, 3
jne 0x414bed
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004142c0
test al, al
je 0x414b92
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414c4d
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.EnableLUA
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], eax
pop esi
setne al
mov esp, ebp
pop ebp
ret

Function at 0x414d30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499ec7
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4cc3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 1
call fcn.00473e20
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
je 0x414ddd
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414dd0
jmp 0x414e2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x414e3e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00473e20
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x414e3e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414e20
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402db0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472108
mov esp, ebp
pop ebp
ret
Function at 0x415340
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b7d1
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4cc3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00415f00
cmp dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
jne 0x415383
xor esi, esi
jmp 0x4153ec
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4d5588]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4d0e44]
cmp eax, dword [ecx + 4]
jg 0x415442
push 0x4d0e2c
lea ecx, [ebp - 0x40]
call fcn.00401730
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4153df
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041fe90
add esp, 0xc
mov esi, eax
jmp 0x4153e4
mov esi, 1
lea ecx, [ebp - 0x40]
call fcn.004022a0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x415426
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41541c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4154c5
push edx
push ecx
call fcn.00471e9b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472108
mov esp, ebp
pop ebp
ret
push 0x4d0e44
call fcn.0047226c
add esp, 4
cmp dword [0x4d0e44], 0xffffffff
jne 0x4153a3
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push 1
push eax
call fcn.004621c0
push str.office6_
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
call fcn.00403130
push 0x4a510c
push eax
push 0x4d0e2c
mov byte [ebp - 4], 3
call fcn.00403130
add esp, 0x20
lea ecx, [ebp - 0x58]
call fcn.004022a0
lea ecx, [ebp - 0x70]
call fcn.004022a0
push 0x4a2b50
call fcn.004720f3
push 0x4d0e44
mov byte [ebp - 4], 0
call fcn.00472222
add esp, 8
jmp 0x4153a3
call fcn.0047d41e
int3
Function at 0x415f00
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b906
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x4cc3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4d5588]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x264], esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4d0e48]
cmp eax, dword [ecx + 4]
jg 0x416175
cmp dword [0x4cc030], 0
jne 0x41614b
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00473e20
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x41614b
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x238], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
jmp 0x415fc0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415fc0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00402db0
push 0x12
xor eax, eax
mov dword [ebp - 0x230], 0
push str.Kingsoftoffice6_
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00402db0
push 0x4a510c
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00403130
add esp, 0xc
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov byte [ebp - 4], 2
jb 0x416050
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00402c30
cmp eax, 0x4cc020
je 0x41607b
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x41606f
mov eax, dword [eax]
push ecx
push eax
mov ecx, 0x4cc020
call fcn.00402db0
lea ecx, [ebp - 0x260]
call fcn.004022a0
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x4160ca
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4160c0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4161ab
push edx
push ecx
call fcn.00471e9b
add esp, 8
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x41612e
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416124
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4161ab
push edx
push ecx
call fcn.00471e9b
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
push 0x4cc020
mov ecx, esi
call fcn.00401730
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472108
mov esp, ebp
pop ebp
ret 4
push 0x4d0e48
call fcn.0047226c
add esp, 4
cmp dword [0x4d0e48], 0xffffffff
jne 0x415f55
push 0x4a2bb0
call fcn.004720f3
push 0x4d0e48
call fcn.00472222
add esp, 8
jmp 0x415f55
call fcn.0047d41e
int3