Function at 0x4fa200
Capabilities:
Create process on windows
Delete file
Move file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a712
mov eax, dword fs:[0]
push eax
sub esp, 0x4c4
mov eax, dword [0x59a0a0]
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 edi, ecx
mov dword [ebp - 0x480], edi
mov dword [ebp - 0x494], 0
mov dword [ebp - 0x490], 0
mov dword [ebp - 0x48c], 0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0049e130
add esp, 8
mov ecx, esp
push str.TBoxDrv
call fcn.00401ff0
call fcn.004faad0
lea eax, [ebp - 0x488]
mov dword [ebp - 0x488], 0
push eax
push 0x2001f
push 0
push 0x56df7c
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or esi, 0xffffffff
test eax, eax
jne 0x4fa8dc
mov ebx, dword [ebp - 0x488]
mov dword [ebp - 0x490], eax
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x494], ebx
push eax
lea eax, [ebp - 0x484]
mov dword [ebp - 0x488], 0x208
push eax
push 0
push 0x56df54
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4fa8dc
mov eax, dword [ebp - 0x484]
cmp eax, 1
je 0x4fa310
cmp eax, 2
jne 0x4fa8dc
mov eax, dword [ebp - 0x488]
test eax, eax
je 0x4fa334
test al, 1
jne 0x4fa8dc
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x4fa33d
jmp 0x4fa8dc
xor eax, eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x47c]
call fcn.00401ff0
push 1
lea eax, [ebp - 0x484]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x47c]
call fcn.004032e0
mov ecx, 0x56de14
mov eax, dword [eax]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4fa396
test dx, dx
je 0x4fa392
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4fa396
add eax, 4
add ecx, 4
test dx, dx
jne 0x4fa370
xor eax, eax
jmp 0x4fa39b
sbb eax, eax
or eax, 1
mov ecx, dword [ebp - 0x484]
test eax, eax
mov eax, esi
setne bl
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4fa3d8
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4fa3d4
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4fa3d8
mov ecx, edx
call esi
test bl, bl
je 0x4fa3ee
push 1
push 0x56dfb4
lea ecx, [ebp - 0x47c]
call fcn.00402320
push 9
push 0x56dfb8
lea ecx, [ebp - 0x47c]
call fcn.00402320
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov eax, dword [ebp - 0x47c]
mov dword [ebp - 0x238], 0
cmp word [eax], 0
jne 0x4fa42d
xor edx, edx
jmp 0x4fa441
mov edx, eax
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4fa432
sub edx, esi
sar edx, 1
push edx
push eax
lea ecx, [ebp - 0x248]
call fcn.00405040
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x230]
push 2
xor eax, eax
mov dword [ebp - 0x21c], 7
push 0x56dfa8
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00405040
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 3
call fcn.00429390
mov byte [ebp - 4], 4
mov eax, dword [edi + 0x490]
mov dword [ebp - 0x3e0], eax
mov eax, dword [0x59fadc]
mov dword [ebp - 0x360], eax
mov eax, dword [edi + 0x494]
mov dword [ebp - 0x35c], eax
mov eax, dword [edi + 0x498]
mov dword [ebp - 0x358], eax
mov eax, dword [0x59fae0]
mov dword [ebp - 0x348], eax
mov eax, dword [edi + 0x4a0]
mov dword [ebp - 0x344], eax
lea eax, [edi + 0x4c0]
push eax
mov dword [ebp - 0x478], 0x64
mov dword [ebp - 0x470], 0x10
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ebx, dword [edi + 0x478]
mov dword [ebp - 0x340], eax
test ebx, ebx
je 0x4fa563
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fa510
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x4fa563
lea edi, [ecx + ecx]
mov eax, edi
call fcn.0049bc00
mov esi, esp
test esi, esi
je 0x4fa55d
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [ebp - 0x480]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x4fa565
mov edi, dword [ebp - 0x480]
xor esi, esi
cmp byte [esi], 0
jne 0x4fa56e
xor ecx, ecx
jmp 0x4fa57c
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4fa573
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x3d8]
call fcn.00406560
push ecx
lea eax, [ebp - 0x478]
push eax
call fcn.0044c609
mov ecx, eax
call fcn.0042af00
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 3
call fcn.0042a2e0
push 0x38
lea eax, [ebp - 0x4cc]
mov dword [ebp - 0x480], 0
push 0
push eax
call fcn.0049e130
add esp, 0xc
mov dword [ebp - 0x4d0], 0x3c
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
mov dword [ebp - 0x4c8], 0
cmovae eax, dword [ebp - 0x248]
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x4c0], eax
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
mov dword [ebp - 0x4bc], eax
lea eax, [ebp - 0x4d0]
push eax
mov dword [ebp - 0x4c4], 0x555188
mov dword [ebp - 0x4b4], 0
mov dword [ebp - 0x4cc], 0x440
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4fa64a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4fa671
push 0xffffffffffffffff
push dword [ebp - 0x498]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x480]
push eax
push dword [ebp - 0x498]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [ebp - 0x480]
lea ecx, [ebp - 0x478]
call fcn.00429390
mov byte [ebp - 4], 5
mov eax, dword [edi + 0x490]
mov dword [ebp - 0x3e0], eax
mov eax, dword [0x59fadc]
mov dword [ebp - 0x360], eax
mov eax, dword [edi + 0x494]
mov dword [ebp - 0x35c], eax
mov eax, dword [edi + 0x498]
mov dword [ebp - 0x358], eax
mov eax, dword [0x59fae0]
mov dword [ebp - 0x348], eax
mov eax, dword [edi + 0x4a0]
mov dword [ebp - 0x344], eax
lea eax, [edi + 0x4c0]
push eax
mov dword [ebp - 0x478], 0x64
mov dword [ebp - 0x470], 0xb
mov dword [ebp - 0x474], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ebx, dword [edi + 0x478]
mov dword [ebp - 0x340], eax
test ebx, ebx
je 0x4fa749
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fa702
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x4fa749
lea edi, [ecx + ecx]
mov eax, edi
call fcn.0049bc00
mov esi, esp
test esi, esi
je 0x4fa749
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x4fa74b
xor esi, esi
cmp byte [esi], 0
jne 0x4fa754
xor ecx, ecx
jmp 0x4fa769
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4fa760
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x3d8]
call fcn.00406560
push ecx
lea eax, [ebp - 0x478]
push eax
call fcn.0044c609
mov ecx, eax
call fcn.0042af00
lea ecx, [ebp - 0x478]
call fcn.0042a2e0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x4fa7fb
mov ecx, dword [ebp - 0x230]
inc eax
cmp eax, 0x7fffffff
jbe 0x4fa7b7
call fcn.004a4e3e
add eax, eax
cmp eax, 0x1000
jb 0x4fa7f2
test byte [ebp - 0x230], 0x1f
je 0x4fa7ce
call fcn.004a4e3e
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4fa7da
call fcn.004a4e3e
sub ecx, eax
cmp ecx, 4
jae 0x4fa7e6
call fcn.004a4e3e
cmp ecx, 0x23
jbe 0x4fa7f0
call fcn.004a4e3e
mov ecx, eax
push ecx
call fcn.0049aa1d
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x230], ax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
cmp eax, 8
jb 0x4fa87e
mov ecx, dword [ebp - 0x248]
inc eax
cmp eax, 0x7fffffff
jbe 0x4fa83a
call fcn.004a4e3e
add eax, eax
cmp eax, 0x1000
jb 0x4fa875
test byte [ebp - 0x248], 0x1f
je 0x4fa851
call fcn.004a4e3e
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4fa85d
call fcn.004a4e3e
sub ecx, eax
cmp ecx, 4
jae 0x4fa869
call fcn.004a4e3e
cmp ecx, 0x23
jbe 0x4fa873
call fcn.004a4e3e
mov ecx, eax
push ecx
call fcn.0049aa1d
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
mov byte [ebp - 4], al
or esi, 0xffffffff
mov ecx, dword [ebp - 0x47c]
mov word [ebp - 0x248], ax
add ecx, 0xfffffff0
mov dword [ebp - 0x238], 0
mov eax, esi
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4fa8dc
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4fa8d5
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4fa8d9
mov ecx, edx
call esi
or esi, 0xffffffff
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x47c]
call fcn.00401ff0
push 1
lea eax, [ebp - 0x484]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x47c]
call fcn.004032e0
mov ecx, 0x56dfb0
mov eax, dword [eax]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4fa936
test dx, dx
je 0x4fa932
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4fa936
add eax, 4
add ecx, 4
test dx, dx
jne 0x4fa910
xor eax, eax
jmp 0x4fa93b
sbb eax, eax
or eax, 1
mov ecx, dword [ebp - 0x484]
test eax, eax
mov eax, esi
setne bl
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4fa978
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4fa974
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4fa978
mov ecx, edx
call esi
test bl, bl
je 0x4fa98e
push 1
push 0x56dfe0
lea ecx, [ebp - 0x47c]
call fcn.00402320
push 0xb
push 0x56dfe4
lea ecx, [ebp - 0x47c]
call fcn.00402320
call fcn.00401980
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4fa9bc
push 0x80004005
call fcn.00401b40
mov eax, dword [edx]
mov esi, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4fa9d1
lock inc dword [edx + 0x14]
lea eax, [edx + 8]
jmp 0x4fa9d5
mov ecx, edx
call esi
add eax, 0x10
mov dword [ebp - 0x480], eax
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push dword [ebp - 0x47c]
lea eax, [ebp - 0x480]
push str._s._d
push eax
call fcn.004023f0
mov esi, dword [ebp - 0x480]
add esp, 0x10
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
push esi
push dword [ebp - 0x47c]
call edi
push 4
push 0
push esi
call edi
or ebx, 0xffffffff
mov byte [ebp - 4], 6
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4faa5a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4faa58
mov eax, dword [ecx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call edi
jmp 0x4faa60
call edx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x47c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4faa96
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4faa92
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x4faa96
mov ecx, edx
call esi
mov eax, dword [ebp - 0x494]
test eax, eax
je 0x4faaa7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea esp, [ebp - 0x4e0]
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.0049aa22
mov esp, ebp
pop ebp
ret