joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410814
Capabilities:
Check if file exists
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x145c
call fcn.0041e510
and word [ebp - 0x414], 0
push ebx
push esi
mov edx, ecx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [edx + 4]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
and dword [ebp - 4], 0
mov ebx, 0x103
push dword [eax + 0x2c]
lea eax, [ebp - 0x414]
push 0x428a84
push ebx
push eax
call esi
and word [ebp - 0x20c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
add esp, 0x10
stosw word es:[edi], ax
lea eax, [ebp - 0x414]
push eax
push 0x4293b4
lea eax, [ebp - 0x20c]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
jne 0x41096d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410951
and word [ebp - 0x145c], 0
mov ecx, 0x411
xor eax, eax
lea edi, [ebp - 0x145a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
mov edi, 0x4292e0
push eax
lea eax, [ebp - 0x145c]
push 0x823
push eax
push 0x42b2ec
mov esi, str.InternetShortcut
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x145c], 0
je 0x410948
lea eax, [ebp - 0x145c]
push eax
push str.http:__www.baidu.com_index.php_tn360se_dg
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x410948
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
push str.http:__www.baidu.com_index.php_se360se_dg
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebp - 4], 1
jmp 0x41096d
lea eax, [ebp - 0x20c]
push eax
push str.http:__www.baidu.com_index.php_se360se_dg
push 0x4292e0
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410975
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push 1
add ecx, 0x18
pop ebx
push ecx
lea ecx, [ebp - 4]
call fcn.0040730b
xor esi, esi
lea ecx, [ebp - 4]
push esi
push 0x4249ac
call fcn.00407351
cmp eax, esi
jle 0x410a0d
add eax, 2
push edi
push eax
lea eax, [ebp - 8]
push esi
push eax
lea ecx, [ebp - 4]
call fcn.004072ab
xor eax, eax
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
stosd dword es:[edi], eax
lea edi, [ebp - 0x14]
mov dword [ebp - 0x10], esi
stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x410a04
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
push 0x14
pop ecx
call fcn.0041e640
push str.8.05
mov edi, eax
call dword [sym.imp.MSVCRT.dll__wtoi]
cmp eax, edi
pop ecx
jbe 0x410a04
xor ebx, ebx
lea ecx, [ebp - 8]
call fcn.00403e0f
pop edi
lea ecx, [ebp - 4]
call fcn.00403e0f
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x410b48
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2090
call fcn.0041e510
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x5c], 6
je 0x410c13
and word [ebp - 0x2090], 0
mov ecx, 0x823
xor eax, eax
lea edi, [ebp - 0x208e]
push dword [esi + 0xc]
mov ebx, str.HomePage
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x2090]
push 0x1047
push eax
push 0x42b2ec
mov edi, str.option
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi + 0x5c]
xor edx, edx
xor ecx, ecx
cmp eax, 2
je 0x410bb9
cmp eax, 3
je 0x410bb9
cmp eax, 4
jne 0x410bbc
push 1
pop ecx
cmp dword [ebp + 8], edx
jne 0x410be9
cmp ecx, edx
jne 0x410be9
mov eax, dword [esi + 0x68]
cmp dword [eax - 8], edx
je 0x410c13
lea ecx, [ebp - 0x2090]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x410c13
push dword [esi + 0xc]
push dword [esi + 0x68]
jmp 0x410c0b
mov eax, dword [esi + 0x64]
cmp dword [eax - 8], edx
je 0x410c13
lea ecx, [ebp - 0x2090]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x410c13
push dword [esi + 0xc]
push dword [esi + 0x64]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x410d1e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x517c
call fcn.0041e510
mov ecx, dword [ebp + 8]
push esi
call fcn.00410e0d
lea eax, [ebp - 8]
xor esi, esi
push eax
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocString
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x410e08
push ebx
push edi
mov ecx, 0x1459
lea edi, [ebp - 0x517a]
mov word [ebp - 0x517c], si
mov dword [ebp - 0x10], 0x28b3
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x517c]
push eax
push esi
push esi
push str.Secondary_Start_Pages
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410dfd
mov esi, dword [ebp - 0x10]
lea ebx, [ebp - 0x517c]
shr esi, 1
dec esi
test esi, esi
jle 0x410dfd
lea eax, [ebp - 0x517a]
mov edi, 0x428b6c
mov dword [ebp - 0xc], eax
mov ax, word [ebx]
test ax, ax
je 0x410dc7
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 1
jmp 0x410de7
mov eax, dword [ebp - 4]
inc eax
cmp eax, esi
jge 0x410def
mov eax, dword [ebp - 0xc]
cmp word [eax], 0
je 0x410def
mov eax, edi
test eax, eax
je 0x410de5
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
mov ecx, dword [ebp + 8]
call fcn.0040854e
inc dword [ebp - 4]
add dword [ebp - 0xc], 2
inc ebx
inc ebx
cmp dword [ebp - 4], esi
jl 0x410db4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x410fe7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc34
push ebx
push esi
mov dword [ebp - 4], ecx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x822]
mov word [ebp - 0x824], bx
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0x824]
push 0x17
push eax
push ebx
call esi
test eax, eax
je 0x411047
lea eax, [ebp - 0x824]
push str.360_3
push eax
mov eax, dword [ebp - 4]
add eax, 0x1c
push 0x424924
push eax
call fcn.00403a35
add esp, 0x10
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x61a]
mov word [ebp - 0x61c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0x61c]
push 0x16
push eax
push ebx
call esi
test eax, eax
je 0x41109c
mov eax, dword [ebp - 4]
lea edi, [eax + 0x20]
lea eax, [ebp - 0x61c]
test eax, eax
je 0x41108d
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x61c]
push ecx
push eax
mov ecx, edi
call fcn.00406047
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x412]
mov word [ebp - 0x414], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0x414]
push 0x19
push eax
push ebx
call esi
test eax, eax
je 0x4110f1
mov eax, dword [ebp - 4]
lea edi, [eax + 0x24]
lea eax, [ebp - 0x414]
test eax, eax
je 0x4110e2
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x414]
push ecx
push eax
mov ecx, edi
call fcn.00406047
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0xa2a]
mov word [ebp - 0xa2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0xa2c]
push 0x1a
push eax
push ebx
call esi
test eax, eax
je 0x41113a
lea eax, [ebp - 0xa2c]
push 0x4294a0
push eax
mov eax, dword [ebp - 4]
add eax, 0x28
push 0x424924
push eax
call fcn.00403a35
add esp, 0x10
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
mov word [ebp - 0x20c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0x20c]
push 6
push eax
push ebx
call esi
test eax, eax
je 0x41118f
mov eax, dword [ebp - 4]
lea edi, [eax + 0x2c]
lea eax, [ebp - 0x20c]
test eax, eax
je 0x411180
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x20c]
push ecx
push eax
mov ecx, edi
call fcn.00406047
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0xc32]
mov word [ebp - 0xc34], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0xc34]
push 0x1a
push eax
push ebx
call esi
test eax, eax
je 0x4111d5
mov esi, dword [ebp - 4]
lea eax, [ebp - 0xc34]
push eax
push 0x424548
lea eax, [esi + 0x18]
push eax
call fcn.00403a35
add esp, 0xc
jmp 0x4111d8
mov esi, dword [ebp - 4]
push 0x70
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x4111ee
push esi
mov ecx, eax
call fcn.0040c632
jmp 0x4111f0
xor eax, eax
mov ecx, eax
mov dword [esi + 0x30], eax
call fcn.0040c77c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4111ff
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
push ebx
push esi
push edi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and word [ebp - 0x41c], 0
mov dword [ebp - 4], eax
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x41a]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x41c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x411348
push dword [ebp - 4]
lea eax, [ebp - 0x41c]
lea esi, [ebx + 0xc]
push eax
push str._s_d
push esi
call fcn.00403a35
mov eax, dword [esi]
add esp, 0x10
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x411348
push dword [esi]
and word [ebp - 0x210], 0
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x20e]
push str._smini.exe
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
push 0xe4
lea eax, [ebp - 0x210]
push 0x429530
push eax
call fcn.0041531a
add esp, 0x1c
test al, al
je 0x411348
push dword [esi]
add ebx, 0x10
push str._smini
push ebx
call fcn.00403a35
mov eax, dword [ebx]
add esp, 0xc
xor esi, esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x411348
push dword [ebx]
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x626]
mov word [ebp - 0x628], si
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x210]
push eax
push str._s__P_s
lea eax, [ebp - 0x628]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411348
push 0xea60
lea eax, [ebp - 0x628]
push esi
push eax
call fcn.00414608
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411382
Capabilities:
Delete file
Move file

Disassembly:
push 4
push 0
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
ret
Function at 0x4117ed
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, 0x41ed5c
call fcn.0041e600
sub esp, 0x210
push ebx
xor ebx, ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
push 0x42036c
push 1
push ebx
push 0x42064c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4118ca
mov eax, dword [ebp - 0x10]
push edi
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
push dword [ebp + 8]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21a]
mov word [ebp - 0x21c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcslen]
push eax
lea eax, [ebp - 0x21c]
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0x10
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x21c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
cmp dword [ebp + 0x10], ebx
pop edi
je 0x4118a0
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push 0x420a7c
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x4118ca
mov eax, dword [ebp - 0x14]
push 2
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x4118ca
push 1
pop esi
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x4118da
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4118eb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x411dda
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
lea eax, [ebp - 0x114]
push esi
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [ebp - 0x104], 2
push 1
mov dword [0x42b310], eax
mov dword [0x42b31c], eax
mov dword [0x42b314], eax
mov dword [0x42b318], eax
pop esi
jne 0x411e7b
cmp dword [ebp - 0x110], 5
jne 0x411e46
cmp dword [ebp - 0x10c], eax
jne 0x411e36
mov dword [0x42b31c], esi
jmp 0x411e89
cmp dword [ebp - 0x10c], esi
jne 0x411e89
mov dword [0x42b314], esi
jmp 0x411e89
cmp dword [ebp - 0x110], 6
jne 0x411e89
cmp dword [ebp - 0x10c], eax
je 0x411e5f
cmp dword [ebp - 0x10c], esi
jne 0x411e89
cmp dword [ebp - 0x10c], esi
mov dword [0x42b314], esi
mov dword [0x42b318], esi
jne 0x411e89
mov dword [0x42b320], esi
jmp 0x411e89
cmp dword [ebp - 0x104], esi
jne 0x411e89
mov dword [0x42b310], esi
mov ax, word [0x42b2ec]
push edi
mov word [ebp - 0x31c], ax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x31a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x31c]
push 0x103
push eax
call fcn.00412f5a
cmp word [ebp - 0x31c], 0x37
pop ecx
pop ecx
pop edi
jne 0x411ece
mov dword [0x42b324], esi
jmp 0x411ef0
cmp word [ebp - 0x31c], 0x36
jne 0x411ee0
mov dword [0x42b328], esi
jmp 0x411ef0
cmp word [ebp - 0x31c], 0x38
jne 0x411ef0
mov dword [0x42b32c], esi
pop esi
leave
ret

Function at 0x411f62
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x104], 2
jne 0x411fd6
cmp dword [ebp - 0x110], 5
jne 0x411fd6
cmp dword [ebp - 0x10c], 1
jne 0x411fd6
push esi
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea eax, [ebp - 0x100]
push str.Service_Pack_2
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x411fd0
lea eax, [ebp - 0x100]
push str.Service_Pack_3
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x411fd0
xor eax, eax
jmp 0x411fd3
push 1
pop eax
pop esi
leave
ret
xor eax, eax
leave
ret

Function at 0x4127a1
Capabilities:
Delete file
Move file

Disassembly:
cmp dword [esp + 8], 0
jne 0x4127c2
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x4127ba
xor eax, eax
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4127c5
push 5
pop eax
cmp eax, 5
je 0x4127d3
cmp eax, 0x20
je 0x4127d3
push 1
pop eax
ret
cmp dword [0x42b310], 0
je 0x4127f4
push 0
push dword [esp + 8]
call fcn.00412806
pop ecx
pop ecx
xor ecx, ecx
test eax, eax
setne cl
inc ecx
mov eax, ecx
ret
push 4
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 2
pop eax
ret
Function at 0x4129e5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, 0x207
lea eax, [ebp - 0x208]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x412a66
cmp eax, esi
ja 0x412a66
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp word [ebp + eax*2 - 0x20a], 0x5c
pop ecx
je 0x412a37
lea eax, [ebp - 0x208]
push 0x426cb4
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
pop ecx
pop ecx
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x208]
push str.wininit.ini
push eax
push 0x427bd8
push esi
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
and word [edi + esi*2 - 2], 0
push 1
pop eax
pop edi
jmp 0x412a68
xor eax, eax
pop esi
leave
ret

Function at 0x412a6b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x167c
call fcn.0041e510
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x412b64
push ebx
push edi
mov ecx, 0x513
xor eax, eax
lea edi, [ebp - 0x167a]
mov word [ebp - 0x167c], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x429610]
mov ebx, dword [sym.imp.MSVCRT.dll_wcstok]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call ebx
pop ecx
pop ecx
mov edx, eax
test edx, edx
je 0x412b26
and word [ebp - 0x22c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x22a]
rep stosd dword es:[edi], eax
push edx
push dword [ebp + 8]
stosw word es:[edi], ax
push 0x429604
lea eax, [ebp - 0x22c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edi, eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp + esi*2 - 0x167c]
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 4]
lea esi, [esi + edi + 1]
push eax
push 0
call ebx
add esp, 0x28
jmp 0x412ab7
xor esi, esi
push 0x1e
lea eax, [ebp - 0x24]
push esi
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x167c]
add esp, 0xc
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0xe], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0xa], esi
mov dword [ebp - 0x20], 3
mov word [ebp - 0x14], 0x454
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop edi
pop ebx
jmp 0x412b66
xor eax, eax
pop esi
leave
ret

Function at 0x412f0c
Capabilities:
Get common file path
Get program files directory

Disassembly:
xor eax, eax
push esi
cmp word [0x42b33c], ax
mov esi, 0x42b33c
jne 0x412f36
push eax
push 0x26
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x429640
push esi
call dword [sym.imp.MSVCRT.dll_wcscat]
pop ecx
pop ecx
mov eax, esi
pop esi
ret
Function at 0x412f5a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push esi
call fcn.00412f0c
push eax
call fcn.0041a9ae
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x412fab
lea eax, [ebp + 0xc]
mov dword [ebp + 8], 4
push eax
lea eax, [ebp + 8]
push esi
push eax
push str.Version
push str.SoftwareMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x412fab
cmp word [esi], ax
je 0x412fab
push 1
pop edi
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x413541
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], edi
je 0x413641
lea eax, [ebp - 4]
push esi
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x40000
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x413632
push dword [ebp + 0x10]
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x413632
cmp dword [ebp + 0x14], edi
je 0x41362f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x20019
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x413632
push edi
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push edi
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x413632
push 0x20a
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [ebp - 8], edi
pop ecx
mov esi, eax
jbe 0x413628
push 0x105
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, edi
jne 0x41361b
push 1
push dword [ebp + 0x10]
push esi
push dword [ebp - 4]
call fcn.00413541
add esp, 0x10
jmp 0x413622
cmp eax, 0x103
je 0x413628
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x4135f4
push esi
call fcn.0041e4ea
pop ecx
push 1
pop ebx
cmp dword [ebp - 4], edi
pop esi
je 0x413641
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop ebx
leave
ret
Function at 0x413efa
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x429720]
push esi
cmp eax, 0xffffffff
jne 0x41405a
push edi
push 0x44
pop ecx
xor eax, eax
lea edi, [ebp - 0x110]
mov dword [ebp - 0x114], 0x114
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x114]
mov dword [0x429720], 0xfffffc18
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
je 0x414055
cmp dword [ebp - 0x104], 2
jne 0x414055
cmp dword [ebp - 0x110], 5
jne 0x413fea
cmp dword [ebp - 0x10c], 0
jne 0x413f74
push 1
jmp 0x41404d
cmp dword [ebp - 0x10c], 1
jne 0x413fdd
mov esi, dword [sym.imp.MSVCRT.dll__wcsnicmp]
lea eax, [ebp - 0x100]
push 0x7f
push eax
push 0x429728
call esi
add esp, 0xc
test eax, eax
jne 0x413fa1
push 3
jmp 0x41404d
lea eax, [ebp - 0x100]
push 0x7f
push eax
push str.Service_Pack_2
call esi
add esp, 0xc
test eax, eax
jne 0x413fbf
push 4
jmp 0x41404d
lea eax, [ebp - 0x100]
push 0x7f
push eax
push str.Service_Pack_3
call esi
add esp, 0xc
neg eax
sbb eax, eax
and al, 0xfd
add eax, 5
jmp 0x41404e
cmp dword [ebp - 0x10c], 2
jne 0x414055
push 6
jmp 0x41404d
cmp dword [ebp - 0x110], 6
jne 0x414042
cmp dword [ebp - 0x10c], 0
jne 0x414039
mov esi, dword [sym.imp.MSVCRT.dll__wcsnicmp]
lea eax, [ebp - 0x100]
push 0x7f
push eax
push 0x429728
call esi
add esp, 0xc
test eax, eax
jne 0x41401d
push 8
jmp 0x41404d
lea eax, [ebp - 0x100]
push 0x7f
push eax
push str.Service_Pack_2
call esi
add esp, 0xc
neg eax
sbb eax, eax
add eax, 8
jmp 0x41404e
cmp dword [ebp - 0x10c], 1
jmp 0x414049
cmp dword [ebp - 0x110], 7
jne 0x414055
push 9
pop eax
mov dword [0x429720], eax
jmp 0x41405a
mov eax, dword [0x429720]
pop esi
leave
ret