joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ddc0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.00418de0
mov eax, dword [0x433610]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov edi, ecx
mov dword [ebp - 0x1024], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x40de2b
push 1
lea ebx, [edi + 0x40]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x40de1a
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40de20
mov edi, dword [ebp - 0x1024]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x40de41
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418330
mov esp, ebp
pop ebp
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x40de9b
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0xd80a
call fcn.0040cc80
add esp, 0xc
test eax, eax
jne 0x40de8c
push str.Could_not_open_Service_Manager
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call fcn.0040c9e0
add esp, 0xc
push 0
push ebx
lea edx, [ebp - 0x804]
push edx
jmp 0x40dfd8
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40def9
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0xd80c
call fcn.0040cc80
add esp, 0xc
test eax, eax
jne 0x40de8c
push str.Could_not_open_service
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call fcn.0040c9e0
add esp, 0xc
push esi
push ebx
lea edx, [ebp - 0x804]
push edx
jmp 0x40dfd8
lea eax, [ebp - 0x1020]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x40df72
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x426
je 0x40df72
cmp eax, 0x425
jne 0x40df2a
cmp dword [ebp - 0x101c], 3
je 0x40df72
push 0x400
lea ecx, [ebp - 0x804]
push ecx
push 0xd80e
call fcn.0040cc80
add esp, 0xc
test eax, eax
jne 0x40df60
push str.Could_not_stop_service
lea edx, [ebp - 0x804]
push 0x400
push edx
call fcn.0040c9e0
add esp, 0xc
push 0
push ebx
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x1024], eax
call esi
push edi
call esi
cmp dword [ebp - 0x1024], 0
jne 0x40de2b
push 0x400
lea ecx, [ebp - 0x1004]
push ecx
push 0xd80d
call fcn.0040cc80
add esp, 0xc
test eax, eax
jne 0x40dfce
push str.Could_not_delete_service
lea edx, [ebp - 0x1004]
push 0x400
push edx
call fcn.0040c9e0
add esp, 0xc
push 0
push ebx
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00418330
mov esp, ebp
pop ebp
ret
Function at 0x40e070
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x433610]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov edx, dword [edi]
or ecx, 0x2001f
push ecx
xor esi, esi
push eax
push edx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], esi
call fcn.00406800
mov ebx, eax
cmp ebx, esi
je 0x40e0ea
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x40e0d5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418330
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x210]
push esi
push esi
push esi
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x204]
push edx
push esi
push eax
mov dword [ebp - 0x214], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40e16c
mov edi, edi
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x210]
call fcn.0040e070
mov ebx, eax
cmp ebx, esi
jne 0x40e0c4
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x210]
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x204]
push ecx
push esi
push edx
mov dword [ebp - 0x214], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40e120
mov eax, dword [ebp - 0x210]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x40e185
push eax
call ebx
mov dword [ebp - 0x210], esi
mov eax, dword [ebp - 0x218]
push eax
mov ecx, edi
mov dword [ebp - 0x20c], esi
call fcn.0040d0b0
mov edi, eax
mov eax, dword [ebp - 0x210]
cmp eax, esi
je 0x40e1a8
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418330
mov esp, ebp
pop ebp
ret 4
Function at 0x40f5b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
jne 0x40f62f
mov eax, 1
test byte [0x434778], al
jne 0x40f5f8
or dword [0x434778], eax
mov ecx, 0x434744
call fcn.00408630
push 0x426160
call fcn.00417f35
add esp, 4
mov ecx, 0x434744
call fcn.00409030
test eax, eax
je 0x40f628
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp - 0xc]
push str.Service:_failed_to_create_shutdown_event__0x_x_
push eax
call fcn.00408ee0
add esp, 0xc
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea ecx, [ebp - 4]
push ecx
push 0
push esi
push 0x40e8d0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edi, eax
test edi, edi
jne 0x40f6b0
mov eax, 1
test byte [0x434778], al
jne 0x40f676
or dword [0x434778], eax
mov ecx, 0x434744
call fcn.00408630
push 0x426160
call fcn.00417f35
add esp, 4
mov ecx, 0x434744
call fcn.00409030
test eax, eax
je 0x40f6a6
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea edx, [ebp - 0xc]
push str.Service:_failed_to_create_shutdown_monitor_thread__0x_x_
push edx
call fcn.00408ee0
add esp, 0xc
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425966
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x433610]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x430], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x418], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
jne 0x4108cd
call fcn.00401260
mov edi, eax
jmp 0x4109b2
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4108e6
call fcn.00401260
jmp 0x4109a9
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x410904
call fcn.00401260
jmp 0x4109a9
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x41c], edi
cmp eax, edi
jae 0x410925
mov edi, 0x8007000e
jmp 0x4109ab
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040f4d0
mov dword [ebp - 4], 1
jmp 0x41095d
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x41096e
mov edi, 0x8007000e
jmp 0x4109ab
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
jne 0x410987
call fcn.00401260
jmp 0x4109a9
mov edx, dword [ebp - 0x418]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x418]
push eax
push ecx
lea ecx, [ebp - 0x42c]
call fcn.004105f0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x4109d0
lea ecx, [ebp - 0x418]
call fcn.0040d850
jmp 0x4109d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00418330
mov esp, ebp
pop ebp
ret 0x10
Function at 0x410ce0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
call fcn.0040ddc0
test eax, eax
jne 0x410cfe
mov eax, 0x80004005
pop edi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x434740]
push ebx
lea eax, [ebp - 0x1c]
push eax
push 1
push 0x65
xor ebx, ebx
push ecx
mov dword [ebp - 0x1c], 0x42994c
mov dword [ebp - 0x18], 0x429148
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00410ab0
cmp eax, ebx
jl 0x410e30
push esi
push 0x20006
push str.AppID
push SysReAllocString
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00406800
cmp eax, ebx
je 0x410d7a
push eax
call fcn.0040cd00
mov esi, eax
mov eax, dword [ebp - 0x18]
add esp, 4
cmp eax, ebx
je 0x410d6f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x18]
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push 0x429148
push esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.004013f0
cmp eax, ebx
je 0x410dd0
push eax
call fcn.0040cd00
mov edi, eax
mov eax, dword [ebp - 0xc]
add esp, 4
cmp eax, ebx
je 0x410dba
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x410dc5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0xc]
push str.LocalService
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0xc]
cmp byte [ebp + 8], bl
je 0x410e20
push 1
lea eax, [edi + 0x40]
push eax
push str.LocalService
call fcn.00401530
mov ecx, edi
call fcn.0040dc10
lea ecx, [ebp - 0xc]
test eax, eax
jne 0x410e20
call fcn.00401910
lea ecx, [ebp - 0x18]
call fcn.00401910
pop esi
pop ebx
mov eax, 0x80004005
pop edi
mov esp, ebp
pop ebp
ret 4
call fcn.00401910
lea ecx, [ebp - 0x18]
call fcn.00401910
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x410e40
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call fcn.0040ddc0
test eax, eax
jne 0x410e58
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x20006
xor esi, esi
push str.AppID
push SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.00406800
cmp eax, esi
je 0x410ea1
push eax
call fcn.0040cd00
mov edi, eax
mov eax, dword [ebp - 0x10]
add esp, 4
cmp eax, esi
je 0x410e99
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 0x10]
push 0x20006
push 0x429148
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.00406800
cmp eax, esi
je 0x410ef2
push eax
call fcn.0040cd00
mov edi, eax
mov eax, dword [ebp - 0x1c]
add esp, 4
cmp eax, esi
je 0x410ede
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x410ee9
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1c]
push str.LocalService
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [0x434740]
lea eax, [ebp - 0x20]
push eax
push esi
push 0x65
push ecx
mov dword [ebp - 0x20], 0x42994c
mov dword [ebp - 0x1c], 0x429148
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.00410ab0
mov dword [ebp - 4], eax
cmp edi, esi
je 0x410f36
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x410f41
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410f50
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push edi
push ebx
call fcn.00410ce0
xor edi, edi
cmp eax, edi
jl 0x411037
push esi
push 0x20006
push str.AppID
push SysReAllocString
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call fcn.00406800
cmp eax, edi
je 0x410fb4
push eax
call fcn.0040cd00
mov esi, eax
mov eax, dword [ebp - 0x18]
add esp, 4
cmp eax, edi
je 0x410fa9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x18]
push edi
push edi
push 0x2001f
push edi
push edi
push 0x429148
push esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call fcn.004013f0
cmp eax, edi
je 0x41100a
push eax
call fcn.0040cd00
mov ebx, eax
mov eax, dword [ebp - 0xc]
add esp, 4
cmp eax, edi
je 0x410ff4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x410fff
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0xc]
push str.ServiceParameters
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test bl, bl
jne 0x41103f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x41102a
push esi
call ebx
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x411034
push eax
call ebx
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
push str._ComService
push str.ServiceParameters
lea ecx, [ebp - 0xc]
call fcn.00401530
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.00401910
lea ecx, [ebp - 0x18]
call fcn.00401910
cmp esi, edi
je 0x411034
push esi
call fcn.0040cd00
add esp, 4
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x411080
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push 0x20006
xor ebx, ebx
push str.AppID
mov dword [ebp - 4], ecx
push SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.00406800
cmp eax, ebx
je 0x4110d2
push eax
call fcn.0040cd00
mov esi, eax
mov eax, dword [ebp - 0x10]
add esp, 4
cmp eax, ebx
je 0x4110ca
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp - 0x10]
push 0x20006
push 0x429148
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.00406800
cmp eax, ebx
je 0x411123
push eax
call fcn.0040cd00
mov esi, eax
mov eax, dword [ebp - 0x1c]
add esp, 4
cmp eax, ebx
je 0x41110f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x41111a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x1c]
push str.ServiceParameters
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp esi, ebx
je 0x41113f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
cmp edi, ebx
je 0x41114c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov ecx, dword [ebp - 4]
call fcn.00410e40
mov dword [ebp - 4], eax
cmp esi, ebx
je 0x411162
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x41116d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411b40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapSetInformation]
push 0x427b58
lea ecx, [ebp - 4]
call fcn.00403a00
lea eax, [ebp - 4]
push 0xfffffc18
push eax
call fcn.004092a0
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411b94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [0x4347e0], 0
je 0x411ba6
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
lea ecx, [ebp - 4]
push ecx
push eax
mov ecx, 0x434818
call fcn.00411890
cmp al, 1
jne 0x411bda
mov edx, dword [ebp + 0x14]
push edx
mov ecx, 0x434818
call fcn.00411990
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x416740
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x433610]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x434ab8], 0
push esi
mov esi, dword [ebp + 8]
jne 0x416860
push 0x114
lea ecx, [ebp - 0x118]
push 0
push ecx
call fcn.00417cb0
add esp, 0xc
lea edx, [ebp - 0x118]
push edx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
mov ecx, 1
test eax, eax
je 0x41685a
mov eax, dword [ebp - 0x108]
sub eax, 2
jne 0x41683c
mov eax, dword [ebp - 0x114]
cmp eax, 6
ja 0x416850
jne 0x4167fb
mov eax, dword [ebp - 0x110]
cmp eax, 2
ja 0x416850
jne 0x4167db
mov dword [0x434ab4], 7
jmp 0x41685a
cmp eax, ecx
jne 0x4167eb
mov dword [0x434ab4], 6
jmp 0x41685a
test eax, eax
jne 0x416844
mov dword [0x434ab4], 5
jmp 0x41685a
cmp eax, 5
jne 0x416837
mov eax, dword [ebp - 0x110]
cmp eax, 2
jne 0x416817
mov dword [0x434ab4], 4
jmp 0x41685a
cmp eax, ecx
jne 0x416827
mov dword [0x434ab4], 3
jmp 0x41685a
test eax, eax
jne 0x416844
mov dword [0x434ab4], 2
jmp 0x41685a
cmp eax, 4
ja 0x416844
mov dword [0x434ab4], ecx
jmp 0x41685a
mov dword [0x434ab4], 0
jmp 0x41685a
mov dword [0x434ab4], 0x270f
mov byte [0x434ab8], cl
mov eax, dword [0x434ab4]
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
pop esi
call fcn.00418330
mov esp, ebp
pop ebp
ret

Function at 0x416920
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x416954
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ecx + 4]
add edx, 4
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x416954
cmp dword [ebp + 0xc], 0
mov al, 1
setne cl
mov byte [esi], cl
pop esi
pop ebp
ret 8
xor al, al
pop esi
pop ebp
ret 8

Function at 0x416a50
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425e58
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x433610]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x20], vtable.ATL::CAccessToken.0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x10]
push eax
push 2
push edx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x416af4
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x20]
call edx
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
cmp esi, edi
je 0x416af4
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push ecx
add edx, 4
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x416af4
cmp dword [ebp - 0x10], edi
lea ecx, [ebp - 0x20]
setne al
mov byte [esi], al
call fcn.00409e20
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.00401260
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00409e20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x416da0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push esi
push edi
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], 0
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
xor eax, eax
ja 0x416ddb
jb 0x416dcc
cmp edi, 0xffffffff
ja 0x416ddb
push edi
call fcn.0041862a
mov esi, eax
add esp, 4
test esi, esi
jne 0x416dee
push 0
call fcn.00417701
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov eax, dword [ebx]
push esi
push edi
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x416e12
push esi
call fcn.00417701
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp + 8], eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp + 8]
push ecx
push 0x428654
push esi
call sub.VERSION.dll_VerQueryValueW
push esi
test eax, eax
je 0x416ddd
mov eax, dword [ebp + 8]
movzx edx, word [eax + 0xa]
mov ecx, dword [ebp + 0xc]
mov word [ecx], dx
movzx edx, word [eax + 8]
mov word [ecx + 2], dx
movzx edx, word [eax + 0xe]
mov word [ecx + 4], dx
mov ax, word [eax + 0xc]
mov word [ecx + 6], ax
call fcn.00417701
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418330
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x433610]
jne 0x41833a
repz ret
jmp fcn.0041cdec

Function at 0x4211d7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x433610]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041c891
and dword [ebp - 0x14], 0
cmp dword [0x4358ec], 0
mov dword [ebp - 0x18], eax
jne 0x42128a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x421332
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x42bd7c
push ebx
call edi
test eax, eax
je 0x421332
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4358ec], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4358f0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4358f4], eax
call edi
push eax
call esi
mov dword [0x4358fc], eax
test eax, eax
je 0x42128a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4358f8], eax
mov eax, dword [0x4358f8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x4212e3
cmp dword [0x4358fc], ecx
je 0x4212e3
push eax
call esi
push dword [0x4358fc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4212e3
test ebx, ebx
je 0x4212e3
call edi
test eax, eax
je 0x4212da
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4212da
test byte [ebp - 8], 1
jne 0x4212e3
or dword [ebp + 0x10], 0x200000
jmp 0x421316
mov eax, dword [0x4358f0]
cmp eax, dword [ebp - 0x18]
je 0x421316
push eax
call esi
test eax, eax
je 0x421316
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x421316
mov eax, dword [0x4358f4]
cmp eax, dword [ebp - 0x18]
je 0x421316
push eax
call esi
test eax, eax
je 0x421316
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4358ec]
call esi
test eax, eax
je 0x421332
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x421334
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418330
leave
ret