Function at 0x100122f0
Capabilities:
Encode data using xor
Encrypt data using dpapi
Get steam token
Hash data with crc32
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003a673
mov eax, dword fs:[0]
push eax
mov eax, 0x1710
call fcn.10019b00
mov eax, dword [0x1004e054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x16e8], ecx
push 0
mov dword [ebp - 0x1670], 0
lea ecx, [ebp - 0x1670]
push 0x10046778
mov dword [ebp - 0x1660], 0
mov dword [ebp - 0x165c], 0xf
mov byte [ebp - 0x1670], 0
call fcn.100026a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1628]
push 0
mov dword [ebp - 0x1628], 0
push 0x10046778
mov dword [ebp - 0x1618], 0
mov dword [ebp - 0x1614], 0xf
mov byte [ebp - 0x1628], 0
call fcn.100026a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1640]
push 0
mov dword [ebp - 0x1640], 0
push 0x10046778
mov dword [ebp - 0x1630], 0
mov dword [ebp - 0x162c], 0xf
mov byte [ebp - 0x1640], 0
call fcn.100026a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1688]
push 9
mov dword [ebp - 0x1688], 0
push str.305419896
mov dword [ebp - 0x1678], 0
mov dword [ebp - 0x1674], 0xf
mov byte [ebp - 0x1688], 0
call fcn.100026a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x16b8]
push 0x1ed
mov dword [ebp - 0x16b8], 0
push str.eyAidHlwIjogIkpXVCIsICJhbGciOiAiRWREU0EiIH0.eyAiaXNzIjogInN0ZWFtIiwgInN1YiI6ICI3NjU2MTE5OTREVERCCeyAiaXNzIjogInN0ZWFtIiwgInN1YiI6ICI3NjU2MTE5OTREVERCCeyAiaXNzIjogInN0ZWFtIiwgInN1YiI6ICI3NjU2MTE5OTREVERCCeyAiaXNzIjogInN0ZWFtIiwgInN1YiI6ICI3NjU2MTE5OTREVERCCeyAiaXNzIjogInN0ZWFtIiwgInN1YiI6ICI3NjU2MTE5OTREVERCCeyAiaXNzIjogInN0ZWFtIiwgInN1YiI6ICI3NjU2MTE5OTREVERCCeyAiaXNzIjogInN0ZWFtIiwgInN1YiI6ICI3NjU2MTE5OTREVERCCeyAiaXNzIjogInN0ZWFtIiwgInN1YiI6ICI3NjU2MTE5OTREVERCCeyAiaXNzIjogInN0ZWFtIiwgI
mov dword [ebp - 0x16a8], 0
mov dword [ebp - 0x16a4], 0xf
mov byte [ebp - 0x16b8], 0
call fcn.100026a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1658]
push 0
mov dword [ebp - 0x1658], 0
push 0x10046778
mov dword [ebp - 0x1648], 0
mov dword [ebp - 0x1644], 0xf
mov byte [ebp - 0x1658], 0
call fcn.100026a0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x16dc]
push str._1_OpDIR5bNCMPaM4vcMaT6C0
mov dword [ebp - 0x16dc], 0
mov dword [ebp - 0x16d8], str._1_OpDIR5bNCMPaM4vcMaT6C0
call fcn.100037d0
mov esi, dword [ebp - 0x16dc]
push esi
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ebx, eax
test esi, esi
je 0x100124d7
push esi
call fcn.10022ece
add esp, 4
mov eax, dword [ebp - 0x16a4]
mov edi, dword [ebp - 0x16b8]
mov dword [ebp - 0x16e4], eax
mov dword [ebp - 0x16e0], edi
test ebx, ebx
je 0x10012512
push 0
push 0
push 0
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x10012520
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x16e4]
or esi, 0xffffffff
jmp 0x10012be5
push 0x1000
lea eax, [ebp - 0x1610]
push 0
push eax
call fcn.1001a930
push dword [esi]
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x1610]
push eax
call fcn.1001a3a0
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x1704]
call fcn.1000fdb0
mov esi, eax
mov dword [ebp - 0x16dc], 0
mov dword [ebp - 0x16d8], str._1_9LL08qHdG24gBG
mov byte [ebp - 4], 7
cmp dword [esi + 0x14], 0x10
jb 0x1001257d
mov esi, dword [esi]
push str._1_9LL08qHdG24gBG
lea ecx, [ebp - 0x16dc]
call fcn.100037d0
lea eax, [ebp - 0x1610]
mov edx, esi
mov esi, dword [ebp - 0x16dc]
mov ecx, esi
push eax
call fcn.10002170
mov edx, eax
mov dword [ebp - 0x16a0], 0
mov ecx, edx
mov dword [ebp - 0x1690], 0
add esp, 4
mov dword [ebp - 0x168c], 0xf
mov byte [ebp - 0x16a0], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100125d2
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x16a0]
call fcn.100026a0
test esi, esi
je 0x100125f5
push esi
call fcn.10022ece
add esp, 4
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x16f0]
cmp edx, 0x10
jb 0x10012633
mov ecx, dword [ebp - 0x1704]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10012629
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012dbd
push edx
push ecx
call fcn.10018f58
add esp, 8
push 0x1000
lea eax, [ebp - 0x1610]
mov dword [ebp - 0x16f4], 0
push 0
push eax
mov dword [ebp - 0x16f0], 0xf
mov byte [ebp - 0x1704], 0
call fcn.1001a930
mov ecx, dword [ebp - 0x168c]
lea eax, [ebp - 0x16a0]
push dword [ebp - 0x1690]
cmp ecx, 0x10
mov dword [ebp - 0x16ec], ecx
mov ecx, dword [ebp - 0x16a0]
cmovae eax, ecx
mov dword [ebp - 0x16d8], ecx
push eax
lea eax, [ebp - 0x1610]
push eax
call fcn.1001a3a0
lea eax, [ebp - 0x1610]
push 0x3a
push eax
call fcn.1001a200
lea edi, [ebp - 0x1610]
add esp, 0x20
lea ecx, [edi + 1]
mov byte [eax], 0
mov al, byte [edi]
inc edi
test al, al
jne 0x100126b5
mov edx, dword [ebp - 0x165c]
sub edi, ecx
mov ecx, dword [ebp - 0x1660]
mov eax, edx
sub eax, ecx
push edi
cmp edi, eax
ja 0x10012704
lea eax, [ecx + edi]
cmp edx, 0x10
mov dword [ebp - 0x1660], eax
lea esi, [ebp - 0x1670]
cmovae esi, dword [ebp - 0x1670]
lea eax, [ebp - 0x1610]
add esi, ecx
push eax
push esi
call fcn.1001a3a0
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x10012724
lea eax, [ebp - 0x1610]
mov byte [ebp - 0x16d4], 0
push eax
push dword [ebp - 0x16d4]
lea ecx, [ebp - 0x1670]
push edi
call fcn.10002930
lea ecx, [ebp - 0x1610]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10012730
sub ecx, edx
lea edx, [ebp - 0x160f]
add ecx, edx
mov edi, ecx
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10012746
mov esi, dword [ebp - 0x1614]
sub edi, edx
mov edx, dword [ebp - 0x1618]
mov eax, esi
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x10012790
lea eax, [edx + edi]
cmp esi, 0x10
mov dword [ebp - 0x1618], eax
lea eax, [ebp - 0x1628]
cmovae eax, dword [ebp - 0x1628]
lea esi, [eax + edx]
push esi
call fcn.1001a3a0
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x100127a9
mov byte [ebp - 0x16d4], 0
lea ecx, [ebp - 0x1628]
push dword [ebp - 0x16d4]
push edi
call fcn.10002930
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.1001a930
mov edi, dword [ebp - 0x1618]
add esp, 0xc
xor ecx, ecx
test edi, edi
je 0x10012842
mov edx, dword [ebp - 0x1614]
mov esi, dword [ebp - 0x1628]
nop word [eax + eax]
cmp edx, 0x10
lea eax, [ebp - 0x1628]
cmovae eax, esi
cmp byte [eax + ecx], 0x41
jl 0x10012827
cmp edx, 0x10
lea eax, [ebp - 0x1628]
cmovae eax, esi
cmp byte [eax + ecx], 0x5a
jg 0x10012827
cmp edx, 0x10
lea eax, [ebp - 0x1628]
cmovae eax, esi
mov al, byte [eax + ecx]
add al, 0x20
jmp 0x10012836
cmp edx, 0x10
lea eax, [ebp - 0x1628]
cmovae eax, esi
mov al, byte [eax + ecx]
mov byte [ebp + ecx - 0x110], al
inc ecx
cmp ecx, edi
jb 0x100127f0
or ecx, 0xffffffff
xor edx, edx
test edi, edi
jle 0x1001286c
nop dword [eax + eax]
movsx eax, byte [ebp + edx - 0x110]
inc edx
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x10046af0]
cmp edx, edi
jl 0x10012850
push 0x10
push 0x100
lea eax, [ebp - 0x110]
not ecx
push eax
push ecx
call fcn.10024761
lea edi, [ebp - 0x110]
add esp, 0x10
lea ecx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x10012890
mov edx, dword [ebp - 0x162c]
sub edi, ecx
mov ecx, dword [ebp - 0x1630]
mov eax, edx
sub eax, ecx
push edi
cmp edi, eax
ja 0x100128e5
lea eax, [edi + ecx]
cmp edx, 0x10
mov dword [ebp - 0x1630], eax
lea esi, [ebp - 0x1640]
cmovae esi, dword [ebp - 0x1640]
lea eax, [ebp - 0x110]
add esi, ecx
push eax
push esi
call fcn.1001a3a0
add esp, 0xc
mov byte [esi + edi], 0
lea edx, [ebp - 0x1640]
jmp 0x10012907
lea eax, [ebp - 0x110]
mov byte [ebp - 0x16d4], 0
push eax
push dword [ebp - 0x16d4]
lea ecx, [ebp - 0x1640]
push edi
call fcn.10002930
mov edx, eax
mov edi, dword [edx + 0x14]
mov ecx, edi
mov esi, dword [edx + 0x10]
sub ecx, esi
cmp ecx, 1
jb 0x1001292b
lea eax, [esi + 1]
mov dword [edx + 0x10], eax
cmp edi, 0x10
jb 0x10012923
mov edx, dword [edx]
mov word [edx + esi], 0x31
jmp 0x10012948
push 1
push 0x1004a1ec
mov byte [ebp - 0x16d4], 0
mov ecx, edx
push dword [ebp - 0x16d4]
push 1
call fcn.10002930
push 0x100
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.1001a930
cmp dword [ebp - 0x1614], 0x10
lea eax, [ebp - 0x1628]
mov esi, dword [ebp - 0x1618]
cmovae eax, dword [ebp - 0x1628]
push esi
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.1001a3a0
lea eax, [esi + 4]
mov dword [ebp + esi - 0x210], 0x12345678
mov dword [ebp - 0x16c8], eax
lea eax, [ebp - 0x210]
push 0x400
mov dword [ebp - 0x16c4], eax
lea eax, [ebp - 0x610]
push 0
push eax
call fcn.1001a930
mov ebx, dword [ebp - 0x16e4]
lea eax, [ebp - 0x16b8]
mov esi, dword [ebp - 0x16a8]
cmp ebx, 0x10
push esi
cmovae eax, dword [ebp - 0x16e0]
push eax
lea eax, [ebp - 0x610]
push eax
call fcn.1001a3a0
add esp, 0x30
mov dword [ebp - 0x16d0], esi
lea eax, [ebp - 0x610]
xorps xmm0, xmm0
mov dword [ebp - 0x16cc], eax
lea eax, [ebp - 0x16c0]
movlpd qword [ebp - 0x16c0], xmm0
push eax
push 1
push 0
push 0
lea eax, [ebp - 0x16c8]
push eax
push 0
lea eax, [ebp - 0x16d0]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
push dword [ebp - 0x16c0]
mov edx, dword [ebp - 0x16bc]
lea ecx, [ebp - 0x171c]
call fcn.10017840
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 0xb
cmp dword [ecx + 0x14], 0x10
jb 0x10012a4b
mov ecx, dword [ecx]
mov edi, ecx
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10012a50
mov esi, dword [ebp - 0x1644]
sub edi, edx
mov edx, dword [ebp - 0x1648]
mov eax, esi
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x10012a9a
lea eax, [edx + edi]
cmp esi, 0x10
mov dword [ebp - 0x1648], eax
lea eax, [ebp - 0x1658]
cmovae eax, dword [ebp - 0x1658]
lea esi, [eax + edx]
push esi
call fcn.1001a3a0
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x10012ab3
mov byte [ebp - 0x16d4], 0
lea ecx, [ebp - 0x1658]
push dword [ebp - 0x16d4]
push edi
call fcn.10002930
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x1708]
cmp edx, 0x10
jb 0x10012af1
mov ecx, dword [ebp - 0x171c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10012ae7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012dc2
push edx
push ecx
call fcn.10018f58
add esp, 8
push dword [ebp - 0x16bc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x1644], 0x10
lea ecx, [ebp - 0x1658]
lea edi, [ebp - 0x1688]
cmovae ecx, dword [ebp - 0x1658]
lea esi, [ebp - 0x1640]
cmp dword [ebp - 0x1674], 0x10
lea edx, [ebp - 0x1628]
push ecx
cmovae edi, dword [ebp - 0x1688]
lea eax, [ebp - 0x1670]
cmp dword [ebp - 0x162c], 0x10
mov ecx, dword [ebp - 0x16e8]
cmovae esi, dword [ebp - 0x1640]
cmp dword [ebp - 0x1614], 0x10
push edi
cmovae edx, dword [ebp - 0x1628]
cmp dword [ebp - 0x165c], 0x10
push esi
cmovae eax, dword [ebp - 0x1670]
push edx
push eax
call fcn.10010d30
push dword [ebp - 0x1618]
cmp dword [ebp - 0x1614], 0x10
lea eax, [ebp - 0x1628]
cmovae eax, dword [ebp - 0x1628]
push eax
push 2
push str.AutoLoginUser
push str.SOFTWAREValveSteam
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueA]
mov ecx, dword [ebp - 0x16ec]
xor esi, esi
cmp ecx, 0x10
jb 0x10012bdf
mov edx, dword [ebp - 0x16d8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10012bd5
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012dc7
push ecx
push edx
call fcn.10018f58
add esp, 8
mov edi, dword [ebp - 0x16e0]
mov edx, dword [ebp - 0x1644]
cmp edx, 0x10
jb 0x10012c1f
mov ecx, dword [ebp - 0x1658]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10012c15
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012dc7
push edx
push ecx
call fcn.10018f58
add esp, 8
mov dword [ebp - 0x1648], 0
mov dword [ebp - 0x1644], 0xf
mov byte [ebp - 0x1658], 0
cmp ebx, 0x10
jb 0x10012c6a
lea ecx, [ebx + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x10012c60
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012dc7
push ecx
push edi
call fcn.10018f58
add esp, 8
mov edx, dword [ebp - 0x1674]
cmp edx, 0x10
jb 0x10012ca4
mov ecx, dword [ebp - 0x1688]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10012c9a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012dc7
push edx
push ecx
call fcn.10018f58
add esp, 8
mov edx, dword [ebp - 0x162c]
mov dword [ebp - 0x1678], 0
mov dword [ebp - 0x1674], 0xf
mov byte [ebp - 0x1688], 0
cmp edx, 0x10
jb 0x10012cf9
mov ecx, dword [ebp - 0x1640]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10012cef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012dc7
push edx
push ecx
call fcn.10018f58
add esp, 8
mov edx, dword [ebp - 0x1614]
mov dword [ebp - 0x1630], 0
mov dword [ebp - 0x162c], 0xf
mov byte [ebp - 0x1640], 0
cmp edx, 0x10
jb 0x10012d4e
mov ecx, dword [ebp - 0x1628]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10012d44
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012dc7
push edx
push ecx
call fcn.10018f58
add esp, 8
mov edx, dword [ebp - 0x165c]
mov dword [ebp - 0x1618], 0
mov dword [ebp - 0x1614], 0xf
mov byte [ebp - 0x1628], 0
cmp edx, 0x10
jb 0x10012d9f
mov ecx, dword [ebp - 0x1670]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10012d95
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012dc7
push edx
push ecx
call fcn.10018f58
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10018a16
mov esp, ebp
pop ebp
ret
call fcn.10022b95
call fcn.10022b95
call fcn.10022b95
int3