Function at 0x10025f20
Capabilities:
Contain obfuscated stackstrings
Delete file
Delete registry value
Get common file path
Parse pe header

Disassembly:
push 0xffffffffffffffff
push 0x1003b546
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x10043330]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10043330]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
cmp byte [esi + 0x6c], bl
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
je 0x100260ce
mov dword [esp + 0x38], 7
lea ecx, [esp + 0x20]
mov dword [esp + 0x460], ebx
call fcn.10028dd0
lea edx, [esi + 0x16e]
mov eax, edx
lea esi, [eax + 2]
jmp 0x10025fa0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10025fa0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.10003120
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x10025fc9
lea eax, [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
push 0x1fe
lea eax, [esp + 0x5a]
push ebx
push eax
mov word [esp + 0x60], bx
call fcn.1002fb20
add esp, 0xc
push 0x100
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x54]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10026001
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x58]
push edx
lea esi, [esp + 0x28]
call fcn.100031f0
push 0xa
push str._system32_
mov ecx, esi
call fcn.10003120
mov ebp, dword [esp + 0x1c]
lea edx, [ebp + 0xee]
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10026040
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.10003120
mov eax, dword [esp + 0x24]
mov esi, 8
cmp dword [esp + 0x38], esi
jae 0x1002606d
lea eax, [esp + 0x24]
push eax
call edi
lea eax, [esp + 0x18]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100260a7
mov edx, dword [esp + 0x18]
lea ecx, [ebp + 0x6e]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x460], 0xffffffff
cmp dword [esp + 0x38], esi
jb 0x1002620a
mov ecx, dword [esp + 0x24]
push ecx
call fcn.1002b322
add esp, 4
jmp 0x1002620a
mov ebp, 7
mov dword [esp + 0x38], ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x460], 1
call fcn.10028dd0
push 0xa
push str.AmCore.dll
lea ecx, [esp + 0x28]
call fcn.10003120
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x1002610a
lea eax, [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
push 0x1fe
lea edx, [esp + 0x25a]
push ebx
push edx
mov word [esp + 0x260], bx
call fcn.1002fb20
add esp, 0xc
push 0x100
lea eax, [esp + 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x254]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10026150
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x258]
push ecx
lea esi, [esp + 0x28]
call fcn.100031f0
push 0xa
push str._system32_
mov ecx, esi
call fcn.10003120
push 0xb
push str.winsevr.dat
mov ecx, esi
call fcn.10003120
mov eax, dword [esp + 0x24]
mov esi, 8
cmp dword [esp + 0x38], esi
jae 0x100261a0
lea eax, [esp + 0x24]
push eax
call edi
lea edx, [esp + 0x18]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100261db
mov eax, dword [esp + 0x18]
push str.ProgramData
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x460], 0xffffffff
cmp dword [esp + 0x38], esi
jb 0x100261f9
mov edx, dword [esp + 0x24]
push edx
call fcn.1002b322
add esp, 4
mov dword [esp + 0x38], ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
mov al, 0x2d
mov cl, 0x37
push 0x124
mov byte [esp + 0x44], al
mov byte [esp + 0x4a], al
mov byte [esp + 0x50], al
mov dl, 0x57
mov byte [esp + 0x49], cl
mov byte [esp + 0x4c], cl
mov cl, 0x30
lea eax, [esp + 0x5c]
push ebx
push eax
mov byte [esp + 0x48], 0x41
mov byte [esp + 0x49], 0x4d
mov byte [esp + 0x4a], 0x54
mov byte [esp + 0x4b], 0x45
mov byte [esp + 0x4d], dl
mov byte [esp + 0x4e], 0x38
mov byte [esp + 0x4f], 0x34
mov byte [esp + 0x50], 0x36
mov byte [esp + 0x53], 0x5a
mov byte [esp + 0x55], cl
mov byte [esp + 0x56], 0x54
mov byte [esp + 0x57], 0x32
mov byte [esp + 0x59], 0x53
mov byte [esp + 0x5a], 0x50
mov byte [esp + 0x5b], dl
mov byte [esp + 0x5c], cl
mov byte [esp + 0x5d], 0x31
mov byte [esp + 0x5e], bl
mov dword [esp + 0x60], ebx
call fcn.1002fb20
add esp, 0xc
lea edx, [esp + 0x54]
lea ecx, [esp + 0x3c]
mov ebx, ebp
call fcn.1001f8b0
test al, al
jne 0x100262c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xe6a
push str.RegByWan::ReBuildRegInfo__:__CRT:_d_Error_Code:_d_r_n
lea esi, [ebp + 0x1f0]
call fcn.10028b30
add esp, 0xc
xor al, al
jmp 0x100262ca
mov al, 1
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.1002b6af
add esp, 0x450
ret