joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455190
Capabilities:
Create service

Disassembly:
sub esp, 0xa10
mov eax, dword [0x4a0fe0]
xor eax, esp
mov dword [esp + 0xa0c], eax
push ebx
push ebp
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4551e9
push 1
lea eax, [ebx + 0x40]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x4551de
push eax
mov edi, 1
call ebp
push esi
call ebp
test edi, edi
jne 0x45531c
push 0x104
lea ecx, [esp + 0x16]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x455283
cmp eax, 0x104
je 0x455283
push 0xf003f
mov ecx, 0x22
push 0
mov word [esp + 0x18], cx
push 0
mov word [esp + eax*2 + 0x1e], cx
mov word [esp + eax*2 + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x45529e
push 0x400
lea edx, [esp + 0x220]
push edx
push 0xd80a
call fcn.00453300
add esp, 0xc
test eax, eax
jne 0x45526d
push str.Could_not_open_Service_Manager
lea eax, [esp + 0x220]
push 0x400
push eax
call fcn.004531f0
add esp, 0xc
push 0
add ebx, 0x40
push ebx
lea ecx, [esp + 0x224]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [esp + 0xa1c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046d626
add esp, 0xa10
ret
push 0
push 0
push str.RPCSS
push 0
push 0
lea edx, [esp + 0x24]
push edx
push 1
push 3
push 0x10
push 0xf01ff
lea edi, [ebx + 0x40]
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x455316
push esi
call ebp
push 0x400
lea eax, [esp + 0x220]
push eax
push 0xd80b
call fcn.00453300
add esp, 0xc
test eax, eax
jne 0x455306
push str.Could_not_start_service
lea ecx, [esp + 0x220]
push 0x400
push ecx
call fcn.004531f0
add esp, 0xc
push 0
push edi
lea edx, [esp + 0x224]
push edx
jmp 0x45527b
push eax
call ebp
push esi
call ebp
mov eax, 1
jmp 0x455285
Function at 0x455330
Capabilities:
Delete service
Stop service

Disassembly:
mov eax, 0x1020
call fcn.0046d640
mov eax, dword [0x4a0fe0]
xor eax, esp
mov dword [esp + 0x101c], eax
push ebx
push ebp
push esi
push edi
push 0xf003f
xor ebp, ebp
push ebp
push ebp
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x45538b
push 1
lea ebx, [edi + 0x40]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x455380
push eax
mov ebp, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebp, ebp
jne 0x455395
mov eax, 1
jmp 0x455526
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4553ef
push 0x400
lea eax, [esp + 0x30]
push eax
push 0xd80a
call fcn.00453300
add esp, 0xc
test eax, eax
jne 0x4553e2
push str.Could_not_open_Service_Manager
lea ecx, [esp + 0x30]
push 0x400
push ecx
call fcn.0046d2d8
push eax
call fcn.0044cad0
add esp, 0x10
push 0
push ebx
lea edx, [esp + 0x34]
push edx
jmp 0x45551c
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x45544d
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [esp + 0x30]
push eax
push 0xd80c
call fcn.00453300
add esp, 0xc
test eax, eax
jne 0x4553e2
push str.Could_not_open_service
lea ecx, [esp + 0x30]
push 0x400
push ecx
call fcn.0046d2d8
push eax
call fcn.0044cad0
add esp, 0x10
push esi
push ebx
lea edx, [esp + 0x34]
push edx
jmp 0x45551c
lea eax, [esp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4554bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x4554bc
cmp eax, 0x425
jne 0x45547a
cmp dword [esp + 0x14], 3
je 0x4554bc
push 0x400
lea ecx, [esp + 0x30]
push ecx
push 0xd80e
call fcn.00453300
add esp, 0xc
test eax, eax
jne 0x4554ac
push str.Could_not_stop_service
lea edx, [esp + 0x30]
push 0x400
push edx
call fcn.004531f0
add esp, 0xc
push 0
push ebx
lea eax, [esp + 0x34]
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 ebp, eax
call esi
push edi
call esi
test ebp, ebp
jne 0x45538b
push 0x400
lea ecx, [esp + 0x830]
push ecx
push 0xd80d
call fcn.00453300
add esp, 0xc
test eax, eax
jne 0x455511
push str.Could_not_delete_service
lea edx, [esp + 0x830]
push 0x400
push edx
call fcn.004531f0
add esp, 0xc
push 0
push ebx
lea eax, [esp + 0x834]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [esp + 0x102c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046d626
add esp, 0x1020
ret
Function at 0x456060
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]
test eax, eax
mov dword [esi + 0x30], eax
jne 0x45607c
pop esi
pop ecx
ret
push edi
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x455540
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x4560a4
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x457690
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x482714
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4a0fe0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.0044c830
add eax, 0x10
mov dword [esi], eax
mov eax, dword [edi + 4]
sub eax, 0x10
push eax
mov dword [esp + 0x20], 0
call fcn.0044c830
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
sub eax, 0x10
push eax
mov byte [esp + 0x24], 1
call fcn.0044c830
add eax, 0x10
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
sub eax, 0x10
push eax
mov byte [esp + 0x28], 2
call fcn.0044c830
add eax, 0x10
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
sub eax, 0x10
push eax
mov byte [esp + 0x2c], 3
call fcn.0044c830
add eax, 0x10
mov dword [esi + 0x10], eax
mov edi, dword [edi + 0x14]
sub edi, 0x10
push edi
mov byte [esp + 0x30], 4
call fcn.0044c830
add esp, 0x18
add eax, 0x10
mov dword [esi + 0x14], eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x4582f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x482770
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4a0fe0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 0x418]
mov edi, dword [ebp + 0x410]
mov ebx, dword [ebp + 0x414]
mov dword [ebp - 0x14], eax
call dword [0x4a23c0]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x45837d
call fcn.00453350
mov esi, eax
jmp 0x458465
mov ecx, dword [ebp - 0x14]
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x458399
call fcn.00453350
jmp 0x45845c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x4583b2
call fcn.00453350
jmp 0x45845c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x14], esi
jae 0x4583e8
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x4583d6
lea ecx, [ebp]
call fcn.004545c0
lea ecx, [ebp - 0x1c]
call fcn.00454490
mov eax, 0x8007000e
jmp 0x458482
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00455d30
mov dword [ebp - 4], 1
jmp 0x458411
mov ebx, dword [ebp]
test ebx, ebx
jne 0x45841f
mov esi, 0x8007000e
jmp 0x45845e
call dword [0x4a23c0]
mov ecx, dword [ebp - 0x20]
push esi
push ebx
push esi
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x458440
call fcn.00453350
jmp 0x45845c
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00457760
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x458480
lea ecx, [ebp]
call fcn.004545c0
jmp 0x458480
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0046d626
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4587d0
Capabilities:
Set current directory

Disassembly:
sub esp, 0x14
push ebx
xor ebx, ebx
push ebp
push esi
mov esi, ecx
push edi
mov byte [esi + 0x284], bl
mov byte [esi + 0x285], bl
mov byte [esi + 0x286], bl
mov byte [esi + 0x294], bl
mov byte [esi + 0x29c], bl
mov byte [esi + 0x29e], bl
call fcn.004511e0
lea edi, [esi + 0x28c]
mov ecx, edi
mov byte [0x4a2bf8], al
call fcn.0044c970
lea ebp, [esi + 0x290]
mov ecx, ebp
call fcn.0044c970
mov eax, dword [esp + 0x28]
push eax
mov ecx, esi
call fcn.00458000
push 2
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x458847
mov byte [esi + 0x294], 1
push ebx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esi + 0x298]
push edx
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call sub.gdiplus.dll_GdiplusStartup
mov eax, dword [esp + 0x28]
cmp eax, ebx
jl 0x45899c
cmp byte [esi + 0x3c], bl
jne 0x458888
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov dword [esp + 0x28], eax
cmp eax, ebx
jl 0x45899c
push edi
call fcn.00450d50
mov eax, dword [edi]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
movzx ecx, byte [0x4a2bf8]
push ecx
push ebp
call fcn.00450df0
push str.MyEpson_Portal_Service_Log
push str.mepService
call fcn.00448b60
push str.Start_Service_n
push ebx
call fcn.00448d80
push 4
lea edi, [esi + 0x274]
push edi
push str.ServiceTimer
push str.SOFTWAREEPSONMyEpson_Portal
call fcn.004487d0
add esp, 0x28
test eax, eax
je 0x4588ef
mov dword [edi], 0x5265c00
push 4
lea edi, [esi + 0x278]
push edi
push str.ServiceTimerInterval
push str.SOFTWAREEPSONMyEpson_Portal
call fcn.004487d0
add esp, 0x10
test eax, eax
je 0x458914
mov dword [edi], 0x1b7740
mov edx, dword [edi]
push edx
push str.____PreMessageLoop___m_uServiceTimerInterval____d__n
call fcn.00401010
mov eax, dword [edi]
push eax
push str.PreMessageLoop___m_uServiceTimerInterval____d__n
push ebx
call fcn.00448d80
add esp, 0x14
mov ecx, esi
call fcn.004540b0
push 4
lea ecx, [esp + 0x14]
push ecx
push str.ManualUpdate
push str.SOFTWAREEPSONMyEpson_Portal
mov ebp, eax
mov dword [esp + 0x20], ebx
call fcn.004487d0
mov edi, dword [sym.imp.USER32.dll_SetTimer]
add esp, 0x10
test eax, eax
jne 0x458969
cmp dword [esp + 0x10], 1
je 0x45897c
push ebx
push ebp
push ebx
push ebx
mov byte [esi + 0x29d], 1
call edi
mov dword [esi + 0x268], eax
push ebx
push 0xea60
push ebx
push ebx
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x26c], eax
call edi
mov dword [esi + 0x270], eax
mov eax, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x458d90
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x208
mov eax, dword [0x4a0fe0]
xor eax, esp
mov dword [esp + 0x204], eax
cmp dword [esp + 0x218], 0
push ebx
mov ebx, dword [esp + 0x210]
push esi
push edi
mov edi, dword [esp + 0x220]
je 0x458e2c
mov ecx, dword [ecx + 0x28c]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x458e08
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str._ERROR_CreateAndWriteFile___GetTempFile_____d__n
call fcn.00401010
add esp, 8
call esi
push eax
push str.ERROR_CreateAndWriteFile___GetTempFile_____d__n
push 2
call fcn.00448d80
add esp, 0xc
xor eax, eax
jmp 0x458ebf
lea eax, [esp + 0x10]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x458e10
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.0044c790
mov eax, dword [edi]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x458e7a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str._ERROR_CreateAndWriteFile___CreateFile_____d__n
call fcn.00401010
add esp, 8
call esi
push eax
push str.ERROR_CreateAndWriteFile___CreateFile_____d__n
push 2
call fcn.00448d80
add esp, 0xc
xor eax, eax
jmp 0x458ebf
mov eax, dword [esp + 0x21c]
push 0
lea edx, [esp + 0x10]
push edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [edi]
push ecx
push str.____CreateAndWriteFile___File_Created___s__n
mov ebx, eax
call fcn.00401010
mov edx, dword [edi]
push edx
push str.CreateAndWriteFile___File_Created___s__n
push 0
call fcn.00448d80
add esp, 0x14
test esi, esi
je 0x458ebd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [esp + 0x210]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046d626
add esp, 0x208
ret 0x10
Function at 0x459120
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x482858
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a0fe0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
xor eax, eax
push 0x498464
lea ecx, [esp + 0x48]
mov dword [esp + 0x40], 0
mov bl, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov word [esp + 0x34], ax
call fcn.00457df0
mov edi, dword [esp + 0x44]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x459196
jmp 0x45923d
mov eax, dword [edi - 0xc]
lea eax, [eax + eax + 4]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
jne 0x4591b7
xor bl, bl
jmp 0x45921f
mov eax, dword [edi - 0xc]
push edi
add eax, 1
push eax
push esi
call fcn.00449420
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], esi
mov word [esp + 0x28], 0x410
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x459204
push str._ERROR_DeleteDirectoryAll___SHFileOperation___n
call fcn.00401010
push str.ERROR_DeleteDirectoryAll___SHFileOperation___n
push 2
call fcn.00448d80
add esp, 0xc
xor bl, bl
jmp 0x45921f
push edi
push str.____DeleteDirectoryAll___Delete___s_n
call fcn.00401010
push edi
push str.DeleteDirectoryAll___Delete___s_n
push 0
call fcn.00448d80
add esp, 0x14
test esi, esi
je 0x45923d
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push esi
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea eax, [edi - 0x10]
mov dword [esp + 0x3c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x459261
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 4
Function at 0x459580
Capabilities:
Access peb ldr_data
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4828b8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
mov eax, dword [0x4a0fe0]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x4a5a34]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a5a34
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x70], 0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ecx, dword [esi + 0x28c]
push str.SERVICEUDPATE
push str.mepSender.exe
push ecx
xor eax, eax
lea edx, [esp + 0x18]
push str._s_s__s
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.00448fb0
mov esi, dword [esp + 0x20]
push esi
push str.____CmdLine___s_n
call fcn.00401010
add esp, 0x1c
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne bl
test bl, bl
jne 0x459653
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._ERROR_CreateProcess___d__CmdLine_s_n
call fcn.00401010
add esp, 0xc
jmp 0x459660
push str.____Service_Update._n
call fcn.00401010
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x459677
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], 0
lea eax, [esi - 0x10]
mov dword [esp + 0x6c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45969b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x64
ret

Function at 0x459870
Capabilities:
Check if file exists

Disassembly:
sub esp, 8
push esi
push str.UpdateList
add ecx, 0x28c
push ecx
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x10], 0
call fcn.00457f10
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4598c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
pop esi
je 0x4598cb
xor al, al
add esp, 8
ret
lea ecx, [esp]
push ecx
push 0
push str.ProductInfoPostData
push str.SOFTWAREEPSONMyEpson_Portal
call fcn.00448890
add esp, 0x10
test eax, eax
jne 0x4598c5
cmp dword [esp], eax
setne al
add esp, 8
ret
Function at 0x459900
Capabilities:
Delete registry value

Disassembly:
sub esp, 0xc
push edi
mov edi, ecx
call fcn.00455330
test eax, eax
jne 0x45991b
mov eax, 0x80004005
pop edi
add esp, 0xc
ret 4
push 1
call fcn.00458780
test eax, eax
jl 0x459a30
push esi
push 0x20006
push str.AppID
push SysReAllocString
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
call fcn.004535d0
test eax, eax
je 0x459973
push eax
call fcn.00453370
mov esi, eax
mov eax, dword [esp + 0xc]
add esp, 4
test eax, eax
je 0x459969
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
add esp, 0xc
ret 4
mov esi, dword [esp + 8]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push 0x485900
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4599ff
mov eax, dword [esp + 0xc]
push str.LocalService
push eax
mov dword [esp + 0x14], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp byte [esp + 0x18], 0
lea ecx, [esp + 0xc]
je 0x459a1f
push 1
lea edx, [edi + 0x40]
push edx
push str.LocalService
call fcn.004536c0
mov ecx, edi
call fcn.00455190
test eax, eax
lea ecx, [esp + 0xc]
jne 0x459a1f
call fcn.00454900
lea ecx, [esp + 8]
call fcn.00454900
pop esi
mov eax, 0x80004005
pop edi
add esp, 0xc
ret 4
push eax
call fcn.00453370
add esp, 4
test esi, esi
mov edi, eax
je 0x459a15
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
add esp, 0xc
ret 4
call fcn.00454900
lea ecx, [esp + 8]
call fcn.00454900
xor eax, eax
pop esi
pop edi
add esp, 0xc
ret 4

Function at 0x459a40
Capabilities:
Delete registry value

Disassembly:
sub esp, 8
call fcn.00455330
test eax, eax
jne 0x459a55
mov eax, 0x80004005
add esp, 8
ret
push ebx
lea eax, [esp + 8]
push eax
push 0x20006
xor ebx, ebx
push ebx
push str.AppID
push SysReAllocString
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x459acd
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0x20006
push 0x485900
push eax
lea ecx, [esp + 0x1c]
mov ebp, eax
mov dword [esp + 0x1c], ebx
call fcn.004535d0
cmp eax, ebx
je 0x459adb
push eax
call fcn.00453370
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
je 0x459abc
push eax
call edi
cmp ebp, ebx
je 0x459ac3
push ebp
call edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push eax
call fcn.00453370
add esp, 4
pop ebx
add esp, 8
ret
mov esi, dword [esp + 0x10]
push str.LocalService
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push ebx
call fcn.00458780
test esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
je 0x459b00
push esi
call edi
test ebp, ebp
je 0x459b07
push ebp
call edi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret
Function at 0x459f90
Capabilities:
Get session information
Get session user name

Disassembly:
push 0xffffffffffffffff
push 0x482a18
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x4a0fe0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x4a5a34]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x4a5a34
mov byte [esp + 0xf], 1
mov dword [esp + 0x10], ebx
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push 5
push edx
push ebx
mov dword [esp + 0x38], ebx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
cmp eax, ebx
je 0x45a043
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push 0x487bd8
call fcn.00401010
mov edx, dword [esp + 0x1c]
add esp, 0xc
cmp edx, ebx
jne 0x45a018
xor eax, eax
jmp 0x45a02f
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45a020
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.0044c790
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], ebx
jne 0x45a047
mov byte [esp + 0xf], bl
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x45a059
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov dword [esp + 0x10], ebx
lea eax, [esi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45a07d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [esp + 0xf]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret 4