Function at 0x46ab40
Capabilities:
Contain obfuscated stackstrings
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x64b9fb
mov eax, dword fs:[0]
push eax
mov eax, 0x3590
call fcn.006222c0
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x358c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x35a4]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x28]
call fcn.004024f0
xor ebx, ebx
mov dword [esp + 0x35ac], ebx
lea ecx, [esp + 0x24]
call fcn.004024f0
mov byte [esp + 0x35ac], 1
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call fcn.00469930
test eax, eax
je 0x46b654
lea ecx, [esp + 0x40]
mov dword [esp + 0x18], ebx
call fcn.0051cc30
mov byte [esp + 0x35ac], 2
lea ecx, [esp + 0x50]
call fcn.0051cc30
mov byte [esp + 0x35ac], 3
mov ecx, dword [0x75dbac]
mov eax, dword [esp + 0x24]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x18]
push edx
push 1
neg ecx
push ebx
sbb ecx, ecx
push eax
add ecx, 0x80000002
push ecx
call ebp
mov esi, eax
cmp esi, ebx
je 0x46ad57
cmp esi, 2
je 0x46acd4
lea ecx, [esp + 0x14]
call fcn.004024f0
mov byte [esp + 0x35ac], 4
mov eax, str.CURRENT_USER
cmp dword [0x75dbac], ebx
jne 0x46ac3f
mov eax, str.MACHINE
mov edx, dword [esp + 0x24]
push edx
push eax
lea eax, [esp + 0x1c]
push 0x67bc94
push eax
call fcn.00402f60
mov ecx, dword [esp + 0x24]
add esp, 0x10
push ecx
lea ecx, [esp + 0x44]
call fcn.0051cd20
test eax, eax
je 0x46ac8b
mov ecx, dword [0x75dbac]
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x18]
push edx
push 1
neg ecx
push ebx
sbb ecx, ecx
push eax
add ecx, 0x80000002
push ecx
call ebp
mov esi, eax
cmp esi, ebx
je 0x46acc3
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x44]
call fcn.0051cdf0
test eax, eax
je 0x46acc3
mov edx, dword [0x75dbac]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x18]
push eax
push 1
neg edx
push ebx
sbb edx, edx
push ecx
add edx, 0x80000002
push edx
call ebp
mov esi, eax
mov byte [esp + 0x35ac], 3
lea ecx, [esp + 0x14]
call fcn.00402560
cmp esi, ebx
je 0x46ad57
cmp dword [0x75dbac], ebx
jne 0x46ad57
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x18]
push eax
push 1
push ebx
push ecx
push 0x80000001
call ebp
test eax, eax
je 0x46ad57
lea ecx, [esp + 0x20]
call fcn.004024f0
mov byte [esp + 0x35ac], 5
mov edx, dword [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push str.CURRENT_USER_s
push eax
call fcn.00402f60
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push ecx
lea ecx, [esp + 0x54]
call fcn.0051cd20
test eax, eax
je 0x46ad46
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x18]
push edx
push 1
push ebx
push eax
push 0x80000001
call ebp
mov byte [esp + 0x35ac], 3
lea ecx, [esp + 0x20]
call fcn.00402560
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x46b632
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x60]
mov dword [esp + 0x18], ebx
call fcn.0051cc30
mov byte [esp + 0x35ac], 6
lea ecx, [esp + 0x70]
call fcn.0051cc30
mov byte [esp + 0x35ac], 7
mov eax, dword [0x75dbac]
mov edx, dword [esp + 0x28]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ebx
lea ecx, [esp + 0x1c]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
neg eax
push ebx
sbb eax, eax
push edx
add eax, 0x80000002
push eax
call edi
mov esi, eax
cmp esi, ebx
je 0x46af66
cmp esi, 2
je 0x46ae92
lea ecx, [esp + 0x14]
call fcn.004024f0
mov byte [esp + 0x35ac], 8
mov eax, str.CURRENT_USER
cmp dword [0x75dbac], ebx
jne 0x46adf1
mov eax, str.MACHINE
mov ecx, dword [esp + 0x28]
push ecx
push eax
lea edx, [esp + 0x1c]
push 0x67bc94
push edx
call fcn.00402f60
mov eax, dword [esp + 0x24]
add esp, 0x10
push eax
lea ecx, [esp + 0x64]
call fcn.0051cd20
test eax, eax
je 0x46ae42
mov eax, dword [0x75dbac]
mov edx, dword [esp + 0x28]
push ebx
lea ecx, [esp + 0x1c]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
neg eax
push ebx
sbb eax, eax
push edx
add eax, 0x80000002
push eax
call edi
mov esi, eax
cmp esi, ebx
je 0x46ae81
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x64]
call fcn.0051cdf0
test eax, eax
je 0x46ae81
mov ecx, dword [0x75dbac]
mov eax, dword [esp + 0x28]
push ebx
lea edx, [esp + 0x1c]
push edx
push ebx
push 0xf003f
push ebx
push ebx
neg ecx
push ebx
sbb ecx, ecx
push eax
add ecx, 0x80000002
push ecx
call edi
mov esi, eax
mov byte [esp + 0x35ac], 7
lea ecx, [esp + 0x14]
call fcn.00402560
cmp esi, ebx
je 0x46af66
cmp dword [0x75dbac], ebx
jne 0x46af66
mov eax, dword [esp + 0x28]
push ebx
lea edx, [esp + 0x1c]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push 0x80000001
call edi
mov esi, eax
cmp esi, ebx
je 0x46af66
lea ecx, [esp + 0x14]
call fcn.004024f0
mov byte [esp + 0x35ac], 9
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x18]
push str.CURRENT_USER_s
push edx
call fcn.00402f60
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
lea ecx, [esp + 0x74]
call fcn.0051cd20
test eax, eax
je 0x46af22
mov edx, dword [esp + 0x28]
push ebx
lea ecx, [esp + 0x1c]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push 0x80000001
call edi
mov esi, eax
cmp esi, ebx
je 0x46af55
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x74]
call fcn.0051cdf0
test eax, eax
je 0x46af55
mov edx, dword [esp + 0x28]
push ebx
lea ecx, [esp + 0x1c]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push 0x80000001
call edi
mov esi, eax
mov byte [esp + 0x35ac], 7
lea ecx, [esp + 0x14]
call fcn.00402560
mov dword [esp + 0x3c], 1
cmp esi, ebx
jne 0x46b387
cmp dword [esp + 0x18], ebx
je 0x46b387
mov al, 0x63
mov byte [esp + 0x3533], al
mov byte [esp + 0x3538], al
mov al, 0x78
mov byte [esp + 0x353b], al
mov byte [esp + 0x353f], al
mov cl, 0x37
lea eax, [esp + 0x3528]
push eax
mov byte [esp + 0x352c], 0x44
mov byte [esp + 0x352d], 0x58
mov byte [esp + 0x352e], 0x51
mov byte [esp + 0x352f], 0x43
mov byte [esp + 0x3530], 0x40
mov byte [esp + 0x3531], 0x56
mov byte [esp + 0x3532], 0x45
mov byte [esp + 0x3533], 0x52
mov byte [esp + 0x3534], 0x4b
mov byte [esp + 0x3535], 0x5e
mov byte [esp + 0x3536], 0x79
mov byte [esp + 0x3538], 0x72
mov byte [esp + 0x3539], 0x65
mov byte [esp + 0x353a], 0x79
mov byte [esp + 0x353b], 0x72
mov byte [esp + 0x353d], cl
mov byte [esp + 0x353e], 0x53
mov byte [esp + 0x3540], 0x60
mov byte [esp + 0x3541], 0x79
mov byte [esp + 0x3542], 0x7b
mov byte [esp + 0x3544], 0x76
mov byte [esp + 0x3545], 0x73
mov byte [esp + 0x3546], cl
mov byte [esp + 0x3547], 0x5a
mov byte [esp + 0x3548], 0x76
mov byte [esp + 0x3549], 0x79
mov byte [esp + 0x354a], 0x76
mov byte [esp + 0x354b], 0x70
mov byte [esp + 0x354c], 0x72
mov byte [esp + 0x354d], 0x65
mov byte [esp + 0x354e], bl
call fcn.00453b10
lea ecx, [esp + 0x350c]
push ecx
mov byte [esp + 0x3510], 0x44
mov byte [esp + 0x3511], 0x72
mov byte [esp + 0x3512], 0x65
mov byte [esp + 0x3513], 0x7e
mov byte [esp + 0x3514], 0x76
mov byte [esp + 0x3515], 0x7b
mov byte [esp + 0x3516], bl
call fcn.00453b10
add esp, 8
lea edx, [esp + 0x20]
push edx
push 1
push ebx
lea eax, [esp + 0x3534]
push eax
mov edi, 0x32
push 0x80000002
mov byte [esp + 0x3580], bl
xor esi, esi
mov dword [esp + 0x28], edi
call ebp
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x3570]
push edx
push ebx
test eax, eax
push ebx
lea eax, [esp + 0x3518]
push eax
jne 0x46b6a0
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x46b16e
lea edx, [esp + 0x14]
push edx
mov edx, dword [0x75dbe4]
lea eax, [esp + 0x3570]
push eax
push ebx
push ebx
lea ecx, [esp + 0x3518]
push ecx
push edx
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46b173
mov esi, 1
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x46b372
cmp byte [esp + 0x356c], bl
je 0x46b372
xor eax, eax
push 0x20
lea edx, [esp + 0x3570]
mov dword [esp + 0x3550], eax
mov dword [esp + 0x3554], eax
mov dword [esp + 0x3558], eax
mov dword [esp + 0x355c], eax
mov dword [esp + 0x3560], eax
mov dword [esp + 0x3564], eax
mov dword [esp + 0x3568], eax
mov dword [esp + 0x356c], eax
push edx
lea eax, [esp + 0x3554]
push eax
call fcn.00405470
mov cl, 0x25
mov al, 0x27
mov byte [esp + 0x3520], cl
mov byte [esp + 0x3527], cl
lea ecx, [esp + 0x351c]
push ecx
mov byte [esp + 0x3520], 0x7b
mov byte [esp + 0x3521], 0x7a
mov byte [esp + 0x3522], 0x40
mov byte [esp + 0x3523], al
mov byte [esp + 0x3525], 0x7c
mov byte [esp + 0x3526], 0x7d
mov byte [esp + 0x3527], 0x5a
mov byte [esp + 0x3528], 0x23
mov byte [esp + 0x3529], al
mov byte [esp + 0x352a], al
mov byte [esp + 0x352c], 0x51
mov byte [esp + 0x352d], 0x56
mov byte [esp + 0x352e], 0x79
mov byte [esp + 0x352f], 0x6d
mov byte [esp + 0x3530], 0x60
mov byte [esp + 0x3531], 0x60
mov byte [esp + 0x3532], 0x64
mov byte [esp + 0x3533], 0x56
mov byte [esp + 0x3534], 0x26
mov byte [esp + 0x3535], bl
call fcn.00453b10
mov edi, vtable.CProtection.0
add esp, 0x10
mov dword [esp + 0x1c], edi
mov byte [esp + 0x35ac], 0xa
lea eax, [esp + 0x3510]
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46b2c0
sub eax, esi
push eax
lea edx, [esp + 0x3514]
push edx
push 0x20
lea eax, [esp + 0x3558]
push eax
lea ecx, [esp + 0x2c]
call fcn.00448d60
lea ecx, [esp + 0x80]
call fcn.0057f130
mov byte [esp + 0x35ac], 0xb
lea ecx, [esp + 0x2c]
push ecx
push 0x20
lea edx, [esp + 0x3554]
push edx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
call fcn.0057bb90
test eax, eax
je 0x46b341
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
push eax
push ecx
push 1
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x46b341
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x46b352
push eax
call fcn.006220cc
add esp, 4
mov byte [esp + 0x35ac], 0xa
lea ecx, [esp + 0x80]
call fcn.005dbc90
mov byte [esp + 0x35ac], 7
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x3c], ebx
je 0x46b610
lea ecx, [esp + 0x1c]
call fcn.004024f0
mov byte [esp + 0x35ac], 0xc
mov ecx, dword [esp + 0x24]
push 0x5c
push ecx
call fcn.00623330
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x46b5ff
mov byte [edi], bl
mov edx, dword [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push 0x678ea8
push eax
call fcn.00402f60
add esp, 0xc
lea ecx, [esp + 0x3510]
inc edi
mov dword [esp + 0x14], ebx
call fcn.0051cc30
mov byte [esp + 0x35ac], 0xd
lea ecx, [esp + 0x2c]
call fcn.0051cc30
mov byte [esp + 0x35ac], 0xe
mov eax, dword [0x75dbac]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
neg eax
push ebx
sbb eax, eax
push edx
add eax, 0x80000002
push eax
call ebp
mov esi, eax
cmp esi, ebx
je 0x46b5bf
cmp esi, 2
je 0x46b4ea
lea ecx, [esp + 0x20]
call fcn.004024f0
mov byte [esp + 0x35ac], 0xf
mov eax, str.CURRENT_USER
cmp dword [0x75dbac], ebx
jne 0x46b44b
mov eax, str.MACHINE
mov ecx, dword [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x28]
push 0x67bc94
push edx
call fcn.00402f60
mov eax, dword [esp + 0x30]
add esp, 0x10
push eax
lea ecx, [esp + 0x3514]
call fcn.0051cd20
test eax, eax
je 0x46b49b
mov eax, dword [0x75dbac]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
neg eax
push ebx
sbb eax, eax
push edx
add eax, 0x80000002
push eax
call ebp
mov esi, eax
cmp esi, ebx
je 0x46b4d9
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x3514]
call fcn.0051cdf0
test eax, eax
je 0x46b4d9
mov ecx, dword [0x75dbac]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
push 0xf003f
neg ecx
push ebx
sbb ecx, ecx
push eax
add ecx, 0x80000002
push ecx
call ebp
mov esi, eax
mov byte [esp + 0x35ac], 0xe
lea ecx, [esp + 0x20]
call fcn.00402560
cmp esi, ebx
je 0x46b5bf
cmp dword [0x75dbac], ebx
jne 0x46b5bb
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
push 0xf003f
push ebx
push eax
push 0x80000001
call ebp
mov esi, eax
cmp esi, ebx
je 0x46b5bf
cmp esi, 2
je 0x46b5bb
lea ecx, [esp + 0x20]
call fcn.004024f0
mov byte [esp + 0x35ac], 0x10
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push str.CURRENT_USER_s
push edx
call fcn.00402f60
mov eax, dword [esp + 0x2c]
add esp, 0xc
push eax
lea ecx, [esp + 0x30]
call fcn.0051cd20
test eax, eax
je 0x46b57b
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebx
push edx
push 0x80000001
call ebp
mov esi, eax
cmp esi, ebx
je 0x46b5aa
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
call fcn.0051cdf0
test eax, eax
je 0x46b5aa
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebx
push edx
push 0x80000001
call ebp
mov esi, eax
mov byte [esp + 0x35ac], 0xe
lea ecx, [esp + 0x20]
call fcn.00402560
cmp esi, ebx
jne 0x46b5da
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x46b5da
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x35ac], 0xd
lea ecx, [esp + 0x2c]
call fcn.0051cc90
mov byte [esp + 0x35ac], 0xc
lea ecx, [esp + 0x3510]
call fcn.0051cc90
mov byte [esp + 0x35ac], 7
lea ecx, [esp + 0x1c]
call fcn.00402560
mov byte [esp + 0x35ac], 6
lea ecx, [esp + 0x70]
call fcn.0051cc90
mov byte [esp + 0x35ac], 3
lea ecx, [esp + 0x60]
call fcn.0051cc90
mov byte [esp + 0x35ac], 2
lea ecx, [esp + 0x50]
call fcn.0051cc90
mov byte [esp + 0x35ac], 1
lea ecx, [esp + 0x40]
call fcn.0051cc90
mov byte [esp + 0x35ac], bl
lea ecx, [esp + 0x24]
call fcn.00402560
mov dword [esp + 0x35ac], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00402560
mov ecx, dword [esp + 0x35a4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x358c]
xor ecx, esp
call fcn.00620b8d
add esp, 0x359c
ret
mov ecx, dword [0x75dbe4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46b372
jmp 0x46b186