Function at 0x10002fc0
Capabilities:
Delete file
Delete registry value
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10010230
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x1003a004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
sub esp, 0x14
mov edi, 0x13
call fcn.10001890
add esp, 0x14
cmp al, 1
jne 0x100032ae
cmp dword [esi + 0x14], 8
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x14], esi
jb 0x10003020
mov eax, dword [esi]
mov ebx, eax
mov dword [ebp - 0x14], eax
jmp 0x10003022
mov ebx, esi
test edi, edi
je 0x100030f4
push pe_nt_image_headers32
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.10005b30
add esp, 0xc
mov ecx, 0x10037fa0
mov edx, pe_nt_image_headers32
nop word [eax + eax]
movzx eax, word [ecx]
cmp ax, dx
jae 0x100030a1
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x130], 1
cmp ecx, 0x10037fa2
jne 0x10003050
or ecx, 0xffffffff
lea eax, [edi - 1]
cmp eax, ecx
cmovb ecx, eax
lea ecx, [ebx + ecx*2]
nop dword [eax]
movzx eax, word [ecx]
cmp ax, dx
jae 0x10003092
cmp byte [ebp + eax - 0x130], 0
jne 0x1000309b
cmp ecx, ebx
je 0x100030f4
sub ecx, 2
jmp 0x10003080
sub ecx, ebx
sar ecx, 1
jmp 0x100030f7
or ecx, 0xffffffff
lea eax, [edi - 1]
cmp eax, ecx
cmovb ecx, eax
lea ecx, [ebx + ecx*2]
movzx edi, word [ecx]
mov eax, 0x2e
mov esi, 0x10037fa0
lea edx, [eax - 0x2d]
cmp ax, di
je 0x100030eb
cmp edx, 1
je 0x100030da
movzx eax, word [esi + 2]
add esi, 2
dec edx
cmp ax, di
jne 0x100030c4
test esi, esi
jne 0x100030eb
cmp ecx, ebx
je 0x100030e3
sub ecx, 2
jmp 0x100030af
mov esi, dword [ebp - 0x18]
or ecx, 0xffffffff
jmp 0x100030f7
mov esi, dword [ebp - 0x18]
sub ecx, ebx
sar ecx, 1
jmp 0x100030f7
or ecx, 0xffffffff
cmp dword [esi + 0x14], 8
mov eax, dword [ebp - 0x14]
lea eax, [eax + ecx*2]
mov ecx, esi
jb 0x10003107
mov ecx, dword [esi]
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
cmp ecx, eax
jne 0x10003120
mov ecx, 7
mov dword [ebp - 0x1c], ecx
jmp 0x10003134
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x30]
call fcn.10001e40
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
push 0
push 0x80
push 1
push 0
cmp ecx, 8
lea eax, [ebp - 0x30]
push 0
cmovae eax, edx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x10003207
cmp esi, 0xffffffff
je 0x10003207
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x20200
push 0x10017be8
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x100031e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x18]
xor esi, esi
cmp dword [ecx + 0x14], 8
jb 0x100031b1
mov ecx, dword [ecx]
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push ecx
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, 1
jne 0x100031ce
lea edi, [eax + 8]
jmp 0x10003200
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 0xf
jmp 0x10003200
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov edi, 0xe
cmp edi, 9
je 0x1000326c
jmp 0x1000320c
mov edi, 0xd
cmp dword [0x10089054], 8
lea ecx, [ebp - 0x14]
push ecx
push 0x20006
mov eax, 0x10089040
mov dword [ebp - 0x14], 0
cmovae eax, dword [0x10089040]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000325e
cmp dword [0x1008924c], 8
mov eax, 0x10089238
cmovae eax, dword [0x10089238]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1000326c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10003278
cmp esi, 0xffffffff
je 0x10003278
push esi
call ebx
mov ecx, dword [ebp - 0x1c]
cmp ecx, 8
jb 0x100032ae
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100032a4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100032cc
push ecx
push edx
call fcn.100045a4
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000443f
mov esp, ebp
pop ebp
ret
call fcn.1000779c
int3