joyce8/EMBER2024-capa huggingface dataset:
Function at 0x501474
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x501516
cmp dword [ebx + 0x94], 0
jne 0x501510
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5013c0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x501510
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x5014d6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x501510
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0043a984
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5014e5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x501734
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x531504]
cmp dword [eax + 0x170], 0
je 0x501899
test bl, bl
jne 0x5017e7
cmp dword [esi + 0x9c], 0
jne 0x5017dc
mov eax, esi
call fcn.005045b4
push eax
push 0x501640
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x5017ad
mov eax, dword [0x531504]
cmp byte [eax + 0xd3], 0
je 0x5017ad
mov eax, dword [esi + 0xd8]
call fcn.0040831c
mov edi, eax
cmp edi, 0
jl 0x5017ad
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x501796
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5017dc
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043a984
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5017bc
inc dword [esi + 0x9c]
jmp 0x501899
cmp dword [esi + 0x9c], 0
jle 0x501899
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x501899
cmp dword [esi + 0x44], 0
je 0x501844
mov eax, dword [0x531504]
cmp byte [eax + 0xd3], 0
je 0x501844
mov eax, dword [esi + 0xd8]
call fcn.0040831c
mov edi, eax
cmp edi, 0
jl 0x501844
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x50182d
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x501873
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043a984
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x501853
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4f4ac4]
call fcn.004084dc
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x5024dc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x502547
cmp byte [ebx + 0xd3], 0
jne 0x502547
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406af4
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x502534
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x502554
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406d4c
jmp 0x502554
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406d4c
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x503d1c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x503d8a
mov eax, esi
call fcn.004ce374
test al, al
je 0x503d8a
mov eax, dword [ebx + 0x84]
call fcn.004cdff4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x503d8a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x503d7e
push 0
mov eax, dword [ebx + 0x84]
call fcn.004cdff4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004c5028
jmp 0x503d8a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00503b54
pop esi
pop ebx
ret
Function at 0x4010d8
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1104
call fcn.00476b30
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x800
push esi
xor edi, edi
lea eax, [ebp - 0x1104]
push edi
push eax
call fcn.00475410
push esi
lea eax, [ebp - 0x904]
push edi
push eax
call fcn.00475410
add esp, 0x18
lea eax, [ebp - 0x1104]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x100
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00475410
add esp, 0xc
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.00401000
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x1104]
push eax
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x904]
push str..tmp
push eax
call fcn.00477a07
pop ecx
pop ecx
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4011ab
inc edi
cmp edi, 0xa
jl 0x401142
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047548a
leave
ret
lea eax, [ebp - 0x904]
push eax
mov ecx, ebx
call fcn.00402894
xor eax, eax
inc eax
jmp 0x40119c

Function at 0x401227
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x401234
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x18]
test eax, eax
je 0x401230
lea ecx, [esi + 8]
push ecx
push 0
push dword [esi + 0x1c]
push eax
push 0
push 0
call fcn.00475fc9
xor ecx, ecx
add esp, 0x18
test eax, eax
setne cl
mov dword [esi + 4], eax
pop esi
mov eax, ecx
ret

Function at 0x401493
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x18]
push 8
push 0
push edi
call fcn.00475410
add esp, 0xc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4014e8
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4014e7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], ebx
inc eax
pop ebx
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x401751
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp word [edi], si
je 0x401786
cmp eax, esi
je 0x401797
cmp word [eax], si
je 0x401797
push esi
push esi
push eax
push edi
push esi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jge 0x4017db
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0047548a
leave
ret 4
xor eax, eax
push 0x40e
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push esi
push eax
call fcn.00475410
add esp, 0xc
push esi
push esi
push 0x104
lea eax, [ebp - 0x414]
push eax
push edi
push esi
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
jl 0x401786
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
jmp 0x401788

Function at 0x4018cd
Capabilities:
Move file

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x10
mov eax, 0x4b5efb
call fcn.004764b0
mov esi, dword [ebp + 0x80c]
mov eax, dword [ebp + 0x810]
mov ecx, dword [ebp + 0x814]
mov edx, dword [ebp + 0x818]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x1c], vtable.CResourceUnpack.0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
push edx
push ecx
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], edi
call fcn.00404dce
test eax, eax
je 0x4019d3
push 0x4f9e00
lea ecx, [ebp - 0x10]
call fcn.0040293e
push 0x800
lea eax, [ebp]
push edi
push eax
mov byte [ebp - 4], 1
call fcn.00475410
add esp, 0xc
push edi
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405053
test eax, eax
je 0x401981
push 0x4d275c
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [esi]
lea ecx, [ebp]
push ecx
push esi
call dword [eax]
jmp 0x4019af
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00404f77
test eax, eax
je 0x4019b1
push 0x4d275c
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [esi]
lea ecx, [ebp]
push ecx
push esi
call dword [eax + 0x60]
mov ebx, eax
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push edi
lea eax, [ebp]
push eax
call esi
push 4
push edi
mov edi, dword [ebp - 0x10]
push edi
call esi
lea ecx, [edi - 0x10]
call fcn.00402963
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.0047548a
add ebp, 0x804
leave
ret 0x10
Function at 0x4019f8
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push 0
mov eax, 0x4b055f
call fcn.004764b0
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp esi, ebx
je 0x401a7d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401a7d
push ebx
push esi
call fcn.0040239b
pop ecx
pop ecx
test eax, eax
je 0x401a7d
push 0x4f9e00
lea ecx, [ebp + 0xc]
call fcn.0040293e
lea eax, [ebp + 0xc]
push eax
mov dword [ebp - 4], ebx
call fcn.004010d8
mov edi, dword [ebp + 0xc]
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp + 8]
lea eax, [ebp + 0xc]
add esi, 0x394
push eax
mov ecx, esi
call fcn.00401df2
mov eax, dword [esi]
push ebx
push eax
call fcn.0040239b
pop ecx
pop ecx
test eax, eax
jne 0x401a87
lea ecx, [edi - 0x10]
call fcn.00402963
xor eax, eax
call fcn.00476588
ret 8
push dword [esi]
call fcn.00472c2e
pop ecx
push 4
push ebx
push dword [esi]
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [edi - 0x10]
call fcn.00402963
mov eax, dword [ebp + 0xc]
jmp 0x401a7f

Function at 0x401aaa
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401ad5
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401ad5
push 0
push esi
call fcn.0040239b
pop ecx
pop ecx
test eax, eax
je 0x401ad5
push esi
call fcn.00472c2e
pop ecx
jmp 0x401ad7
xor eax, eax
pop esi
ret 8
Function at 0x401af0
Capabilities:
Move file

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x10
mov eax, 0x4b5efb
call fcn.004764b0
mov esi, dword [ebp + 0x80c]
mov eax, dword [ebp + 0x810]
mov ecx, dword [ebp + 0x814]
mov edx, dword [ebp + 0x818]
xor edi, edi
mov dword [ebp - 0x1c], vtable.CResourceUnpack.0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
push edx
push ecx
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], edi
call fcn.00404dce
test eax, eax
jne 0x401b72
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.0047548a
add ebp, 0x804
leave
ret 0x10
push 0x4f9e00
lea ecx, [ebp - 0x10]
call fcn.0040293e
xor eax, eax
mov byte [ebp - 4], 1
push 0x7fe
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.00475410
push 0x800
lea eax, [ebp]
push edi
push eax
call fcn.00475410
add esp, 0x18
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00405053
test eax, eax
jne 0x401bcf
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00404f77
test eax, eax
je 0x401be1
push str.360SafeAssist.exe
push dword [ebp - 0x10]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp]
push edi
push eax
call fcn.0040239b
pop ecx
pop ecx
test eax, eax
jne 0x401c03
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402963
mov eax, edi
jmp 0x401b4d
lea eax, [ebp]
add esi, 0x39c
push eax
mov ecx, esi
call fcn.00402894
push 4
push edi
push dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
push 4
push edi
push dword [ebp - 0x10]
call esi
xor edi, edi
inc edi
jmp 0x401bf1

Function at 0x401d2d
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push 4
mov eax, 0x4b51c9
call fcn.004764b0
mov esi, ecx
test esi, esi
je 0x401dbb
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401dbb
push 0
push esi
call fcn.0040239b
pop ecx
pop ecx
test eax, eax
je 0x401dbb
push 0x4f9e00
lea ecx, [ebp - 0x10]
call fcn.0040293e
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.004010d8
mov edi, dword [ebp - 0x10]
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
add esi, 0x398
push eax
mov ecx, esi
call fcn.00401df2
push dword [esi]
call fcn.0040228d
push 4
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [edi - 0x10]
call fcn.00402963
xor eax, eax
inc eax
jmp 0x401dbd
xor eax, eax
call fcn.00476588
ret 4
Function at 0x401e3f
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x148], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x401e84
xor eax, eax
jmp 0x401f14
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea ecx, [esp + 0x18]
push ecx
push 0x40
lea ecx, [esp + 0x11c]
push ecx
push eax
call esi
test eax, eax
je 0x401f08
cmp dword [esp + 0x14], 0x40
jne 0x401f08
mov eax, 0x5a4d
cmp word [esp + 0x110], ax
jne 0x401f08
push edi
push edi
push dword [esp + 0x154]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [esp + 0x14c]
jne 0x401f08
push edi
lea eax, [esp + 0x18]
push eax
mov ebx, 0xf8
push ebx
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x20]
call esi
test eax, eax
je 0x401f08
cmp dword [esp + 0x14], ebx
jne 0x401f08
cmp dword [esp + 0x18], 0x4550
jne 0x401f08
cmp word [esp + 0x1e], di
je 0x401f08
xor edi, edi
inc edi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047548a
mov esp, ebp
pop ebp
ret

Function at 0x401fb2
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push eax
call fcn.00475410
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0x4d288c
xor edi, edi
push 0x4d2898
inc edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80c], edi
mov dword [ebp - 0x810], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x402087
push 0x4d2918
lea eax, [ebp - 0x808]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402087
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.0040239b
pop ecx
pop ecx
test eax, eax
je 0x402087
lea eax, [ebp - 0x808]
push eax
call fcn.0040220c
mov esi, eax
test esi, esi
je 0x402087
push str.IsBetaVersion
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0047548a
leave
ret
Function at 0x402097
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.00476b30
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x1000
lea eax, [ebp - 0x100c]
push 0
push eax
call fcn.00475410
add esp, 0xc
mov esi, 0x800
push esi
lea eax, [ebp - 0x100c]
push 0x4d2940
push eax
call fcn.004753b9
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push edi
push eax
call fcn.00476ed3
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push 0x4d2948
push eax
call fcn.00476ed3
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push edi
push eax
call fcn.00476ed3
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push 0x4d2974
push eax
call fcn.00476ed3
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push ebx
push eax
call fcn.00476ed3
add esp, 0xc
push esi
lea eax, [ebp - 0x100c]
push 0x4d2998
push eax
call fcn.00476ed3
add esp, 0xc
push 0x14
push edi
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
cmp esi, 6
jne 0x4021ad
call fcn.00401f95
test eax, eax
je 0x402196
call fcn.00401fb2
test eax, eax
je 0x402196
push 5
xor eax, eax
push eax
push eax
push str.http:__down.360safe.com_setupbeta.exe
jmp 0x4021a1
push 5
xor eax, eax
push eax
push eax
push str.http:__down.360safe.com_setup.exe
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [ebp + 0x10], 0
je 0x4021ba
push 0
call fcn.00476e3b
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047548a
leave
ret
Function at 0x402bad
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x674
mov eax, dword [0x4f3bd0]
xor eax, esp
mov dword [esp + 0x670], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
jne 0x402bd8
xor eax, eax
jmp 0x402d69
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402bd1
push ebx
call fcn.00475eae
pop ecx
cmp eax, 3
jbe 0x402bd1
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [esp + 0x270], ax
lea eax, [esp + 0x272]
push eax
mov dword [esp + 0x1c], 1
call fcn.00475410
xor eax, eax
push esi
push eax
mov word [esp + 0x484], ax
lea eax, [esp + 0x486]
push eax
call fcn.00475410
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0x18
push ebx
lea eax, [esp + 0x474]
push eax
call esi
push 0x4d2b48
lea eax, [esp + 0x474]
push eax
call esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x402d5e
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x402d54
mov edi, 0x208
test byte [esp + 0x18], 0x10
je 0x402cfa
cmp word [esp + 0x44], 0x2e
jne 0x402cb9
cmp word [esp + 0x46], 0
je 0x402d3d
cmp word [esp + 0x46], 0x2e
jne 0x402cb9
cmp word [esp + 0x48], 0
je 0x402d3d
push edi
lea eax, [esp + 0x26c]
push 0
push eax
call fcn.00475410
add esp, 0xc
push ebx
lea eax, [esp + 0x26c]
push eax
call esi
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x26c]
push eax
call esi
lea eax, [esp + 0x268]
push eax
call fcn.00402bad
and dword [esp + 0x14], eax
pop ecx
jmp 0x402d3d
push edi
lea eax, [esp + 0x26c]
push 0
push eax
call fcn.00475410
add esp, 0xc
push ebx
lea eax, [esp + 0x26c]
push eax
call esi
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x26c]
push eax
call esi
lea eax, [esp + 0x268]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x402d3d
and dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402c8a
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x67c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047548a
mov esp, ebp
pop ebp
ret
Function at 0x403cd8
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xe8]
sub esp, 0x168
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0xe4], eax
push esi
mov esi, dword [ebp + 0xf0]
cmp dword [esi], 0
jne 0x403d05
mov dword [esi], 0x114
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x403da9
push 0x3f
push eax
mov byte [ebp + 0xa4], al
lea eax, [ebp + 0xa5]
push eax
call fcn.00475410
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0xa4]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.CurrentVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x80], 0x40
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x403d88
movsx eax, byte [ebp + 0xa4]
sub eax, 0x30
mov dword [esi + 4], eax
lea eax, [ebp + 0xa6]
push eax
mov dword [esi + 0x10], 2
call fcn.00476b71
pop ecx
mov dword [esi + 8], eax
jmp 0x403da9
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr eax, 8
movzx eax, al
mov dword [esi + 8], eax
xor eax, eax
cmp ecx, 4
seta al
mov dword [esi + 4], ecx
inc eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
cmp eax, 6
ja 0x403db9
jne 0x403e10
cmp dword [esi + 8], 2
jb 0x403e10
push 0x118
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.00475410
add esp, 0xc
push str.RtlGetVersion
push str.ntdll.dll
mov dword [ebp - 0x78], 0x11c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403e10
lea ecx, [ebp - 0x78]
push ecx
call eax
test eax, eax
jne 0x403e10
mov eax, dword [esi]
cmp eax, dword [ebp - 0x78]
jb 0x403e02
mov eax, dword [ebp - 0x78]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
call fcn.00479950
add esp, 0xc
mov ecx, dword [ebp + 0xe4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0047548a
add ebp, 0xe8
leave
ret

Function at 0x403f51
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
cmp dword [eax + 8], 5
jne 0x403fe2
cmp dword [eax + 0xc], 1
jb 0x403fe2
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.00475410
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.CSDVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x80], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x403fe2
lea eax, [ebp - 0x78]
push str.Service_Pack_2
push eax
call fcn.004756c6
pop ecx
pop ecx
test eax, eax
jl 0x403fe2
xor eax, eax
inc eax
jmp 0x403fe4
xor eax, eax
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.0047548a
add ebp, 0x194
leave
ret 4