joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003980
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10003aa3
push 0x20000000
push 0x10026328
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10003a73
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x40], 1
je 0x100039fe
cmp dword [ebp - 0x40], 3
jne 0x10003a07
mov dword [ebp - 4], 0
jmp 0x10003a67
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
lea edx, [ebp - 0x44]
push edx
push 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
cmp dword [ebp - 0x40], 1
je 0x10003a3a
cmp dword [ebp - 0x40], 3
jne 0x10003a43
mov dword [ebp - 4], 0
jmp 0x10003a67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10003a5a
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
jmp 0x10003a61
mov dword [ebp - 0x14], 0xffffffff
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10003a97
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10003a8a
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
jmp 0x10003a91
mov dword [ebp - 0x1c], 0xffffffff
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10003ac7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x10003aba
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
jmp 0x10003ac1
mov dword [ebp - 0x24], 0xffffffff
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10013b6c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100259d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [fcn.1000843e]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.1001050f
mov dword [ebp - 0x14], eax
cmp dword [0x1002890c], edi
jne 0x10013c5d
push 0x800
push edi
push 0x1001e38c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x10013bea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10013d3d
push 0x1001e38c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10013d3d
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10013d3d
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x1002890c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x10028910], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x10028914], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1002891c], eax
test eax, eax
je 0x10013c5a
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10028918], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10013c82
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10013c75
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x10013c97
push 4
pop eax
jmp 0x10013d3f
cmp dword [ebp - 0x14], edi
je 0x10013c97
push dword [0x1002890c]
call dword [fcn.10008442]
push 3
jmp 0x10013c7c
mov eax, dword [0x10028918]
mov ebx, dword [fcn.10008442]
cmp eax, esi
je 0x10013cf5
cmp dword [0x1002891c], esi
je 0x10013cf5
push eax
call ebx
push dword [0x1002891c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10013cf5
test eax, eax
je 0x10013cf5
call ecx
test eax, eax
je 0x10013cea
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10013cea
test byte [ebp - 8], 1
jne 0x10013cf5
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x10013d25
mov eax, dword [0x10028910]
cmp eax, esi
je 0x10013d22
push eax
call ebx
test eax, eax
je 0x10013d22
call eax
mov edi, eax
test edi, edi
je 0x10013d22
mov eax, dword [0x10028914]
cmp eax, esi
je 0x10013d22
push eax
call ebx
test eax, eax
je 0x10013d22
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x1002890c]
call ebx
test eax, eax
je 0x10013d3d
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x10013d3f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000b94a
leave
ret
Function at 0x1001870d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x10018746
push 0
mov eax, dword [ebp - 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov edi, dword [ebp - 4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
leave
ret

Function at 0x100193f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf023f
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10019442
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x10019450
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b344
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x24]
push eax
push 0x20219
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x4c]
call fcn.10001e56
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0
jne 0x10019612
push 0x20008
lea ecx, [ebp - 0x14]
call fcn.10006120
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 0x20000
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.100061e0
push eax
lea ecx, [ebp - 0x28]
push ecx
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x10], 0x20000
jbe 0x1001951f
mov ecx, dword [ebp - 0x10]
add ecx, 8
push ecx
lea ecx, [ebp - 0x14]
call fcn.100061f0
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x14]
call fcn.100061e0
push eax
lea eax, [ebp - 0x28]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
push 8
push 0
lea ecx, [ebp - 0x14]
call fcn.100061e0
add eax, dword [ebp - 0x10]
push eax
call fcn.100095b0
add esp, 0xc
cmp dword [ebp - 0x1c], 0
jne 0x100195fc
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jbe 0x100195fc
cmp dword [ebp - 0x20], 3
jbe 0x10019562
cmp dword [ebp - 0x20], 4
je 0x100195c9
jmp 0x100195fc
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x10]
shr ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x1001957c
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jae 0x1001959b
lea ecx, [ebp - 0x14]
call fcn.100061e0
mov ecx, dword [ebp - 0x18]
movzx edx, word [eax + ecx*2]
test edx, edx
jne 0x10019599
jmp 0x1001959b
jmp 0x10019573
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.100061e0
push eax
lea ecx, [ebp - 0x64]
call fcn.10005f10
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.10005fe0
lea ecx, [ebp - 0x64]
call fcn.10001e80
jmp 0x100195fc
lea ecx, [ebp - 0x14]
call fcn.100061e0
mov edx, dword [eax]
push edx
push 0x1002314c
lea eax, [ebp - 0x7c]
push eax
call fcn.10019ba0
add esp, 0xc
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.10005fe0
lea ecx, [ebp - 0x7c]
call fcn.10001e80
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.100061a0
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
call fcn.10005f90
mov ecx, dword [ebp - 0x2c]
or ecx, 1
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.10001e80
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x100196f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 8]
push eax
push 0x20219
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
cmp dword [ebp - 4], 0
jne 0x10019769
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1001975f
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 4
je 0x10019759
jmp 0x1001975f
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x10019770
Capabilities:
Get common file path
Get system information on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b37a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x600
mov dword [ebp - 0x10], 0
push 0x24
push 0
lea eax, [ebp - 0x6c]
push eax
call fcn.100095b0
add esp, 0xc
lea ecx, [ebp - 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx edx, word [ebp - 0x6c]
cmp edx, 9
je 0x100197dd
push str.RUNDLL32.EXE
mov ecx, dword [ebp + 8]
call fcn.10005f50
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
jmp 0x100199aa
xor ecx, ecx
mov word [ebp - 0x28c], cx
push 0x206
push 0
lea edx, [ebp - 0x28a]
push edx
call fcn.100095b0
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.10001e56
mov dword [ebp - 4], 1
push 0
push 0
lea ecx, [ebp - 0x60c]
call fcn.1001771f
mov byte [ebp - 4], 2
push 3
lea ecx, [ebp - 0x60c]
call fcn.100155a0
cmp dword [ebp - 0x554], 0
je 0x1001987e
push 0x104
lea eax, [ebp - 0x28c]
push eax
call dword [ebp - 0x554]
test eax, eax
je 0x1001987e
lea ecx, [ebp - 0x28c]
push ecx
push str._sRUNDLL32.EXE
lea edx, [ebp - 0x48]
push edx
call fcn.10019ba0
add esp, 0xc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
call fcn.10005fe0
lea ecx, [ebp - 0x48]
call fcn.10001e80
jmp 0x1001991d
push 0x104
lea ecx, [ebp - 0x28c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x100198e8
push 0x104
lea edx, [ebp - 0x28c]
push edx
push str.SYSTEMROOT
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x100198e8
push str.RUNDLL32.EXE
mov ecx, dword [ebp + 8]
call fcn.10005f50
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60c]
call fcn.10005e70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.10001e80
mov eax, dword [ebp + 8]
jmp 0x100199aa
lea ecx, [ebp - 0x28c]
push ecx
push str._sSysWOW64RUNDLL32.EXE
lea edx, [ebp - 0x84]
push edx
call fcn.10019ba0
add esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x30]
call fcn.10005fe0
lea ecx, [ebp - 0x84]
call fcn.10001e80
lea ecx, [ebp - 0x30]
call fcn.10001ebc
movzx ecx, al
test ecx, ecx
jne 0x10019941
push 0
lea edx, [ebp - 0x30]
push edx
call fcn.100196d0
add esp, 8
movzx eax, al
test eax, eax
jne 0x10019977
push str.RUNDLL32.EXE
mov ecx, dword [ebp + 8]
call fcn.10005f50
mov ecx, dword [ebp - 0x10]
or ecx, 1
mov dword [ebp - 0x10], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60c]
call fcn.10005e70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.10001e80
mov eax, dword [ebp + 8]
jmp 0x100199aa
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp + 8]
call fcn.10005f90
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60c]
call fcn.10005e70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.10001e80
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x100199c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jne 0x100199d1
xor eax, eax
jmp 0x10019b72
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
xor ecx, 0xffffffff
mov dword [ebp + 0x10], ecx
cmp dword [ebp + 0xc], 8
jb 0x10019b35
mov edx, dword [ebp - 4]
movzx eax, byte [edx]
xor eax, dword [ebp + 0x10]
and eax, 0xff
mov ecx, dword [ebp + 0x10]
shr ecx, 8
xor ecx, dword [eax*4 + 0x10025f28]
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 0x10]
and ecx, 0xff
mov edx, dword [ebp + 0x10]
shr edx, 8
xor edx, dword [ecx*4 + 0x10025f28]
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
xor edx, dword [ebp + 0x10]
and edx, 0xff
mov eax, dword [ebp + 0x10]
shr eax, 8
xor eax, dword [edx*4 + 0x10025f28]
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movzx eax, byte [edx]
xor eax, dword [ebp + 0x10]
and eax, 0xff
mov ecx, dword [ebp + 0x10]
shr ecx, 8
xor ecx, dword [eax*4 + 0x10025f28]
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 0x10]
and ecx, 0xff
mov edx, dword [ebp + 0x10]
shr edx, 8
xor edx, dword [ecx*4 + 0x10025f28]
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
xor edx, dword [ebp + 0x10]
and edx, 0xff
mov eax, dword [ebp + 0x10]
shr eax, 8
xor eax, dword [edx*4 + 0x10025f28]
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movzx eax, byte [edx]
xor eax, dword [ebp + 0x10]
and eax, 0xff
mov ecx, dword [ebp + 0x10]
shr ecx, 8
xor ecx, dword [eax*4 + 0x10025f28]
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 0x10]
and ecx, 0xff
mov edx, dword [ebp + 0x10]
shr edx, 8
xor edx, dword [ecx*4 + 0x10025f28]
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
sub ecx, 8
mov dword [ebp + 0xc], ecx
jmp 0x100199e0
cmp dword [ebp + 0xc], 0
je 0x10019b6d
mov edx, dword [ebp - 4]
movzx eax, byte [edx]
xor eax, dword [ebp + 0x10]
and eax, 0xff
mov ecx, dword [ebp + 0x10]
shr ecx, 8
xor ecx, dword [eax*4 + 0x10025f28]
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp + 0xc], eax
jne 0x10019b3b
mov eax, dword [ebp + 0x10]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x1001a220
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b3dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1c]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10006c70
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x20], 0
je 0x1001a267
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1001a2e6
mov ecx, dword [ebp - 0x10]
call fcn.1001870d
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x28], 0
je 0x1001a28f
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x28], 0
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x20], 0
je 0x1001a2af
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x20], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 1
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x40], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x44], 0
mov eax, dword [ebp - 0x10]
add eax, 0x2c
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x48]
push edx
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
jmp 0x1001a38c
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x9c], 1
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0xa0], 0
je 0x1001a30c
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [ebp - 0x1c]
call fcn.10006d40
push 0x1388
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1001a339
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0xa0], 0
je 0x1001a362
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xa0], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x30], 1
je 0x1001a38c
push 1
mov ecx, dword [ebp - 0x10]
call fcn.1001a220
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10006cb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1001a660
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
cmp dword [ebp + 0xc], 1
jne 0x1001a79b
push 0x105
lea eax, [ebp - 0x228]
push eax
push 0
call fcn.10019b80
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1001a69b
xor eax, eax
jmp 0x1001a7a0
lea ecx, [ebp - 0x228]
push ecx
mov ecx, 0x10028980
call fcn.10001fe4
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea edx, [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x1001a6db
xor eax, eax
jmp 0x1001a7a0
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x1001a6fe
cmp dword [ebp - 0x10], 0
jne 0x1001a705
xor eax, eax
jmp 0x1001a7a0
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax - 0x150]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax - 0x110]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
mov ecx, dword [eax - 0x10]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0xda7affff
jne 0x1001a79b
mov edx, dword [ebp - 0x14]
movzx eax, word [edx]
test eax, eax
je 0x1001a77b
mov ecx, dword [ebp - 0x14]
push ecx
push 0x40
push 0x10026328
call fcn.1000b626
add esp, 0xc
mov edx, dword [ebp - 0x18]
movzx eax, word [edx]
test eax, eax
je 0x1001a79b
mov ecx, dword [ebp - 0x18]
push ecx
push pe_nt_image_headers32
push str.Performance_Optimizer
call fcn.1000b626
add esp, 0xc
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40c413
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41ff34]
jne 0x40c41d
repz ret
jmp fcn.0040eed1

Function at 0x41435c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040f049
and dword [ebp - 4], 0
cmp dword [0x473c34], 0
mov ebx, eax
jne 0x41440d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4144be
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41b238
push edi
call esi
test eax, eax
je 0x4144be
push eax
call fcn.0040efd7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x473c34], eax
call esi
push eax
call fcn.0040efd7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x473c38], eax
call esi
push eax
call fcn.0040efd7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x473c3c], eax
call esi
push eax
call fcn.0040efd7
pop ecx
mov dword [0x473c44], eax
test eax, eax
je 0x41440d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040efd7
pop ecx
mov dword [0x473c40], eax
mov eax, dword [0x473c40]
cmp eax, ebx
je 0x414465
cmp dword [0x473c44], ebx
je 0x414465
push eax
call fcn.0040f052
push dword [0x473c44]
mov esi, eax
call fcn.0040f052
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x414465
test edi, edi
je 0x414465
call esi
test eax, eax
je 0x41445c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41445c
test byte [ebp - 0xc], 1
jne 0x414465
or dword [ebp + 0x10], 0x200000
jmp 0x41449e
mov eax, dword [0x473c38]
cmp eax, ebx
je 0x41449e
push eax
call fcn.0040f052
pop ecx
test eax, eax
je 0x41449e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41449e
mov eax, dword [0x473c3c]
cmp eax, ebx
je 0x41449e
push eax
call fcn.0040f052
pop ecx
test eax, eax
je 0x41449e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x473c34]
call fcn.0040f052
pop ecx
test eax, eax
je 0x4144be
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4144c0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret