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

Disassembly:
mov eax, dword [ecx]
sub esp, 0x1c
test eax, eax
jne 0x408baf
add esp, 0x1c
ret 4
mov ecx, dword [esp + 0x20]
push edi
push 0xf01ff
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x408bed
lea edx, [esp + 4]
push edx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x408bf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x408c04
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
add esp, 0x1c
ret 4
cmp dword [esp + 8], 1
jne 0x408c10
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
pop edi
add esp, 0x1c
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
xor esi, esi
lea eax, [esp + 0x10]
push eax
push edi
call ebp
test eax, eax
je 0x408c40
cmp dword [esp + 0x14], 1
je 0x408c53
push 0xa
call ebx
add esi, 1
cmp esi, 0x32
jl 0x408c21
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0x1c
ret 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
add esp, 0x1c
ret 4
Function at 0x408fd0
Capabilities:
Print debug messages

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push str.Serial_Number:
mov dword [esp + 0x14], 0
call fcn.0041f9a5
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 4]
add esp, 4
xor esi, esi
test edi, edi
jbe 0x409022
lea ebx, [ebx]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx + 8]
sub edx, esi
movzx eax, byte [edx + edi - 1]
push eax
push 0x44824c
call fcn.0041f9a5
add esi, 1
add esp, 8
cmp esi, edi
jb 0x409000
push 0x448248
call fcn.0041f9a5
mov ebp, dword [sym.imp.CRYPT32.dll_CertGetNameStringW]
add esp, 4
push 0
push 0
push 0
push 1
push 4
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x40905f
push str.CertGetNameString_failed._n
call fcn.0041f9a5
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
lea ecx, [edi + edi]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x409083
push str.Unable_to_allocate_memory_for_issuer_name._n
call fcn.0041f9a5
add esp, 4
jmp 0x409187
push edi
push esi
push 0
push 1
push 4
push ebx
call ebp
test eax, eax
jne 0x4090a4
push str.CertGetNameString_failed._n
call fcn.0041f9a5
add esp, 4
jmp 0x409187
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x20]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4090d7
test dx, dx
je 0x4090d3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4090d7
add eax, 4
add ecx, 4
test dx, dx
jne 0x4090b1
xor eax, eax
jmp 0x4090dc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x409187
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0
push 0
push 0
push 4
push ebx
call ebp
mov edi, eax
test edi, edi
je 0x409048
lea edx, [edi + edi]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x409123
push str.Unable_to_allocate_memory_for_subject_name._n
call fcn.0041f9a5
add esp, 4
jmp 0x409187
push edi
push esi
push 0
push 0
push 4
push ebx
call ebp
test eax, eax
jne 0x409141
push str.CertGetNameString_failed._n
call fcn.0041f9a5
add esp, 4
jmp 0x409187
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x1c]
mov eax, esi
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x409176
test dx, dx
je 0x409172
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x409176
add eax, 4
add ecx, 4
test dx, dx
jne 0x409150
xor eax, eax
jmp 0x40917b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x409187
mov dword [esp + 0x10], 1
test esi, esi
je 0x409192
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x409a60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409a79
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409ab4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x409ab0
lea ebx, [ebx]
cmp esi, eax
jae 0x409ab4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x409aa0
cmp esi, eax
jb 0x409aba
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x409e10
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4521d0]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x118
lea eax, [esp + 8]
push 0
push eax
mov dword [esp + 0xc], 0x11c
call fcn.0041d8e0
add esp, 0xc
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x11c]
sbb eax, eax
xor ecx, esp
add eax, 1
call fcn.0041d8d0
add esp, 0x120
ret
Function at 0x40c560
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4521d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x45392c]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x45392c
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 1
push edi
mov dword [ebp - 4], edi
push edi
mov byte [ebp - 4], 1
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
test eax, eax
je 0x40c692
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x40c692
xor ebx, ebx
jmp 0x40c5e0
cmp ebx, dword [ebp - 0x20]
jae 0x40c689
mov edi, ebx
shl edi, 4
mov edx, dword [edi + eax + 8]
push edx
lea eax, [ebp - 0x14]
push 0x448618
push eax
call fcn.00407a50
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.0040c0c0
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x40c62b
push 0
lea ecx, [ebp - 0x14]
call fcn.004072a0
mov esi, dword [ebp - 0x14]
push str.explorer.exe
push esi
call fcn.0041d83f
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add esp, 8
cmp dword [edi + eax], ecx
jne 0x40c6ca
cmp dword [edi + eax + 8], 0
je 0x40c6ca
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x40c66b
push 0
lea ecx, [ebp - 0x14]
call fcn.004072a0
mov esi, dword [ebp - 0x14]
push str.explorer.exe
push esi
call fcn.0041d83f
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x18]
jne 0x40c6ca
mov edx, dword [edi + eax + 4]
mov dword [ebp - 0x1c], edx
xor edi, edi
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov dword [ebp - 0x18], edi
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c6b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add ebx, 1
xor edi, edi
jmp 0x40c5e0
Function at 0x40c700
Capabilities:
Create process on windows

Disassembly:
sub esp, 8
push ebx
push ebp
xor eax, eax
push esi
mov esi, dword [esp + 0x24]
mov dword [esi], eax
mov dword [esi + 4], eax
xor ebx, ebx
mov dword [esi + 8], eax
xor ebp, ebp
mov dword [esp + 0x10], ebx
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push eax
call fcn.0040c560
add esp, 4
cmp eax, ebx
je 0x40c7d4
push edi
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.00409c20
mov edi, dword [esp + 0x1c]
add esp, 8
test eax, eax
jl 0x40c7bf
push 1
push edi
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x40c76d
mov eax, dword [esp + 0x10]
mov ebx, 0x400
jmp 0x40c773
xor eax, eax
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x40c794
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push esi
push ecx
push 0
push eax
push ebx
push 0
push 0
push 0
push 0
push edx
jmp 0x40c7b0
cmp ecx, 1
jne 0x40c7b9
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push esi
push ecx
push 0
push eax
push ebx
push 0
push 0
push 0
push edx
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x40c7ca
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret
Function at 0x40d470
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x445123
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x4521d0]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x4521d0]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
mov esi, dword [esp + 0x258]
xor ebx, ebx
push 0x228
lea eax, [esp + 0x1c]
push ebx
push eax
mov dword [esp + 0x258], ebx
mov dword [esp + 0x20], ebx
call fcn.0041d8e0
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x40d5a5
lea ecx, [esp + 0x14]
push ecx
push edi
mov dword [esp + 0x1c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40d59e
nop
mov ecx, dword [esp + 0x254]
lea eax, [esp + 0x38]
jmp 0x40d510
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d536
cmp dx, bx
je 0x40d532
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d536
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40d510
xor eax, eax
jmp 0x40d53b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40d550
lea edx, [esp + 0x14]
push edx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40d500
jmp 0x40d59e
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0040c9e0
add esp, 8
push eax
mov ecx, esi
mov byte [esp + 0x250], 1
call fcn.0040c160
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x24c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d599
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x254]
add eax, 0xfffffff0
mov dword [esp + 0x24c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d5d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0041d8d0
add esp, 0x240
ret
Function at 0x40e630
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x234
mov eax, dword [0x4521d0]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [esp + 0x238]
push esi
push 0
push 2
mov dword [esp + 0xc], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e67c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0041d8d0
add esp, 0x234
ret
push ebx
push edi
push 0x228
xor edi, edi
lea ecx, [esp + 0x18]
push edi
push ecx
mov ebx, 0x490
call fcn.0041d8e0
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push esi
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40e6df
nop
lea eax, [esp + 0x34]
push str.explorer.exe
push eax
call fcn.0041d83f
add esp, 8
test eax, eax
je 0x40e6d7
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40e6b0
jmp 0x40e6e7
mov edi, dword [esp + 0x18]
xor ebx, ebx
jmp 0x40e6e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebp
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x40e70d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e72f
mov edx, dword [esp + 0x10]
push edx
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40e72a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call ebp
mov eax, ebx
mov ecx, dword [esp + 0x240]
pop ebp
pop edi
pop ebx
pop esi
xor ecx, esp
call fcn.0041d8d0
add esp, 0x234
ret

Function at 0x40e820
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4521d0]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, dword [esp + 0x120]
test esi, esi
jne 0x40e859
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041d8d0
add esp, 0x118
ret
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0041d8e0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40e892
cmp dword [esp + 8], 5
jne 0x40e892
cmp dword [esp + 0xc], 0
je 0x40e8b5
push esi
call fcn.0040e750
add esp, 4
test eax, eax
jne 0x40e8b5
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0041d8d0
add esp, 0x118
ret
push esi
call fcn.0040e630
mov ecx, dword [esp + 0x11c]
add esp, 4
pop esi
xor ecx, esp
call fcn.0041d8d0
add esp, 0x118
ret
Function at 0x40e8e0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x18
mov eax, dword [0x4521d0]
xor eax, esp
mov dword [esp + 0x14], eax
push edi
mov edi, dword [esp + 0x20]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x38]
push ecx
mov byte [esp + 0x33], 0
mov dword [esp + 0x38], 0
mov byte [esp + 0x3c], 0
mov byte [esp + 0x3d], 0
mov byte [esp + 0x3e], 0
mov byte [esp + 0x3f], 0
mov byte [esp + 0x40], 0
mov byte [esp + 0x41], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40e9d1
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 2
push edi
call ebp
test eax, eax
jne 0x40e96f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40e9d0
mov eax, dword [esp + 0xc]
push esi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push edx
mov esi, eax
push esi
push 2
push edi
call ebp
test eax, eax
je 0x40e9c4
xor edi, edi
cmp dword [esi], edi
jbe 0x40e9c4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea ebp, [esi + 4]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call ebx
test eax, eax
jne 0x40e9be
add edi, 1
add ebp, 8
cmp edi, dword [esi]
jb 0x40e9a3
jmp 0x40e9c3
mov byte [esp + 0x13], 1
pop ebx
test esi, esi
je 0x40e9cf
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop ebp
mov eax, dword [esp + 0xc]
test eax, eax
pop edi
je 0x40e9e1
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [esp + 0x14]
mov al, byte [esp + 3]
xor ecx, esp
call fcn.0041d8d0
add esp, 0x18
ret

Function at 0x40ea60
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4521d0]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
mov ebx, dword [esp + 0x128]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push 1
push 0
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
jne 0x40eb10
push 0x110
push eax
lea edx, [esp + 0x18]
push edx
call fcn.0041d8e0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40eaf2
cmp dword [esp + 0x10], 6
jne 0x40eaf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041d8d0
add esp, 0x120
ret
mov dword [ebx], 0
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0041d8d0
add esp, 0x120
ret
mov edx, dword [esp + 8]
push esi
xor eax, eax
test edx, edx
push edi
mov edi, dword [esp + 0xc]
mov esi, 0x490
jbe 0x40eb43
lea ecx, [edi + 8]
cmp dword [ecx], 0
je 0x40eb39
add eax, 1
add ecx, 0xc
cmp eax, edx
jb 0x40eb28
jmp 0x40eb43
lea ecx, [eax + eax*2]
mov edx, dword [edi + ecx*4]
mov dword [ebx], edx
xor esi, esi
push edi
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, dword [esp + 0x128]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0041d8d0
add esp, 0x120
ret
Function at 0x40f8c0
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
mov esi, ecx
push esi
push 0x40f6e0
push 0x200000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 4], eax
pop esi
mov eax, ecx
ret

Function at 0x4100c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx]
push esi
xor esi, esi
test eax, eax
mov dword [esp + 4], 4
je 0x41010f
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41010f
cmp dword [esp + 0x10], 4
jne 0x41010f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
mov dword [eax], ecx
lea eax, [esi + 1]
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8

Function at 0x410360
Capabilities:
Set registry value

Disassembly:
sub esp, 0x1c
push esi
push edi
lea eax, [esp + 0x14]
xor esi, esi
push eax
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 8]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x410397
push eax
call edi
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMyDriversDriverGeniusUpdate
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4103e9
mov eax, dword [esp + 8]
test eax, eax
je 0x4103f4
push 8
lea ecx, [esp + 0x10]
push ecx
push 3
push 0
push str.updatetime
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4103e9
lea esi, [eax + 1]
mov eax, dword [esp + 8]
test eax, eax
je 0x4103f4
push eax
call edi
pop edi
mov eax, esi
pop esi
add esp, 0x1c
ret

Function at 0x410400
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 4]
push eax
push str.SOFTWAREMyDriversDriverGeniusUpdate
xor esi, esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x410456
mov eax, dword [esp + 4]
test eax, eax
mov dword [esp + 8], 8
je 0x410465
mov edx, dword [esp + 0x10]
lea ecx, [esp + 8]
push ecx
push edx
lea ecx, [esp + 0x18]
push ecx
push esi
push str.updatetime
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410456
lea esi, [eax + 1]
mov eax, dword [esp + 4]
test eax, eax
je 0x410465
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 4
Function at 0x410470
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 4]
push eax
push str.SOFTWAREMyDriversDriverGeniusUpdate
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, 1
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4104c9
lea ecx, [esp + 8]
push ecx
push str.AutoUpdateSolution
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], eax
call fcn.004100c0
test eax, eax
je 0x4104c9
cmp dword [esp + 8], 3
jne 0x4104c9
push str._KUpliveWorker::IsEnableAutorun_error_1____
xor esi, esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 4]
test eax, eax
je 0x4104d8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x410630
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov ebx, 1
call fcn.00410470
test eax, eax
jne 0x41064b
pop esi
pop ebx
add esp, 0x20
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0xdbba0
jae 0x41066b
push str.KUpliveWorker::IsEnableRun_error_1
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00410400
test eax, eax
je 0x410663
push ebp
push edi
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [esp + 0x14]
push 1
push 0
push 0
push ecx
call fcn.004206c0
mov ecx, dword [esp + 0x1c]
mov edi, eax
xor eax, eax
push 1
mov esi, edx
mov edx, dword [esp + 0x14]
push eax
push eax
add edi, edx
push ecx
adc esi, eax
call fcn.004206c0
mov ecx, dword [esp + 0x18]
xor ebp, ebp
add eax, ecx
adc edx, ebp
cmp esi, edx
ja 0x410701
jb 0x4106d8
cmp edi, eax
ja 0x410701
push 0
sub eax, edi
push 0x989680
sbb edx, esi
push edx
push eax
call fcn.00420650
test edx, edx
ja 0x410701
jb 0x4106f7
cmp eax, 0x4b0
jae 0x410701
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret

Function at 0x410940
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
call fcn.00410630
test eax, eax
je 0x41098c
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push 1
push 0
push eax
push ecx
call fcn.0040ccc0
mov edx, dword [esi + 4]
push 1
push 0
push str._updatecleanercs3
push edx
call fcn.0040ccc0
mov eax, dword [esi + 4]
push 1
push 0
push 0x448d1c
push eax
call fcn.0040ccc0
add esp, 0x30
mov ecx, esi
pop esi
jmp fcn.00410360
pop esi
ret
Function at 0x410ce0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4453e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4521d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
push 0xf4240
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
call fcn.0041ce2a
mov esi, eax
mov eax, dword [0x45392c]
mov edx, dword [eax + 0xc]
add esp, 4
mov ecx, 0x45392c
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
push esi
mov byte [ebp - 4], 1
call sub.PnpSup.dll_Ordinal_34
add esp, 4
cmp esi, edi
jne 0x410d4c
xor eax, eax
jmp 0x410d5c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x410d51
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x18]
call fcn.00410b10
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x448ed4
call ebx
mov edi, dword [ebp - 0x18]
push 0x448ed0
push edi
call fcn.00420630
add esp, 8
test eax, eax
sete al
test al, al
je 0x410d9b
push str.IU_01
call ebx
mov dword [ebp - 0x14], 1
push esi
call fcn.0041f718
lea eax, [edi - 0x10]
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410dd9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x410dd9
push 0x448eb8
call ebx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret