Function at 0x412a50
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425668
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x434304]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, ecx
mov ecx, dword [0x4357a0]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x412aa6
mov eax, dword [eax]
xor edx, edx
mov ecx, eax
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x34], dx
lea esi, [ecx + 2]
jmp 0x412ac0
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x412ac0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x34]
call fcn.0040b550
mov eax, esi
push eax
mov edx, edi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.0040a290
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x20], 8
jb 0x412b02
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00416027
add esp, 4
mov dword [ebp - 0x38], ebx
mov ecx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x4c]
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x412db7
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
push 0x2c
sub esp, 0x1c
lea ecx, [ebx*8]
sub ecx, ebx
lea eax, [edi + ecx*4]
mov ecx, esp
mov dword [ebp - 0x58], esp
mov byte [ebp - 4], 3
push edx
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], edx
xor edi, edi
or eax, 0xffffffff
lea esi, [ebp - 0x28]
mov word [ecx], di
call fcn.0040b130
mov ecx, esi
call fcn.0040a480
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
mov ecx, edi
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 0x20
cmp eax, 5
je 0x412c1f
test ebx, ebx
je 0x412bd6
mov esi, ebx
nop
cmp esi, edi
je 0x412bcd
cmp dword [esi + 0x14], 8
jb 0x412bb5
mov ecx, dword [esi]
push ecx
call fcn.00416027
add esp, 4
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], dx
add esi, 0x1c
jmp 0x412ba0
push ebx
call fcn.00416027
add esp, 4
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x412dfc
mov esi, edi
cmp esi, dword [ebp - 0x48]
je 0x412c11
cmp dword [esi + 0x14], 8
jb 0x412bf9
mov eax, dword [esi]
push eax
call fcn.00416027
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
add esi, 0x1c
jmp 0x412be3
push edi
call fcn.00416027
add esp, 4
jmp 0x412dfc
cmp dword [ebx + 0x84], 8
lea eax, [ebx + 0x70]
jb 0x412c2d
mov eax, dword [eax]
push eax
call fcn.0041628a
lea esi, [ebx + 0x38]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 0x10]
mov edi, 1
add esp, 4
mov dword [0x4357a0], 0x80000002
cmp eax, edi
jae 0x412c58
mov edi, eax
test edi, edi
je 0x412c9d
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x412c64
mov edx, dword [esi]
jmp 0x412c66
mov edx, esi
cmp ecx, 8
jb 0x412c6f
mov ecx, dword [esi]
jmp 0x412c71
mov ecx, esi
sub eax, edi
add eax, eax
push eax
lea edx, [edx + edi*2]
push edx
push ecx
call fcn.004166f0
mov eax, dword [esi + 0x10]
sub eax, edi
add esp, 0xc
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], eax
jb 0x412c95
mov ecx, dword [esi]
jmp 0x412c97
mov ecx, esi
xor edx, edx
mov word [ecx + eax*2], dx
mov ecx, dword [ebx + 0x48]
mov eax, dword [esi + 0x10]
dec ecx
mov edi, 1
cmp eax, ecx
jae 0x412cb7
push str.invalid_string_position
call fcn.0041551c
sub eax, ecx
cmp eax, 1
jae 0x412cc4
mov edi, eax
test edi, edi
je 0x412d12
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x412cd0
mov ebx, dword [esi]
jmp 0x412cd2
mov ebx, esi
cmp edx, 8
jb 0x412cdb
mov edx, dword [esi]
jmp 0x412cdd
mov edx, esi
sub eax, edi
add eax, eax
push eax
lea eax, [ecx + edi]
lea eax, [ebx + eax*2]
push eax
lea ecx, [edx + ecx*2]
push ecx
call fcn.004166f0
mov eax, dword [esi + 0x10]
sub eax, edi
add esp, 0xc
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], eax
jb 0x412d07
mov ecx, dword [esi]
jmp 0x412d09
mov ecx, esi
mov ebx, dword [ebp - 0x28]
xor edx, edx
mov word [ecx + eax*2], dx
cmp dword [esi + 0x14], 8
jb 0x412d1a
mov esi, dword [esi]
mov ecx, dword [0x4357a4]
mov edx, dword [0x4357a0]
push 0
lea eax, [ebp - 0x3c]
push eax
push 0
push ecx
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetServicesBTHPORTParametersSupportedServices
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor edi, edi
cmp eax, edi
jne 0x412d65
mov ecx, dword [ebp - 0x3c]
push 4
lea eax, [ebp - 0x54]
push eax
push 4
push edi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
mov esi, ebx
jmp 0x412d70
cmp esi, dword [ebp - 0x24]
je 0x412d9a
cmp dword [esi + 0x14], 8
jb 0x412d86
mov eax, dword [esi]
push eax
call fcn.00416027
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], cx
add esi, 0x1c
jmp 0x412d70
push ebx
call fcn.00416027
add esp, 4
inc dword [ebp - 0x38]
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
jmp 0x412b05
xor ebx, ebx
cmp edi, ebx
je 0x412df3
mov esi, edi
nop
cmp esi, dword [ebp - 0x48]
je 0x412dea
cmp dword [esi + 0x14], 8
jb 0x412dd6
mov edx, dword [esi]
push edx
call fcn.00416027
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
add esi, 0x1c
jmp 0x412dc0
push edi
call fcn.00416027
add esp, 4
mov ecx, dword [ebp - 0x50]
mov dword [0x4357a0], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0041558a
mov esp, ebp
pop ebp
ret