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

Disassembly:
sub esp, 0x9c
mov eax, dword [0x1023d1a4]
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.10002880
push 1
lea edx, [esp + 0x1c]
push edx
push 3
lea eax, [esp + 0x7c]
push eax
push closesocket
call fcn.1000e430
add esp, 0x24
cmp eax, 3
je 0x1000562f
cmp eax, 2
je 0x1000562f
cmp eax, ebp
je 0x1000538d
push eax
push 0x220f1202
call fcn.1000e150
add esp, 8
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.10010586
add esp, 0x9c
ret
mov ax, word [esp + 0xac]
mov ecx, 0xffff
push esi
push edi
cmp cx, ax
jne 0x1000541b
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 0x10005549
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebp
jne 0x10005410
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x28]
push edx
push eax
call edi
cmp eax, ebp
jne 0x10005533
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 0x100053d2
jmp 0x10005549
push eax
push 0x220f1203
jmp 0x10005539
mov edx, ecx
mov cx, word [esp + 0xb8]
movzx eax, ax
cmp dx, cx
jne 0x100054f4
push eax
push str._04x
lea ecx, [esp + 0x50]
push ebx
push ecx
call fcn.10002880
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 0x10005549
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x100054d0
push 4
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.MSVCR90.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x100054a6
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push ecx
push edx
call ebp
test eax, eax
jne 0x100054e2
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 0x10005478
xor ebp, ebp
jmp 0x10005549
push eax
push 0x220f1203
call fcn.1000e150
add esp, 8
xor ebp, ebp
jmp 0x10005541
push eax
push 0x220f1204
call fcn.1000e150
add esp, 8
xor ebp, ebp
jmp 0x10005541
movzx ecx, cx
shl eax, 0x10
or eax, ecx
push eax
push str._08x
lea edx, [esp + 0x30]
push ebx
push edx
call fcn.10002880
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 0x1000552f
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
jmp 0x10005549
cmp eax, ebp
je 0x10005549
push eax
push 0x220f1204
call fcn.1000e150
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
xor esi, esi
cmp dword [esp + 0x14], ebp
jne 0x100055a2
cmp dword [esp + 0x18], ebp
jne 0x100055a2
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 0x1000558c
cmp dword [esp + 0x24], ebp
jne 0x100055a2
cmp dword [esp + 0x20], ebp
jne 0x100055a2
mov esi, 1
jmp 0x100055a2
push eax
push 0x220f1200
call fcn.1000e150
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 0x10005610
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebp
je 0x100055e6
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
je 0x100055e6
push ebp
push pe_nt_image_headers32
lea ecx, [esp + 0x68]
push ecx
push closesocket
call eax
jmp 0x100055f6
lea edx, [esp + 0x60]
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, ebp
je 0x10005610
push eax
push 0x220f1205
call fcn.1000e150
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.10010586
add esp, 0x9c
ret
mov ecx, dword [esp + 0xa0]
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
xor edx, edx
call fcn.10010586
add esp, 0x9c
ret