joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a93e0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4a9440
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4a9440
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4a9440
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4a9440
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4a9450
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x4ac5f0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x55b284]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4ac603
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4ac644
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x55b32c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4ac676
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4ac67a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4ac66b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4ac698
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4ac69c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4ac68d
xor ecx, ecx
mov eax, 0x55b294
xor ebx, ebx
mov bl, byte [ecx + 0x55b33c]
cmp byte [esp + ebx + 0x14], 0
je 0x4ac6c7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x55b354]
cmp byte [esp + ebx + 0x14], 0
je 0x4ac6de
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4ac6ae
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4ac637
lea edx, [esp + 0x84]
push edx
call fcn.004ac720
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4b07e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4b0846
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4b0846
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4b0827
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4b0bd0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4b0c08
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4b1830
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4b1879
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4b1cf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f9ea0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004b18a0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004b1920
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004b1920
lea ecx, [esi + 0xc]
call fcn.004e5cd9
lea ecx, [esi + 0x10]
call fcn.004e5cd9
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004b2eb0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004b2eb0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004b2eb0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004e5d4e
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004e5d4e
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4b6b30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5bb210]
xor edx, edx
cmp eax, edx
jne 0x4b6b56
xor eax, eax
mov byte [eax + 0x5bb110], al
inc eax
cmp eax, 0x100
jl 0x4b6b3e
mov dword [0x5bb210], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5bb110
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4b6be7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4b6bba
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4b6b88
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4b6bf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4b6c43
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4b6c2a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4bd5c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4fa29e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004bdee0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x5369b4
call fcn.004e5a8f
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4bd653
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004e5a8f
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4bd64c
push 0
mov ecx, eax
call fcn.004b4760
mov dword [esi + 0xc], eax
jmp 0x4bd655
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4bd655
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4e6b94
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004f115e
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4e6bc5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004e6bd8
pop edi
pop esi
pop ebx
ret 8

Function at 0x4e81ac
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4e81e4
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004e61f5
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004e61cd
jmp 0x4e81f0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4e9a98
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4e9ada
call fcn.004f115e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4e9ada
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4e9ad1
xor eax, eax
jmp 0x4e9ae2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004e9ae8
pop edi
pop esi
pop ebx
ret 4

Function at 0x4f168e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4f16bc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f16da
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004f15f4
jmp 0x4f16da
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4f16da
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004f15f4
test edi, edi
mov eax, edi
jne 0x4f16c4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4028c0
Capabilities:
Get common file path
Get program files directory

Disassembly:
sub esp, 0x418
mov eax, dword [esp + 0x41c]
push edi
push 0
push 0x104
push 0x4d5de4
push eax
mov dword [0x4d5dd4], eax
call fcn.0040ef90
add esp, 0x10
push 0x4634e0
push 0x4d5de4
push 0x4634d4
push 0x104
push 0x4d61f4
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
push str.360SE.ini
push 0x104
push 0x4d63fc
call fcn.00414780
push str.module.log
push 0x104
push 0x4d5fec
call fcn.00414780
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.ExtensionsSafeCentral_
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00414780
lea ecx, [esp + 0xc]
push str.sc.ini
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 0xc]
push edx
call fcn.00424850
mov ecx, eax
call fcn.00424a60
mov ax, word [0x4d6e34]
mov ecx, 0x81
mov word [esp + 0x214], ax
xor eax, eax
lea edi, [esp + 0x216]
push 1
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x218]
push 0x26
push ecx
push 0
stosw word es:[edi], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
pop edi
je 0x4029e1
push 0x104
lea edx, [esp + 0x214]
push 0x4d6604
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push str.360safeShield
push 0x4d6604
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
lea eax, [esp]
mov dword [esp], 8
push eax
mov dword [esp + 8], 0x6ff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.0042eb90
call fcn.0042b6a0
test eax, eax
je 0x402a0f
call fcn.0042aa60
call fcn.00402a20
add esp, 0x418
ret
Function at 0x403449
Capabilities:
Get common file path

Disassembly:
mov ecx, 0x472fa8
jmp 0x403430
push 0xffffffffffffffff
push 0x44cef9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ecx, [esi + 0x10]
call fcn.0040a390
mov cl, byte [esp + 0xf]
xor eax, eax
mov dword [esp + 0x1c], eax
mov byte [esi + 0x628e8], cl
mov dword [esi + 0x628ec], eax
mov dword [esi + 0x628f0], eax
mov dword [esi + 0x628f4], eax
mov ecx, 1
lea ebx, [esi + 0x62904]
mov byte [esp + 0x1c], cl
mov dword [esi + 4], ecx
mov ecx, 0x82
mov edi, ebx
mov dword [esi + 8], eax
mov dword [esi + 0x62900], eax
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x628f8], eax
mov dword [esi + 0x628fc], eax
mov dword [esi], 3
push ebx
push 0x104
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.360SEUpdate_
push ebx
call dword [sym.imp.MSVCRT.dll_wcscat]
lea edx, [esi + 0x62b0c]
mov ecx, 0x82
xor eax, eax
mov edi, edx
push str.Upgrade.ini
push 0x104
rep stosd dword es:[edi], eax
push edx
mov edx, dword [0x4d5dd4]
push edx
call fcn.0040ef90
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x403850
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x208
test eax, eax
push esi
jne 0x4038f2
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 8]
push str.extensionsSafeCentralSafeCentral.dll
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop edi
je 0x4038f2
lea ecx, [esp + 4]
push ecx
call fcn.00413ac0
add esp, 4
test eax, eax
je 0x4038f2
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4038f2
push str.DownloadSafeLib
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4038eb
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
add esp, 0x208
ret 4
Function at 0x404160
Capabilities:
Delete file

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc]
inc eax
mov dword [esi + 0xc], eax
mov edi, eax
js 0x4042df
mov eax, dword [esi + 0x628ec]
test eax, eax
je 0x4042df
mov ecx, dword [esi + 0x628f0]
sub ecx, eax
mov eax, 0x4d542005
imul ecx
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edi, edx
jae 0x4042df
push ebx
lea ebx, [esi + 0x10]
push ebp
mov ebp, dword [esi + 0x628f8]
mov ecx, ebx
call fcn.0040a7c0
mov dword [esi + 0x246c], 1
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x628ec]
lea eax, [ecx*8]
sub eax, ecx
shl eax, 4
add eax, ecx
lea eax, [eax + eax*2]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4 + 0xa30]
lea edx, [ebx + 0x5d330]
mov dword [esp + 0x10], eax
mov ecx, 0x412
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
push ecx
push 0x463604
push 0x824
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, dword [esi + 0xc]
add esp, 0x10
lea eax, [ecx*8]
sub eax, ecx
shl eax, 4
add eax, ecx
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x628ec]
lea ecx, [eax + edx*4 + 0x828]
lea edx, [ebx + 0x5cf20]
mov dword [esp + 0x10], ecx
mov ecx, 0x82
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
push eax
push 0x463604
push 0x104
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x628ec]
add esp, 0x10
lea eax, [ecx*8]
sub eax, ecx
shl eax, 4
add eax, ecx
lea eax, [eax + eax*2]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4 + 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x628ec]
lea eax, [ecx*8]
sub eax, ecx
shl eax, 4
add eax, ecx
lea eax, [eax + eax*2]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4 + 0x828]
push eax
call fcn.0040f210
add esp, 4
mov ecx, ebx
mov dword [ebx + 0x2694], 0x404140
mov dword [ebx + 0x2690], ebp
call fcn.0040a740
pop ebp
mov eax, 1
pop ebx
pop edi
pop esi
pop ecx
ret 4
pop edi
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x404930
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x628f8]
push eax
push 0
push esi
push 0x404a70
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x628fc], eax
pop esi
ret

Function at 0x404960
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x20c
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push edi
xor edi, edi
mov ebx, ecx
xor esi, esi
mov eax, dword [ebx + 0x628ec]
test eax, eax
je 0x4049c6
mov ecx, dword [ebx + 0x628f0]
sub ecx, eax
mov eax, 0x4d542005
imul ecx
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edi, edx
jae 0x4049c6
mov ecx, dword [ebx + 0x628ec]
lea edx, [ecx + esi + 0x828]
push edx
call ebp
mov eax, dword [ebx + 0x628ec]
lea ecx, [eax + esi + 0x620]
push ecx
call ebp
inc edi
add esi, 0x1a7c
jmp 0x404976
mov dword [ebx + 0xc], 0xffffffff
mov ebp, dword [ebx + 0x628f0]
mov edx, dword [ebx + 0x628ec]
mov eax, ebp
cmp eax, ebp
je 0x4049f9
mov esi, eax
mov edi, edx
add eax, 0x1a7c
mov ecx, 0x69f
add edx, 0x1a7c
cmp eax, ebp
rep movsd dword es:[edi], dword [esi]
jne 0x4049df
mov eax, dword [ebx + 0x628f0]
mov dword [ebx + 0x628f0], edx
mov cx, word [0x4d6e34]
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
rep stosd dword es:[edi], eax
lea esi, [ebx + 0x62904]
push 0
push esi
stosw word es:[edi], ax
call fcn.0042f050
add esp, 8
lea edx, [esp + 0x14]
push 0x4638cc
push esi
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
mov dword [ebx + 0x62900], 0
pop ebp
pop ebx
add esp, 0x20c
ret
Function at 0x405430
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44cf6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x624
push ebx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], bx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x14]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
cmp eax, ebx
jne 0x4054a1
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x624]
mov dword fs:[0], ecx
add esp, 0x630
ret
mov word [eax + 2], bx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x426]
mov word [esp + 0x424], bx
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
push esi
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
push edx
stosw word es:[edi], ax
call esi
add esp, 4
cmp eax, 0x103
jbe 0x4054de
mov eax, 0x103
jmp 0x4054e8
lea eax, [esp + 0x18]
push eax
call esi
add esp, 4
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x42c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x18]
push 0x4638fc
push eax
call esi
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x222]
mov word [esp + 0x220], bx
rep stosd dword es:[edi], eax
push ebx
lea ecx, [esp + 0x224]
push 0x19
push ecx
push ebx
stosw word es:[edi], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 0x220]
push str.360______3.lnk
push edx
call esi
lea eax, [esp + 0x220]
xor esi, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x405569
mov esi, 1
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0xc]
call fcn.004055c0
push ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x63c], ebx
mov dword [esp + 0x18], esi
call fcn.00405610
lea ecx, [esp + 0xc]
mov dword [esp + 0x638], 0xffffffff
call fcn.00405600
mov ecx, dword [esp + 0x630]
pop esi
pop edi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x630
ret
Function at 0x4056e0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x44cf90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 8], ebx
lea eax, [esp + 4]
mov byte [esp + 0x14], 1
push eax
push 0x457c3c
push 1
push ebx
push 0x457c4c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x405766
mov eax, dword [esp + 8]
mov byte [esp + 0x14], bl
cmp eax, ebx
je 0x40573a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 4]
mov dword [esp + 0x14], 0xffffffff
cmp eax, ebx
je 0x40581e
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov eax, dword [esp + 4]
cmp eax, ebx
jne 0x405791
mov ecx, dword [esp + 8]
mov byte [esp + 0x14], bl
cmp ecx, ebx
je 0x405784
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esp + 4]
mov dword [esp + 0x14], 0xffffffff
jmp 0x405814
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x4057a4
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x24]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 0x457c9c
mov ecx, dword [eax]
push eax
call dword [ecx]
cmp eax, ebx
jge 0x405800
mov eax, dword [esp + 8]
mov byte [esp + 0x14], bl
cmp eax, ebx
je 0x4057d8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 4]
mov dword [esp + 0x14], 0xffffffff
cmp eax, ebx
je 0x4057ee
mov edx, dword [eax]
push eax
call dword [edx + 8]
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x405830
mov eax, dword [esp + 4]
mov dword [esp + 0x14], 0xffffffff
cmp eax, ebx
je 0x40581e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov ecx, dword [esp + 0x20]
mov edx, dword [eax]
push 2
push ecx
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 8]
mov byte [esp + 0x14], bl
cmp eax, ebx
je 0x40584f
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esp + 4]
mov dword [esp + 0x14], 0xffffffff
cmp eax, ebx
je 0x405865
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0xc]
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x405880
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x618
push ebx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], bx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 8]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
cmp eax, ebx
jne 0x4058ce
pop edi
xor eax, eax
pop ebx
add esp, 0x618
ret
mov word [eax + 2], bx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x41a]
mov word [esp + 0x418], bx
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
push esi
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
push edx
stosw word es:[edi], ax
call esi
add esp, 4
cmp eax, 0x103
jbe 0x40590b
mov eax, 0x103
jmp 0x405915
lea eax, [esp + 0xc]
push eax
call esi
add esp, 4
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x420]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0xc]
push 0x4638fc
push eax
call esi
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x216]
mov word [esp + 0x214], bx
rep stosd dword es:[edi], eax
push ebx
lea ecx, [esp + 0x218]
push 0x19
push ecx
push ebx
stosw word es:[edi], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 0x214]
push 0x46395c
push edx
call esi
lea eax, [esp + 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop esi
jne 0x4059ad
lea ecx, [esp + 0x418]
lea edx, [esp + 0x210]
push ecx
lea eax, [esp + 0xc]
push edx
push eax
call fcn.004056e0
add esp, 0xc
pop edi
mov eax, 1
pop ebx
add esp, 0x618
ret