Function at 0x472330
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a38b
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [0x5512c0]
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 eax, 0x104
mov dword [ebp - 0x638], eax
mov dword [ebp - 0x640], eax
lea eax, [ebp - 0x62c]
push eax
mov ecx, 0x51c540
call fcn.004594a0
lea ecx, [ebp - 0x630]
push ecx
push 0
push SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x4723d2
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x62c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4723c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80004005
jmp 0x47259e
mov edx, dword [ebp - 0x630]
lea ecx, [ebp - 0x634]
push ecx
push 0x20019
push 0
push str.htmlfile_shellopencommand
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x472415
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x62c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4723bc
lea ecx, [ebp - 0x640]
push ecx
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x644]
push eax
mov eax, dword [ebp - 0x634]
push 0
lea ecx, [ebp - 0x638]
push ecx
lea edx, [ebp - 0x628]
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp word [ebp - 0x216], 0x22
lea ebx, [ebp - 0x216]
je 0x4724e3
lea ecx, [ecx]
mov ecx, dword [ebp - 0x62c]
mov edi, dword [ecx - 0xc]
movzx eax, word [ebx]
lea esi, [edi + 1]
mov dword [ebp - 0x63c], eax
test esi, esi
js 0x4725ba
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x4724b1
mov eax, esi
lea ecx, [ebp - 0x62c]
call fcn.00459610
mov ecx, dword [ebp - 0x62c]
mov dx, word [ebp - 0x63c]
mov word [ecx + edi*2], dx
mov eax, dword [ebp - 0x62c]
cmp esi, dword [eax - 8]
jg 0x4725ba
mov dword [eax - 0xc], esi
mov ecx, dword [ebp - 0x62c]
xor eax, eax
add ebx, 2
mov word [ecx + esi*2], ax
cmp word [ebx], 0x22
jne 0x472470
push 1
push 0x51c540
lea ebx, [ebp - 0x62c]
call fcn.0045b2d0
mov eax, dword [ebp - 0x62c]
cmp dword [eax - 4], 1
jle 0x472513
mov edx, dword [eax - 0xc]
push edx
mov eax, ebx
push eax
call fcn.00459540
mov eax, dword [ebp - 0x62c]
push 1
push 0
push str.http:__www.baofeng.com_permit.html
push eax
push 0x51bffc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x62c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004e68a0
add esp, 8
test eax, eax
js 0x4725ba
mov ecx, dword [ebp - 0x62c]
cmp eax, dword [ecx - 8]
jg 0x4725ba
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x62c]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp - 0x634]
push eax
call esi
mov ecx, dword [ebp - 0x630]
push ecx
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x62c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47259c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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.004e3e00
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0045a310
int3