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

Disassembly:
sub esp, 0x9c
mov eax, dword [0x1023d1bc]
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.10002950
push 1
lea edx, [esp + 0x1c]
push edx
push 3
lea eax, [esp + 0x7c]
push eax
push closesocket
call fcn.1000e8f0
add esp, 0x24
cmp eax, 3
je 0x100056ff
cmp eax, 2
je 0x100056ff
cmp eax, ebp
je 0x1000545d
push eax
push 0x220f1202
call fcn.1000e640
add esp, 8
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.10010588
add esp, 0x9c
ret
mov ax, word [esp + 0xac]
mov ecx, 0xffff
push esi
push edi
cmp cx, ax
jne 0x100054eb
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 0x10005619
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebp
jne 0x100054e0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x28]
push edx
push eax
call edi
cmp eax, ebp
jne 0x10005603
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 0x100054a2
jmp 0x10005619
push eax
push 0x220f1203
jmp 0x10005609
mov edx, ecx
mov cx, word [esp + 0xb8]
movzx eax, ax
cmp dx, cx
jne 0x100055c4
push eax
push str._04x
lea ecx, [esp + 0x50]
push ebx
push ecx
call fcn.10002950
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 0x10005619
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x100055a0
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 0x10005576
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push ecx
push edx
call ebp
test eax, eax
jne 0x100055b2
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 0x10005548
xor ebp, ebp
jmp 0x10005619
push eax
push 0x220f1203
call fcn.1000e640
add esp, 8
xor ebp, ebp
jmp 0x10005611
push eax
push 0x220f1204
call fcn.1000e640
add esp, 8
xor ebp, ebp
jmp 0x10005611
movzx ecx, cx
shl eax, 0x10
or eax, ecx
push eax
push str._08x
lea edx, [esp + 0x30]
push ebx
push edx
call fcn.10002950
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 0x100055ff
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
jmp 0x10005619
cmp eax, ebp
je 0x10005619
push eax
push 0x220f1204
call fcn.1000e640
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
xor esi, esi
cmp dword [esp + 0x14], ebp
jne 0x10005672
cmp dword [esp + 0x18], ebp
jne 0x10005672
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 0x1000565c
cmp dword [esp + 0x24], ebp
jne 0x10005672
cmp dword [esp + 0x20], ebp
jne 0x10005672
mov esi, 1
jmp 0x10005672
push eax
push 0x220f1200
call fcn.1000e640
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 0x100056e0
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebp
je 0x100056b6
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
je 0x100056b6
push ebp
push pe_nt_image_headers32
lea ecx, [esp + 0x68]
push ecx
push closesocket
call eax
jmp 0x100056c6
lea edx, [esp + 0x60]
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, ebp
je 0x100056e0
push eax
push 0x220f1205
call fcn.1000e640
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.10010588
add esp, 0x9c
ret
mov ecx, dword [esp + 0xa0]
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
xor edx, edx
call fcn.10010588
add esp, 0x9c
ret