Function at 0x10016140
Capabilities:
Parse pe header
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xc84]
sub esp, 0xc84
push 0xffffffffffffffff
push 0x1007a8e8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10098688]
xor eax, ebp
mov dword [ebp + 0xc80], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], 0
push 0x100923f6
lea ecx, [ebp - 0x18]
call fcn.1000fa00
mov dword [ebp - 4], 0
mov eax, 2
shl eax, 5
mov ecx, 0x72
mov word [ebp + eax + 0xc00], cx
mov edx, 2
imul edx, edx, 0x14
mov eax, 0x69
mov word [ebp + edx + 0xc00], ax
mov ecx, 2
imul ecx, ecx, 0xa
mov edx, 0x69
mov word [ebp + ecx + 0xc00], dx
mov eax, 2
imul eax, eax, 0x1f
mov ecx, 0x75
mov word [ebp + eax + 0xc00], cx
mov edx, 2
imul edx, edx, 5
mov eax, 0x41
mov word [ebp + edx + 0xc00], ax
mov ecx, 2
shl ecx, 3
mov edx, 0x5c
mov word [ebp + ecx + 0xc00], dx
mov eax, 2
imul eax, eax, 0
mov ecx, 0x53
mov word [ebp + eax + 0xc00], cx
mov edx, 2
imul edx, edx, 0xe
mov eax, 0x73
mov word [ebp + edx + 0xc00], ax
mov ecx, 2
shl ecx, 4
mov edx, 0x66
mov word [ebp + ecx + 0xc00], dx
mov eax, 2
imul eax, eax, 0xb
mov ecx, 0x63
mov word [ebp + eax + 0xc00], cx
mov edx, 2
imul edx, edx, 0x27
mov eax, 0x72
mov word [ebp + edx + 0xc00], ax
mov ecx, 2
imul ecx, ecx, 3
mov edx, 0x54
mov word [ebp + ecx + 0xc00], dx
mov eax, 2
imul eax, eax, 0x1a
mov ecx, 0x20
mov word [ebp + eax + 0xc00], cx
mov edx, 2
imul edx, edx, 0x13
mov eax, 0x57
mov word [ebp + edx + 0xc00], ax
mov ecx, 2
imul ecx, ecx, 0x23
mov edx, 0x6e
mov word [ebp + ecx + 0xc00], dx
mov eax, 2
imul eax, eax, 0x29
mov ecx, 0x69
mov word [ebp + eax + 0xc00], cx
mov edx, 2
imul edx, edx, 0x22
mov eax, 0x65
mov word [ebp + edx + 0xc00], ax
mov ecx, 2
imul ecx, ecx, 0x1b
mov edx, 0x4e
mov word [ebp + ecx + 0xc00], dx
mov eax, 2
imul eax, eax, 7
mov ecx, 0x45
mov word [ebp + eax + 0xc00], cx
mov edx, 2
imul edx, edx, 0x12
mov eax, 0x5c
mov word [ebp + edx + 0xc00], ax
mov ecx, 2
imul ecx, ecx, 0x1c
mov edx, 0x54
mov word [ebp + ecx + 0xc00], dx
mov eax, 2
imul eax, eax, 0x25
mov ecx, 0x56
mov word [ebp + eax + 0xc00], cx
mov edx, 2
shl edx, 0
mov eax, 0x4f
mov word [ebp + edx + 0xc00], ax
mov ecx, 2
imul ecx, ecx, 0xd
mov edx, 0x6f
mov word [ebp + ecx + 0xc00], dx
mov eax, 2
imul eax, eax, 0x2a
mov ecx, 0x6f
mov word [ebp + eax + 0xc00], cx
mov edx, 2
imul edx, edx, 0x19
mov eax, 0x73
mov word [ebp + edx + 0xc00], ax
mov ecx, 2
imul ecx, ecx, 0x28
mov edx, 0x73
mov word [ebp + ecx + 0xc00], dx
mov eax, 2
imul eax, eax, 0x1e
mov ecx, 0x43
mov word [ebp + eax + 0xc00], cx
mov edx, 2
imul edx, edx, 0x16
mov eax, 0x64
mov word [ebp + edx + 0xc00], ax
mov ecx, 2
shl ecx, 2
mov edx, 0x57
mov word [ebp + ecx + 0xc00], dx
mov eax, 2
shl eax, 1
mov ecx, 0x46
mov word [ebp + eax + 0xc00], cx
mov edx, 2
imul edx, edx, 0x21
mov eax, 0x72
mov word [ebp + edx + 0xc00], ax
mov ecx, 2
imul ecx, ecx, 0x15
mov edx, 0x6e
mov word [ebp + ecx + 0xc00], dx
mov eax, 2
imul eax, eax, 0xf
mov ecx, 0x6f
mov word [ebp + eax + 0xc00], cx
mov edx, 2
imul edx, edx, 0x18
mov eax, 0x77
mov word [ebp + edx + 0xc00], ax
mov ecx, 2
imul ecx, ecx, 0xc
mov edx, 0x72
mov word [ebp + ecx + 0xc00], dx
mov eax, 2
imul eax, eax, 0x2b
mov ecx, 0x6e
mov word [ebp + eax + 0xc00], cx
mov edx, 2
imul edx, edx, 0x2c
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0x5a
jae 0x100164ac
jmp 0x100164b1
call fcn.1005a87f
xor eax, eax
mov ecx, dword [ebp - 0x28]
mov word [ebp + ecx + 0xc00], ax
mov edx, 2
imul edx, edx, 0x24
mov eax, 0x74
mov word [ebp + edx + 0xc00], ax
mov ecx, 2
imul ecx, ecx, 6
mov edx, 0x52
mov word [ebp + ecx + 0xc00], dx
mov eax, 2
imul eax, eax, 9
mov ecx, 0x4d
mov word [ebp + eax + 0xc00], cx
mov edx, 2
imul edx, edx, 0x11
mov eax, 0x74
mov word [ebp + edx + 0xc00], ax
mov ecx, 2
imul ecx, ecx, 0x17
mov edx, 0x6f
mov word [ebp + ecx + 0xc00], dx
mov eax, 2
imul eax, eax, 0x26
mov ecx, 0x65
mov word [ebp + eax + 0xc00], cx
mov edx, 2
imul edx, edx, 0x1d
mov eax, 0x5c
mov word [ebp + edx + 0xc00], ax
mov ecx, 2
imul ecx, ecx, 9
mov edx, 0x6f
mov word [ebp + ecx + 0xc5c], dx
mov eax, 2
imul eax, eax, 0xc
mov ecx, 0x63
mov word [ebp + eax + 0xc5c], cx
mov edx, 2
imul edx, edx, 7
mov eax, 0x50
mov word [ebp + edx + 0xc5c], ax
mov ecx, 2
imul ecx, ecx, 5
mov edx, 0x61
mov word [ebp + ecx + 0xc5c], dx
mov eax, 2
imul eax, eax, 0xb
mov ecx, 0x75
mov word [ebp + eax + 0xc5c], cx
mov edx, 2
imul edx, edx, 0xe
mov eax, 0x49
mov word [ebp + edx + 0xc5c], ax
mov ecx, 2
shl ecx, 1
mov edx, 0x67
mov word [ebp + ecx + 0xc5c], dx
mov eax, 2
shl eax, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x22
jae 0x100165f6
jmp 0x100165fb
call fcn.1005a87f
xor ecx, ecx
mov edx, dword [ebp - 0x2c]
mov word [ebp + edx + 0xc5c], cx
mov eax, 2
imul eax, eax, 3
mov ecx, 0x69
mov word [ebp + eax + 0xc5c], cx
mov edx, 2
imul edx, edx, 0xa
mov eax, 0x64
mov word [ebp + edx + 0xc5c], ax
mov ecx, 2
imul ecx, ecx, 0xd
mov edx, 0x74
mov word [ebp + ecx + 0xc5c], dx
mov eax, 2
shl eax, 0
mov ecx, 0x69
mov word [ebp + eax + 0xc5c], cx
mov edx, 2
imul edx, edx, 0
mov eax, 0x44
mov word [ebp + edx + 0xc5c], ax
mov ecx, 2
imul ecx, ecx, 0xf
mov edx, 0x64
mov word [ebp + ecx + 0xc5c], dx
mov eax, 2
imul eax, eax, 6
mov ecx, 0x6c
mov word [ebp + eax + 0xc5c], cx
mov edx, 2
shl edx, 2
mov eax, 0x74
mov word [ebp + edx + 0xc5c], ax
mov ecx, 2
shl ecx, 3
mov edx, 0x72
mov word [ebp + ecx + 0xc5c], dx
mov dword [ebp], 0
push 0x7fc
push 0
lea eax, [ebp + 4]
push eax
call fcn.1005ec70
add esp, 0xc
mov dword [ebp - 0x34], 0x800
lea ecx, [ebp - 0x24]
push ecx
push 0x101
push 0
lea edx, [ebp + 0xc00]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10016818
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp]
push ecx
push 0
push 0
lea edx, [ebp + 0xc5c]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x1001680e
mov byte [ebp + 0x800], 0
push 0x3ff
push 0
lea ecx, [ebp + 0x801]
push ecx
call fcn.1005ec70
add esp, 0xc
mov edx, dword [ebp - 0x34]
push edx
lea eax, [ebp + 0x800]
push eax
lea ecx, [ebp]
push ecx
call fcn.10011920
add esp, 0xc
call fcn.10004a30
mov dword [ebp - 0x40], eax
lea edx, [ebp + 0x800]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0
jne 0x10016789
mov dword [ebp - 0x38], 0
jmp 0x100167f9
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x14]
mov al, byte [edx]
mov byte [ebp - 0xd], al
add dword [ebp - 0x14], 1
cmp byte [ebp - 0xd], 0
jne 0x10016798
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
add edx, 1
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x20], 0x3fffffff
jle 0x100167ce
mov dword [ebp - 0x3c], 0
jmp 0x100167f3
mov eax, dword [ebp - 0x20]
shl eax, 1
call fcn.1005ce40
mov dword [ebp - 0x50], esp
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x50]
push eax
call fcn.1000e5a0
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
push edx
push 0x1007d740
lea eax, [ebp - 0x18]
push eax
call fcn.10013560
add esp, 0xc
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp + 0xc8c]
call fcn.1000f9e0
mov eax, dword [ebp - 0x30]
or eax, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.10004ee0
mov eax, dword [ebp + 0xc8c]
lea esp, [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp + 0xc80]
xor ecx, ebp
call fcn.1005c9a6
add ebp, 0xc84
mov esp, ebp
pop ebp
ret