joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001e196
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x10078b14
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1001e1c0
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1001e1c0
test al, 0x10
jne 0x1001e1c0
push 1
pop eax
ret
xor eax, eax
ret

Function at 0x1001e1c3
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 6
jne 0x1001e1f7
push 1
pop eax
cmp dword [ebp - 0x8c], eax
je 0x1001e1f9
xor eax, eax
leave
ret

Function at 0x1001e1fb
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
cmp dword [ebp - 0x90], 6
sete al
leave
ret

Function at 0x1001e264
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
cmp dword [ebp - 0x90], 5
sete al
leave
ret

Function at 0x1001e292
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
cmp dword [ebp - 0x90], 5
jne 0x1001e2ec
cmp dword [ebp - 0x8c], eax
jne 0x1001e2cc
mov eax, 0x2710
leave
ret
cmp dword [ebp - 0x8c], 1
jne 0x1001e2dc
mov eax, 0x2711
leave
ret
cmp dword [ebp - 0x8c], 2
jne 0x1001e312
mov eax, 0x2712
leave
ret
cmp dword [ebp - 0x90], 6
jne 0x1001e312
cmp dword [ebp - 0x8c], eax
jne 0x1001e304
mov eax, 0x2713
leave
ret
cmp dword [ebp - 0x8c], 1
jne 0x1001e312
mov eax, 0x2714
leave
ret
Function at 0x1001e358
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, 0x10054744
call fcn.10052270
sub esp, 0x238
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 1
pop esi
mov dword [ebp - 4], esi
mov ebx, 0x10078b14
push ebx
push dword [ebp + 0xc]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
call edi
pop ecx
pop ecx
test eax, eax
jne 0x1001e392
xor esi, esi
jmp 0x1001e45a
mov dword [ebp - 0x18], esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
push eax
push 0x1005f598
push esi
push 0
push 0x1005f7c8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1001e44e
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push 0x1005fc28
push eax
call dword [ecx]
test eax, eax
jl 0x1001e43a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x23c], eax
push ebx
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x1001e3fb
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push dword [ebp + 8]
push eax
call dword [ecx + 0x50]
test eax, eax
jl 0x1001e3fb
mov dword [ebp - 0x18], esi
push 0x104
lea eax, [ebp - 0x224]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x224]
push edx
push eax
call dword [ecx + 0x18]
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1001e44e
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esi, dword [ebp - 0x18]
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.1000349d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.1000349d
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100202c0
Capabilities:
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.100522c0
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], ebx
je 0x100202ea
push dword [ebp + 8]
lea eax, [esi + 8]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
mov dword [ebp - 4], eax
call fcn.1001e196
test eax, eax
pop ecx
mov edi, 0x80
je 0x10020316
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push edi
push 2
push ebx
push 3
push 0x40000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x1002033a
xor eax, eax
jmp 0x10020471
cmp dword [esi + 4], 2
jne 0x10020365
lea eax, [ebp - 0xc]
or byte [ebp - 0x100c], 0xff
push ebx
push eax
lea eax, [ebp - 0x100c]
push 2
push eax
mov byte [ebp - 0x100b], 0xfe
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0x110]
mov eax, dword [eax]
mov dword [esi + 0x118], eax
cmp eax, dword [esi + 0x110]
je 0x1002044b
cmp dword [esi + 4], 2
jne 0x100203e5
mov edi, dword [esi + 0x118]
lea eax, [ebp - 0x100c]
push 0x800
push eax
push dword [edi + 8]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [edi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
shl eax, 1
mov byte [ebp + eax - 0x100c], 0xd
mov byte [ebp + eax - 0x100b], bl
mov byte [ebp + eax - 0x100a], 0xa
mov byte [ebp + eax - 0x1009], bl
mov byte [ebp + eax - 0x1008], bl
mov byte [ebp + eax - 0x1007], bl
add eax, 4
jmp 0x10020422
mov eax, dword [esi + 0x118]
push dword [eax + 8]
lea eax, [ebp - 0x100c]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x100c]
push eax
call sub.MSVCRT.dll_strlen
mov byte [ebp + eax - 0x100c], 0xd
mov byte [ebp + eax - 0x100b], 0xa
add esp, 0xc
mov byte [ebp + eax - 0x100a], bl
inc eax
inc eax
lea ecx, [ebp - 0xc]
push ebx
push ecx
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0x118]
mov eax, dword [eax]
mov dword [esi + 0x118], eax
jmp 0x10020373
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x1002046e
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10020537
Capabilities:
Get common file path

Disassembly:
mov eax, 0x100549e0
call fcn.10052270
sub esp, 0x308
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x214]
push edi
push ecx
mov eax, dword [eax]
lea ecx, [ebp - 0x314]
mov edi, dword [sym.imp.MSVCRT.dll__splitpath]
push ecx
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
call edi
add esp, 0x14
cmp byte [ebp - 0x14], 0
jne 0x10020684
mov eax, dword [0x10070040]
push ebx
push esi
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
cmp byte [ebp + 0xc], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, 0x200
push esi
je 0x100205ba
push esi
lea ecx, [ebp - 0x10]
call fcn.100037f3
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.10003892
jmp 0x10020600
lea ecx, [ebp - 0x10]
call fcn.100037f3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.10003892
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.10020fd6
push 0x2f
lea ecx, [ebp - 0x10]
call fcn.10020fd6
mov esi, 0x10071574
mov eax, esi
test eax, eax
je 0x100205f6
push esi
call ebx
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.10009b8e
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.10003892
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call edi
add esp, 0x14
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call fcn.100036ad
lea eax, [ebp - 0x114]
test eax, eax
je 0x1002064a
lea eax, [ebp - 0x114]
push eax
call ebx
lea ecx, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.10009b8e
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
push eax
push dword [eax - 8]
call fcn.10009b8e
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.10003640
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1000349d
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret
Function at 0x100206c3
Capabilities:
Get common file path

Disassembly:
mov eax, 0x10054a37
call fcn.10052270
sub esp, 0x310
mov eax, dword [0x10070040]
and dword [ebp - 0x10], 0
push ebx
push esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], eax
mov esi, 0x200
lea ecx, [ebp - 0x18]
push esi
push esi
mov byte [ebp - 4], 2
call fcn.100037f3
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.10003892
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.MSVCRT.dll__splitpath]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x11c]
add esp, 0x14
test eax, eax
jne 0x1002074a
xor eax, eax
jmp 0x10020753
lea eax, [ebp - 0x11c]
push eax
call ebx
lea ecx, [ebp - 0x11c]
push edi
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.100035e4
mov edi, str..ini
mov eax, edi
test eax, eax
je 0x10020772
push edi
call ebx
push edi
push eax
lea ecx, [ebp - 0x18]
call fcn.10009b8e
cmp byte [ebp + 0xc], 0
pop edi
je 0x100207ab
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
call fcn.100036ad
lea eax, [ebp - 0x21c]
test eax, eax
je 0x100207a2
lea eax, [ebp - 0x21c]
push eax
call ebx
lea ecx, [ebp - 0x21c]
push ecx
jmp 0x100207e9
push esi
lea ecx, [ebp - 0x14]
call fcn.100037f3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.10003892
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.10020fd6
push 0x2f
lea ecx, [ebp - 0x14]
call fcn.10020fd6
mov esi, 0x10071574
mov eax, esi
test eax, eax
je 0x100207e8
push esi
call ebx
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.10009b8e
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push dword [eax - 8]
call fcn.10009b8e
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
cmp dword [ecx - 0xc], 0
lea eax, [ecx - 0xc]
jl 0x1002081b
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x1002082a
mov eax, dword [0x10070040]
push ecx
mov ecx, esi
mov dword [esi], eax
call fcn.100036ad
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.1000349d
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.1000349d
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1002145e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
cmp dword [ebp + 8], 0x80000000
push ebx
push esi
push edi
jne 0x100214ba
and byte [ebp - 0x10c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
push dword [ebp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.SOFTWAREClasses
push 0x10070058
lea eax, [ebp - 0x10c]
push 0x103
push eax
mov dword [ebp + 8], reloc.OLEAUT32.dll_SysReAllocString
call fcn.10001f81
add esp, 0x14
lea ebx, [ebp - 0x10c]
jmp 0x100214bd
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
call fcn.1000a78c
xor esi, esi
push 4
cmp dword [ebp - 4], esi
pop edi
je 0x10021512
cmp dword [ebp + 0x14], 1
mov dword [ebp - 8], edi
jne 0x100214e4
mov dword [ebp - 8], 0x104
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x14]
push dword [ebp + 0x18]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.10012e32
test eax, eax
jne 0x10021502
push 1
pop esi
push dword [ebp - 4]
call fcn.1000ade2
test esi, esi
jne 0x1002159f
cmp dword [ebp + 0x14], 1
mov dword [ebp + 0xc], edi
jne 0x10021522
mov dword [ebp + 0xc], 0x104
lea eax, [ebp + 0xc]
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
push eax
lea eax, [ebp + 0x14]
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x10021590
mov eax, dword [ebp + 0xc]
cmp eax, 0x104
jbe 0x10021575
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
test edi, edi
je 0x10021590
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0x14]
push edi
push eax
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x10021579
push edi
call fcn.10052200
pop ecx
xor eax, eax
jmp 0x100215a2
push 0x103
push edi
push dword [ebp + 0x18]
call sub.MSVCRT.dll_memcpy
push edi
call fcn.10052200
add esp, 0x10
cmp dword [ebp + 0x14], 1
jne 0x1002159f
push dword [ebp + 0x18]
call fcn.1001db0e
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100215a7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0x80000000
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push edi
mov dword [ebp + 0x1c], ebx
jne 0x1002160a
and byte [ebp - 0x108], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
push dword [ebp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.SOFTWAREClasses
push 0x10070058
lea eax, [ebp - 0x108]
push 0x103
push eax
mov dword [ebp + 8], reloc.OLEAUT32.dll_SysReAllocString
call fcn.10001f81
lea eax, [ebp - 0x108]
add esp, 0x14
mov dword [ebp + 0xc], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000a78c
test eax, eax
jne 0x10021649
lea eax, [ebp + 0x1c]
xor esi, esi
push eax
lea eax, [ebp + 0x14]
push dword [ebp + 0x18]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.10012e32
test eax, eax
jne 0x1002163d
push 1
pop esi
push dword [ebp - 4]
call fcn.1000ade2
test esi, esi
jne 0x100216b8
lea eax, [ebp + 0x1c]
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueA]
push eax
lea eax, [ebp + 0x14]
push dword [ebp + 0x18]
mov dword [ebp + 0x1c], ebx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
je 0x100216b8
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
jbe 0x100216a0
inc eax
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
test edi, edi
je 0x100216b8
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x14]
push edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
je 0x100216a4
push edi
call fcn.10052200
pop ecx
xor eax, eax
jmp 0x100216bb
dec ebx
push ebx
push edi
push dword [ebp + 0x18]
call sub.MSVCRT.dll_memcpy
push edi
call fcn.10052200
add esp, 0x10
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10024a14
Capabilities:
Check if file exists
Read file on windows

Disassembly:
mov eax, 0x1005538f
call fcn.10052270
sub esp, 0x24
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ebx
push 1
pop edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x10024a50
mov ecx, dword [ebp + 8]
push 0x10078b14
call fcn.10024bc2
mov dword [ebp - 0x10], edi
jmp 0x10024a72
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
call fcn.10024c9d
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x10024a85
mov ecx, dword [ebp + 8]
push 0x10078b14
call fcn.10024bc2
mov dword [ebp - 0x10], edi
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.1000349d
mov eax, dword [ebp + 8]
jmp 0x10024bb2
push esi
mov dword [ebp - 0x18], ebx
push ebx
push ebx
push 3
push ebx
push edi
push SysReAllocString
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x10024b78
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 0x24]
push ebx
push ecx
lea ecx, [ebp - 0x30]
push 0xc
push ecx
push eax
call esi
test eax, eax
je 0x10024b6f
push ebx
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10024b6f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
cmp eax, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
je 0x10024af3
cmp eax, dword [ebp - 0x20]
jae 0x10024b6f
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push dword [ebp - 0x28]
mov edi, eax
push ebx
push edi
call sub.MSVCRT.dll_memset
add esp, 0x10
lea eax, [ebp - 0x24]
push ebx
push eax
push dword [ebp - 0x28]
push edi
push dword [ebp - 0x1c]
call esi
test eax, eax
je 0x10024b65
xor esi, esi
cmp dword [ebp - 0x28], ebx
jbe 0x10024b5c
mov eax, dword [ebp - 0x14]
xor edx, edx
mov ecx, dword [eax + 8]
mov eax, esi
div ecx
cmp ecx, edx
mov dword [ebp - 0x20], edx
jb 0x10024b4c
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 4], ebx
je 0x10024b4c
call fcn.1000a19a
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x20]
jmp 0x10024b51
mov eax, 0x1005d58c
mov al, byte [eax]
xor byte [esi + edi], al
inc esi
cmp esi, dword [ebp - 0x28]
jb 0x10024b21
push edi
lea ecx, [ebp - 0x18]
call fcn.10024c16
push edi
call fcn.10052200
pop ecx
push 1
pop edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp + 8]
cmp ecx, ebx
mov dword [esi], ecx
je 0x10024b91
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 1
je 0x10024ba4
call fcn.1002494a
mov dword [ebp - 0x18], ebx
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.1000349d
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x10025f94
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov eax, 0x100556f0
call fcn.10052270
sub esp, 0x10c
and byte [ebp - 0x118], 0
push ebx
push esi
push edi
mov ebx, ecx
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x118]
push str.msscript.ocx
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x1002606f
xor esi, esi
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x14]
push eax
mov dword [ebp - 4], esi
call fcn.100034da
lea eax, [ebp - 0x10]
push esi
push eax
mov byte [ebp - 4], 1
call fcn.10025eff
sub esp, 0x10
mov esi, eax
mov edi, esp
lea eax, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call fcn.10026142
and byte [ebp - 4], 0
add esp, 0x1c
lea ecx, [ebp - 0x14]
call fcn.1000349d
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.10027932
test eax, eax
jge 0x10026059
cmp eax, 0x80004002
je 0x10026059
push eax
call fcn.100527c4
cmp dword [ebx], 0
jne 0x10026073
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x1002606f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x100260de
lea edi, [ebx + 0x10]
push str.JScript
push edi
call sub.MSVCRT.dll_strcpy
cmp dword [ebx], 0
pop ecx
pop ecx
jne 0x10026092
push 0x80004003
call fcn.100527c4
mov esi, dword [ebx]
push 0
push esi
mov eax, dword [esi]
call dword [eax + 0x40]
test eax, eax
jge 0x100260ac
push 0x10074128
push esi
push eax
call fcn.100527d2
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push edi
call fcn.10024bc2
and byte [ebp - 4], 0
mov ecx, ebx
call fcn.10027584
mov ecx, eax
call fcn.100260ed
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x100260db
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x1002e8d1
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
or edx, 0xffffffff
cmp edi, edx
jne 0x1002e8fe
mov eax, edx
jmp 0x1002e929
lea eax, [ebp + 8]
push ebx
push eax
push edi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push esi
push esi
push dword [ebp + 8]
call fcn.100525e0
xor ecx, ecx
add eax, ebx
adc edx, ecx
pop ebx
pop edi
pop esi
pop ebp
ret 4

Function at 0x1002f1ea
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x1002f308
push 0x2e
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__mbsrchr]
pop ecx
cmp eax, ebx
pop ecx
je 0x1002f308
push str..dll
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x1002f308
push edi
mov ecx, 0x81
lea edi, [ebp - 0x35f]
mov byte [ebp - 0x360], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x157]
mov byte [ebp - 0x158], bl
push 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
mov dword [ebp - 0x54], ebx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x208
lea eax, [ebp - 0x360]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x158]
push 0x103
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp - 0x158]
push eax
push str.regsvr32.exe__u__s__s
lea eax, [ebp - 0x360]
push 0x207
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0x10]
or dword [ebp - 0x28], 1
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x360]
push ebx
push eax
push ebx
mov word [ebp - 0x24], bx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x1002f308
push esi
push 0x7d0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
pop esi
pop ebx
leave
ret 4