joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428c33
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
cmp dword [esp + 8], ecx
jle 0x428c4b
mov eax, dword [esp + 4]
add eax, ecx
xor byte [eax], 0x88
inc ecx
cmp ecx, dword [esp + 8]
jl 0x428c3b
ret 8

Function at 0x429b1d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x90
mov eax, dword [0x4a5294]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
push ebx
push esi
push edi
xor esi, esi
push 0x7e
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xe]
push esi
push eax
mov word [ebp - 0x10], si
call fcn.00451930
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push str.idex
mov ebx, str.CLSID9B7A98EC_7EF9_468c_ACC8_37C793DBD7E0Implemented_CategoriesA5F7140E_4311_4ef9_AABC_F55941B5EBE5
push ebx
mov dword [ebp - 0x18], esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edi, SysReAllocString
push edi
mov dword [ebp - 0x14], 0x80
call esi
test eax, eax
jne 0x429b91
cmp dword [ebp - 0x18], 1
jne 0x429b91
mov eax, dword [ebp - 0x14]
cmp eax, 2
jae 0x429bb8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x48ae78
push ebx
push edi
call esi
test eax, eax
jne 0x429bd1
cmp dword [ebp - 0x18], 1
jne 0x429bd1
mov eax, dword [ebp - 0x14]
cmp eax, 2
jb 0x429bd1
shr eax, 1
and word [ebp + eax*2 - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
call fcn.00401d29
xor eax, eax
inc eax
jmp 0x429bd3
xor eax, eax
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00451a25
add ebp, 0x74
leave
ret 4

Function at 0x429dca
Capabilities:
Set registry value

Disassembly:
push 0x14
mov eax, 0x482bd8
call fcn.004579d0
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
xor edi, edi
inc edi
push edi
push edi
add eax, 0x10
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 0x20006
call dword [sym.imp.KERNEL32.DLL_InterlockedCompareExchange]
cmp eax, edi
jne 0x429e86
call fcn.0042ae3e
cmp byte [eax + 0x20], bl
je 0x429e15
mov dword [ebp - 0x1c], 0x20206
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], ebx
push ebx
push ebx
push ebx
push 0x492bf0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x429e86
mov esi, dword [esi]
cmp esi, ebx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], edi
jne 0x429e54
push 0x80004005
call fcn.00402592
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push edi
push ebx
push str.mac_value
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x429e78
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x14], ebx
je 0x429e86
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
call fcn.00457a53
ret 4
Function at 0x42a168
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42a1cb
cmp dword [ebp + 0xc], 1
je 0x42a1a4
cmp dword [ebp + 0xc], 2
je 0x42a1a4
push 0xd
pop eax
jmp 0x42a1cb
test edi, edi
mov eax, dword [ebp - 4]
je 0x42a1c5
test eax, eax
je 0x42a1c1
test al, 1
jne 0x42a19f
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x42a1c5
jmp 0x42a19f
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x42a8ae
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4a5294]
xor eax, ebp
mov dword [ebp + 0x190], eax
test esi, esi
je 0x42a972
and dword [ebp - 0x80], 0
and word [ebp - 0x78], 0
push 0x206
lea eax, [ebp - 0x76]
push 0
push eax
call fcn.00451930
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
push str.ProgramPath
push 0x492bf0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x42a972
cmp dword [ebp - 0x80], 1
jne 0x42a972
mov eax, dword [ebp - 0x7c]
cmp eax, 2
jb 0x42a972
shr eax, 1
and word [ebp + eax*2 - 0x78], 0
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42a972
lea eax, [ebp - 0x78]
push eax
call fcn.00451a34
inc eax
cmp dword [ebp + 0x19c], eax
pop ecx
jb 0x42a972
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x19c]
push esi
call fcn.00456a40
xor eax, eax
add esp, 0xc
inc eax
jmp 0x42a974
xor eax, eax
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.00451a25
add ebp, 0x194
leave
ret
Function at 0x42aa7a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4a5294]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x54], 0
push edi
xor eax, eax
lea edi, [ebp - 0x52]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
and word [ebp - 0x44], 0
push 0x3e
lea eax, [ebp - 0x42]
push 0
push eax
call fcn.00451930
movzx eax, word [ebp - 0x48]
push eax
movzx eax, word [ebp - 0x4a]
push eax
movzx eax, word [ebp - 0x4c]
push eax
movzx eax, word [ebp - 0x4e]
push eax
movzx eax, word [ebp - 0x52]
push eax
movzx eax, word [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push str._04d__02d__02d__02d:_02d:_02d
push eax
call fcn.0042abfb
lea eax, [ebp - 0x44]
push eax
call fcn.00451a34
add esp, 0x30
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x44]
push eax
push 1
push str.InstallTime
push str.SOFTWAREkbasesrvSetup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
pop edi
call fcn.00451a25
leave
ret

Function at 0x42ab20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4a5294]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x4c], 0
and word [ebp - 0x44], 0
push 0x3e
lea eax, [ebp - 0x42]
push 0
push eax
call fcn.00451930
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
push str.InstallTime
push str.SOFTWAREkbasesrvSetup
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x48], 0x40
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x42ab9a
cmp dword [ebp - 0x4c], 1
jne 0x42ab9a
mov eax, dword [ebp - 0x48]
cmp eax, 2
jb 0x42ab9a
shr eax, 1
and word [ebp + eax*2 - 0x44], 0
lea eax, [ebp - 0x44]
push eax
push edi
call fcn.00401d29
xor eax, eax
inc eax
jmp 0x42ab9c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00451a25
leave
ret
Function at 0x42ae9b
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0xc8]
sub esp, 0x148
mov eax, dword [0x4a5294]
xor eax, ebp
mov dword [ebp + 0xc4], eax
and dword [esi], 0
push ebx
push edi
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push str.IsWow64Process
push 0x48b080
mov edi, eax
call ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
jne 0x42aeeb
xor al, al
jmp 0x42af01
and dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x5c]
push ecx
push edi
call eax
test eax, eax
je 0x42aee7
cmp dword [ebp - 0x5c], 0
setne al
push 0x118
mov byte [esi + 0x20], al
lea eax, [ebp - 0x54]
push 0
push eax
mov dword [ebp - 0x58], 0x11c
call fcn.00451930
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
push 5
pop edi
cmp eax, edi
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
jne 0x42af52
test ecx, ecx
jle 0x42af79
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x42af79
push 6
pop edx
cmp eax, edx
jne 0x42af75
sub ecx, 0
je 0x42af6d
dec ecx
je 0x42af65
mov dword [esi], edi
jmp 0x42af79
mov dword [esi], 4
jmp 0x42af79
mov dword [esi], 3
jmp 0x42af79
jle 0x42af79
mov dword [esi], edx
movzx eax, word [ebp + 0xbc]
and dword [ebp - 0x80], 0
mov dword [esi + 0x10], eax
movzx eax, word [ebp + 0xbe]
push 8
pop ecx
mov dword [esi + 0x14], eax
push str.GetNativeSystemInfo
xor eax, eax
lea edi, [ebp - 0x7c]
push 0x48b080
rep stosd dword es:[edi], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
pop edi
pop ebx
jne 0x42afc0
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
jmp 0x42afc6
lea ecx, [ebp - 0x80]
push ecx
call eax
movzx eax, word [ebp - 0x80]
test eax, eax
je 0x42afea
cmp eax, 6
je 0x42afe1
cmp eax, 9
jne 0x42afee
mov dword [esi + 0x18], 1
jmp 0x42afee
mov dword [esi + 0x18], 2
jmp 0x42afee
and dword [esi + 0x18], 0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp + 0xc4]
mov dword [esi + 0x1c], eax
xor ecx, ebp
mov eax, esi
call fcn.00451a25
add ebp, 0xc8
leave
ret

Function at 0x42b00b
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x484fd8
call fcn.00457967
mov eax, dword [0x4a8884]
mov ecx, 0x4a8884
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
call fcn.0042b788
test eax, eax
lea eax, [ebp - 0x10]
push eax
je 0x42b042
call fcn.0042b620
jmp 0x42b047
call fcn.0042b5e0
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jle 0x42b068
mov eax, dword [ebp + 0xc]
push dword [eax]
push 0xffffffffffffffff
push esi
push str.ulst
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
cmp eax, 0xffffffff
je 0x42b074
lea eax, [ebp - 0x10]
push eax
call fcn.0042b620
mov esi, dword [ebp - 0x10]
push esi
push dword [ebp + 8]
call fcn.00401d29
lea eax, [esi - 0x10]
call fcn.0040257a
call fcn.00457a3f
ret 8
Function at 0x42b08d
Capabilities:
Read .ini file

Disassembly:
push 0x22c
mov eax, 0x4854f6
call fcn.004579d0
xor eax, eax
push 0x206
push eax
mov dword [ebp - 0x228], eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
mov esi, edx
push eax
mov ebx, ecx
mov dword [ebp - 0x220], esi
call fcn.00451930
add esp, 0xc
lea edi, [ebp - 0x238]
call fcn.0042b8fb
and dword [ebp - 4], 0
mov eax, edi
call fcn.0042b94d
test eax, eax
jne 0x42b0f4
mov ecx, dword [ebx]
mov eax, edi
push eax
mov edi, esi
call fcn.0042b9b8
test eax, eax
je 0x42b0fe
mov dword [ebp - 0x228], 1
mov eax, dword [0x4a8884]
mov ecx, 0x4a8884
xor edi, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
lea esi, [ebp - 0x22c]
mov byte [ebp - 4], 1
call fcn.0042b661
test eax, eax
mov esi, dword [ebp - 0x22c]
mov dword [ebp - 0x224], eax
je 0x42b153
mov eax, dword [ebx]
push esi
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push edi
push eax
push 0x49334c
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov edi, eax
cmp dword [ebp - 0x228], 0
je 0x42b192
test edi, edi
ja 0x42b174
mov ecx, dword [ebp - 0x220]
push ebx
call fcn.0042b1dd
mov dword [ebp - 0x224], eax
jmp 0x42b1a2
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x220]
call fcn.00401d29
mov dword [ebp - 0x224], 1
jmp 0x42b196
test edi, edi
ja 0x42b1a2
push ebx
mov ebx, dword [ebp - 0x220]
call fcn.0042b837
lea eax, [esi - 0x10]
call fcn.0040257a
cmp dword [ebp - 0x234], 0
je 0x42b1c6
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x234], 0
lea ecx, [ebp - 0x238]
call fcn.0042b933
mov eax, dword [ebp - 0x224]
call fcn.00457a53
ret
Function at 0x42b6d6
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x4a5294]
xor eax, ebp
mov dword [ebp + 0x188], eax
push esi
xor esi, esi
push 0x206
lea eax, [ebp - 0x7e]
push esi
push eax
mov word [ebp - 0x80], si
call fcn.00451930
add esp, 0xc
cmp edi, esi
je 0x42b772
push 1
push 0x23
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
mov esi, 0x104
jne 0x42b747
push esi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
je 0x42b772
push str.All_UsersApplication_Data
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.00456adb
add esp, 0xc
push str.KingsoftKIS_
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.00456adb
lea eax, [ebp - 0x80]
push eax
call fcn.00451a34
add esp, 0x10
cmp eax, esi
jae 0x42b772
lea eax, [ebp - 0x80]
push eax
push edi
call fcn.00456bf6
pop ecx
pop ecx
mov ecx, dword [ebp + 0x188]
xor ecx, ebp
pop esi
call fcn.00451a25
add ebp, 0x18c
leave
ret

Function at 0x42b837
Capabilities:
Set registry value

Disassembly:
push 0x10
mov eax, 0x485460
call fcn.00457967
lea edi, [ebp - 0x1c]
call fcn.0042b8fb
and dword [ebp - 4], 0
mov eax, edi
call fcn.0042b94d
test eax, eax
jne 0x42b87c
mov esi, dword [ebx]
mov eax, dword [ebp + 8]
mov edi, dword [eax]
push esi
call fcn.00451a34
pop ecx
lea eax, [eax + eax + 1]
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [0x4a8884]
mov ecx, 0x4a8884
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0042b661
test eax, eax
mov esi, dword [ebp - 0x10]
je 0x42b8b5
mov eax, dword [ebp + 8]
push esi
push dword [ebx]
push dword [eax]
push 0x49334c
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
cmp dword [ebp - 0x18], 0
je 0x42b8c8
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x18], 0
lea eax, [esi - 0x10]
call fcn.0040257a
lea ecx, [ebp - 0x1c]
call fcn.0042b933
call fcn.00457a3f
ret 4
Function at 0x42ba27
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x42bacb
push edi
push 1
push esi
call fcn.00456276
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x42bac8
push edi
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42bac1
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x493474
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42bac1
cmp dword [ebp - 4], 0
je 0x42bac1
push 0x10
call fcn.00402aa5
mov esi, eax
test esi, esi
pop ecx
je 0x42bac8
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
mov dword [esi + 8], ecx
lea ecx, [ebp - 0x10]
push ecx
mov dword [esi + 4], eax
lea eax, [esi + 0xc]
and dword [eax], 0
push eax
push 0x48b618
push edi
mov dword [esi], edi
call sub.VERSION.dll_VerQueryValueW
mov eax, esi
jmp 0x42baca
push edi
call fcn.00451b5c
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x42bae5
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4a5294]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x224], eax
mov ax, word [edi + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetUserDefaultLangID]
mov word [ebp - 0x14], ax
mov ax, word [edi + 8]
push esi
mov word [ebp - 0x12], ax
call ebx
mov word [ebp - 0x10], ax
mov ax, word [edi + 8]
mov word [ebp - 0xe], ax
mov ax, word [edi + 4]
mov word [ebp - 0xc], ax
mov word [ebp - 0xa], 0x4e4
call ebx
mov word [ebp - 8], ax
mov word [ebp - 6], 0x4e4
xor ebx, ebx
mov esi, 0x104
movzx eax, word [ebp + ebx*2 - 0x14]
movzx ecx, word [ebp + ebx*2 - 0x12]
inc ebx
push 0x4934a8
movzx ecx, cx
push ecx
movzx eax, ax
push eax
push str.StringFileInfo_04x_04x_ls
push esi
lea eax, [ebp - 0x21c]
push esi
push eax
inc ebx
call fcn.00456994
and dword [ebp - 0x220], 0
add esp, 0x1c
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [edi]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x42bba7
cmp dword [ebp - 0x220], 0
jne 0x42bbbe
cmp ebx, 8
jb 0x42bb48
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00451a25
leave
ret 4
mov esi, dword [ebp - 0x220]
push esi
call fcn.00451a34
pop ecx
push esi
mov esi, dword [ebp - 0x224]
call fcn.00427107
mov al, 1
jmp 0x42bbae
Function at 0x42bc4e
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1cc]
sub esp, 0x24c
mov eax, dword [0x4a5294]
xor eax, ebp
mov dword [ebp + 0x1c8], eax
mov eax, dword [ebp + 0x1d4]
push ebx
push esi
xor esi, esi
push edi
push 0x228
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x60]
push esi
push eax
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x68], esi
xor ebx, ebx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x64], esi
call fcn.00451930
add esp, 0xc
push esi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x80], edi
je 0x42bdd4
lea eax, [ebp - 0x64]
push eax
push edi
mov dword [ebp - 0x64], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
jmp 0x42bce3
lea eax, [ebp - 0x40]
push eax
push 0x493500
call fcn.0045189f
test eax, eax
pop ecx
pop ecx
je 0x42bcec
lea eax, [ebp - 0x64]
push eax
push edi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x42bcc5
jmp 0x42bdcb
cmp dword [ebp - 0x5c], esi
je 0x42bdcb
push dword [ebp - 0x5c]
push esi
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
cmp eax, esi
mov dword [ebp - 0x70], eax
je 0x42bdcb
lea eax, [ebp - 0x68]
push eax
push 8
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42bdcb
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push 1
push dword [ebp - 0x68]
call edi
mov dword [ebp - 0x78], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x42bdcb
push dword [ebp - 0x74]
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ebx, eax
cmp ebx, esi
je 0x42bdcb
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
push ebx
push 1
push dword [ebp - 0x68]
call edi
cmp eax, esi
mov dword [ebp - 0x78], eax
je 0x42bdcb
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x42bdcb
push str.ConvertSidToStringSidW
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, esi
je 0x42bdcb
lea ecx, [ebp - 0x6c]
push ecx
push dword [ebx]
call eax
cmp eax, esi
mov dword [ebp - 0x78], eax
je 0x42bdcb
cmp dword [ebp - 0x6c], esi
je 0x42bdcb
push dword [ebp - 0x6c]
push dword [ebp - 0x7c]
call fcn.00401d29
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov dword [ebp - 0x6c], esi
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x68], esi
je 0x42bde5
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x68], esi
cmp dword [ebp - 0x70], esi
je 0x42bdf3
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp ebx, esi
je 0x42be06
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
mov ecx, dword [ebp + 0x1c8]
mov eax, dword [ebp - 0x78]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00451a25
add ebp, 0x1cc
leave
ret
Function at 0x42da0a
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 4
mov eax, 0x484fd8
call fcn.00457967
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004022ea
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42da4a
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040257a
mov eax, esi
call fcn.00457a3f
ret
mov esi, dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x42da34
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x42da34
lea ecx, [ebp - 0x10]
call fcn.0042d98a
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x42da81
xor esi, esi
jmp 0x42da37
push eax
call fcn.0042da0a
test eax, eax
pop ecx
je 0x42da7d
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x42da34
call edi
cmp eax, ebx
jne 0x42da7d
jmp 0x42da34

Function at 0x42df09
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 6
pop ecx
xor esi, esi
push 1
push esi
xor eax, eax
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
push esi
mov dword [ebp - 4], esi
rep stosd dword es:[edi], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, esi
je 0x42df6f
push 0x14
push 0x493ad8
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x42df6c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42df69
xor eax, eax
cmp dword [ebp - 0x1c], 4
sete al
mov dword [ebp - 4], eax
push edi
call esi
push ebx
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42e0b2
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x4861b0
call fcn.00457967
push str.KInstallApp::PrepareInstall
mov esi, 0x4aa264
mov ebx, ecx
call fcn.00430060
pop ecx
lea edi, [ebp - 0x10]
call fcn.0042eca9
and dword [ebp - 4], 0
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42e10f
push str.get_tempdir_fail
call fcn.00430060
pop ecx
push 0x8c
call fcn.0042ec37
lea eax, [edi - 0x10]
call fcn.0040257a
xor eax, eax
call fcn.00457a3f
ret
push edi
xor ecx, ecx
mov eax, ebx
call fcn.0042f93d
test eax, eax
jne 0x42e12f
push str.release_setup.xml_fail
call fcn.00430060
pop ecx
push 0x96
jmp 0x42e0fa
lea eax, [ebp - 0x14]
push str.setup.xml
push eax
lea ecx, [ebp - 0x10]
call fcn.0040798e
pop ecx
pop ecx
mov byte [ebp - 4], 1
mov ecx, dword [eax]
test ecx, ecx
je 0x42e153
call fcn.0042e198
jmp 0x42e155
xor eax, eax
test eax, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
sete bl
add eax, 0xfffffff0
call fcn.0040257a
test bl, bl
je 0x42e193
push str.parse_setup.xml_fail
call fcn.00430060
pop ecx
push 0xa0
call fcn.0042ec37
xor esi, esi
lea eax, [edi - 0x10]
call fcn.0040257a
mov eax, esi
jmp 0x42e109
xor esi, esi
inc esi
jmp 0x42e184