joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ac80
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x14
call fcn.00406680
test eax, eax
jne 0x40ac95
mov eax, 0x80004005
add esp, 0x14
ret
lea eax, [esp]
push eax
push 0x20006
push 0
push str.AppID
push SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ad1c
mov eax, dword [esp]
push ebp
push esi
push edi
push 0x20006
push str.CB4B4EAB_4ABB_4702_BB38_E3A1A1D5D67D
mov ebp, eax
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.004015b0
test eax, eax
je 0x40ad29
push eax
call fcn.00401270
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x40ad0c
push eax
call edi
test ebp, ebp
je 0x40ad13
push ebp
call edi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x14
ret
push eax
call fcn.00401270
add esp, 4
add esp, 0x14
ret
mov esi, dword [esp + 0x10]
push str.LocalService
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0
call fcn.004087f0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, eax
test esi, esi
je 0x40ad4f
push esi
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40ad5a
push eax
call edi
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0x14
ret

Function at 0x40b140
Capabilities:
Modify service

Disassembly:
sub esp, 0x80c
mov eax, dword [0x4ca1d0]
xor eax, esp
mov dword [esp + 0x808], eax
push ebx
mov ebx, dword [esp + 0x814]
push ebp
push edi
xor ebp, ebp
push ebx
mov edi, ecx
mov dword [esp + 0x10], ebp
call fcn.00409fc0
test bl, bl
je 0x40b262
push esi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x40b266
push 1
add edi, 0x40
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x40b1ad
push eax
mov ebx, 1
call ebp
push esi
call ebp
test ebx, ebx
je 0x40b25c
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x40b1d4
call fcn.00401250
jmp 0x40b268
push 2
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x40b24e
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 2
push 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 0x400
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00494780
add esp, 0xc
push str.Glarysoft_Startup_Manager_Servers
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x14]
push eax
push 1
lea edx, [esp + 0x20]
push esi
mov dword [esp + 0x20], edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push esi
call ebp
mov esi, dword [esp + 0x10]
push ebx
call ebp
mov eax, esi
jmp 0x40b268
call fcn.00401250
push ebx
mov esi, eax
call ebp
mov eax, esi
jmp 0x40b268
mov eax, dword [esp + 0x10]
jmp 0x40b268
mov eax, ebp
jmp 0x40b269
mov eax, ebp
pop esi
mov ecx, dword [esp + 0x814]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00493ffe
add esp, 0x80c
ret 4
Function at 0x40b650
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4b02d8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4ca1d0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0
call fcn.00407f90
mov esi, dword [esp + 0x20]
push str.Log_
push eax
push esi
mov dword [esp + 0x24], 0
call fcn.00409ee0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 0x10
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b6c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x20], 0
je 0x40b6e6
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b6e6
mov eax, dword [esi]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 8

Function at 0x40b700
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b0321
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ca1d0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov eax, dword [0x4d3dcc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4d3dcc
mov dword [esp + 0x20], ebx
call edx
mov esi, dword [esp + 0x28]
add eax, 0x10
mov dword [esi], eax
push 1
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], 1
call fcn.0040b650
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax]
push ecx
push edx
push str._sSession__d.log
push esi
mov dword [esp + 0x30], 1
call fcn.00408720
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x20], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b7a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x40b7c0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4b01c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ca1d0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0x318]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x20], 1
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
lea esi, [edi + 0x2bc]
push ecx
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.00408330
mov ebx, dword [esp + 0x14]
mov ebp, dword [esi + 0x18]
mov eax, dword [esi]
test ebx, ebx
je 0x40b82f
cmp ebx, eax
je 0x40b834
call fcn.00494198
cmp dword [esp + 0x18], ebp
je 0x40b8f6
test ebx, ebx
jne 0x40b8eb
call fcn.00494198
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x18]
jne 0x40b85b
call fcn.00494198
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x10], 0
je 0x40b8f6
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x38]
push edx
mov ecx, edi
call fcn.0040b700
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b8a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
jne 0x40b8f2
call fcn.00494198
xor eax, eax
mov ebp, dword [esp + 0x18]
cmp ebp, dword [eax + 0x18]
jne 0x40b8bc
call fcn.00494198
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40b8cb
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
push ebp
push ebx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.0040a120
lea ecx, [edi + 0x368]
call fcn.0040fba0
mov edx, dword [esp + 0x1c]
push edx
jmp 0x40b8fb
mov eax, dword [ebx]
jmp 0x40b84d
mov eax, dword [ebx]
jmp 0x40b8ae
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x40ca50
Capabilities:
Get user security identifier

Disassembly:
push 0xffffffffffffffff
push 0x4b03d1
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ca1d0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [0x4d3dcc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4d3dcc
mov dword [esp + 0x34], ebx
call edx
mov ecx, dword [esp + 0x3c]
add eax, 0x10
mov dword [ecx], eax
mov edx, dword [0x4d3dcc]
mov eax, dword [edx + 0xc]
mov edi, 1
mov ecx, 0x4d3dcc
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], edi
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov ebp, 0x7fff
push ebp
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
call fcn.00492e10
mov edi, eax
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebp
add esp, 4
or eax, ecx
jge 0x40caf8
push ebp
lea ecx, [esp + 0x1c]
call fcn.00407af0
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x24]
push edx
push esi
lea eax, [esp + 0x30]
push eax
push edi
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea edx, [esp + 0x14]
push edx
push edi
mov dword [esp + 0x1c], ebx
call sub.ADVAPI32.dll_ConvertSidToStringSidW
mov edx, dword [esp + 0x14]
cmp edx, ebx
jne 0x40cb30
xor eax, eax
jmp 0x40cb44
mov eax, edx
lea ebp, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40cb35
sub eax, ebp
sar eax, 1
mov ebp, dword [esp + 0x3c]
push eax
push edx
mov ecx, ebp
call fcn.004085c0
push edi
call fcn.00494228
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [esi - 0x10]
mov byte [esp + 0x34], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cb85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x40dc00
Capabilities:
Access peb ldr_data
Get session information
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x4b05b0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4ca1d0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x1c], edi
mov eax, dword [0x4d3dcc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4d3dcc
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edi
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov ebx, dword [esp + 0x34]
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x30], edi
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
jne 0x40dca4
mov edx, dword [0x4d3dcc]
mov eax, dword [edx + 0xc]
mov ecx, 0x4d3dcc
call eax
mov edi, dword [esp + 0x30]
add eax, 0x10
mov dword [edi], eax
mov ecx, edi
call fcn.00407020
lea eax, [esi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dd1c
mov ecx, dword [eax]
push eax
jmp 0x40dd15
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
push 5
push ebx
push edi
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x40dccd
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call fcn.0040c340
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x40dcdb
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
push esi
call fcn.00406e50
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov dword [esp + 0x28], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40dd1c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x40e060
Capabilities:
Schedule task via itaskscheduler

Disassembly:
push 0xffffffffffffffff
push 0x4b0640
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4ca1d0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
push eax
push 0x4bf2d8
push 1
push ebx
push 0x4bf2e8
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x40e176
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [ecx + 0x14]
mov byte [esp + 0x30], 1
call eax
cmp eax, ebx
mov eax, dword [esp + 0x1c]
jl 0x40e166
cmp eax, ebx
je 0x40e168
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x18], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jl 0x40e162
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40e162
lea ebx, [ebx]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
dec eax
mov dword [esp + 0x10], eax
mov eax, dword [edx + eax*4]
push ecx
push eax
mov ecx, edi
call fcn.0040d310
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + ecx*4]
push eax
call esi
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x40e110
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
push ecx
push 0xffffffffffffffff
push eax
call edx
test eax, eax
jge 0x40e102
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov byte [esp + 0x28], bl
je 0x40e176
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
cmp eax, ebx
je 0x40e18e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x410010
Capabilities:
Create thread

Disassembly:
push 0
push 0
push ecx
push 0x40fff0
push 0
push 0
mov dword [ecx + 4], 0
call fcn.00495c0d
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x4100c0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
xor eax, eax
push edi
xor ebp, ebp
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x14]
push eax
push 8
mov esi, ecx
mov eax, dword [esi + 0x38]
lea ecx, [esp + 0x20]
push ecx
push 8
lea edx, [esp + 0x54]
push edx
push 0x8000c010
push eax
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x410130
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edi, eax
jmp 0x41013f
push str.FINDPROCESSTIME_Error____n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x14]
or eax, dword [esp + 0x18]
jne 0x410191
push ebp
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x38]
push 0x20
lea edx, [esp + 0x28]
push edx
push 8
lea eax, [esp + 0x54]
push eax
push 0x8000c00c
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x410186
mov eax, dword [esp + 0x34]
add eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
adc edx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
push str.GETPROCESSTIME_Error____n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, edi
pop edi
pop esi
pop ebp
mov edx, ebx
pop ebx
add esp, 0x2c
ret 8
Function at 0x412060
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
push edi
push str.Start_Process_Monitor
push esi
call ecx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
add esp, 8
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push 0xc0000000
push str..BOOTSTARTUP_DeviceName
call ebx
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x412100
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 2
jne 0x4120e3
push edi
push edi
push 3
push edi
push 3
push 0xc0000000
push str..BOOTSTARTUP_S_DeviceName
call ebx
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x412100
mov ebx, dword [esi]
add ebx, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
push eax
push str.Not_find_driver:__d____
push esi
call edx
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ebx, dword [esi]
add ebx, 0xc
call ebp
push eax
mov eax, dword [ebx]
push str.Not_find_driver:__d____
push esi
call eax
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
lea ecx, [esp + 0x14]
push ecx
push edi
push edi
push edi
push edi
push 0x8000c3c0
push ebp
mov dword [esi + 0x38], ebp
mov dword [esp + 0x30], edi
call ebx
push edi
lea edx, [esp + 0x14]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push edi
push edi
push 0x8000c01c
push ebp
mov dword [esp + 0x34], edi
call ebx
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xc], ecx
cmp eax, edi
je 0x412158
mov eax, dword [eax]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
add eax, 0xc
mov eax, dword [eax]
push edx
call eax
mov ecx, dword [esi + 4]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x412219
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
test eax, eax
jne 0x412219
push edi
lea ecx, [esp + 0x14]
push ecx
push edi
push edi
push edi
push edi
push 0x8000c008
push ebp
mov dword [esp + 0x30], edi
call ebx
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x41220c
inc eax
push eax
mov dword [esp + 0x14], eax
call fcn.00492e10
mov edx, dword [esp + 0x14]
push edx
mov edi, eax
push 0
push edi
call fcn.00494780
mov ecx, dword [esp + 0x20]
add esp, 0x10
push 0
lea eax, [esp + 0x14]
push eax
push ecx
push edi
push 0
push 0
push 0x8000c008
push ebp
call ebx
test eax, eax
je 0x412201
cmp byte [edi + 0x10], 0
push edi
lea ecx, [esi + 0x18]
je 0x4121ed
lea edx, [esp + 0x1c]
push edx
call fcn.00411be0
jmp 0x4121f2
call fcn.00411cd0
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
mov edx, dword [eax + 4]
push ecx
push edi
mov ecx, esi
call edx
push edi
call fcn.00494228
add esp, 4
xor edi, edi
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x412158
push ebp
mov dword [esi + 0x38], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
push 0x4b4200
push esi
call ecx
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x412660
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 4], eax
test eax, eax
jne 0x41267c
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x412410
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x4126a4
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x414dd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b00d9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x4ca1d0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
push esi
push esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov edx, dword [0x4d3dcc]
mov eax, dword [edx + 0xc]
mov ecx, 0x4d3dcc
call eax
mov esi, dword [esp + 0x2c]
add eax, 0x10
mov dword [esi], eax
movzx ecx, word [esp + 0x18]
movzx edx, word [esp + 0x16]
movzx eax, word [esp + 0x14]
push ecx
movzx ecx, word [esp + 0x16]
push edx
movzx edx, word [esp + 0x16]
push eax
movzx eax, word [esp + 0x18]
push ecx
push edx
push eax
push 0x4b43c8
push esi
mov dword [esp + 0x44], 0
mov dword [esp + 0x28], 1
call fcn.00408720
add esp, 0x20
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x20
ret

Function at 0x415180
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x4151fe
mov eax, dword [esi + 0x98]
or eax, dword [esi + 0x9c]
jne 0x4151fe
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov edx, dword [esp + 0xc]
xor ecx, ecx
sub eax, 0xbb8
cmp ecx, dword [esp + 0x10]
jg 0x4151c7
jl 0x4151bb
cmp eax, edx
jae 0x4151cb
mov dword [esi + 0x98], 0x3e8
jmp 0x4151d8
cmp eax, edx
jb 0x4151cf
sub eax, edx
jmp 0x4151d2
sub eax, edx
dec eax
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], ecx
mov ecx, dword [esi + 0x9c]
mov edx, dword [esi + 0x98]
push ecx
push edx
call edi
push eax
push str.InUIIdel___d__I64u
push esi
call fcn.00414ed0
add esp, 0x14
pop edi
pop esi
ret 0xc
Function at 0x417360
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b0f08
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x4ca1d0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x24]
push 0x16
lea ecx, [esi + 0x78]
push str.WindowsExplorer.exe
mov dword [esi + 0x14], edi
call fcn.004085c0
push str.IsWow64Process
push 0x4b42a0
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4cb974], eax
test eax, eax
je 0x4173d6
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x4cb974]
cmp dword [esp + 0x24], 0
je 0x4173ec
push 0x16
lea ecx, [esi + 0x7c]
push str.Syswow64_runonce.exe
call fcn.004085c0
mov ecx, dword [esi + 0x80]
cmp dword [ecx - 0xc], 0
lea ebp, [esi + 0x80]
jne 0x4174df
lea edx, [esp + 0x10]
push edx
push edi
mov dword [esp + 0x18], 0
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x4174df
mov eax, dword [0x4d3dcc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4d3dcc
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x24], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x1c], 0
jge 0x417461
push 0x104
lea ecx, [esp + 0x28]
call fcn.00407af0
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push esi
push 0
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00495384
add esp, 8
test eax, eax
jl 0x4174f4
cmp eax, dword [esi - 8]
jg 0x4174f4
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
jne 0x4174b0
lea edx, [esp + 0x24]
push edx
mov ecx, ebp
call fcn.0040a460
push 0x4b4528
mov ecx, ebp
call fcn.00416e50
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4174df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4
push 0x80070057
call fcn.004010b0
int3