Function at 0x1109ba70
Capabilities:
Encode data using xor
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111dffeb
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x11279148]
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 [eax + 4]
mov dword [ebp - 0x1ac], eax
call fcn.110c7040
push eax
push 0x80
lea ecx, [ebp - 0x1c8]
call fcn.1111a110
xor edi, edi
push edi
push 1
push edi
push edi
lea eax, [ebp - 0x19c]
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x1a8], 1
mov dword [ebp - 0x19c], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1109bb02
mov edx, dword [ebp - 0x19c]
lea ecx, [ebp - 0x30]
push ecx
push 0x20
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1109bb3d
lea eax, [ebp - 0x1d4]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x1d4]
push ecx
call dword [sym.imp.MSVCR100.dll_srand]
mov ebx, dword [sym.imp.MSVCR100.dll_rand]
add esp, 4
xor esi, esi
call ebx
movzx eax, ax
mov byte [ebp + esi - 0x30], al
shr eax, 8
mov byte [ebp + esi*2 - 0x2f], al
inc esi
cmp esi, 0x10
jl 0x1109bb27
mov eax, dword [ebp - 0x19c]
cmp eax, edi
je 0x1109bb4f
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x20
lea edx, [ebp - 0x30]
push edx
push 0x23031963
call fcn.110e3110
mov dword [ebp - 0x1a0], eax
push 0x20
lea eax, [ebp - 0x30]
push eax
push 0x36913032
call fcn.110e3150
push 0x100
lea ecx, [ebp - 0x140]
push edi
push ecx
mov dword [ebp - 0x1a4], eax
call sub.MSVCR100.dll_memset
mov edx, dword [0x112130c4]
mov eax, dword [0x112130c8]
mov cx, word [0x112130cc]
mov dword [ebp - 0x140], edx
mov dl, byte [0x112130ce]
push edi
mov dword [ebp - 0x13c], eax
mov word [ebp - 0x138], cx
mov byte [ebp - 0x136], dl
call dword [sym.imp.MSVCR100.dll_free]
mov eax, str._debug
add esp, 0x28
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1109bbd0
sub eax, edx
sar eax, 1
lea esi, [eax + eax + 1]
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
push 0xffffffffffffffff
push edi
mov ebx, eax
push esi
push ebx
push str._debug
call fcn.111b7ed0
mov eax, ebx
add esp, 0x18
mov dword [ebp - 0x1cc], ebx
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1109bc08
lea edi, [ebp - 0x140]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1109bc18
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
cmp byte [ebp - 0x140], 0
lea eax, [ebp - 0x140]
je 0x1109bc50
xor byte [eax], 0x20
inc eax
cmp byte [eax], 0
jne 0x1109bc47
lea eax, [ebp - 0x140]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1109bc60
mov esi, dword [ebp - 0x1a0]
sub eax, edx
mov ebx, eax
cdq
and edx, 3
add eax, edx
sar eax, 2
xor esi, 0x97a5b4c3
xor ecx, ecx
test eax, eax
jle 0x1109bcad
jmp 0x1109bc90
mov edx, dword [ebp + ecx*4 - 0x140]
xor edx, esi
xor edx, dword [ebp - 0x1a4]
inc ecx
mov dword [ebp + ecx*4 - 0x144], edx
shr esi, 1
cmp ecx, eax
jl 0x1109bc90
lea edi, [ebp + ebx - 0x140]
mov ecx, 8
lea esi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x198]
mov edi, 0x20
push eax
add ebx, edi
call fcn.1104c0e0
push ebx
lea ecx, [ebp - 0x140]
push ecx
lea edx, [ebp - 0x198]
push edx
call fcn.1104c120
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x198]
push ecx
call fcn.1104c200
lea edx, [ebp - 0x40]
push 0x10
push edx
call fcn.111ba520
mov esi, dword [ebp - 0x1ac]
mov dword [esi + 0x498], eax
lea eax, [ebp - 0x30]
push edi
push eax
mov dword [esi + 0x49c], 0x10
mov dword [esi + 0x4a4], edi
call fcn.111ba520
mov dword [esi + 0x4a0], eax
add esp, 0x28
mov ecx, 0x100
lea eax, [ebp - 0x140]
lea ebx, [ebx]
mov byte [eax], 0
inc eax
dec ecx
jne 0x1109bd40
mov edx, dword [ebp - 0x1c8]
mov eax, dword [edx + 0xc]
lea ecx, [ebp - 0x1a4]
push ecx
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 0x1a0], edi
mov dword [ebp - 0x1a4], 0xd9
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [ebp - 0x1a8]
push ecx
mov ecx, eax
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [ebp - 0x1a0]
push ecx
mov ecx, eax
call edx
push edi
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x1c8]
call fcn.110e41c0
mov edx, dword [ebp - 0x1c8]
mov eax, dword [edx + 0xa4]
mov edi, dword [esi + 4]
lea ecx, [ebp - 0x1c8]
call eax
test al, al
jne 0x1109bdd1
push 0x13a
push str.e:_nsmsrc_nsm14101410fctl32DataStream.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov edx, dword [ebp - 0x1c8]
mov eax, dword [edx + 0xa4]
mov ebx, dword [ebp - 0x1bc]
lea ecx, [ebp - 0x1c8]
call eax
test al, al
jne 0x1109be06
push 0x136
push str.e:_nsmsrc_nsm14101410fctl32DataStream.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov edx, dword [edi]
mov eax, dword [ebp - 0x1b4]
mov edx, dword [edx + 0x48]
push 0
push ebx
push eax
mov ecx, edi
call edx
lea ecx, [ebp - 0x1c8]
mov byte [esi + 0x494], 1
mov dword [ebp - 4], 0xffffffff
call fcn.1111ab70
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.111d9022
mov esp, ebp
pop ebp
ret