Function at 0x100021c0
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b3593
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x100d8054]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], 0
movaps xmm0, xmmword [0x100d07e0]
movups xmmword [ebp - 0x248], xmm0
mov dword [ebp - 0x250], eax
movaps xmm0, xmmword [0x100d0d80]
movups xmmword [ebp - 0x238], xmm0
mov dword [ebp - 0x218], 0x1d4e5c58
movaps xmm0, xmmword [0x100d0d70]
movups xmmword [ebp - 0x228], xmm0
mov dword [ebp - 0x214], 0x6151517c
mov dword [ebp - 0x210], 0xb130c
nop
mov al, byte [ebp - 0x248]
xor byte [ebp + ecx - 0x247], al
inc ecx
cmp ecx, 0x3a
jb 0x10002250
lea ecx, [ebp - 0x247]
mov dword [ebp - 0x20c], 0
mov byte [ebp - 0x20d], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x1fc], 0
mov dword [ebp - 0x1f8], 0xf
mov byte [ebp - 0x20c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002298
sub ecx, edx
lea eax, [ebp - 0x247]
push ecx
push eax
lea ecx, [ebp - 0x20c]
call fcn.100012d0
mov byte [ebp - 4], 1
xor ecx, ecx
movaps xmm0, xmmword [0x100d08e0]
movups xmmword [ebp - 0x148], xmm0
mov word [ebp - 0x138], 0x3736
mov byte [ebp - 0x136], 0
nop dword [eax + eax]
mov al, byte [ebp - 0x148]
xor byte [ebp + ecx - 0x147], al
inc ecx
cmp ecx, 0x11
jb 0x100022e0
lea ecx, [ebp - 0x147]
mov dword [ebp - 0x17c], 0
mov byte [ebp - 0x136], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x168], 0xf
mov byte [ebp - 0x17c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002328
sub ecx, edx
lea eax, [ebp - 0x147]
push ecx
push eax
lea ecx, [ebp - 0x17c]
call fcn.100012d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
cmp dword [ebp - 0x1f8], 0x10
lea eax, [ebp - 0x20c]
push ecx
cmovae eax, dword [ebp - 0x20c]
push 0x20019
push 0
push eax
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x254], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10002d3c
cmp dword [ebp - 0x168], 0x10
lea ecx, [ebp - 0x254]
push ecx
lea ecx, [ebp - 0x11c]
push ecx
push 0
lea eax, [ebp - 0x17c]
cmovae eax, dword [ebp - 0x17c]
push 0
push eax
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10002d30
movaps xmm0, xmmword [0x100d08f0]
xor ecx, ecx
movups xmmword [ebp - 0x164], xmm0
mov dword [ebp - 0x154], 0x2d2c2026
mov dword [ebp - 0x150], 0x6d242a25
mov dword [ebp - 0x14c], 0x2f2e3b
mov al, byte [ebp - 0x164]
xor byte [ebp + ecx - 0x163], al
inc ecx
cmp ecx, 0x1a
jb 0x100023f1
lea ecx, [ebp - 0x163]
mov dword [ebp - 0x1dc], 0
mov byte [ebp - 0x149], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1c8], 0xf
mov byte [ebp - 0x1dc], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002440
sub ecx, edx
lea eax, [ebp - 0x163]
push ecx
push eax
lea ecx, [ebp - 0x1dc]
call fcn.100012d0
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 3
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002470
sub ecx, edx
mov eax, accept
mov edx, dword [ebp - 0x1cc]
sub eax, edx
cmp eax, ecx
jb 0x10002ded
cmp dword [ebp - 0x1c8], 0x10
lea eax, [ebp - 0x1dc]
push edx
cmovae eax, dword [ebp - 0x1dc]
push eax
push ecx
lea eax, [ebp - 0x11c]
push eax
push ecx
push dword [ebp - 0x250]
lea ecx, [ebp - 0x1f4]
call fcn.10006010
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0xf
mov byte [ebp - 0x134], 0
mov dword [ebp - 0x194], 0
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x180], 0xf
mov byte [ebp - 0x194], 0
push esi
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], 6
call fcn.10001400
push edi
lea ecx, [ebp - 0x1ac]
mov byte [ebp - 4], 7
call fcn.10001400
sub esp, 0xc
mov byte [ebp - 4], 8
lea eax, [ebp - 0x1f4]
lea ecx, [ebp - 0x30c]
push eax
call fcn.10004690
mov byte [ebp - 4], 9
cmp dword [ebp - 0x2b0], 0
je 0x10002b2c
lea edx, [ebp - 0x134]
lea ecx, [ebp - 0x30c]
call fcn.10005810
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
jne 0x10002af2
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x1000257d
mov eax, dword [esi]
push dword [esi + 0x10]
cmp dword [ebp - 0x120], 0x10
lea ecx, [ebp - 0x134]
mov edx, dword [ebp - 0x124]
cmovae ecx, dword [ebp - 0x134]
push eax
push ecx
call fcn.10005a00
add esp, 0xc
cmp eax, 0xffffffff
je 0x10002552
mov al, 0x46
mov byte [ebp - 0x140], 0x66
mov ah, al
mov byte [ebp - 0x137], 0
mov cl, al
mov dword [ebp - 0x160], 0
mov dl, al
mov byte [ebp - 0x137], 0
mov bl, al
mov dword [ebp - 0x150], 0
xor al, byte [ebp - 0x140]
mov ch, ah
mov byte [ebp - 0x13f], al
mov dh, ah
mov al, byte [ebp - 0x140]
mov bh, ah
xor cl, al
mov dword [ebp - 0x14c], 0xf
xor ch, al
mov byte [ebp - 0x13e], cl
xor dl, al
mov byte [ebp - 0x13a], ch
xor dh, al
mov byte [ebp - 0x13d], dl
xor bl, al
mov byte [ebp - 0x139], dh
xor ah, al
mov byte [ebp - 0x13c], bl
xor bh, al
mov byte [ebp - 0x13b], ah
lea ecx, [ebp - 0x13f]
mov byte [ebp - 0x138], bh
mov byte [ebp - 0x160], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002646
sub ecx, edx
lea eax, [ebp - 0x13f]
push ecx
push eax
lea ecx, [ebp - 0x160]
call fcn.100012d0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x1c4]
cmp dword [ebp - 0x1b0], 0x10
lea ecx, [ebp - 0x134]
mov esi, dword [ebp - 0x1b4]
cmovae eax, dword [ebp - 0x1c4]
cmp dword [ebp - 0x120], 0x10
mov edx, dword [ebp - 0x124]
cmovae ecx, dword [ebp - 0x134]
push esi
push eax
push ecx
call fcn.10005a00
add esp, 0xc
push 0
push ecx
push esi
push eax
lea ecx, [ebp - 0x134]
call fcn.10005160
lea ecx, [ebp - 0x194]
cmp ecx, eax
je 0x100026d8
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x100026c9
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x194]
call fcn.100012d0
cmp dword [ebp - 0x198], 0x10
lea eax, [ebp - 0x1ac]
mov esi, dword [ebp - 0x19c]
lea ecx, [ebp - 0x134]
cmovae eax, dword [ebp - 0x1ac]
cmp dword [ebp - 0x120], 0x10
mov edx, dword [ebp - 0x124]
cmovae ecx, dword [ebp - 0x134]
push esi
push eax
push ecx
call fcn.10005a00
add esp, 0xc
push 0
push ecx
push esi
push eax
lea ecx, [ebp - 0x134]
call fcn.10005160
lea ecx, [ebp - 0x194]
cmp ecx, eax
je 0x1000274a
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x1000273b
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x194]
call fcn.100012d0
mov ebx, dword [ebp - 0x14c]
lea eax, [ebp - 0x160]
mov edi, dword [ebp - 0x160]
lea ecx, [ebp - 0x134]
mov esi, dword [ebp - 0x150]
cmp ebx, 0x10
mov edx, dword [ebp - 0x124]
cmovae eax, edi
cmp dword [ebp - 0x120], 0x10
push esi
cmovae ecx, dword [ebp - 0x134]
push eax
push ecx
call fcn.10005a00
add esp, 0xc
push 0
push ecx
push esi
push eax
lea ecx, [ebp - 0x134]
call fcn.10005160
lea ecx, [ebp - 0x194]
cmp ecx, eax
je 0x100027c0
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x100027b1
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x194]
call fcn.100012d0
mov ecx, dword [ebp - 0x250]
lea eax, [ebp - 0x194]
cmp ecx, eax
je 0x100027ea
cmp dword [ebp - 0x180], 0x10
push dword [ebp - 0x184]
cmovae eax, dword [ebp - 0x194]
push eax
call fcn.100012d0
mov byte [ebp - 4], 9
cmp ebx, 0x10
jb 0x1000281e
lea ecx, [ebx + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x10002814
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002df2
push ecx
push edi
call fcn.10046e16
add esp, 8
mov eax, dword [ebp - 0x30c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x30c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x310], eax
lea ecx, [ebp - 0x2fc]
call fcn.100045e0
mov eax, dword [ebp - 0x30c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x30c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x310], eax
lea eax, [ebp - 0x29c]
mov byte [ebp - 4], 0xb
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.100466e7
mov edx, dword [ebp - 0x198]
add esp, 4
cmp edx, 0x10
jb 0x100028ce
mov ecx, dword [ebp - 0x1ac]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100028c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002df2
push edx
push ecx
call fcn.10046e16
add esp, 8
mov edx, dword [ebp - 0x1b0]
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x198], 0xf
mov byte [ebp - 0x1ac], 0
cmp edx, 0x10
jb 0x10002923
mov ecx, dword [ebp - 0x1c4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10002919
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002df2
push edx
push ecx
call fcn.10046e16
add esp, 8
mov edx, dword [ebp - 0x180]
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1b0], 0xf
mov byte [ebp - 0x1c4], 0
cmp edx, 0x10
jb 0x10002978
mov ecx, dword [ebp - 0x194]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000296e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002df2
push edx
push ecx
call fcn.10046e16
add esp, 8
mov edx, dword [ebp - 0x120]
cmp edx, 0x10
jb 0x100029b2
mov ecx, dword [ebp - 0x134]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100029a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002df2
push edx
push ecx
call fcn.10046e16
add esp, 8
mov edx, dword [ebp - 0x1e0]
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0xf
mov byte [ebp - 0x134], 0
cmp edx, 0x10
jb 0x10002a07
mov ecx, dword [ebp - 0x1f4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100029fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002df2
push edx
push ecx
call fcn.10046e16
add esp, 8
mov edx, dword [ebp - 0x1c8]
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1e0], 0xf
mov byte [ebp - 0x1f4], 0
cmp edx, 0x10
jb 0x10002a5c
mov ecx, dword [ebp - 0x1dc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10002a52
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002df2
push edx
push ecx
call fcn.10046e16
add esp, 8
mov edx, dword [ebp - 0x168]
cmp edx, 0x10
jb 0x10002a96
mov ecx, dword [ebp - 0x17c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10002a8c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002df2
push edx
push ecx
call fcn.10046e16
add esp, 8
mov edx, dword [ebp - 0x1f8]
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x168], 0xf
mov byte [ebp - 0x17c], 0
cmp edx, 0x10
jb 0x10002aeb
mov ecx, dword [ebp - 0x20c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10002ae1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002df2
push edx
push ecx
call fcn.10046e16
add esp, 8
mov al, 1
jmp 0x10002dd1
lea ecx, [ebp - 0x2fc]
call fcn.10005030
test eax, eax
jne 0x10002b2c
mov eax, dword [ebp - 0x30c]
lea ecx, [ebp - 0x30c]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10002090
mov eax, dword [ebp - 0x30c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x30c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x310], eax
lea ecx, [ebp - 0x2fc]
call fcn.100045e0
mov eax, dword [ebp - 0x30c]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x30c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x310], eax
lea eax, [ebp - 0x29c]
mov byte [ebp - 4], 0xc
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.100466e7
mov edx, dword [ebp - 0x198]
add esp, 4
cmp edx, 0x10
jb 0x10002bdc
mov ecx, dword [ebp - 0x1ac]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10002bd2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002df2
push edx
push ecx
call fcn.10046e16
add esp, 8
mov edx, dword [ebp - 0x1b0]
mov dword [ebp - 0x19c], 0
mov dword [ebp - 0x198], 0xf
mov byte [ebp - 0x1ac], 0
cmp edx, 0x10
jb 0x10002c31
mov ecx, dword [ebp - 0x1c4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10002c27
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002df2
push edx
push ecx
call fcn.10046e16
add esp, 8
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x1b4], 0
mov dword [ebp - 0x1b0], 0xf
mov byte [ebp - 0x1c4], 0
cmp edx, 0x10
jb 0x10002c86
mov ecx, dword [ebp - 0x134]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10002c7c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002df2
push edx
push ecx
call fcn.10046e16
add esp, 8
mov edx, dword [ebp - 0x1e0]
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 0xf
mov byte [ebp - 0x134], 0
cmp edx, 0x10
jb 0x10002cdb
mov ecx, dword [ebp - 0x1f4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10002cd1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002df2
push edx
push ecx
call fcn.10046e16
add esp, 8
mov edx, dword [ebp - 0x1c8]
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1e0], 0xf
mov byte [ebp - 0x1f4], 0
cmp edx, 0x10
jb 0x10002d30
mov ecx, dword [ebp - 0x1dc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10002d26
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002df2
push edx
push ecx
call fcn.10046e16
add esp, 8
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x168]
cmp edx, 0x10
jb 0x10002d76
mov ecx, dword [ebp - 0x17c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10002d6c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002df7
push edx
push ecx
call fcn.10046e16
add esp, 8
mov edx, dword [ebp - 0x1f8]
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x168], 0xf
mov byte [ebp - 0x17c], 0
cmp edx, 0x10
jb 0x10002dd1
mov ecx, dword [ebp - 0x20c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10002dbd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10002df7
push edx
push ecx
call fcn.10046e16
add esp, 8
jmp 0x10002dd1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.10046dd3
mov esp, ebp
pop ebp
ret
call fcn.10001270
call fcn.1008c84f
call fcn.1008c84f
int3