Function at 0x10012c30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cdb1b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10157aa0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
cmp byte [esi + 0x6c], 0
jne 0x100130f2
cmp dword [esi + 0x7c], 0
jne 0x10012c84
push 0x167
push str....._source_tstp_tcptstpchannel.cpp
push str.m_pre_recv_flow___NULL
call fcn.100be532
add esp, 0xc
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
cmp dword [esi + 0x70], 0
lea ebx, [esi + 0x1c]
je 0x10012ca1
cmp dword [esi + 0x78], 0
jne 0x10012ce7
movzx ebx, word [esi + 0x74]
mov edi, dword [esi + 0x7c]
mov dword [esi + 0x70], 0
mov dword [ebp - 0x18], ebx
test bx, bx
jne 0x10012ccb
push 0x27
push str....._source_flowcachedflow.cpp
push str.length___0
call fcn.100be532
add esp, 0xc
lea eax, [ebp - 0x18]
mov word [edi + 0x33e], bx
push eax
lea ecx, [edi + 0x318]
call fcn.10011d90
mov dword [esi + 0x78], eax
lea ebx, [esi + 0x1c]
mov edx, dword [ebx]
mov eax, 0x1008
sub eax, dword [esi + 0x70]
mov ecx, ebx
push eax
mov eax, dword [esi + 0x78]
add eax, dword [esi + 0x70]
push eax
call dword [edx + 0x2c]
test eax, eax
jle 0x1001311e
add dword [esi + 0x70], eax
mov bl, 1
cmp dword [esi + 0x70], 0
jle 0x10013064
jmp 0x10012d20
mov ecx, dword [esi + 0x70]
cmp ecx, 8
jb 0x1001300a
mov edx, dword [esi + 0x78]
movzx eax, word [edx]
add eax, 8
cmp ecx, eax
jl 0x1001300a
movzx eax, word [edx + 2]
test eax, 0x8000
je 0x10012db4
movzx ecx, word [edx]
and eax, 0x7fff
mov word [edx + 2], ax
mov edi, ecx
mov eax, dword [edx + 4]
add edx, 8
not eax
lea ebx, [ecx + 1]
and ebx, eax
mov ax, cx
shr ax, 2
xor ecx, ecx
movzx eax, ax
not ebx
cmp cx, ax
jae 0x10012d99
mov esi, eax
jmp 0x10012d80
mov ecx, dword [edx]
add edi, 0xfffc
mov eax, ecx
xor eax, ebx
mov ebx, ecx
mov dword [edx], eax
add edx, 4
dec esi
jne 0x10012d80
mov esi, dword [ebp - 0x20]
movzx eax, di
test di, di
je 0x10012db0
xor byte [edx], bl
lea edx, [edx + 1]
add eax, 0xffff
test ax, ax
jne 0x10012da1
mov byte [esi + 0xd], 1
mov eax, dword [esi + 0x78]
cmp word [eax], 0
jne 0x10012ee8
cmp word [eax + 2], 0
jne 0x10012de1
cmp dword [eax + 4], 0
je 0x10012ecc
mov dword [ebp - 0x28], 0xfffffff8
lea ecx, [ebp - 0x28]
jmp 0x10013144
movzx ebx, word [eax + 2]
mov eax, dword [esi + 0x9c]
push ebx
call eax
xor edx, edx
add esp, 4
div dword [esi + 0xa4]
mov eax, dword [esi + 0xac]
mov edi, dword [eax + edx*4]
test edi, edi
je 0x10012ecc
lea ebx, [ebx]
mov eax, dword [esi + 0xa0]
push ebx
push dword [edi]
call eax
add esp, 8
test eax, eax
je 0x10012e2e
mov edi, dword [edi + 8]
test edi, edi
jne 0x10012e10
jmp 0x10012ecc
mov edi, dword [edi + 4]
test edi, edi
je 0x10012ecc
mov ecx, dword [edi]
test ecx, ecx
je 0x10012ecc
mov eax, dword [ecx + 4]
add ecx, 4
call dword [eax + 4]
mov ecx, dword [esi + 0x78]
cmp dword [ecx + 4], eax
jg 0x10012ecc
cmp dword [edi + 8], 0
jne 0x10012ea1
push 0x14bc
call fcn.100badd8
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x10012e95
mov ecx, dword [edi]
test ecx, ecx
je 0x10012e80
add ecx, 4
jmp 0x10012e82
xor ecx, ecx
push dword [edi + 4]
push dword [esi + 0x120]
push ecx
mov ecx, eax
call fcn.10013dc0
jmp 0x10012e97
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 8], eax
mov eax, dword [esi + 0x78]
mov ecx, dword [edi + 8]
add ecx, 4
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
call fcn.10011b40
mov ecx, dword [esi + 0x120]
lea edx, [ebp - 0xd]
mov byte [ebp - 0xd], 1
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi + 0x78]
add dword [esi + 0x70], 0xfffffff8
push dword [esi + 0x70]
lea eax, [ecx + 8]
push eax
push ecx
call fcn.100baf70
add esp, 0xc
jmp 0x10012ffc
movzx ebx, word [eax + 2]
mov eax, dword [esi + 0xe0]
push ebx
call eax
xor edx, edx
add esp, 4
div dword [esi + 0xe8]
mov eax, dword [esi + 0xf0]
mov edi, dword [eax + edx*4]
test edi, edi
je 0x10012f29
lea ecx, [ecx]
mov eax, dword [esi + 0xe4]
push ebx
push dword [edi]
call eax
add esp, 8
test eax, eax
je 0x10012f38
mov edi, dword [edi + 8]
test edi, edi
jne 0x10012f10
mov dword [ebp - 0x28], 0xfffffffa
lea ecx, [ebp - 0x28]
jmp 0x10013144
mov edi, dword [edi + 4]
test edi, edi
je 0x10012f29
mov ecx, dword [edi]
test ecx, ecx
je 0x10012f29
mov eax, dword [esi + 0x78]
mov edx, 0x1000
cmp word [eax], dx
ja 0x10013112
add ecx, 4
mov ebx, eax
mov dword [ebp - 0x28], ebx
mov eax, dword [ecx]
call dword [eax + 4]
inc eax
cmp dword [ebx + 4], eax
jne 0x10013106
mov ecx, ebx
call fcn.1000e5c0
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x10013141
mov ebx, dword [edi]
cmp dword [esi + 0x7c], ebx
je 0x10012fd4
movzx eax, word [esi + 0x74]
mov dword [esi + 0x7c], ebx
mov dword [ebp - 0x18], eax
test ax, ax
jne 0x10012fac
push 0x27
push str....._source_flowcachedflow.cpp
push str.length___0
call fcn.100be532
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov word [ebx + 0x33e], ax
lea ecx, [ebx + 0x318]
lea eax, [ebp - 0x18]
push eax
call fcn.10011d90
push dword [esi + 0x70]
mov dword [esi + 0x78], eax
push dword [ebp - 0x28]
push eax
call fcn.100bba20
add esp, 0xc
mov eax, dword [esi + 0x78]
mov ax, word [eax]
add ax, 8
movzx eax, ax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov ecx, dword [edi]
push eax
add ecx, 4
call fcn.10011740
movzx eax, word [ebp - 0x14]
sub dword [esi + 0x70], eax
add dword [esi + 0x78], eax
xor bl, bl
cmp dword [esi + 0x70], 0
jg 0x10012d20
jmp 0x10013064
test bl, bl
jne 0x10013064
movzx ebx, word [esi + 0x74]
mov eax, dword [esi + 0x78]
mov edi, dword [esi + 0x7c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], ebx
test bx, bx
jne 0x10013037
push 0x27
push str....._source_flowcachedflow.cpp
push str.length___0
call fcn.100be532
add esp, 0xc
lea eax, [ebp - 0x28]
mov word [edi + 0x33e], bx
push eax
lea ecx, [edi + 0x318]
call fcn.10011d90
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x78], eax
cmp eax, ecx
je 0x10013064
push dword [esi + 0x70]
push ecx
push eax
call fcn.100bba20
add esp, 0xc
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, 8
jl 0x10012c92
mov eax, dword [0x14d11450]
or eax, dword [0x14d11454]
jne 0x10013099
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 0x24]
mov edx, 0x14d11450
xor eax, eax
lock cmpxchg dword [edx], ecx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
call fcn.100cd53f
mulsd xmm0, qword [0x100f81d0]
mov edx, dword [0x14d11454]
mov ecx, dword [0x14d11450]
movsd qword [ebp - 0x30], xmm0
call fcn.100cd53f
movsd xmm1, qword [ebp - 0x30]
divsd xmm1, xmm0
addsd xmm1, qword [0x100f81c8]
movapd xmm0, xmm1
call fcn.100cd390
mov dword [esi + 0x118], eax
mov dword [esi + 0x11c], edx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x28], 0xfffffff9
lea ecx, [ebp - 0x28]
jmp 0x10013144
mov dword [ebp - 0x28], 0xfffffff7
lea ecx, [ebp - 0x28]
jmp 0x10013144
jns 0x1001313a
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10013074
mov dword [ebp - 0x2c], 0xfffffffc
jmp 0x10013141
mov dword [ebp - 0x2c], 0xfffffff1
lea ecx, [ebp - 0x2c]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret