joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4568d0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x320c
call fcn.0046f7a0
mov eax, dword [0x4b06f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046fe20
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x120c], ax
lea eax, [ebp - 0x120a]
push eax
call fcn.0046fe20
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x320c], ax
lea eax, [ebp - 0x320a]
push eax
call fcn.0046fe20
push 0x48f734
lea eax, [ebp - 0x220c]
push 0x800
push eax
call fcn.00470452
push 0x48f734
push 0x41
push 0x4b6480
call fcn.00470452
push 0x2c
push 0x800
lea eax, [ebp - 0x220c]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0043da30
add esp, 0x54
test eax, eax
je 0x4569d4
push 0x2c
push 0x800
lea eax, [ebp - 0x120c]
push eax
lea eax, [ebp - 0x220c]
push 0x800
push eax
push eax
call fcn.0043da30
add esp, 0x18
test eax, eax
je 0x4569d4
push 0x2c
push 0x800
lea eax, [ebp - 0x320c]
push eax
lea eax, [ebp - 0x120c]
push 0x800
push eax
push eax
call fcn.0043da30
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00460070
add esp, 8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x220c]
push eax
push 0x4b6068
call fcn.0043af30
add esp, 8
test eax, eax
je 0x456a91
lea eax, [ebp - 0x320c]
push 0x4b60c0
push eax
call fcn.00470c8b
add esp, 8
test eax, eax
jne 0x456a91
cmp word [ebp - 0x120c], ax
je 0x456a4a
lea ecx, [ebp - 0x120c]
push ecx
push 0x4b60b8
call fcn.0046efb0
add esp, 8
test eax, eax
je 0x456a91
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, eax
push esi
push 0x490188
push 0x41
push 0x4b6480
call fcn.0046f31e
push esi
lea eax, [ebp - 0x20c]
push eax
push str.ChangeDir__s____d
call fcn.004699e0
add esp, 0x1c
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
Function at 0x458160
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x6008
call fcn.0046f7a0
mov eax, dword [0x4b06f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 0xffe
push eax
mov word [ebp - 0x2004], ax
lea eax, [ebp - 0x2002]
push eax
call fcn.0046fe20
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push eax
call fcn.0046fe20
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x3004], ax
lea eax, [ebp - 0x3002]
push eax
call fcn.0046fe20
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
push eax
call fcn.0046fe20
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x6004], ax
lea eax, [ebp - 0x6002]
push eax
call fcn.0046fe20
push 0x48f734
lea eax, [ebp - 0x5004]
mov edi, 1
push 0x800
push eax
call fcn.00470452
add esp, 0x48
push esi
push str.ScriptDelay__s___Begin
call fcn.004699e0
push 0x2c
push 0x800
lea eax, [ebp - 0x1004]
push eax
push 0x800
lea eax, [ebp - 0x2004]
push eax
push esi
call fcn.0043da30
add esp, 0x20
test eax, eax
je 0x458307
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x2004]
push eax
push str.ScriptDelay____szDelay_s_szFile_s
call fcn.004699e0
push 0x2c
push 0x800
lea eax, [ebp - 0x3004]
push eax
lea eax, [ebp - 0x1004]
push 0x800
push eax
push eax
call fcn.0043da30
add esp, 0x24
test eax, eax
je 0x458307
push 0x2c
push 0x800
lea eax, [ebp - 0x5004]
push eax
lea eax, [ebp - 0x3004]
push 0x800
push eax
push eax
call fcn.0043da30
add esp, 0x18
test eax, eax
je 0x458307
push 0x2c
push 0x800
lea eax, [ebp - 0x4004]
push eax
lea eax, [ebp - 0x5004]
push 0x800
push eax
push eax
call fcn.0043da30
add esp, 0x18
test eax, eax
je 0x458307
push 0x2c
push 0x800
lea eax, [ebp - 0x6004]
push eax
lea eax, [ebp - 0x4004]
push 0x800
push eax
push eax
call fcn.0043da30
add esp, 0x18
lea eax, [ebp - 0x2004]
push 0x800
push eax
call fcn.00460070
lea eax, [ebp - 0x1004]
push 0x800
push eax
call fcn.00460070
lea eax, [ebp - 0x5004]
push eax
push 0x4b6068
call fcn.0043af30
add esp, 0x18
test eax, eax
je 0x4583f3
lea eax, [ebp - 0x6004]
push 0x4b60c0
push eax
call fcn.00470c8b
add esp, 8
test eax, eax
jne 0x4583f3
cmp word [ebp - 0x4004], ax
je 0x458382
lea eax, [ebp - 0x4004]
push eax
push 0x4b60b8
call fcn.0046efb0
add esp, 8
test eax, eax
je 0x4583f3
lea eax, [ebp - 0x2004]
push ebx
push eax
call fcn.00470df9
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 4
mov dword [ebp - 0x6008], eax
call esi
mov ebx, eax
call esi
sub eax, ebx
cmp eax, dword [ebp - 0x6008]
jae 0x4583e0
mov edi, edi
test edi, edi
je 0x4583e0
cmp word [ebp - 0x1004], 0
je 0x4583cc
lea eax, [ebp - 0x1004]
push eax
call fcn.004554f0
mov edi, eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, ebx
cmp eax, dword [ebp - 0x6008]
jb 0x4583b0
call esi
sub eax, ebx
push eax
push str.Delay____Time_d_ms
call fcn.00469d40
add esp, 8
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
Function at 0x45c650
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 [0x4b06f0]
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.0046fe20
add esp, 0xc
test ebx, ebx
jne 0x45c6a5
pop esi
lea eax, [ebx + 0xd]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x45c852
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x218], ebx
test ebx, ebx
je 0x45c84c
push str.SETUPAQ.CAB
push 0x4d0168
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 0x45c725
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.004699e0
add esp, 0xc
mov ecx, 0x4b0010
push 0
push edi
push 0x28
push 0
call fcn.00429060
cmp edi, esi
jbe 0x45c86c
mov ebx, esi
mov dword [ebp - 0x21c], 0
lea esp, [esp]
cmp dword [0x4b6534], 0
jne 0x45c7db
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.004699e0
add esp, 0x10
cmp edi, esi
jbe 0x45c7db
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, 0x4b0010
call fcn.004293d0
test edi, edi
jne 0x45c760
mov edi, dword [ebp + 0xc]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov ecx, 0x4b0010
call fcn.00429280
push 0
push edi
push 0x64
push 0x28
mov ecx, 0x4b0010
call fcn.00429060
push 0x4b8108
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45c823
push 0x4b8108
call fcn.0043b210
add esp, 4
push dword [0x4b8f64]
lea eax, [ebp - 0x20c]
push 0x4b8108
push eax
call fcn.00468840
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.0046f33a
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 0x45c7de
Function at 0x45c890
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x4b06f0]
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.0046fe20
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046fe20
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.0046fe20
imul ebx, esi, 0x306c
add esp, 0x24
mov esi, dword [0x4ca5ec]
add esi, ebx
cmp word [esi], 0
je 0x45cb10
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0046fe20
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push eax
push esi
call fcn.0043cd80
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
add esp, 0x18
push eax
push 0x4cff60
push 0x4d0780
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 0x4cff60
push edi
call fcn.00439f60
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push 0x4cff60
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x414]
push eax
call fcn.0043d5d0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 4
test eax, eax
je 0x45c9df
push 0
lea eax, [ebp - 0x414]
push 0x4cff60
push eax
call fcn.00468840
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.0046ef44
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x4cff60
push dword [ebp - 0x828]
call fcn.00439f60
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
push 0x4cff60
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x414]
push eax
call fcn.0043d5d0
add esp, 4
test eax, eax
je 0x45ca6f
push 0x4d0578
call fcn.0043b210
push 0
lea eax, [ebp - 0x414]
push 0x4d0578
push eax
call fcn.00468840
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call edi
push 0x4d0988
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.00470452
mov eax, dword [0x4ca5ec]
add eax, 0x62e
add eax, ebx
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00470452
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 0x4cff60
push 0x4d0988
call esi
push 0x4d0988
call fcn.0043d5d0
add esp, 4
test eax, eax
jne 0x45cb10
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00470452
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
push 0x4cff60
push 0x4d0988
call esi
push 0x4d0988
call fcn.0043d5d0
push 0x4d0988
push eax
push str._ExtractLangFiles____License:__d_LicenseFile:__s
mov dword [0x4b7874], eax
call fcn.004699e0
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
Function at 0x466f10
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.004699e0
add esp, 0x18
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x466f4a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x3c
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.0046fe20
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 0x466f9c
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.004699e0
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 0x466fc5
mov dword [ecx], edx
xor ecx, ecx
mov dword [ebp - 4], ecx
test esi, esi
je 0x46705e
test ebx, ebx
je 0x46705e
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.004699e0
add esp, 8
test esi, esi
je 0x467037
cmp esi, 0xffffffff
je 0x467037
cmp esi, 0x80
je 0x467037
cmp dword [0x4b6534], 0
jne 0x467037
push 0x3e8
push dword [ebp - 0x10]
call edi
push 0
push dword [ebp + 8]
mov esi, eax
call fcn.0043fb00
add esp, 8
test esi, esi
jne 0x467004
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.004699e0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov esi, dword [ebp - 0xc]
cmp dword [0x4b6534], 0
mov eax, 0x4c7
cmovne ecx, eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 4], ecx
test eax, eax
je 0x467079
mov dword [eax], ecx
push ecx
push esi
push str.ExecuteFile____End__d____d_
call fcn.004699e0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x467850
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4b06f0]
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.0046fe20
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push edi
push 0x490188
push 0x20
push eax
call fcn.0046f31e
add esp, 0x1c
cmp dword [ebp + 0x18], 0
je 0x467906
cmp dword [0x4b99cc], 0
je 0x467906
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x244], ax
lea eax, [ebp - 0x242]
push eax
call fcn.0046fe20
push dword [ebp + 0x18]
lea eax, [ebp - 0x244]
push 0x490188
push 0x100
push eax
call fcn.0046f31e
add esp, 0x1c
lea eax, [ebp - 0x44]
push 0x4ce908
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 0x467922
push dword [ebp + 0x14]
push esi
push edi
push dword [ebp - 0x248]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jg 0x467922
xor eax, eax
xor ebx, ebx
mov word [esi], ax
push esi
push edi
push str.LoadStringEx__d____s
call fcn.004699e0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046f33a
mov esp, ebp
pop ebp
ret

Function at 0x467950
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 0x4679a0
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 0x46798e
lea eax, [ebp - 0x1c]
push eax
call ebx
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
cmp eax, esi
jb 0x467972
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4679b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x4b06f0]
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 0x4679fe
push dword [ebp + 0x10]
push edi
push esi
push str.RegisterFile__s___s___d___File_doesnt_exits_
call fcn.004699e0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
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.00470c8b
add esp, 8
test eax, eax
jne 0x467aad
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.0046fe20
push edi
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.00470452
add esp, 0x18
lea eax, [ebp - 0x804]
cmp dword [ebp + 0x10], ebx
je 0x467a61
push str.__regserver
jmp 0x467a66
push str.__unregserver
push 0x400
push eax
call fcn.0046ef44
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.00466f10
add esp, 0x24
mov ebx, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
push str..dll
push dword [ebp - 0x808]
call fcn.00470c8b
add esp, 8
test eax, eax
jne 0x467ba7
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 0x467b8e
push 0x3ff
lea eax, [ebp - 0x403]
mov byte [ebp - 0x404], bl
push 0
push eax
call fcn.0046fe20
add esp, 0xc
lea eax, [ebp - 0x404]
cmp dword [ebp + 0x10], ebx
je 0x467b0e
push str.DllRegisterServer
jmp 0x467b13
push str.DllUnregisterServer
push 0x400
push eax
call fcn.004703fd
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x467b87
call eax
test eax, eax
jne 0x467b71
lea ebx, [eax + 1]
lea eax, [ebp - 0x404]
push eax
push esi
push str.RegisterFile_____s__s_successfully_
call fcn.004699e0
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.0046f33a
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.004699e0
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.0046f33a
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.004699e0
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
Function at 0x467bd0
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 [0x4b06f0]
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.0046fe20
push 0x24c
lea eax, [ebp - 0x458]
mov dword [ebp - 0x45c], 0
push 0
push eax
call fcn.0046fe20
add esp, 0x18
test edi, edi
je 0x467de4
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x467de4
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x467de4
push edi
push str._s.
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046f31e
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 0x467de4
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 2
je 0x467d8b
lea esp, [esp]
mov cx, word [ebp - 0x42e]
mov ax, word [ebp - 0x430]
test cx, cx
jne 0x467cbd
cmp ax, 0x2e
je 0x467d6a
cmp word [ebp - 0x42c], 0
jne 0x467cd6
cmp ax, 0x2e
jne 0x467cd6
cmp cx, ax
je 0x467d6a
lea eax, [ebp - 0x430]
push eax
push edi
push str._s_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046f31e
mov eax, dword [ebp - 0x45c]
add esp, 0x14
test al, 1
je 0x467d14
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 0x467d2a
push ebx
push eax
call fcn.00467bd0
add esp, 8
jmp 0x467d6a
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.004699e0
add esp, 0xc
test esi, esi
jne 0x467d64
test ebx, 0x100
je 0x467d64
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00468ae0
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 0x467ca0
mov eax, dword [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x45c]
test al, 1
je 0x467da3
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.004699e0
add esp, 0xc
test esi, esi
jne 0x467dd1
test ebx, 0x100
je 0x467dd1
push esi
push edi
call fcn.00468ae0
add esp, 8
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
Function at 0x4680b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4b06f0]
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.00470452
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 0x468126
push edi
lea eax, [ebp - 0x20c]
push eax
push str._s_s.lnk
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0046f31e
add esp, 0x14
jmp 0x46815f
push str..LNK
push eax
call fcn.00470c8b
add esp, 8
test eax, eax
je 0x46814a
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f33a
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00470452
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.0046f33a
mov esp, ebp
pop ebp
ret

Function at 0x468180
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047524f