Function at 0x4377b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557670
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
mov eax, dword [0x5a6cc4]
push ebx
push esi
xor ebx, ebx
push edi
cmp eax, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
jne 0x4379dd
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
call fcn.004a7a10
mov edx, dword [0x5c74a0]
mov ecx, dword [0x5c7b34]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x18]
neg edx
push eax
push 1
sbb edx, edx
push ebx
add edx, reloc.WSOCK32.dll_bind
push ecx
push edx
mov byte [ebp - 4], 1
call edi
mov esi, eax
cmp esi, ebx
je 0x4378a0
cmp esi, 2
je 0x43789c
mov eax, dword [0x5c2a74]
mov dword [ebp - 0x14], eax
mov eax, dword [0x5c74a0]
mov byte [ebp - 4], 2
cmp eax, ebx
mov eax, str.CURRENT_USER
jne 0x437846
mov eax, str.MACHINE
mov ecx, dword [0x5c7b34]
lea edx, [ebp - 0x14]
push ecx
push eax
push 0x5a4824
push edx
call fcn.0053afda
mov eax, dword [ebp - 0x14]
add esp, 0x10
lea ecx, [ebp - 0x30]
push eax
call fcn.004a7ac0
cmp eax, ebx
je 0x437890
mov eax, dword [0x5c74a0]
mov edx, dword [0x5c7b34]
lea ecx, [ebp - 0x18]
neg eax
push ecx
push 1
sbb eax, eax
push ebx
add eax, reloc.WSOCK32.dll_bind
push edx
push eax
call edi
mov esi, eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.005421be
cmp esi, ebx
jne 0x4378dc
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x140]
push ecx
push edx
push ebx
push ebx
push str.MData
push eax
mov dword [ebp - 0x1c], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x18]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x4379d2
lea ecx, [ebp - 0x40]
call fcn.004a7a10
lea edx, [ebp - 0x18]
push ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareClassesCLSIDD5B91409_A8CA_4973_9A0B_59F713D25671
push reloc.WSOCK32.dll_accept
call edi
mov esi, eax
cmp esi, ebx
je 0x437968
mov eax, dword [0x5c2a74]
mov dword [ebp - 0x14], eax
push str.SoftwareClassesCLSIDD5B91409_A8CA_4973_9A0B_59F713D25671
lea ecx, [ebp - 0x14]
push str.CURRENT_USER_s
push ecx
mov byte [ebp - 4], 4
call fcn.0053afda
mov edx, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ebp - 0x40]
push edx
call fcn.004a7ac0
cmp eax, ebx
je 0x437958
lea eax, [ebp - 0x18]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareClassesCLSIDD5B91409_A8CA_4973_9A0B_59F713D25671
push reloc.WSOCK32.dll_accept
call edi
mov esi, eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.005421be
cmp esi, ebx
jne 0x4379c6
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x140]
push ecx
push edx
push ebx
push ebx
push str.MData
push eax
mov dword [ebp - 0x1c], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x18]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004a7a50
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.004a7a50
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.004a7a50
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.004a7a50
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret