joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407eb0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d10
call fcn.0040cdd0
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x407fda
cmp dword [ebp + 0xc], esi
je 0x407fda
push ebx
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov edi, 0x2710
push dword [ebp - 4]
lea eax, [ebp - 0x600]
push 0x417264
push 0x200
push eax
call fcn.00407c97
add esp, 0x10
lea eax, [ebp - 0x600]
push esi
push esi
push 3
push esi
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407fc6
push 0xc
lea eax, [ebp - 0x18]
push esi
push eax
mov dword [ebp - 0xc], esi
call sub.MSVCRT.dll_memset
push edi
lea eax, [ebp - 0x2d10]
push esi
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x2d10]
push edi
push eax
lea eax, [ebp - 0x18]
push 0xc
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x407fba
push 0x3e8
lea eax, [ebp - 0x400]
push esi
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x400]
push eax
push 1
push dword [ebp - 0x2cf8]
lea eax, [ebp - 0x2d10]
push eax
call fcn.00403ba7
add esp, 0x1c
cmp dword [ebp + 0xc], 0x7fffffff
ja 0x407fba
lea eax, [ebp - 0x400]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407cbe
cmp eax, esi
jne 0x407fba
mov dword [ebp - 8], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
jne 0x407fd3
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x10
jl 0x407edf
mov eax, dword [ebp - 8]
pop edi
pop ebx
jmp 0x407fdc
xor eax, eax
pop esi
leave
ret
Function at 0x40813f
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f0
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4082a7
cmp dword [ebp + 0xc], ebx
je 0x4082a7
push esi
push 0x64
lea eax, [ebp - 0x7c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 8
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
call esi
test eax, eax
jne 0x408277
mov dword [ebp - 8], ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x14], 0x104
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40826e
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x2e8]
push ebx
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x408266
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 1
push eax
lea eax, [ebp - 0x4f0]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.ServiceName
mov dword [ebp - 0x10], 0x208
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40825d
push 0x64
lea eax, [ebp - 0xe0]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0xe0]
push 0x64
push eax
lea eax, [ebp - 0x4f0]
push eax
call fcn.004082ac
add esp, 0x18
test eax, eax
je 0x40825d
cmp byte [ebp - 0x7c], bl
je 0x40824b
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x40825d
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x7c]
push 0x64
push eax
call fcn.00407cbe
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
jmp 0x408191
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x7c], bl
pop esi
je 0x4082a7
cmp dword [ebp + 0xc], 0x7fffffff
jbe 0x40828d
mov eax, 0x80070057
jmp 0x40829c
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407cbe
xor ecx, ecx
cmp eax, ebx
setge cl
mov eax, ecx
jmp 0x4082a9
xor eax, eax
pop ebx
leave
ret
Function at 0x408895
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
cmp dword [ebp + 8], 0
push esi
je 0x4089b2
cmp dword [ebp + 0xc], 0x20
jb 0x4089b2
mov esi, 0x400
lea eax, [ebp - 0x508]
push esi
push 0
push eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 8]
push eax
push 0x417260
push str.Software360SafeLiveup
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4089b2
lea eax, [ebp - 0x508]
push eax
call sub.MSVCRT.dll_strlen
cmp eax, 0x40
pop ecx
jne 0x4089b2
push edi
lea eax, [ebp - 0x508]
push 0x20
push eax
mov edi, 0x80
lea eax, [ebp - 0x88]
push edi
push eax
call fcn.004089b7
lea eax, [ebp - 0x4e8]
push eax
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00407cbe
push esi
lea eax, [ebp - 0x508]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x508]
push esi
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004086ff
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x508]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
pop edi
jne 0x4089b2
cmp dword [ebp + 0xc], 0x7fffffff
jbe 0x408995
mov eax, 0x80070057
jmp 0x4089a7
lea eax, [ebp - 0x88]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407cbe
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
jmp 0x4089b4
xor eax, eax
pop esi
leave
ret
Function at 0x408e08
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push esi
push 0x417468
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.gdiplus.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor esi, esi
cmp eax, esi
jne 0x408e36
or eax, 0xffffffff
jmp 0x409009
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 8
push eax
mov dword [ebp - 8], 0x404
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push esi
mov ebx, 0x41c4b0
push dword [ebp + 8]
mov ecx, ebx
push esi
call fcn.004090fb
call fcn.0040966d
mov eax, dword [0x4162cc]
mov dword [ebp - 4], eax
call fcn.00402ce2
push dword [eax + 0x20]
lea eax, [ebp - 4]
push str._s_stat.ini
push eax
call fcn.00403493
add esp, 0xc
push dword [ebp - 4]
call fcn.0040c396
mov ecx, eax
call fcn.0040c43b
call fcn.00402ce2
push dword [eax + 0x20]
lea eax, [ebp - 4]
push str._serrstat.ini
push eax
call fcn.00403493
add esp, 0xc
push dword [ebp - 4]
call fcn.0040c3cd
mov ecx, eax
call fcn.0040c43b
call fcn.00402ce2
push dword [eax + 0x20]
lea eax, [ebp - 4]
push str._scrstat.ini
push eax
call fcn.00403493
add esp, 0xc
push dword [ebp - 4]
call fcn.0040c404
mov ecx, eax
call fcn.0040c43b
call fcn.00402ce2
mov ecx, eax
call fcn.00402e36
test eax, eax
jne 0x408f1c
push 1
push esi
call fcn.0040c3cd
mov ecx, eax
call fcn.0040c4df
call fcn.00408d70
cmp dword [0x41c540], esi
jne 0x408fde
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x316]
mov word [ebp - 0x318], si
push 0x104
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x318]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetModuleFileNameExW
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x10a]
mov word [ebp - 0x10c], si
push 0x80
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.0040bf6f
add esp, 0xc
lea eax, [ebp - 0x10c]
mov esi, 0x417400
push eax
push esi
call fcn.0040c396
mov ecx, eax
call fcn.0040caf9
lea eax, [ebp - 0x10c]
push eax
push esi
call fcn.0040c3cd
mov ecx, eax
call fcn.0040caf9
lea eax, [ebp - 0x10c]
push eax
push 0x41ab44
call fcn.0040c404
mov ecx, eax
call fcn.0040caf9
mov dword [0x41c540], 1
pop edi
call fcn.004096a2
mov ecx, ebx
call fcn.0040920d
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.00402ce2
push dword [eax + 0x20]
call fcn.0040c136
pop ecx
lea ecx, [ebp - 4]
call fcn.00403948
xor eax, eax
pop ebx
pop esi
leave
ret 0x10
Function at 0x40980e
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push ebx
call sub.MSVCRT.dll_strlen
mov esi, eax
lea eax, [esi + 1]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebp, eax
pop ecx
test ebp, ebp
pop ecx
je 0x40988b
push edi
push dword [esp + 0x18]
call dword [sym.imp.MSVCRT.dll_srand]
test esi, esi
pop ecx
jle 0x40985d
mov edi, ebp
sub ebx, ebp
mov dword [esp + 0x14], esi
call dword [sym.imp.MSVCRT.dll_rand]
add al, 0x11
xor al, byte [ebx + edi]
xor al, 2
mov byte [edi], al
inc edi
dec dword [esp + 0x14]
jne 0x409847
lea edi, [esi + esi]
lea eax, [edi + 1]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x409880
push ebx
push esi
push ebp
call fcn.00409782
add esp, 0xc
and byte [edi + ebx], 0
push ebp
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40988f
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
call sub.MSVCRT.dll_strlen
mov esi, eax
push edi
push esi
push edi
call fcn.004097c3
push dword [esp + 0x24]
mov eax, esi
cdq
sub eax, edx
mov esi, eax
sar esi, 1
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 0x14
xor ebx, ebx
test esi, esi
jle 0x4098d7
call dword [sym.imp.MSVCRT.dll_rand]
add al, 0x11
xor al, byte [ebx + edi]
xor al, 2
mov byte [ebx + edi], al
inc ebx
cmp ebx, esi
jl 0x4098c2
and byte [esi + edi], 0
pop edi
pop esi
pop ebx
ret

Function at 0x409e3c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 1
xor esi, esi
push str.Software360ChromeChrome
push 0x80000001
lea ecx, [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.0040b697
test eax, eax
jne 0x409eb5
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.LastTimeCheck
mov dword [ebp - 0xc], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409eb5
cmp dword [ebp - 4], esi
je 0x409e9a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.MSVCRT.dll_time]
sub eax, dword [ebp - 8]
pop ecx
mov ecx, dword [ebp + 8]
cmp eax, 0x15180
mov dword [ecx], eax
jg 0x409ec7
push 1
jmp 0x409f0b
cmp dword [ebp - 4], esi
je 0x409ec3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x409f19
cmp eax, 0x2a300
jg 0x409ed2
push 2
jmp 0x409f0b
cmp eax, 0x3f480
jg 0x409edd
push 3
jmp 0x409f0b
cmp eax, 0x93a80
jg 0x409ee8
push 4
jmp 0x409f0b
cmp eax, 0x127500
jg 0x409ef3
push 5
jmp 0x409f0b
cmp eax, 0x1a5e00
jg 0x409efe
push 6
jmp 0x409f0b
cmp eax, 0x278d00
jg 0x409f09
push 7
jmp 0x409f0b
push 8
call fcn.0040c404
mov ecx, eax
call fcn.0040c469
mov al, 1
pop esi
leave
ret
Function at 0x409f59
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push edi
push 0x46
xor eax, eax
pop ecx
lea edi, [ebp - 0x118]
mov dword [ebp - 0x11c], 0x11c
xor bl, bl
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x409fab
cmp dword [ebp - 0x118], 5
ja 0x409fa9
jb 0x409fab
cmp dword [ebp - 0x114], 1
jb 0x409fab
cmp word [ebp - 8], 2
jb 0x409fab
mov bl, 1
mov al, bl
pop edi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push esi
push edi
xor esi, esi
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x316]
mov word [ebp - 0x318], si
push 1
rep stosd dword es:[edi], eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push 0x80000002
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 0x104
call fcn.0040b697
test eax, eax
jne 0x40a0d2
lea eax, [ebp - 0xc]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 8]
push eax
push esi
push str.path
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a0d2
lea eax, [ebp - 0x318]
push str.modules360inst.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x40a0d2
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a0d2
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x10a]
mov word [ebp - 0x10c], si
push 0x7f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.0040bf6f
add esp, 0xc
test eax, eax
je 0x40a0d2
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call fcn.00409c62
pop ecx
test eax, eax
pop ecx
jge 0x40a0e6
cmp dword [ebp - 4], esi
je 0x40a0e0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop edi
pop esi
leave
ret
cmp dword [ebp - 4], esi
je 0x40a0f4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40a0e2
Function at 0x40ab10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push edi
push 1
xor ebx, ebx
push str.Software360360cr_ph
push 0x80000001
lea ecx, [ebp - 8]
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
call fcn.0040b697
test eax, eax
jne 0x40abe1
push 0x3f
lea edi, [ebp - 0x20e]
pop ecx
mov word [ebp - 0x210], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x7f
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x418d54
mov dword [ebp - 0x10], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40abe1
push 0x3f
lea edi, [ebp - 0x10e]
pop ecx
mov word [ebp - 0x110], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x110]
push 0x7f
push eax
lea eax, [ebp - 0x210]
push eax
mov byte [ebp - 1], 1
call fcn.00409aa2
push 6
lea eax, [ebp - 0x110]
push str.chrome
push eax
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0x18
test eax, eax
je 0x40abce
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x40abe1
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp dword [ebp - 8], ebx
je 0x40abef
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret

Function at 0x40abf6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.Software360360cr_ph
push 0x80000001
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x40accd
push edi
push 0x3f
pop ecx
xor eax, eax
push dword [ebp + 8]
lea edi, [ebp - 0x20a]
mov word [ebp - 0x20c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.chrome_lu
lea eax, [ebp - 0x20c]
push 0x7f
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x10a]
mov word [ebp - 0x10c], bx
push 0x7f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00409b11
add esp, 0x1c
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [ebp - 8]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x10c]
push eax
push 1
push ebx
push 0x418d54
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop edi
jne 0x40acc2
mov byte [ebp - 1], 1
cmp esi, ebx
je 0x40accd
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret
Function at 0x40acd4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360chrome.exe
push ebx
mov ecx, eax
xor ebx, ebx
push esi
push edi
test ecx, ecx
mov dword [ebp - 0x24], 0x80000001
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x80000002
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea esi, [ebp - 0x24]
je 0x40ad76
mov edx, eax
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x22e]
push 1
mov word [ebp - 0x230], bx
push edx
push dword [esi]
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], 0x104
call fcn.0040b697
test eax, eax
jne 0x40ad5e
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40ad7d
cmp dword [ebp - 4], ebx
je 0x40ad6c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esi + 0xc]
add esi, 8
cmp edx, ebx
jne 0x40ad0c
xor al, al
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x230]
test eax, eax
je 0x40ad94
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x230]
push ecx
push eax
mov ecx, 0x41c5cc
call fcn.004039b5
cmp dword [ebp - 4], ebx
je 0x40adb4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x40ad78
Function at 0x40b418
Capabilities:
Get common file path
Get program files directory

Disassembly:
xor eax, eax
push esi
cmp word [0x41c5e4], ax
mov esi, 0x41c5e4
jne 0x40b442
push eax
push 0x26
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.internet_exploreriexplore.exe
push esi
call dword [sym.imp.MSVCRT.dll_wcscat]
pop ecx
pop ecx
mov eax, esi
pop esi
ret

Function at 0x40b446
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push eax
lea eax, [ebp - 4]
push esi
push eax
push str.Version
push str.SoftwareMicrosoftInternet_Explorer
push 0x80000002
mov dword [ebp - 4], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40b481
cmp word [esi], ax
je 0x40b481
push 1
pop eax
jmp 0x40b493
push dword [ebp + 0xc]
push esi
call fcn.0040b418
push eax
call fcn.0040bf6f
add esp, 0xc
pop esi
leave
ret

Function at 0x40b496
Capabilities:
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4162cc]
push esi
push edi
mov dword [ebp - 4], eax
xor esi, esi
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x226]
mov word [ebp - 0x228], si
push 0x104
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x228]
push 0x3a
push eax
call dword [sym.imp.MSVCRT.dll_wcschr]
pop ecx
cmp eax, esi
pop ecx
je 0x40b509
mov word [eax + 4], si
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x40b516
lea ecx, [ebp - 4]
call fcn.00403948
or eax, 0xffffffff
jmp 0x40b535
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jb 0x40b528
ja 0x40b52b
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jae 0x40b52b
push 1
pop esi
lea ecx, [ebp - 4]
call fcn.00403948
mov eax, esi
pop edi
pop esi
leave
ret 8
Function at 0x40bf6f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4008
call fcn.0040cdd0
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40c03a
cmp dword [ebp + 0xc], esi
je 0x40c03a
cmp dword [ebp + 0x10], esi
je 0x40c03a
push edi
mov ecx, 0xfff
xor eax, eax
lea edi, [ebp - 0x4006]
mov word [ebp - 0x4008], si
mov dword [ebp - 8], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
pop edi
je 0x40c03a
cmp eax, 0x3fff
ja 0x40c03a
lea ecx, [ebp - 0x4008]
push ecx
push eax
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40c03a
lea eax, [ebp - 4]
mov dword [ebp + 8], esi
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x4008]
push 0x416234
push eax
mov dword [ebp - 4], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40c03a
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0xc]
push ecx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
push ecx
movzx ecx, word [eax + 8]
mov eax, dword [eax + 8]
push ecx
shr eax, 0x10
push eax
push str._d._d._d._d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x1c
push 1
pop eax
jmp 0x40c03c
xor eax, eax
pop esi
leave
ret

Function at 0x40c03f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4108
call fcn.0040cdd0
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
je 0x40c130
cmp dword [ebp + 0xc], esi
je 0x40c130
cmp dword [ebp + 0x10], esi
je 0x40c130
mov ecx, 0xfff
xor eax, eax
lea edi, [ebp - 0x4106]
mov word [ebp - 0x4108], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
je 0x40c130
cmp eax, 0x3fff
ja 0x40c130
lea ecx, [ebp - 0x4108]
push ecx
push eax
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40c130
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x106]
mov word [ebp - 0x108], si
push 0x4b0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x409
push str.StringFileInfo_04x_04xProductName
lea eax, [ebp - 0x108]
mov dword [ebp + 8], esi
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x7f
push eax
call esi
add esp, 0x14
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x4108]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40c130
push dword [ebp + 8]
push 0x416238
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
add esp, 0x10
push 1
pop eax
jmp 0x40c132
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40c136
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
mov ax, word [0x41ab44]
push ebx
push esi
push edi
mov word [ebp - 0x86c], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x86a]
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x41749c
push dword [ebp + 8]
mov ebx, 0x103
stosw word es:[edi], ax
push str._s_s
lea eax, [ebp - 0x86c]
push ebx
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x86c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x40c1a8
xor eax, eax
jmp 0x40c2ab
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
inc dword [0x41c7f4]
lea eax, [ebp - 0x228]
push 0x418aa0
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x40c276
lea eax, [ebp - 0x228]
push 0x4191b8
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x40c276
test byte [ebp - 0x254], 0x10
mov ax, word [0x41ab44]
je 0x40c235
mov word [ebp - 0x45c], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x45a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x45c]
push dword [ebp + 8]
push str._s_s
push ebx
push eax
call esi
lea eax, [ebp - 0x45c]
push eax
call fcn.0040c136
add esp, 0x18
jmp 0x40c276
mov word [ebp - 0x664], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x662]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x664]
push dword [ebp + 8]
push str._s_s
push ebx
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c1a8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebx
leave
ret