Function at 0x1002f60
Capabilities:
Contain obfuscated stackstrings
Manipulate boot configuration
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x1011024]
and dword [ebp - 0x230], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x20]
push edi
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 0x14]
push 0x7e
pop ecx
mov dword [ebp - 0x240], eax
xor eax, eax
lea edi, [ebp - 0x22c]
rep stosd dword es:[edi], eax
push 0x10011f8
xor edi, edi
push ebx
mov dword [ebp - 0x234], edi
mov word [ebp - 0x34], 0x43
mov word [ebp - 0x32], 0x44
mov word [ebp - 0x30], 0x45
mov word [ebp - 0x2e], 0x46
mov word [ebp - 0x2c], 0x47
mov word [ebp - 0x2a], 0x48
mov word [ebp - 0x28], 0x49
mov word [ebp - 0x26], 0x4a
mov word [ebp - 0x24], 0x4b
mov word [ebp - 0x22], 0x4c
mov word [ebp - 0x20], 0x4d
mov word [ebp - 0x1e], 0x4e
mov word [ebp - 0x1c], 0x4f
mov word [ebp - 0x1a], 0x50
mov word [ebp - 0x18], 0x51
mov word [ebp - 0x16], 0x52
mov word [ebp - 0x14], 0x53
mov word [ebp - 0x12], 0x54
mov word [ebp - 0x10], 0x55
mov word [ebp - 0xe], 0x56
mov word [ebp - 0xc], 0x57
mov word [ebp - 0xa], 0x58
mov word [ebp - 8], 0x59
mov word [ebp - 6], 0x5a
mov dword [esi], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10031d6
push dword [ebp + 0x18]
push 2
push dword [ebp - 0x23c]
push 0x100
push dword [ebp - 0x238]
push ebx
call fcn.0100e0bc
test eax, eax
jne 0x100309d
push 0x7c
call fcn.0100d783
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.0100d376
call fcn.0100c80a
jmp 0x10031c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c3
je 0x10030b8
cmp eax, 0x50010001
je 0x10030b8
cmp eax, 0xa0010001
jne 0x10030bb
and dword [esi], 0
push ebx
call fcn.0100269c
cmp eax, 1
je 0x10031d1
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x10012c4
lea eax, [ebp - 0x230]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
lea eax, [ebp - 0x230]
push eax
call esi
mov ebx, 0x10011e0
push ebx
lea eax, [ebp - 0x230]
push eax
call esi
push 0x1001534
lea eax, [ebp - 0x230]
push eax
call esi
push ebx
lea eax, [ebp - 0x230]
push eax
call esi
push 0x1001520
lea eax, [ebp - 0x230]
push eax
call esi
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x240]
call edi
lea eax, [ebp - 0x230]
push 0x24
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x100324b
lea ecx, [ebp - 0x230]
sub eax, ecx
mov ecx, dword [ebp - 0x234]
mov cx, word [ebp + ecx*2 - 0x34]
sar eax, 1
mov word [ebp + eax*2 - 0x232], cx
lea eax, [ebp - 0x230]
push 0x100151c
push eax
call dword [sym.imp.msvcrt.dll__wfopen]
test eax, eax
pop ecx
pop ecx
jne 0x1003194
inc dword [ebp - 0x234]
cmp dword [ebp - 0x234], 0x19
jb 0x1003132
jmp 0x1003241
push eax
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
lea eax, [ebp - 0x230]
push 0x180
push eax
call dword [sym.imp.msvcrt.dll__wchmod]
test eax, eax
pop ecx
pop ecx
je 0x100324b
push 0x8b
call fcn.0100d783
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
call fcn.0100d376
xor eax, eax
inc eax
jmp 0x100324d
push ebx
call fcn.0100269c
cmp eax, 1
je 0x10031d1
push 0x1001504
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x230]
push 0x3a
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x100324b
lea ecx, [ebp - 0x230]
sub eax, ecx
mov cx, word [ebp + edi*2 - 0x34]
sar eax, 1
mov word [ebp + eax*2 - 0x232], cx
lea eax, [ebp - 0x230]
push 0x100151c
push eax
call dword [sym.imp.msvcrt.dll__wfopen]
test eax, eax
pop ecx
pop ecx
jne 0x1003194
inc edi
cmp edi, 0x19
jb 0x10031f3
push 0x8a
jmp 0x10031bd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100b77c
leave
ret 0x1c