Function at 0x10040930
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e404d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x10114d18]
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 eax, dword [ebp + 8]
mov ecx, dword [0x1012ce30]
mov dword [ebp - 0x38], eax
mov eax, dword fs:[0x2c]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x1012c878]
cmp eax, dword [esi + 4]
jg 0x100409ca
mov eax, dword [0x1012c880]
cmp eax, dword [esi + 4]
jg 0x10040aca
mov eax, dword [0x1012c87c]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
pushaw
push dword [ebp + 0xc]
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
mov eax, dword [0x1012c874]
call eax
popaw
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.100858b1
mov esp, ebp
pop ebp
ret 8
push 0x1012c878
call fcn.10085a3a
add esp, 4
cmp dword [0x1012c878], 0xffffffff
jne 0x1004097d
mov dword [ebp - 0x1c], 0x2c
mov eax, dword [ebp - 0x1c]
xor al, 0x35
mov dword [ebp - 4], 0
mov byte [ebp - 0x18], al
mov eax, dword [ebp - 0x1c]
inc al
xor al, 0x34
mov byte [ebp - 0x17], al
mov eax, dword [ebp - 0x1c]
add al, 2
xor al, 0x36
mov byte [ebp - 0x16], al
mov eax, dword [ebp - 0x1c]
add al, 3
xor al, 0x32
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 0x1c]
add al, 4
xor al, 0x38
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 0x1c]
add al, 5
xor al, 0x30
mov byte [ebp - 0x13], al
mov eax, dword [ebp - 0x1c]
add al, 6
mov byte [ebp - 0x11], 0
xor al, 0x30
xor edx, edx
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0x18]
jmp 0x10040a40
mov al, byte [ebp + edx - 0x18]
mov ecx, dword [ebp - 0x1c]
add cl, dl
xor cl, al
mov byte [ebp + edx - 0x18], cl
inc edx
cmp edx, 7
jb 0x10040a40
mov byte [ebp - 0x11], 0
mov al, byte [ebp - 0x18]
mov byte [ebp - 0x34], al
lea eax, [ebp - 0x34]
push eax
push str._with_key_0x
push 1
push str.____Select_MetaString4_implementation_
push 0x1012ca98
mov dword [ebp - 0x30], 2
call fcn.10002460
add esp, 8
mov ecx, eax
call fcn.10003830
push eax
call fcn.10002460
add esp, 8
push eax
call fcn.10007300
push eax
call fcn.10002840
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
push 0x1012c878
mov dword [0x1012c874], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100859f0
add esp, 4
jmp 0x1004097d
push 0x1012c880
call fcn.10085a3a
add esp, 4
cmp dword [0x1012c880], 0xffffffff
jne 0x1004098e
mov dword [ebp - 0x2c], 0x11
xor edx, edx
mov byte [ebp - 0x28], 0x20
mov byte [ebp - 0x27], 0x28
mov byte [ebp - 0x26], 0x22
mov byte [ebp - 0x25], 0x29
mov byte [ebp - 0x24], 0x23
mov byte [ebp - 0x23], 0x27
mov byte [ebp - 0x22], 0x26
mov byte [ebp - 0x21], 0x23
mov al, byte [ebp - 0x28]
mov dword [ebp - 4], 1
mov byte [ebp - 0x20], 0
jmp 0x10040b20
mov al, byte [ebp + edx - 0x28]
mov ecx, dword [ebp - 0x2c]
xor cl, al
mov byte [ebp + edx - 0x28], cl
inc edx
cmp edx, 8
jb 0x10040b20
mov byte [ebp - 0x20], 0
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 0x40], al
lea eax, [ebp - 0x40]
push eax
push str._with_key_0x
push 0
push str.____Select_MetaString4_implementation_
push 0x1012ca98
mov dword [ebp - 0x3c], 2
call fcn.10002460
add esp, 8
mov ecx, eax
call fcn.10003830
push eax
call fcn.10002460
add esp, 8
push eax
call fcn.10007300
push eax
call fcn.10002840
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_StrToIntA]
push 0x1012c880
mov dword [0x1012c87c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.100859f0
add esp, 4
jmp 0x1004098e