Function at 0x10005380
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x9c
mov eax, dword [0x101561c0]
xor eax, esp
mov dword [esp + 0x98], eax
movzx eax, word [esp + 0xa0]
push ebx
push ebp
push eax
push str.SoftwareAhnlabAhnInst_d
xor ebp, ebp
lea ecx, [esp + 0x68]
push 0x20
mov ebx, 0x10
push ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebx
call fcn.10002910
push 1
lea edx, [esp + 0x1c]
push edx
push 3
lea eax, [esp + 0x7c]
push eax
push closesocket
call fcn.1000e8b0
add esp, 0x24
cmp eax, 3
je 0x100056be
cmp eax, 2
je 0x100056be
cmp eax, ebp
je 0x1000541d
push eax
push 0x220f1202
call fcn.1000e600
add esp, 8
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.100108f1
add esp, 0x9c
ret
mov ax, word [esp + 0xac]
mov ecx, 0xffff
push esi
push edi
cmp cx, ax
jne 0x100054ab
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push ebp
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x3c]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], ebx
call esi
cmp eax, 0x103
je 0x100055d8
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebp
jne 0x100054a0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x28]
push edx
push eax
call edi
cmp eax, ebp
jne 0x100055c2
mov eax, dword [esp + 0x10]
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x3c]
push edx
push ebp
push eax
mov dword [esp + 0x3c], ebx
call esi
cmp eax, 0x103
jne 0x10005462
jmp 0x100055d8
push eax
push 0x220f1203
jmp 0x100055c8
mov edx, ecx
mov cx, word [esp + 0xb8]
movzx eax, ax
cmp dx, cx
jne 0x10005583
push eax
push str._04x
lea ecx, [esp + 0x50]
push ebx
push ecx
call fcn.10002910
mov ecx, dword [esp + 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
add esp, 0x10
push ebp
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x3c]
push eax
push ebp
push ecx
xor esi, esi
mov dword [esp + 0x3c], ebx
call edi
cmp eax, 0x103
je 0x100055d8
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x1000555f
push 4
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x50]
push eax
call fcn.10010e10
add esp, 0xc
test eax, eax
jne 0x10005535
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push ecx
push edx
call ebp
test eax, eax
jne 0x10005571
dec esi
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x3c]
push ecx
inc esi
push esi
push edx
mov dword [esp + 0x3c], ebx
call edi
cmp eax, 0x103
jne 0x10005508
xor ebp, ebp
jmp 0x100055d8
push eax
push 0x220f1203
call fcn.1000e600
add esp, 8
xor ebp, ebp
jmp 0x100055d0
push eax
push 0x220f1204
call fcn.1000e600
add esp, 8
xor ebp, ebp
jmp 0x100055d0
movzx ecx, cx
shl eax, 0x10
or eax, ecx
push eax
push str._08x
lea edx, [esp + 0x30]
push ebx
push edx
call fcn.10002910
mov ecx, dword [esp + 0x20]
add esp, 0x10
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, 2
jne 0x100055be
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
jmp 0x100055d8
cmp eax, ebp
je 0x100055d8
push eax
push 0x220f1204
call fcn.1000e600
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
xor esi, esi
cmp dword [esp + 0x14], ebp
jne 0x10005631
cmp dword [esp + 0x18], ebp
jne 0x10005631
mov ecx, dword [esp + 0x10]
push ebp
push ebp
push ebp
push ebp
lea edx, [esp + 0x30]
push edx
push ebp
push ebp
lea eax, [esp + 0x40]
push eax
push ebp
push ebp
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebp
jne 0x1000561b
cmp dword [esp + 0x24], ebp
jne 0x10005631
cmp dword [esp + 0x20], ebp
jne 0x10005631
mov esi, 1
jmp 0x10005631
push eax
push 0x220f1200
call fcn.1000e600
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
cmp esi, ebp
pop esi
je 0x1000569f
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebp
je 0x10005675
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
je 0x10005675
push ebp
push 0x100
lea ecx, [esp + 0x68]
push ecx
push closesocket
call eax
jmp 0x10005685
lea edx, [esp + 0x60]
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, ebp
je 0x1000569f
push eax
push 0x220f1205
call fcn.1000e600
add esp, 8
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.100108f1
add esp, 0x9c
ret
mov ecx, dword [esp + 0xa0]
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
xor edx, edx
call fcn.100108f1
add esp, 0x9c
ret