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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ace7b
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [0x4e52d0]
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, 0x4bd9b8
call fcn.00402120
lea ecx, [ebp - 0x630]
push ecx
push 0
push SysReAllocStringLen
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x43e672
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 0x43e668
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80004005
jmp 0x43e83e
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 0x43e6b5
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 0x43e65c
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 0x43e783
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 0x43e85a
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0x43e751
mov eax, esi
lea ecx, [ebp - 0x62c]
call fcn.00402280
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 0x43e85a
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 0x43e710
push 1
push 0x4bd9b8
lea ebx, [ebp - 0x62c]
call fcn.00409220
mov eax, dword [ebp - 0x62c]
cmp dword [eax - 4], 1
jle 0x43e7b3
mov edx, dword [eax - 0xc]
push edx
mov eax, ebx
push eax
call fcn.004021c0
mov eax, dword [ebp - 0x62c]
push 1
push 0
push str.http:__home.baofeng.com_permit.html
push eax
push 0x4bb0d4
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.004923b5
add esp, 8
test eax, eax
js 0x43e85a
mov ecx, dword [ebp - 0x62c]
cmp eax, dword [ecx - 8]
jg 0x43e85a
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 0x43e83c
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.004912db
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402bc0
int3