Function at 0x435170
Capabilities:
Contain obfuscated stackstrings
Get thread local storage value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451d27
mov eax, dword fs:[0]
push eax
sub esp, 0x6dc
mov eax, dword [0x46d45c]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c8], 0
mov dword [ebp - 0x3b0], 0xffffffff
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x10]
call fcn.00402160
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c0]
call fcn.00402160
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3bc]
call fcn.00402160
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00402160
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3b8]
call fcn.00402160
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3a4]
call fcn.00402160
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x408]
call fcn.00402160
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3ac]
call fcn.00402160
mov byte [ebp - 4], 8
cmp dword [0x46f680], 0
je 0x43542e
push 0
lea ecx, [ebp - 0x648]
call fcn.00402190
mov byte [ebp - 4], 9
push 0
lea ecx, [ebp - 0x64c]
call fcn.00402190
mov byte [ebp - 4], 0xa
push 0x45e9cc
lea ecx, [ebp - 0x650]
call fcn.00402190
mov byte [ebp - 4], 0xb
push 0x45e9d0
lea ecx, [ebp - 0x654]
call fcn.00402190
mov byte [ebp - 4], 0xc
push 0x45e9d4
lea ecx, [ebp - 0x658]
call fcn.00402190
mov byte [ebp - 4], 0xd
push 0x45e9d8
lea ecx, [ebp - 0x65c]
call fcn.00402190
mov byte [ebp - 4], 0xe
push 0x45e9dc
lea ecx, [ebp - 0x660]
call fcn.00402190
mov byte [ebp - 4], 0xf
push 0x45e9e0
lea ecx, [ebp - 0x668]
call fcn.00402190
mov byte [ebp - 4], 0x10
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x648]
push eax
push 1
lea ecx, [ebp - 0x64c]
push ecx
lea edx, [ebp - 0x650]
push edx
lea eax, [ebp - 0x654]
push eax
lea ecx, [ebp - 0x658]
push ecx
lea edx, [ebp - 0x65c]
push edx
lea eax, [ebp - 0x660]
push eax
lea ecx, [ebp + 0xc]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea edx, [ebp - 0x664]
push edx
call fcn.0040ce20
add esp, 0x10
mov dword [ebp - 0x6ac], eax
mov eax, dword [ebp - 0x6ac]
mov dword [ebp - 0x6b0], eax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x6b0]
push ecx
lea edx, [ebp - 0x668]
push edx
lea eax, [ebp + 0xc]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x66c]
push ecx
call fcn.0040ce20
add esp, 0x10
mov dword [ebp - 0x6b4], eax
mov edx, dword [ebp - 0x6b4]
mov dword [ebp - 0x6b8], edx
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x6b8]
push eax
push 0
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040c020
add esp, 0x40
mov dword [ebp - 0x3b0], eax
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x66c]
call fcn.004021c0
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x664]
call fcn.004021c0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x668]
call fcn.004021c0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x660]
call fcn.004021c0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x65c]
call fcn.004021c0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x658]
call fcn.004021c0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x654]
call fcn.004021c0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x650]
call fcn.004021c0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x64c]
call fcn.004021c0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x648]
call fcn.004021c0
lea edx, [ebp - 0x18]
push edx
push 0x20019
push 0
lea ecx, [ebp + 0xc]
call fcn.00402270
push eax
mov eax, dword [reloc.OLEAUT32.dll_SysReAllocString]
push eax
call fcn.004047c0
add esp, 0x14
mov dword [ebp - 0x3b4], eax
cmp dword [ebp - 0x3b4], 0
je 0x4354e9
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3ac]
call fcn.004021c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x408]
call fcn.004021c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3a4]
call fcn.004021c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3b8]
call fcn.004021c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.004021c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3bc]
call fcn.004021c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c0]
call fcn.004021c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004021c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004021c0
jmp 0x435be2
lea ecx, [ebp - 0x3a8]
call fcn.00402160
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x3a8]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0041d570
add esp, 0xc
test eax, eax
jne 0x435b48
lea ecx, [ebp - 0x3c4]
push ecx
mov edx, dword [0x46f464]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
lea ecx, [ebp - 0x3a8]
call fcn.00402270
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.004047c0
add esp, 0x14
test eax, eax
jne 0x435b3a
mov dword [ebp - 0x14], 0x378
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x39c]
push edx
push 0
push 0
push str.PackedCatalogItem
mov eax, dword [ebp - 0x3c4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x435b2d
lea ecx, [ebp - 0x39c]
push ecx
lea ecx, [ebp - 0x670]
call fcn.0042e580
mov dword [ebp - 0x6bc], eax
mov edx, dword [ebp - 0x6bc]
mov dword [ebp - 0x6c0], edx
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x6c0]
call fcn.00416b30
push eax
lea ecx, [ebp - 0x42c]
call fcn.00402190
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x670]
call fcn.004168d0
lea ecx, [ebp - 0x428]
call fcn.00401a80
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00402270
push eax
call fcn.0040d550
add esp, 8
push 0
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x674]
push edx
call fcn.00408fc0
add esp, 0xc
mov dword [ebp - 0x6c4], eax
mov eax, dword [ebp - 0x6c4]
mov dword [ebp - 0x6c8], eax
mov byte [ebp - 4], 0x18
mov ecx, dword [ebp - 0x6c8]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00402240
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x674]
call fcn.004021c0
lea edx, [ebp - 0x3b8]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402270
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00409fb0
add esp, 0x10
mov dword [ebp - 0x3a0], eax
lea edx, [ebp - 0x3a8]
push edx
lea ecx, [ebp - 0x40c]
call fcn.00402280
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x40c]
push eax
push 0
push 0
push str.ProtocolName
mov ecx, dword [ebp - 0x3c4]
push ecx
call fcn.0041d480
add esp, 0x14
test eax, eax
jne 0x43580f
lea ecx, [ebp - 0x40c]
call fcn.00402270
movzx edx, word [eax]
cmp edx, 0x40
jne 0x43580f
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x434]
call fcn.00402280
mov byte [ebp - 4], 0x1a
mov dword [ebp - 0x43c], 0
push 0x2c
lea ecx, [ebp - 0x434]
call fcn.00402270
push eax
call fcn.00416790
add esp, 8
test eax, eax
je 0x435743
push 0x2c
lea ecx, [ebp - 0x434]
call fcn.00402270
push eax
call fcn.00416790
add esp, 8
mov dword [ebp - 0x430], eax
xor ecx, ecx
mov edx, dword [ebp - 0x430]
mov word [edx], cx
mov eax, dword [ebp - 0x430]
add eax, 2
push eax
call fcn.0043a89e
add esp, 4
push eax
call fcn.0043a878
add esp, 4
mov dword [ebp - 0x43c], eax
lea ecx, [ebp - 0x434]
call fcn.00402270
add eax, 2
push eax
lea ecx, [ebp - 0x678]
push ecx
call fcn.0041d6a0
add esp, 8
mov dword [ebp - 0x6cc], eax
mov edx, dword [ebp - 0x6cc]
mov dword [ebp - 0x6d0], edx
mov byte [ebp - 4], 0x1b
mov eax, dword [ebp - 0x6d0]
push eax
lea ecx, [ebp - 0x434]
call fcn.00402240
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x678]
call fcn.004021c0
push 2
push 0
lea ecx, [ebp - 0x434]
call fcn.00402270
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
je 0x435800
push 0x104
lea ecx, [ebp - 0x644]
push ecx
mov edx, dword [ebp - 0x43c]
push edx
mov eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x4357f3
lea ecx, [ebp - 0x644]
push ecx
lea ecx, [ebp - 0x40c]
call fcn.004021e0
mov edx, dword [ebp - 0x438]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x434]
call fcn.004021c0
lea eax, [ebp - 0x3a4]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x3a8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040b960
add esp, 0x14
movzx edx, al
test edx, edx
je 0x435b00
cmp dword [ebp - 0x3b0], 0xffffffff
jne 0x435a40
push 0
lea ecx, [ebp - 0x67c]
call fcn.00402190
mov byte [ebp - 4], 0x1c
push 0
lea ecx, [ebp - 0x680]
call fcn.00402190
mov byte [ebp - 4], 0x1d
push 0x45ea24
lea ecx, [ebp - 0x684]
call fcn.00402190
mov byte [ebp - 4], 0x1e
push 0x45ea28
lea ecx, [ebp - 0x688]
call fcn.00402190
mov byte [ebp - 4], 0x1f
push 0x45ea2c
lea ecx, [ebp - 0x68c]
call fcn.00402190
mov byte [ebp - 4], 0x20
push 0x45ea30
lea ecx, [ebp - 0x690]
call fcn.00402190
mov byte [ebp - 4], 0x21
push 0x45ea34
lea ecx, [ebp - 0x694]
call fcn.00402190
mov byte [ebp - 4], 0x22
push 0x45ea38
lea ecx, [ebp - 0x69c]
call fcn.00402190
mov byte [ebp - 4], 0x23
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x67c]
push eax
push 1
lea ecx, [ebp - 0x680]
push ecx
lea edx, [ebp - 0x684]
push edx
lea eax, [ebp - 0x688]
push eax
lea ecx, [ebp - 0x68c]
push ecx
lea edx, [ebp - 0x690]
push edx
lea eax, [ebp - 0x694]
push eax
lea ecx, [ebp + 0xc]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea edx, [ebp - 0x698]
push edx
call fcn.0040ce20
add esp, 0x10
mov dword [ebp - 0x6d4], eax
mov eax, dword [ebp - 0x6d4]
mov dword [ebp - 0x6d8], eax
mov byte [ebp - 4], 0x24
mov ecx, dword [ebp - 0x6d8]
push ecx
lea edx, [ebp - 0x69c]
push edx
lea eax, [ebp + 0xc]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x6a0]
push ecx
call fcn.0040ce20
add esp, 0x10
mov dword [ebp - 0x6dc], eax
mov edx, dword [ebp - 0x6dc]
mov dword [ebp - 0x6e0], edx
mov byte [ebp - 4], 0x25
mov eax, dword [ebp - 0x6e0]
push eax
push 0
mov ecx, dword [ebp - 0x3b0]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.0040c020
add esp, 0x40
mov dword [ebp - 0x3b0], eax
mov byte [ebp - 4], 0x24
lea ecx, [ebp - 0x6a0]
call fcn.004021c0
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x698]
call fcn.004021c0
mov byte [ebp - 4], 0x22
lea ecx, [ebp - 0x69c]
call fcn.004021c0
mov byte [ebp - 4], 0x21
lea ecx, [ebp - 0x694]
call fcn.004021c0
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x690]
call fcn.004021c0
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x68c]
call fcn.004021c0
mov byte [ebp - 4], 0x1e
lea ecx, [ebp - 0x688]
call fcn.004021c0
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x684]
call fcn.004021c0
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x680]
call fcn.004021c0
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x67c]
call fcn.004021c0
push 0
lea ecx, [ebp - 0x6a4]
call fcn.00402190
mov byte [ebp - 4], 0x26
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x6a4]
push eax
push 1
lea ecx, [ebp - 0x42c]
push ecx
lea edx, [ebp - 0x3a4]
push edx
lea eax, [ebp - 0x3b8]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x3a8]
push eax
lea ecx, [ebp + 0xc]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea edx, [ebp - 0x6a8]
push edx
call fcn.0040ce20
add esp, 0x10
mov dword [ebp - 0x6e4], eax
mov eax, dword [ebp - 0x6e4]
mov dword [ebp - 0x6e8], eax
mov byte [ebp - 4], 0x27
mov ecx, dword [ebp - 0x6e8]
push ecx
lea edx, [ebp - 0x40c]
push edx
push 0xb
mov eax, dword [ebp - 0x3b0]
push eax
mov ecx, dword [ebp - 0x3a0]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040c020
add esp, 0x40
mov dword [ebp - 0x400], eax
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0x6a8]
call fcn.004021c0
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x6a4]
call fcn.004021c0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x40c]
call fcn.004021c0
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x428]
call fcn.00401ae0
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x42c]
call fcn.004021c0
mov eax, dword [ebp - 0x3c4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
jmp 0x4354f8
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x3a8]
call fcn.004021c0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3ac]
call fcn.004021c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x408]
call fcn.004021c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3a4]
call fcn.004021c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3b8]
call fcn.004021c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.004021c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3bc]
call fcn.004021c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c0]
call fcn.004021c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004021c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004021c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004376f1
mov esp, ebp
pop ebp
ret