joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fc95
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ecx + 0x151c], 0
jne 0x41fcdc
mov eax, dword [0x4384ec]
push dword [ecx + 0x40]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push str._sAppsLoginAssisLoginAssis.dll
push eax
call fcn.004099a4
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41fcd4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 4]
call fcn.00404bf2
leave
ret

Function at 0x4204cf
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x420563
lea eax, [ebp - 8]
xor ebx, ebx
push eax
mov dword [ebp - 8], ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
je 0x420563
push esi
push edi
mov byte [ebp - 1], bl
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
cmp esi, ebx
je 0x420555
push esi
push edi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x420555
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp + 8]
push eax
push 0x43b434
push esi
mov dword [ebp + 8], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x420555
push 0x34
lea eax, [ebp - 0x40]
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [ebp - 0x40], 0xfeef04bd
sete byte [ebp - 1]
push esi
call dword [sym.imp.MSVCRT.dll_free]
cmp byte [ebp - 1], bl
pop ecx
pop esi
jne 0x420567
xor al, al
jmp 0x420591
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp + 0xc]
shr eax, 0x10
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
movzx eax, word [ebp - 0x38]
mov dword [ecx], eax
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 0x14]
shr eax, 0x10
mov dword [ecx], eax
mov ecx, dword [ebp + 0x18]
movzx eax, word [ebp - 0x34]
mov dword [ecx], eax
mov al, 1
pop edi
pop ebx
leave
ret

Function at 0x420789
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x420802
and word [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x208]
push dword [ebp + 8]
push str._s_d.tmp
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea eax, [ebp - 0x208]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
pop edi
jne 0x420806
xor al, al
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
leave
ret
Function at 0x42081e
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
and dword [ebp - 0x254], 0
push ebx
push esi
push edi
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x250]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
rep stosd dword es:[edi], eax
mov ax, word [0x43fcc4]
mov ecx, 0x81
mov word [ebp - 0x86c], ax
xor eax, eax
lea edi, [ebp - 0x86a]
push 0x43eb10
push dword [ebp + 8]
mov ebx, 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x439530
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 0x4208a6
xor eax, eax
jmp 0x4209a3
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea eax, [ebp - 0x228]
push 0x43eb0c
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x42096e
lea eax, [ebp - 0x228]
push 0x43b4e8
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x42096e
test byte [ebp - 0x254], 0x10
mov ax, word [0x43fcc4]
je 0x42092d
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 0x439530
push ebx
push eax
call esi
lea eax, [ebp - 0x45c]
push eax
call fcn.0042081e
add esp, 0x18
jmp 0x42096e
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 0x439530
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 0x4208a6
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

Function at 0x4209a8
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4209ff
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], esi
push eax
mov word [ebp - 0x10], 0x50
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x4209fd
push dword [ebp - 0xa]
call dword [sym.imp.SHELL32.dll_SHFreeNameMappings]
mov eax, esi
pop esi
leave
ret
Function at 0x420a02
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x260
push ebx
push ebp
push esi
push edi
push dword [esp + 0x278]
mov dword [esp + 0x1c], 1
call fcn.00420705
mov ebp, 0x208
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
pop ecx
mov ebx, 0x104
push dword [esp + 0x274]
mov dword [esp + 0x18], eax
push 0x43eb18
push ebx
push eax
call esi
and dword [esp + 0x30], 0
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x34]
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x420b40
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
lea eax, [esp + 0x4c]
push 0x43eb0c
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x420b29
lea eax, [esp + 0x4c]
push 0x43b4e8
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x420b29
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x278]
push 0x439530
push ebx
push edi
call esi
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x18
lea ecx, [esp + 0x4c]
mov dword [esp + 0x10], eax
push ecx
push dword [esp + 0x27c]
push 0x439530
push ebx
push eax
call esi
add esp, 0x14
test byte [esp + 0x20], 0x10
je 0x420b03
push dword [esp + 0x10]
push edi
call fcn.00420a02
pop ecx
pop ecx
jmp 0x420b10
push 0
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x420b18
and dword [esp + 0x18], eax
push edi
call fcn.0042e536
push dword [esp + 0x14]
call fcn.0042e536
pop ecx
pop ecx
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x420a7d
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [esp + 0x14]
call fcn.0042e536
mov eax, dword [esp + 0x1c]
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x260
ret

Function at 0x420b63
Capabilities:
Move file

Disassembly:
push 1
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
ret
Function at 0x420b74
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
and dword [ebp - 0x254], 0
push ebx
push esi
push edi
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x250]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
rep stosd dword es:[edi], eax
mov ax, word [0x43fcc4]
mov ecx, 0x81
mov word [ebp - 0x86c], ax
xor eax, eax
lea edi, [ebp - 0x86a]
push 0x43eb10
push dword [ebp + 8]
mov ebx, 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x439530
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]
test eax, eax
mov dword [ebp - 4], eax
je 0x420d61
cmp eax, 0xffffffff
je 0x420d61
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea eax, [ebp - 0x228]
push 0x43eb0c
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x420d2a
lea eax, [ebp - 0x228]
push 0x43b4e8
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x420d2a
test byte [ebp - 0x254], 0x10
je 0x420cac
mov ax, word [0x43fcc4]
mov ecx, 0x81
mov word [ebp - 0x664], ax
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 0x439530
push ebx
push eax
call esi
push dword [ebp + 0x14]
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 0x1c
test eax, eax
je 0x420d2a
push dword [ebp + 0x14]
lea eax, [ebp - 0x664]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00420b74
add esp, 0x10
jmp 0x420d2a
and word [ebp - 0x45c], 0
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 0x439530
push ebx
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 0x1c
test eax, eax
je 0x420d2a
push dword [ebp + 0x10]
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
je 0x420d2a
lea eax, [ebp - 0x45c]
push 0xa0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x45c]
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 0x420c01
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]
jmp 0x420d63
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4211f1
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, 0x42ee08
call fcn.0042e6a0
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 0x4330bc
push 1
push ebx
push 0x43339c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4212ce
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 0x4212a4
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 0x4337cc
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x4212ce
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 0x4212ce
push 1
pop esi
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x4212de
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x4212ef
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 0x4217de
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 [0x443168], eax
mov dword [0x443174], eax
mov dword [0x44316c], eax
mov dword [0x443170], eax
pop esi
jne 0x42187f
cmp dword [ebp - 0x110], 5
jne 0x42184a
cmp dword [ebp - 0x10c], eax
jne 0x42183a
mov dword [0x443174], esi
jmp 0x42188d
cmp dword [ebp - 0x10c], esi
jne 0x42188d
mov dword [0x44316c], esi
jmp 0x42188d
cmp dword [ebp - 0x110], 6
jne 0x42188d
cmp dword [ebp - 0x10c], eax
je 0x421863
cmp dword [ebp - 0x10c], esi
jne 0x42188d
cmp dword [ebp - 0x10c], esi
mov dword [0x44316c], esi
mov dword [0x443170], esi
jne 0x42188d
mov dword [0x443178], esi
jmp 0x42188d
cmp dword [ebp - 0x104], esi
jne 0x42188d
mov dword [0x443168], esi
mov ax, word [0x43fcc4]
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.0042295e
cmp word [ebp - 0x31c], 0x37
pop ecx
pop ecx
pop edi
jne 0x4218d2
mov dword [0x44317c], esi
jmp 0x4218f4
cmp word [ebp - 0x31c], 0x36
jne 0x4218e4
mov dword [0x443180], esi
jmp 0x4218f4
cmp word [ebp - 0x31c], 0x38
jne 0x4218f4
mov dword [0x443184], esi
pop esi
leave
ret

Function at 0x421966
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 0x4219da
cmp dword [ebp - 0x110], 5
jne 0x4219da
cmp dword [ebp - 0x10c], 1
jne 0x4219da
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 0x4219d4
lea eax, [ebp - 0x100]
push str.Service_Pack_3
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x4219d4
xor eax, eax
jmp 0x4219d7
push 1
pop eax
pop esi
leave
ret
xor eax, eax
leave
ret

Function at 0x4221a5
Capabilities:
Delete file
Move file

Disassembly:
cmp dword [esp + 8], 0
jne 0x4221c6
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x4221be
xor eax, eax
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4221c9
push 5
pop eax
cmp eax, 5
je 0x4221d7
cmp eax, 0x20
je 0x4221d7
push 1
pop eax
ret
cmp dword [0x443168], 0
je 0x4221f8
push 0
push dword [esp + 8]
call fcn.0042220a
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 0x4223e9
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 0x42246a
cmp eax, esi
ja 0x42246a
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp word [ebp + eax*2 - 0x20a], 0x5c
pop ecx
je 0x42243b
lea eax, [ebp - 0x208]
push 0x43b434
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 0x43b4f0
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 0x42246c
xor eax, eax
pop esi
leave
ret

Function at 0x42246f
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x167c
call fcn.0042e5e0
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x422568
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 [0x43ebe8]
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 0x42252a
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 str._s_s
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 0x4224bb
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 0x42256a
xor eax, eax
pop esi
leave
ret

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

Disassembly:
xor eax, eax
push esi
cmp word [0x443194], ax
mov esi, 0x443194
jne 0x42293a
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 0x42295e
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.00422910
push eax
call fcn.004259a6
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4229af
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 0x4229af
cmp word [esi], ax
je 0x4229af
push 1
pop edi
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x422f45
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 0x423045
lea eax, [ebp - 4]
push esi
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push pe_overlay
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x423036
push dword [ebp + 0x10]
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x423036
cmp dword [ebp + 0x14], edi
je 0x423033
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 0x423036
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 0x423036
push 0x20a
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [ebp - 8], edi
pop ecx
mov esi, eax
jbe 0x42302c
push 0x105
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, edi
jne 0x42301f
push 1
push dword [ebp + 0x10]
push esi
push dword [ebp - 4]
call fcn.00422f45
add esp, 0x10
jmp 0x423026
cmp eax, 0x103
je 0x42302c
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x422ff8
push esi
call fcn.0042e536
pop ecx
push 1
pop ebx
cmp dword [ebp - 4], edi
pop esi
je 0x423045
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop ebx
leave
ret
Function at 0x4238fe
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
cmp dword [0x43ece8], 0xffffffff
push esi
jne 0x423aa7
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 [0x43ece8], 0xfffffc18
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
je 0x423aa7
push 2
pop ecx
cmp dword [ebp - 0x104], ecx
jne 0x423aa7
mov eax, dword [ebp - 0x110]
cmp eax, 5
jne 0x423a17
cmp dword [ebp - 0x10c], 0
jne 0x423983
mov dword [0x43ece8], 1
jmp 0x423aa7
cmp dword [ebp - 0x10c], 1
jne 0x4239fc
mov esi, dword [sym.imp.MSVCRT.dll__wcsnicmp]
lea eax, [ebp - 0x100]
push 0x7f
push eax
push 0x43ecf0
call esi
add esp, 0xc
test eax, eax
jne 0x4239b8
mov dword [0x43ece8], 3
jmp 0x423aa7
lea eax, [ebp - 0x100]
push 0x7f
push eax
push str.Service_Pack_2
call esi
add esp, 0xc
test eax, eax
jne 0x4239de
mov dword [0x43ece8], 4
jmp 0x423aa7
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 0x423a69
cmp dword [ebp - 0x10c], ecx
jne 0x423aa7
mov dword [0x43ece8], 6
jmp 0x423aa7
cmp eax, 6
jne 0x423a91
mov eax, dword [ebp - 0x10c]
test eax, eax
jne 0x423a70
mov esi, dword [sym.imp.MSVCRT.dll__wcsnicmp]
lea eax, [ebp - 0x100]
push 0x7f
push eax
push 0x43ecf0
call esi
add esp, 0xc
test eax, eax
jne 0x423a4f
mov dword [0x43ece8], 8
jmp 0x423aa7
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
mov dword [0x43ece8], eax
jmp 0x423aa7
cmp eax, 1
jne 0x423a81
mov dword [0x43ece8], 9
jmp 0x423aa7
cmp eax, ecx
jne 0x423a9b
mov dword [0x43ece8], 0xa
jmp 0x423aa7
cmp eax, 7
je 0x423a75
cmp eax, 8
jmp 0x423a83
jbe 0x423aa7
mov dword [0x43ece8], 0x3e8
mov eax, dword [0x43ece8]
pop esi
leave
ret