joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c180
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push 0x206
push eax
mov word [ebp - 0x20c], ax
xor esi, esi
lea eax, [ebp - 0x20a]
mov dword [ebp - 0x220], ebx
push eax
call fcn.0046f6e0
add esp, 0xc
test ebx, ebx
jne 0x45c1d5
pop esi
lea eax, [ebx + 0xd]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x45c382
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x218], ebx
test ebx, ebx
je 0x45c37c
push str.SETUPAQ.CAB
push 0x4ceb88
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x210], eax
mov esi, 0x100000
cmp edi, 0x6400000
jbe 0x45c255
mov eax, 0x51eb851f
mul edi
mov esi, edx
shr esi, 5
push esi
push edi
push str.ExtractDATARes____LgData:__d_oct_MaxDataRead:__d_oct
call fcn.00469290
add esp, 0xc
mov ecx, 0x4af010
push 0
push edi
push 0x28
push 0
call fcn.00429060
cmp edi, esi
jbe 0x45c39c
mov ebx, esi
mov dword [ebp - 0x21c], 0
lea esp, [esp]
cmp dword [0x4b552c], 0
jne 0x45c30b
push 0
lea eax, [ebp - 0x214]
push eax
push ebx
push dword [ebp - 0x218]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x214]
push ebx
push edi
push str.ExtractDATARes____dwLgRemain:__d_dwNbOfBytesToWrite:__d_Bytes_Write:__d_oct
call fcn.00469290
add esp, 0x10
cmp edi, esi
jbe 0x45c30b
mov eax, dword [ebp - 0x214]
sub edi, esi
mov ecx, dword [ebp - 0x218]
cmp edi, esi
mov ebx, edi
cmova ebx, esi
push 0
lea ecx, [ecx + eax*2]
mov dword [ebp - 0x218], ecx
mov ecx, dword [ebp - 0x21c]
add ecx, eax
mov dword [ebp - 0x21c], ecx
push ecx
mov ecx, 0x4af010
call fcn.004293d0
test edi, edi
jne 0x45c290
mov edi, dword [ebp + 0xc]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov ecx, 0x4af010
call fcn.00429280
push 0
push edi
push 0x64
push 0x28
mov ecx, 0x4af010
call fcn.00429060
push 0x4b70fc
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45c353
push 0x4b70fc
call fcn.0043b250
add esp, 4
push dword [0x4b7f58]
lea eax, [ebp - 0x20c]
push 0x4b70fc
push eax
call fcn.00468100
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [ebp - 0x220]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x214]
push eax
push edi
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x45c30e
Function at 0x45c3c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
mov dword [ebp - 0x828], edi
call fcn.0046f6e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046f6e0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.0046f6e0
imul ebx, esi, 0x306c
add esp, 0x24
mov esi, dword [0x4c900c]
add esi, ebx
cmp word [esi], 0
je 0x45c640
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0046f6e0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push eax
push esi
call fcn.0043cdb0
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
add esp, 0x18
push eax
push 0x4ce980
push 0x4cf1a0
call esi
push str..001
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x4ce980
push edi
call fcn.00439f60
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push 0x4ce980
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x414]
push eax
call fcn.0043d560
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 4
test eax, eax
je 0x45c50f
push 0
lea eax, [ebp - 0x414]
push 0x4ce980
push eax
call fcn.00468100
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push str._CT.001
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046e804
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x4ce980
push dword [ebp - 0x828]
call fcn.00439f60
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
push 0x4ce980
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x414]
push eax
call fcn.0043d560
add esp, 4
test eax, eax
je 0x45c59f
push 0x4cef98
call fcn.0043b250
push 0
lea eax, [ebp - 0x414]
push 0x4cef98
push eax
call fcn.00468100
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call edi
push 0x4cf3a8
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0046fd12
mov eax, dword [0x4c900c]
add eax, 0x62e
add eax, ebx
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046fd12
mov edi, dword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea eax, [ebp - 0x20c]
add esp, 0x18
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
push 0x4ce980
push 0x4cf3a8
call esi
push 0x4cf3a8
call fcn.0043d560
add esp, 4
test eax, eax
jne 0x45c640
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046fd12
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
push 0x4ce980
push 0x4cf3a8
call esi
push 0x4cf3a8
call fcn.0043d560
push 0x4cf3a8
push eax
push str._ExtractLangFiles____License:__d_LicenseFile:__s
mov dword [0x4b6868], eax
call fcn.00469290
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret
Function at 0x4667d0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x18]
push edi
push dword [ebp + 0x20]
mov edi, dword [ebp + 0xc]
push ebx
push esi
push dword [ebp + 0x10]
push edi
push str.ExecuteFile__s___s___s___d__Wait1____d__ShowWindow____Begin
call fcn.00469290
add esp, 0x18
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46680a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x3c
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.0046f6e0
mov ecx, dword [ebp + 0x14]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x48], 0x3c
cmp word [esi], ax
mov dword [ebp - 0x44], 0x540
cmove esi, eax
mov dword [ebp - 0x38], edi
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], eax
test ecx, ecx
je 0x46685c
mov eax, dword [ebp - 0x30]
cmp word [ecx], 0
cmovne eax, ecx
mov dword [ebp - 0x30], eax
push ecx
push str.ExecuteFile____Directory:__s
call fcn.00469290
add esp, 8
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp + 0x28]
mov esi, eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
test ecx, ecx
je 0x466885
mov dword [ecx], edx
xor ecx, ecx
mov dword [ebp - 4], ecx
test esi, esi
je 0x46691e
test ebx, ebx
je 0x46691e
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push edx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call ebx
push esi
push str.ExecuteFile____WaitForSingleObject:__X
mov dword [ebp - 8], eax
call fcn.00469290
add esp, 8
test esi, esi
je 0x4668f7
cmp esi, 0xffffffff
je 0x4668f7
cmp esi, 0x80
je 0x4668f7
cmp dword [0x4b552c], 0
jne 0x4668f7
push 0x3e8
push dword [ebp - 0x10]
call edi
push 0
push dword [ebp + 8]
mov esi, eax
call fcn.0043fa80
add esp, 8
test esi, esi
jne 0x4668c4
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
call ebx
sub eax, dword [ebp - 8]
push eax
push esi
push str.ExecuteFile____WaitForSingleObject:__X_Time:__d_ms
call fcn.00469290
mov ecx, dword [ebp - 4]
add esp, 0xc
mov esi, dword [ebp - 0xc]
cmp dword [0x4b552c], 0
mov eax, 0x4c7
cmovne ecx, eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 4], ecx
test eax, eax
je 0x466939
mov dword [eax], ecx
push ecx
push esi
push str.ExecuteFile____End__d____d_
call fcn.00469290
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x467110
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, 1
push edi
mov dword [ebp - 0x248], eax
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x42]
push eax
call fcn.0046f6e0
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push edi
push 0x48f188
push 0x20
push eax
call fcn.0046ebde
add esp, 0x1c
cmp dword [ebp + 0x18], 0
je 0x4671c6
cmp dword [0x4b89c0], 0
je 0x4671c6
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x244], ax
lea eax, [ebp - 0x242]
push eax
call fcn.0046f6e0
push dword [ebp + 0x18]
lea eax, [ebp - 0x244]
push 0x48f188
push 0x100
push eax
call fcn.0046ebde
add esp, 0x1c
lea eax, [ebp - 0x44]
push 0x4cd328
push dword [ebp + 0x14]
push esi
push 0
push eax
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x4671e2
push dword [ebp + 0x14]
push esi
push edi
push dword [ebp - 0x248]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jg 0x4671e2
xor eax, eax
xor ebx, ebx
mov word [esi], ax
push esi
push edi
push str.LoadStringEx__d____s
call fcn.00469290
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, eax
add esi, dword [ebp + 8]
call edi
cmp eax, esi
jae 0x467260
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x46724e
lea eax, [ebp - 0x1c]
push eax
call ebx
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
cmp eax, esi
jb 0x467232
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x467270
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4672be
push dword [ebp + 0x10]
push edi
push esi
push str.RegisterFile__s___s___d___File_doesnt_exits_
call fcn.00469290
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push str..exe
push eax
mov dword [ebp - 0x808], eax
call fcn.0047054b
add esp, 8
test eax, eax
jne 0x46736d
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.0046f6e0
push edi
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.0046fd12
add esp, 0x18
lea eax, [ebp - 0x804]
cmp dword [ebp + 0x10], ebx
je 0x467321
push str.__regserver
jmp 0x467326
push str.__unregserver
push 0x400
push eax
call fcn.0046e804
add esp, 0xc
lea eax, [ebp - 0x808]
push 0
push eax
push 0
push 1
push str.open
push 0
lea eax, [ebp - 0x804]
push eax
push esi
push 0
call fcn.004667d0
add esp, 0x24
mov ebx, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret
push str..dll
push dword [ebp - 0x808]
call fcn.0047054b
add esp, 8
test eax, eax
jne 0x467467
push eax
call dword [sym.imp.ole32.dll_OleInitialize]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x46744e
push 0x3ff
lea eax, [ebp - 0x403]
mov byte [ebp - 0x404], bl
push 0
push eax
call fcn.0046f6e0
add esp, 0xc
lea eax, [ebp - 0x404]
cmp dword [ebp + 0x10], ebx
je 0x4673ce
push str.DllRegisterServer
jmp 0x4673d3
push str.DllUnregisterServer
push 0x400
push eax
call fcn.0046fcbd
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x467447
call eax
test eax, eax
jne 0x467431
lea ebx, [eax + 1]
lea eax, [ebp - 0x404]
push eax
push esi
push str.RegisterFile_____s__s_successfully_
call fcn.00469290
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_OleUninitialize]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret
push eax
lea eax, [ebp - 0x404]
push eax
push esi
push str.RegisterFile_____s__s_failed____x_
call fcn.00469290
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_OleUninitialize]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
push edi
push esi
push str.RegisterFile__s___s___d___File_not_supported_
call fcn.00469290
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret
Function at 0x467490
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046f6e0
push 0x24c
lea eax, [ebp - 0x458]
mov dword [ebp - 0x45c], 0
push 0
push eax
call fcn.0046f6e0
add esp, 0x18
test edi, edi
je 0x4676a4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4676a4
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4676a4
push edi
push str._s.
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046ebde
add esp, 0x10
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x460], eax
cmp eax, 0xffffffff
je 0x4676a4
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 2
je 0x46764b
lea esp, [esp]
mov cx, word [ebp - 0x42e]
mov ax, word [ebp - 0x430]
test cx, cx
jne 0x46757d
cmp ax, 0x2e
je 0x46762a
cmp word [ebp - 0x42c], 0
jne 0x467596
cmp ax, 0x2e
jne 0x467596
cmp cx, ax
je 0x46762a
lea eax, [ebp - 0x430]
push eax
push edi
push str._s_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046ebde
mov eax, dword [ebp - 0x45c]
add esp, 0x14
test al, 1
je 0x4675d4
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
mov eax, dword [ebp - 0x45c]
test al, 0x10
lea eax, [ebp - 0x20c]
je 0x4675ea
push ebx
push eax
call fcn.00467490
add esp, 8
jmp 0x46762a
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
lea eax, [ebp - 0x20c]
push esi
push eax
push str.DeleteFile__s____d
call fcn.00469290
add esp, 0xc
test esi, esi
jne 0x467624
test ebx, 0x100
je 0x467624
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004683a0
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x460]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x467560
mov eax, dword [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x45c]
test al, 1
je 0x467663
and eax, 0xfffffffe
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
push esi
push edi
push str.RemoveDirectory__s____d
call fcn.00469290
add esp, 0xc
test esi, esi
jne 0x467691
test ebx, 0x100
je 0x467691
push esi
push edi
call fcn.004683a0
add esp, 8
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret
Function at 0x467970
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046fd12
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push esi
mov edi, eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp word [eax], 0
jne 0x4679e6
push edi
lea eax, [ebp - 0x20c]
push eax
push str._s_s.lnk
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0046ebde
add esp, 0x14
jmp 0x467a1f
push str..LNK
push eax
call fcn.0047054b
add esp, 8
test eax, eax
je 0x467a0a
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0046fd12
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret

Function at 0x467a40
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00474b0f
Function at 0x467f60
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 1
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x468032
push 0x20
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x468009
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x467fdd
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call fcn.004682a0
add esp, 0xc
mov edi, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret
push str.StopService____ControlService_failed
call fcn.00469290
add esp, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret
push str.StopService____OpenService_failed
call fcn.00469290
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 4
push ebx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret
push str.StopService____OpenSCManager_failed
call fcn.00469290
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret

Function at 0x468060
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4af6f0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x468097
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x468087
push eax
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.0046ebfa
mov esp, ebp
pop ebp
ret
Function at 0x4682a0
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x14]
mov ebx, dword [esi + 0x18]
cmp ebx, 0x3e8
mov dword [ebp + 0x10], eax
mov eax, 0x1388
cmovb ebx, eax
cmp dword [esi + 4], ecx
je 0x468360
mov eax, 0xcccccccd
mov ecx, 0x2710
mul ebx
push edi
mov edi, edx
shr edi, 3
cmp edi, 0x3e8
jae 0x4682f6
mov eax, 0x3e8
jmp 0x468301
cmp edi, 0x2710
mov eax, edi
cmova eax, ecx
push eax
call fcn.00467210
add esp, 4
push esi
push 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x46835c
mov eax, dword [ebp + 0x10]
cmp dword [esi + 0x14], eax
jbe 0x46833d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x14]
mov dword [ebp - 4], eax
mov dword [ebp + 0x10], ecx
jmp 0x46834f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
lea eax, [ebx + ebx*2]
sub ecx, dword [ebp - 4]
cmp ecx, eax
ja 0x46835c
mov eax, dword [ebp + 0xc]
mov ecx, 0x2710
cmp dword [esi + 4], eax
jne 0x4682e7
mov ecx, dword [ebp + 0xc]
pop edi
mov eax, dword [esi + 4]
pop esi
pop ebx
cmp eax, ecx
jne 0x46837f
push str.WaitForServiceToReachState____Success
call fcn.00469290
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret
push eax
push str.WaitForServiceToReachState____Failed___CurrentState_d
call fcn.00469290
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x469930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x469987
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x469980
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x469980
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.004699a0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
pop esi
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x48c8a4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0046fd12
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret