joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b9b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x6008
call fcn.00469d10
mov eax, dword [0x4a86f0]
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.0046a390
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push eax
call fcn.0046a390
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x3004], ax
lea eax, [ebp - 0x3002]
push eax
call fcn.0046a390
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
push eax
call fcn.0046a390
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x6004], ax
lea eax, [ebp - 0x6002]
push eax
call fcn.0046a390
push 0x488e14
lea eax, [ebp - 0x5004]
mov edi, 1
push 0x800
push eax
call fcn.0046bf5a
add esp, 0x48
push esi
push str.ScriptDelay__s___Begin
call fcn.0045f520
push 0x2c
push 0x800
lea eax, [ebp - 0x1004]
push eax
push 0x800
lea eax, [ebp - 0x2004]
push eax
push esi
call fcn.0042e3e0
add esp, 0x20
test eax, eax
je 0x44bb57
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x2004]
push eax
push str.ScriptDelay____szDelay_s_szFile_s
call fcn.0045f520
push 0x2c
push 0x800
lea eax, [ebp - 0x3004]
push eax
lea eax, [ebp - 0x1004]
push 0x800
push eax
push eax
call fcn.0042e3e0
add esp, 0x24
test eax, eax
je 0x44bb57
push 0x2c
push 0x800
lea eax, [ebp - 0x5004]
push eax
lea eax, [ebp - 0x3004]
push 0x800
push eax
push eax
call fcn.0042e3e0
add esp, 0x18
test eax, eax
je 0x44bb57
push 0x2c
push 0x800
lea eax, [ebp - 0x4004]
push eax
lea eax, [ebp - 0x5004]
push 0x800
push eax
push eax
call fcn.0042e3e0
add esp, 0x18
test eax, eax
je 0x44bb57
push 0x2c
push 0x800
lea eax, [ebp - 0x6004]
push eax
lea eax, [ebp - 0x4004]
push 0x800
push eax
push eax
call fcn.0042e3e0
add esp, 0x18
lea eax, [ebp - 0x2004]
push 0x800
push eax
call fcn.00453150
lea eax, [ebp - 0x1004]
push 0x800
push eax
call fcn.00453150
lea eax, [ebp - 0x5004]
push eax
push 0x4ab068
call fcn.0042c090
add esp, 0x18
test eax, eax
je 0x44bc43
lea eax, [ebp - 0x6004]
push 0x4ab0c0
push eax
call fcn.0046cdb9
add esp, 8
test eax, eax
jne 0x44bc43
cmp word [ebp - 0x4004], ax
je 0x44bbd2
lea eax, [ebp - 0x4004]
push eax
push 0x4ab0b8
call fcn.00469520
add esp, 8
test eax, eax
je 0x44bc43
lea eax, [ebp - 0x2004]
push ebx
push eax
call fcn.0046d18f
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 0x44bc30
mov edi, edi
test edi, edi
je 0x44bc30
cmp word [ebp - 0x1004], 0
je 0x44bc1c
lea eax, [ebp - 0x1004]
push eax
call fcn.00448070
mov edi, eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, ebx
cmp eax, dword [ebp - 0x6008]
jb 0x44bc00
call esi
sub eax, ebx
push eax
push str.Delay____Time_d_ms
call fcn.0045f880
add esp, 8
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004698aa
mov esp, ebp
pop ebp
ret
Function at 0x44fd00
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 [0x4a86f0]
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.0046a390
add esp, 0xc
test ebx, ebx
jne 0x44fd55
pop esi
lea eax, [ebx + 0xd]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x44ff02
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x218], ebx
test ebx, ebx
je 0x44fefc
push str.SETUPAQ.CAB
push 0x4b4f40
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 0x44fdd5
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.0045f520
add esp, 0xc
mov ecx, 0x4a8038
push 0
push edi
push 0x28
push 0
call fcn.00430390
cmp edi, esi
jbe 0x44ff1c
mov ebx, esi
mov dword [ebp - 0x21c], 0
lea esp, [esp]
cmp dword [0x4c2e50], 0
jne 0x44fe8b
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.0045f520
add esp, 0x10
cmp edi, esi
jbe 0x44fe8b
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, 0x4a8038
call fcn.00430700
test edi, edi
jne 0x44fe10
mov edi, dword [ebp + 0xc]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov ecx, 0x4a8038
call fcn.004305b0
push 0
push edi
push 0x64
push 0x28
mov ecx, 0x4a8038
call fcn.00430390
push 0x4ba5a4
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x44fed3
push 0x4ba5a4
call fcn.0042c370
add esp, 4
push dword [0x4ba7bc]
lea eax, [ebp - 0x20c]
push 0x4ba5a4
push eax
call fcn.0045e390
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.004698aa
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 0x44fe8e
Function at 0x44ff50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x4a86f0]
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.0046a390
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046a390
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.0046a390
imul ebx, esi, 0x620
add esp, 0x24
mov esi, dword [0x4c38b8]
add esi, ebx
cmp word [esi], 0
je 0x4501d0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0046a390
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push eax
push esi
call fcn.0042d9e0
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x20c]
add esp, 0x18
push eax
push 0x4c3678
push 0x4b4730
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 0x4c3678
push edi
call fcn.00429340
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push 0x4c3678
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x414]
push eax
call fcn.0042df80
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 4
test eax, eax
je 0x45009f
push 0
lea eax, [ebp - 0x414]
push 0x4c3678
push eax
call fcn.0045e390
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.004694b4
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x4c3678
push dword [ebp - 0x828]
call fcn.00429340
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
push 0x4c3678
lea eax, [ebp - 0x414]
push eax
call esi
lea eax, [ebp - 0x414]
push eax
call fcn.0042df80
add esp, 4
test eax, eax
je 0x45012f
push 0x4c3470
call fcn.0042c370
push 0
lea eax, [ebp - 0x414]
push 0x4c3470
push eax
call fcn.0045e390
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call edi
push 0x4b4938
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0046bf5a
mov eax, dword [0x4c38b8]
add eax, 0x410
add eax, ebx
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046bf5a
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 0x4c3678
push 0x4b4938
call esi
push 0x4b4938
call fcn.0042df80
add esp, 4
test eax, eax
jne 0x4501d0
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046bf5a
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
push 0x4c3678
push 0x4b4938
call esi
push 0x4b4938
call fcn.0042df80
push 0x4b4938
push eax
push str._ExtractLangFiles____License:__d_LicenseFile:__s
mov dword [0x4b9d40], eax
call fcn.0045f520
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.004698aa
mov esp, ebp
pop ebp
ret
Function at 0x4510f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4a86f0]
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.0046a390
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push edi
push 0x4892b4
push 0x20
push eax
call fcn.0046988e
add esp, 0x1c
cmp dword [ebp + 0x18], 0
je 0x4511a6
cmp dword [0x4bb21b], 0
je 0x4511a6
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x244], ax
lea eax, [ebp - 0x242]
push eax
call fcn.0046a390
push dword [ebp + 0x18]
lea eax, [ebp - 0x244]
push 0x4892b4
push 0x100
push eax
call fcn.0046988e
add esp, 0x1c
lea eax, [ebp - 0x44]
push 0x4ac620
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 0x4511c2
push dword [ebp + 0x14]
push esi
push edi
push dword [ebp - 0x248]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jg 0x4511c2
xor eax, eax
xor ebx, ebx
mov word [esi], ax
push esi
push edi
push str.LoadStringEx__d____s
call fcn.0045f520
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004698aa
mov esp, ebp
pop ebp
ret
Function at 0x45bde0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4a86f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push 0x3bc
push 0
mov dword [0x4c3eec], esi
lea eax, [esi + 8]
push eax
call fcn.0046a390
push 0x110
lea eax, [ebp - 0x114]
mov dword [esi + 0x3d0], 0
push 0
push eax
mov dword [esi + 0x3d4], 1
mov dword [esi + 0x3d8], 1
mov dword [esi + 0x408], 0
mov dword [esi + 0x40c], 1
mov dword [esi + 0x3dc], 0
mov dword [esi + 0x3f0], 0
mov dword [esi + 0x404], 0
mov dword [esi + 0x3cc], 0
mov dword [esi + 0x410], 0
mov dword [ebp - 0x118], 0x114
call fcn.0046a390
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x45bec8
cmp dword [ebp - 0x114], 5
jb 0x45bec8
mov dword [esi + 0x3e0], 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov dword [esi + 0x3e0], 0
xor ecx, ebp
pop esi
call fcn.004698aa
mov esp, ebp
pop ebp
ret
Function at 0x45cf50
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.0045f520
add esp, 0x18
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45cf8a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x3c
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.0046a390
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 0x45cfdc
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.0045f520
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 0x45d005
mov dword [ecx], edx
xor ecx, ecx
mov dword [ebp - 4], ecx
test esi, esi
je 0x45d09e
test ebx, ebx
je 0x45d09e
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.0045f520
add esp, 8
test esi, esi
je 0x45d077
cmp esi, 0xffffffff
je 0x45d077
cmp esi, 0x80
je 0x45d077
cmp dword [0x4c2e50], 0
jne 0x45d077
push 0x3e8
push dword [ebp - 0x10]
call edi
push 0
push dword [ebp + 8]
mov esi, eax
call fcn.0042e860
add esp, 8
test esi, esi
jne 0x45d044
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.0045f520
mov ecx, dword [ebp - 4]
add esp, 0xc
mov esi, dword [ebp - 0xc]
cmp dword [0x4c2e50], 0
mov eax, 0x4c7
cmovne ecx, eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 4], ecx
test eax, eax
je 0x45d0b9
mov dword [eax], ecx
push ecx
push esi
push str.ExecuteFile____End__d____d_
call fcn.0045f520
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45d7a0
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 0x45d7f0
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 0x45d7de
lea eax, [ebp - 0x1c]
push eax
call ebx
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
cmp eax, esi
jb 0x45d7c2
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45d800
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x4a86f0]
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 0x45d84e
push dword [ebp + 0x10]
push edi
push esi
push str.RegisterFile__s___s___d___File_doesnt_exits_
call fcn.0045f520
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
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.0046cdb9
add esp, 8
test eax, eax
jne 0x45d8fd
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.0046a390
push edi
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.0046bf5a
add esp, 0x18
lea eax, [ebp - 0x804]
cmp dword [ebp + 0x10], ebx
je 0x45d8b1
push str.__regserver
jmp 0x45d8b6
push str.__unregserver
push 0x400
push eax
call fcn.004694b4
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.0045cf50
add esp, 0x24
mov ebx, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
push str..dll
push dword [ebp - 0x808]
call fcn.0046cdb9
add esp, 8
test eax, eax
jne 0x45d9f7
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 0x45d9de
push 0x3ff
lea eax, [ebp - 0x403]
mov byte [ebp - 0x404], bl
push 0
push eax
call fcn.0046a390
add esp, 0xc
lea eax, [ebp - 0x404]
cmp dword [ebp + 0x10], ebx
je 0x45d95e
push str.DllRegisterServer
jmp 0x45d963
push str.DllUnregisterServer
push 0x400
push eax
call fcn.0046a4e2
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45d9d7
call eax
test eax, eax
jne 0x45d9c1
lea ebx, [eax + 1]
lea eax, [ebp - 0x404]
push eax
push esi
push str.RegisterFile_____s__s_successfully_
call fcn.0045f520
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.004698aa
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.0045f520
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.004698aa
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.0045f520
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004698aa
mov esp, ebp
pop ebp
ret
Function at 0x45da20
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 [0x4a86f0]
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.0046a390
push 0x24c
lea eax, [ebp - 0x458]
mov dword [ebp - 0x45c], 0
push 0
push eax
call fcn.0046a390
add esp, 0x18
test edi, edi
je 0x45dc34
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45dc34
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x45dc34
push edi
push str._s.
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046988e
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 0x45dc34
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 2
je 0x45dbdb
lea esp, [esp]
mov cx, word [ebp - 0x42e]
mov ax, word [ebp - 0x430]
test cx, cx
jne 0x45db0d
cmp ax, 0x2e
je 0x45dbba
cmp word [ebp - 0x42c], 0
jne 0x45db26
cmp ax, 0x2e
jne 0x45db26
cmp cx, ax
je 0x45dbba
lea eax, [ebp - 0x430]
push eax
push edi
push str._s_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046988e
mov eax, dword [ebp - 0x45c]
add esp, 0x14
test al, 1
je 0x45db64
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 0x45db7a
push ebx
push eax
call fcn.0045da20
add esp, 8
jmp 0x45dbba
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.0045f520
add esp, 0xc
test esi, esi
jne 0x45dbb4
test ebx, 0x100
je 0x45dbb4
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0045e630
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 0x45daf0
mov eax, dword [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x45c]
test al, 1
je 0x45dbf3
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.0045f520
add esp, 0xc
test esi, esi
jne 0x45dc21
test ebx, 0x100
je 0x45dc21
push esi
push edi
call fcn.0045e630
add esp, 8
mov eax, esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.004698aa
mov esp, ebp
pop ebp
ret
Function at 0x45df00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4a86f0]
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.0046bf5a
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 0x45df76
push edi
lea eax, [ebp - 0x20c]
push eax
push str._s_s.lnk
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0046988e
add esp, 0x14
jmp 0x45dfaf
push str..LNK
push eax
call fcn.0046cdb9
add esp, 8
test eax, eax
je 0x45df9a
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004698aa
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0046bf5a
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.004698aa
mov esp, ebp
pop ebp
ret

Function at 0x45dfd0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046f220