Function at 0x409bd0
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xc60
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0xc5c], eax
push ebx
push ebp
mov ebp, dword [esp + 0xc6c]
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x6d]
mov edi, ecx
push ebx
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0x400
mov dword [esp + 0x24], ebx
mov byte [esp + 0x74], bl
call fcn.00420f50
add esp, 0xc
push 0x3ff
lea ecx, [esp + 0x86d]
push ebx
push ecx
mov byte [esp + 0x874], bl
call fcn.00420f50
add esp, 0xc
push 0x3ff
lea edx, [esp + 0x46d]
push ebx
push edx
mov byte [esp + 0x474], bl
call fcn.00420f50
add esp, 0xc
push 0x3f
lea eax, [esp + 0x2d]
push ebx
push eax
mov byte [esp + 0x34], bl
call fcn.00420f50
xor ecx, ecx
add esp, 0xc
cmp ecx, str.SYSTEMCurrentControlSetServicesTcpipLinkage
je 0x409e39
cmp edi, ebx
je 0x409e39
cmp ebp, ebx
je 0x409e39
lea edx, [esp + 0x14]
push edx
push 0xf003f
push ebx
push str.SYSTEMCurrentControlSetServicesTcpipLinkage
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x409cbb
push str.SetNicPosInReg__Fail_to_open_reg_key.
jmp 0x409e3e
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409e27
mov eax, dword [esp + 0x1c]
mov ecx, 0x400
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x6c]
push ebx
push edx
call fcn.00420f50
add esp, 0xc
cmp byte [esp + 0x68], bl
lea esi, [esp + 0x68]
je 0x409d61
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x409d08
sub eax, edx
push ebp
push esi
lea edi, [eax + 1]
call fcn.0041c810
add esp, 8
test eax, eax
push edi
push esi
je 0x409d37
lea eax, [esp + 0x30]
push 0x40
push eax
call fcn.0041b973
add esp, 0x10
jmp 0x409d57
mov eax, dword [esp + 0x20]
mov ecx, 0x400
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x874]
push edx
call fcn.0041b973
add esp, 0x10
add dword [esp + 0x18], edi
add esi, edi
cmp byte [esi], bl
jne 0x409d03
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x409d68
sub eax, edx
add eax, 1
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x470]
push 0x400
push ecx
call fcn.0041b973
lea eax, [esp + 0x38]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x409d98
sub eax, edx
mov edx, eax
lea eax, [esp + 0x28]
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x409db0
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x86c]
push ecx
mov ecx, 0x3ff
sub ecx, edx
sub eax, esi
push ecx
lea edx, [esp + eax + 0x475]
push edx
call fcn.0041b973
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
add esp, 0x10
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x46c]
push ecx
push edx
push ebx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x409e15
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SetNicPosInReg__Fail_to_set_reg_key.
jmp 0x409e3e
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x409e4d
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SetNicPosInReg__Fail_to_query_reg_key.
jmp 0x409e3e
push str.SetNicPosInReg__NULL_return.
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xc6c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041aec3
add esp, 0xc60
ret