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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425620
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x434304]
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, dword [0x4357a0]
xor ebx, ebx
mov dword [ebp - 0x4c], eax
mov dword [0x4357a0], 0x80000002
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], ebx
xor ecx, ecx
push 0x26
mov eax, str.00001104_0000_1000_8000_00805F9B34FB
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
call fcn.0040b550
mov ecx, esi
lea edi, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0040b060
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x412eb4
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00416027
add esp, 4
xor eax, eax
mov word [ebp - 0x2c], ax
push 0x26
mov eax, str.00001105_0000_1000_8000_00805F9B34FB
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.0040b550
mov ecx, esi
lea edi, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.0040b060
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x412ef6
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00416027
add esp, 4
xor edx, edx
push 0x26
mov eax, str.00001106_0000_1000_8000_00805F9B34FB
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.0040b550
mov ecx, esi
lea edi, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.0040b060
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x412f38
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00416027
add esp, 4
xor ecx, ecx
push 0x26
mov eax, str.0000110c_0000_1000_8000_00805F9B34FB
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
call fcn.0040b550
mov ecx, esi
lea edi, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.0040b060
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x412f7a
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00416027
add esp, 4
xor eax, eax
mov word [ebp - 0x2c], ax
push 0x26
mov eax, str.0000110e_0000_1000_8000_00805F9B34FB
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.0040b550
mov ecx, esi
lea edi, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.0040b060
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x412fbc
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00416027
add esp, 4
xor edx, edx
push 0x26
mov eax, str.00001111_0000_1000_8000_00805F9B34FB
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.0040b550
mov ecx, esi
lea edi, [ebp - 0x3c]
mov byte [ebp - 4], 6
call fcn.0040b060
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x412ffe
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00416027
add esp, 4
xor ecx, ecx
push 0x26
mov eax, str.00001118_0000_1000_8000_00805F9B34FB
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
call fcn.0040b550
mov ecx, esi
lea edi, [ebp - 0x3c]
mov byte [ebp - 4], 7
call fcn.0040b060
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x413040
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00416027
add esp, 4
xor eax, eax
mov word [ebp - 0x2c], ax
push 0x26
mov eax, str.00001123_0000_1000_8000_00805F9B34FB
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.0040b550
mov ecx, esi
lea edi, [ebp - 0x3c]
mov byte [ebp - 4], 8
call fcn.0040b060
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x413082
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00416027
add esp, 4
xor edx, edx
push 0x26
mov eax, str.0000110a_0000_1000_8000_00805F9B34FB
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.0040b550
mov ecx, esi
lea edi, [ebp - 0x3c]
mov byte [ebp - 4], 9
call fcn.0040b060
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x4130c4
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00416027
add esp, 4
xor ecx, ecx
push 0x26
mov eax, str.00001303_0000_1000_8000_00805F9B34FB
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
call fcn.0040b550
mov ecx, esi
lea edi, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.0040b060
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x413106
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00416027
add esp, 4
xor eax, eax
mov word [ebp - 0x2c], ax
push 0x26
mov eax, str.00001304_0000_1000_8000_00805F9B34FB
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.0040b550
mov ecx, esi
lea edi, [ebp - 0x3c]
mov byte [ebp - 4], 0xb
call fcn.0040b060
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x413148
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00416027
add esp, 4
xor edx, edx
push 0x26
mov eax, str.00001112_0000_1000_8000_00805f9b34fb
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.0040b550
mov ecx, esi
lea edi, [ebp - 0x3c]
mov byte [ebp - 4], 0xc
call fcn.0040b060
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x41318a
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00416027
add esp, 4
xor ecx, ecx
push 0x26
mov eax, str.0000112d_0000_1000_8000_00805f9b34fb
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
call fcn.0040b550
mov ecx, esi
lea edi, [ebp - 0x3c]
mov byte [ebp - 4], 0xd
call fcn.0040b060
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x4131cc
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00416027
add esp, 4
xor eax, eax
mov word [ebp - 0x2c], ax
push 0x26
mov eax, str.0000112e_0000_1000_8000_00805f9b34fb
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.0040b550
mov ecx, esi
lea edi, [ebp - 0x3c]
mov byte [ebp - 4], 0xe
call fcn.0040b060
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 8
jb 0x41320e
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00416027
add esp, 4
xor edx, edx
push 0x26
mov eax, str.0000112f_0000_1000_8000_00805f9b34fb
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.0040b550
mov ecx, esi
lea edi, [ebp - 0x3c]
mov byte [ebp - 4], 0xf
call fcn.0040b060
cmp dword [ebp - 0x18], 8
jb 0x41324d
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00416027
add esp, 4
mov esi, dword [ebp - 0x3c]
xor ecx, ecx
mov word [ebp - 0x2c], cx
mov ecx, dword [ebp - 0x38]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
je 0x4132d9
mov edi, esi
mov dword [ebp - 0x40], eax
cmp dword [edi + 0x14], 8
jb 0x413289
mov esi, dword [edi]
jmp 0x41328b
mov esi, edi
mov eax, dword [0x4357a4]
mov ecx, dword [0x4357a0]
push ebx
lea edx, [ebp - 0x44]
push edx
push ebx
push eax
push ebx
push ebx
push ebx
push str.SYSTEMCurrentControlSetServicesBTHPORTParametersSupportedServices
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4132ce
mov eax, dword [ebp - 0x44]
push 4
lea edx, [ebp - 0x48]
push edx
push 4
push ebx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 0x1c
dec dword [ebp - 0x40]
jne 0x41327f
mov esi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x4c]
mov dword [0x4357a0], edx
cmp esi, ebx
je 0x413323
mov edi, dword [ebp - 0x38]
cmp dword [ebp - 0x3c], edi
je 0x413317
mov edi, edi
cmp dword [esi + 0x14], 8
jb 0x413301
mov eax, dword [esi]
push eax
call fcn.00416027
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], cx
add esi, 0x1c
cmp esi, edi
jne 0x4132f0
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00416027
add esp, 4
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.0041558a
mov esp, ebp
pop ebp
ret