joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4493c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [ebp + 0x18]
mov esi, eax
mov ebx, dword [ebp + 0x10]
test esi, esi
jne 0x449485
mov eax, dword [ebp + 0x14]
cmp eax, 4
jne 0x44942b
push edi
call fcn.0046d14c
add esp, 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 4
push eax
push 4
push 0
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x44947c
lea esi, [eax + 1]
jmp 0x44947c
push dword [ebp + 0x1c]
push edi
cmp eax, 3
jne 0x44944a
push eax
push 0
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x44947c
lea esi, [eax + 1]
jmp 0x44947c
cmp eax, 7
jne 0x449465
push eax
push 0
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x44947c
lea esi, [eax + 1]
jmp 0x44947c
push eax
push 0
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
cmove esi, ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push edi
push ebx
push dword [ebp + 0xc]
push str.RegDBSetKeyValue__s___s___s____d
call fcn.0045f4c0
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4494b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x44950d
push 4
lea eax, [ebp + 0x14]
mov dword [ebp - 8], 4
push eax
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
test eax, eax
mov ecx, 1
cmove esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.RegDBSetKeyValueDw__s___s___d____d
call fcn.0045f4c0
add esp, 0x14
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44a110
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x320c
call fcn.00469cb0
mov eax, dword [0x4a86f0]
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.0046a330
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x120c], ax
lea eax, [ebp - 0x120a]
push eax
call fcn.0046a330
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x320c], ax
lea eax, [ebp - 0x320a]
push eax
call fcn.0046a330
push 0x488e14
lea eax, [ebp - 0x220c]
push 0x800
push eax
call fcn.0046befa
push 0x488e14
push 0x41
push 0x4abf60
call fcn.0046befa
push 0x2c
push 0x800
lea eax, [ebp - 0x220c]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0042e3e0
add esp, 0x54
test eax, eax
je 0x44a214
push 0x2c
push 0x800
lea eax, [ebp - 0x120c]
push eax
lea eax, [ebp - 0x220c]
push 0x800
push eax
push eax
call fcn.0042e3e0
add esp, 0x18
test eax, eax
je 0x44a214
push 0x2c
push 0x800
lea eax, [ebp - 0x320c]
push eax
lea eax, [ebp - 0x120c]
push 0x800
push eax
push eax
call fcn.0042e3e0
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00453150
add esp, 8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x220c]
push eax
push 0x4ab068
call fcn.0042c090
add esp, 8
test eax, eax
je 0x44a2d1
lea eax, [ebp - 0x320c]
push 0x4ab0c0
push eax
call fcn.0046cd59
add esp, 8
test eax, eax
jne 0x44a2d1
cmp word [ebp - 0x120c], ax
je 0x44a28a
lea ecx, [ebp - 0x120c]
push ecx
push 0x4ab0b8
call fcn.004694c0
add esp, 8
test eax, eax
je 0x44a2d1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, eax
push esi
push 0x4892b4
push 0x41
push 0x4abf60
call fcn.0046982e
push esi
lea eax, [ebp - 0x20c]
push eax
push str.ChangeDir__s____d
call fcn.0045f4c0
add esp, 0x1c
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046984a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0046984a
mov esp, ebp
pop ebp
ret
Function at 0x44b9a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x6008
call fcn.00469cb0
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.0046a330
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push eax
call fcn.0046a330
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x3004], ax
lea eax, [ebp - 0x3002]
push eax
call fcn.0046a330
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
push eax
call fcn.0046a330
xor eax, eax
push 0xffe
push eax
mov word [ebp - 0x6004], ax
lea eax, [ebp - 0x6002]
push eax
call fcn.0046a330
push 0x488e14
lea eax, [ebp - 0x5004]
mov edi, 1
push 0x800
push eax
call fcn.0046befa
add esp, 0x48
push esi
push str.ScriptDelay__s___Begin
call fcn.0045f4c0
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 0x44bb47
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x2004]
push eax
push str.ScriptDelay____szDelay_s_szFile_s
call fcn.0045f4c0
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 0x44bb47
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 0x44bb47
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 0x44bb47
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 0x44bc33
lea eax, [ebp - 0x6004]
push 0x4ab0c0
push eax
call fcn.0046cd59
add esp, 8
test eax, eax
jne 0x44bc33
cmp word [ebp - 0x4004], ax
je 0x44bbc2
lea eax, [ebp - 0x4004]
push eax
push 0x4ab0b8
call fcn.004694c0
add esp, 8
test eax, eax
je 0x44bc33
lea eax, [ebp - 0x2004]
push ebx
push eax
call fcn.0046d12f
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 0x44bc20
mov edi, edi
test edi, edi
je 0x44bc20
cmp word [ebp - 0x1004], 0
je 0x44bc0c
lea eax, [ebp - 0x1004]
push eax
call fcn.00448060
mov edi, eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, ebx
cmp eax, dword [ebp - 0x6008]
jb 0x44bbf0
call esi
sub eax, ebx
push eax
push str.Delay____Time_d_ms
call fcn.0045f820
add esp, 8
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0046984a
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.0046a330
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.0046984a
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.0045f4c0
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.0045f4c0
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.0045e330
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.0046984a
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.0046a330
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0046a330
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.0046a330
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.0046a330
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.0045e330
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.00469454
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.0045e330
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call edi
push 0x4b4938
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0046befa
mov eax, dword [0x4c38b8]
add eax, 0x410
add eax, ebx
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0046befa
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.0046befa
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.0045f4c0
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.0046984a
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.0046a330
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push edi
push 0x4892b4
push 0x20
push eax
call fcn.0046982e
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.0046a330
push dword [ebp + 0x18]
lea eax, [ebp - 0x244]
push 0x4892b4
push 0x100
push eax
call fcn.0046982e
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.0045f4c0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046984a
mov esp, ebp
pop ebp
ret
Function at 0x45bd90
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.0046a330
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.0046a330
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x45be78
cmp dword [ebp - 0x114], 5
jb 0x45be78
mov dword [esi + 0x3e0], 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046984a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov dword [esi + 0x3e0], 0
xor ecx, ebp
pop esi
call fcn.0046984a
mov esp, ebp
pop ebp
ret
Function at 0x45cf00
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.0045f4c0
add esp, 0x18
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45cf3a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x3c
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.0046a330
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 0x45cf8c
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.0045f4c0
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 0x45cfb5
mov dword [ecx], edx
xor ecx, ecx
mov dword [ebp - 4], ecx
test esi, esi
je 0x45d04e
test ebx, ebx
je 0x45d04e
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.0045f4c0
add esp, 8
test esi, esi
je 0x45d027
cmp esi, 0xffffffff
je 0x45d027
cmp esi, 0x80
je 0x45d027
cmp dword [0x4c2e50], 0
jne 0x45d027
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 0x45cff4
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.0045f4c0
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 0x45d069
mov dword [eax], ecx
push ecx
push esi
push str.ExecuteFile____End__d____d_
call fcn.0045f4c0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45d750
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 0x45d7a0
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 0x45d78e
lea eax, [ebp - 0x1c]
push eax
call ebx
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
cmp eax, esi
jb 0x45d772
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45d7b0
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 0x45d7fe
push dword [ebp + 0x10]
push edi
push esi
push str.RegisterFile__s___s___d___File_doesnt_exits_
call fcn.0045f4c0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046984a
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.0046cd59
add esp, 8
test eax, eax
jne 0x45d8ad
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.0046a330
push edi
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.0046befa
add esp, 0x18
lea eax, [ebp - 0x804]
cmp dword [ebp + 0x10], ebx
je 0x45d861
push str.__regserver
jmp 0x45d866
push str.__unregserver
push 0x400
push eax
call fcn.00469454
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.0045cf00
add esp, 0x24
mov ebx, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046984a
mov esp, ebp
pop ebp
ret
push str..dll
push dword [ebp - 0x808]
call fcn.0046cd59
add esp, 8
test eax, eax
jne 0x45d9a7
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 0x45d98e
push 0x3ff
lea eax, [ebp - 0x403]
mov byte [ebp - 0x404], bl
push 0
push eax
call fcn.0046a330
add esp, 0xc
lea eax, [ebp - 0x404]
cmp dword [ebp + 0x10], ebx
je 0x45d90e
push str.DllRegisterServer
jmp 0x45d913
push str.DllUnregisterServer
push 0x400
push eax
call fcn.0046a482
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x45d987
call eax
test eax, eax
jne 0x45d971
lea ebx, [eax + 1]
lea eax, [ebp - 0x404]
push eax
push esi
push str.RegisterFile_____s__s_successfully_
call fcn.0045f4c0
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.0046984a
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.0045f4c0
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.0046984a
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.0045f4c0
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046984a
mov esp, ebp
pop ebp
ret