Function at 0x110f920
Capabilities:
Encrypt data using chaskey

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0x10]
cmp dword [ebx + 0x10], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 1
je 0x110fa1e
mov eax, dword [edi]
mov ecx, dword [eax + 0x24930]
mov edx, dword [ecx + 0xc4]
mov eax, dword [edx]
shl eax, 7
xor eax, dword [esi + 0x438]
and eax, 0x80
xor dword [esi + 0x438], eax
mov ecx, dword [edi]
mov edx, dword [ecx + 0x24930]
mov ecx, dword [edx + 0xc4]
mov ecx, dword [ecx + 4]
mov eax, dword [esi + 0x438]
xor ecx, eax
and ecx, 1
xor ecx, eax
mov dword [esi + 0x438], ecx
mov edx, dword [edi]
mov eax, dword [edx + 0x24930]
mov edx, dword [eax + 0xc4]
mov eax, dword [edx + 8]
add eax, eax
xor eax, ecx
and eax, 2
xor eax, ecx
mov dword [esi + 0x438], eax
mov ecx, dword [edi]
mov edx, dword [ecx + 0x24930]
mov ecx, dword [edx + 0xc4]
mov ecx, dword [ecx + 0xc]
add ecx, ecx
add ecx, ecx
xor ecx, eax
and ecx, 4
xor ecx, eax
mov dword [esi + 0x438], ecx
mov edx, dword [edi]
mov eax, dword [edx + 0x24930]
mov edx, dword [eax + 0xc4]
mov eax, dword [edx + 0x10]
add eax, eax
add eax, eax
add eax, eax
xor eax, ecx
and eax, 8
xor eax, ecx
mov dword [esi + 0x438], eax
mov ecx, dword [edi]
mov edx, dword [ecx + 0x24930]
mov ecx, dword [edx + 0xc4]
mov edx, dword [ecx + 0x14]
shl edx, 0xb
xor edx, eax
and edx, 0x800
xor edx, eax
mov dword [esi + 0x438], edx
cmp dword [ebx + 0x2c], 0
je 0x110fa42
mov eax, dword [edi]
push esi
push eax
call fcn.010754e0
push esi
push edi
call fcn.010e0510
push esi
push edi
call fcn.010a5020
mov dword [ebp - 4], 1
cmp dword [ebx + 0x48], 0
je 0x110fafd
mov ecx, dword [edi]
mov edx, dword [ecx + 0x24934]
mov eax, dword [edx + 0xc4]
mov ecx, dword [eax]
add ecx, ecx
xor ecx, dword [esi + 0x1b8]
and ecx, 2
xor dword [esi + 0x1b8], ecx
mov edx, dword [edi]
mov eax, dword [edx + 0x24934]
mov edx, dword [eax + 0xc4]
mov eax, dword [edx + 4]
mov ecx, dword [esi + 0x1b8]
xor eax, ecx
and eax, 1
xor eax, ecx
mov dword [esi + 0x1b8], eax
mov ecx, dword [edi]
mov edx, dword [ecx + 0x24934]
mov ecx, dword [edx + 0xc4]
mov edx, dword [ecx + 8]
shl edx, 8
xor edx, eax
and edx, 0x100
xor edx, eax
mov dword [esi + 0x1b8], edx
mov eax, dword [edi]
mov ecx, dword [eax + 0x24934]
mov edx, dword [ecx + 0xc4]
mov eax, dword [edx + 0xc]
add eax, eax
add eax, eax
xor eax, dword [esi + 0x5c8]
and eax, 4
xor dword [esi + 0x5c8], eax
mov ecx, dword [edi]
mov edx, dword [ecx + 0x24934]
mov eax, dword [edx + 0xc4]
mov ecx, dword [eax + 0x10]
add ecx, ecx
add ecx, ecx
xor ecx, dword [esi + 0x1b8]
and ecx, 4
xor dword [esi + 0x1b8], ecx
cmp dword [ebx + 0x64], 0
je 0x110fc51
mov edx, dword [edi]
mov eax, dword [edx + 0x2493c]
mov ecx, dword [eax + 0xc4]
mov edx, dword [ecx]
add edx, edx
add edx, edx
add edx, edx
xor edx, dword [esi + 0x6a0]
and edx, 8
xor dword [esi + 0x6a0], edx
mov eax, dword [edi]
mov edx, dword [eax + 0x2493c]
mov eax, dword [edx + 0xc4]
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x6a0]
add eax, eax
add eax, eax
xor eax, ecx
and eax, 4
xor eax, ecx
mov dword [esi + 0x6a0], eax
mov ecx, dword [edi]
mov edx, dword [ecx + 0x2493c]
mov ecx, dword [edx + 0xc4]
mov ecx, dword [ecx + 8]
shl ecx, 4
xor ecx, eax
and ecx, 0x10
xor ecx, eax
mov dword [esi + 0x6a0], ecx
mov edx, dword [edi]
mov eax, dword [edx + 0x2493c]
mov edx, dword [eax + 0xc4]
mov eax, dword [edx + 0xc]
shl eax, 5
xor eax, ecx
and eax, 0x20
xor eax, ecx
mov dword [esi + 0x6a0], eax
mov ecx, dword [edi]
mov edx, dword [ecx + 0x2493c]
mov eax, dword [edx + 0xc4]
mov ecx, dword [eax + 0x10]
shl ecx, 4
xor ecx, dword [esi + 0x6d4]
and ecx, 0x10
xor dword [esi + 0x6d4], ecx
mov edx, dword [edi]
mov eax, dword [edx + 0x2493c]
mov ecx, dword [eax + 0xc4]
mov edx, dword [ecx + 0x14]
shl edx, 4
xor edx, dword [esi + 0xc90]
and edx, 0x10
xor dword [esi + 0xc90], edx
mov eax, dword [edi]
mov ecx, dword [eax + 0x2493c]
mov edx, dword [ecx + 0xc4]
xor eax, eax
cmp dword [edx + 0x18], eax
sete al
shl eax, 6
xor eax, dword [esi + 0xcf0]
and eax, 0x40
xor dword [esi + 0xcf0], eax
mov ecx, dword [edi]
mov edx, dword [ecx + 0x2493c]
mov ecx, dword [edx + 0xc4]
mov edx, dword [ecx + 0x1c]
mov eax, dword [esi + 0xcf0]
shl edx, 7
xor edx, eax
and edx, 0x80
xor edx, eax
mov dword [esi + 0xcf0], edx
mov eax, dword [edi]
mov ecx, dword [eax + 0x2493c]
mov edx, dword [ecx + 0xc4]
mov eax, dword [edx + 0x20]
shl eax, 5
xor eax, dword [esi + 0xc90]
and eax, 0x20
xor dword [esi + 0xc90], eax
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x80], 0
mov ebx, 0x2000
je 0x110fe4c
mov eax, dword [edi]
xor ecx, ecx
add eax, 0x25998
nop
cmp dword [eax], 0
jne 0x110fc80
inc ecx
add eax, 4
cmp ecx, 4
jl 0x110fc70
jmp 0x110fc86
mov dword [esi + 0x73c], ecx
cmp dword [esi + 0xde0], 0x1010046
jae 0x110fd40
mov ecx, dword [edi]
mov eax, dword [ecx + 0x24940]
mov ecx, dword [eax + 0xc4]
mov eax, dword [ecx]
mov dword [esi + 0xcc4], eax
mov ecx, dword [edi]
mov eax, dword [ecx + 0x24940]
mov ecx, dword [eax + 0xc4]
mov eax, dword [ecx + 4]
xor eax, dword [esi + 0xcc0]
and eax, 1
xor dword [esi + 0xcc0], eax
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x24940]
mov ecx, dword [ecx + 0xc4]
mov ecx, dword [ecx + 8]
mov eax, dword [esi + 0xcc0]
add ecx, ecx
xor ecx, eax
and ecx, 2
xor ecx, eax
mov dword [esi + 0xcc0], ecx
mov eax, dword [edi]
mov ecx, dword [eax + 0x24940]
mov eax, dword [ecx + 0xc4]
mov ecx, dword [eax + 0xc]
add ecx, ecx
xor ecx, dword [esi + 0xcf0]
and ecx, 2
xor dword [esi + 0xcf0], ecx
test dword [esi + 0x154], 0x10000000
je 0x110fe4c
mov eax, dword [edi]
mov ecx, dword [eax + 0x24940]
mov eax, dword [ecx + 0xc4]
mov ecx, dword [eax + 0x10]
mov dword [esi + 0xcc8], ecx
jmp 0x110fe4c
mov eax, dword [edi]
mov ecx, dword [eax + 0x259b4]
mov dword [esi + 0xcc4], ecx
mov eax, dword [edi]
mov ecx, dword [eax + 0x259b8]
shl ecx, 4
xor ecx, dword [esi + 0xcc0]
and ecx, 0x10
xor dword [esi + 0xcc0], ecx
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x259d0]
mov eax, dword [esi + 0xcc0]
shl ecx, 5
xor ecx, eax
and ecx, 0x20
xor ecx, eax
mov dword [esi + 0xcc0], ecx
mov eax, dword [edi]
mov ecx, dword [eax + 0x259d4]
add ecx, ecx
xor ecx, dword [esi + 0xcf0]
and ecx, 2
xor dword [esi + 0xcf0], ecx
mov eax, dword [edi]
mov ecx, dword [eax + 0x259d8]
xor ecx, dword [esi + 0xcc0]
mov eax, dword [esi + 0xc8]
and ecx, 1
xor dword [esi + 0xcc0], ecx
test eax, 0x200
jne 0x110fde5
mov ecx, dword [edi]
mov ecx, dword [ecx + 8]
cmp dword [ecx + 0xa60], 0
jne 0x110fde5
and eax, 0xffffdfff
and dword [esi + 0xcc0], 0xffffffbf
mov dword [esi + 0xc8], eax
jmp 0x110fe16
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x259bc]
shl ecx, 0xd
xor ecx, eax
and ecx, ebx
xor ecx, eax
mov dword [esi + 0xc8], ecx
mov eax, dword [edi]
mov ecx, dword [eax + 0x259c0]
shl ecx, 6
xor ecx, dword [esi + 0xcc0]
and ecx, 0x40
xor dword [esi + 0xcc0], ecx
test dword [esi + 0x154], 0x10000000
jne 0x110fe3e
mov eax, dword [edi]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
cmp dword [eax + 0x81a4], 0x2710
jb 0x110fe4c
test byte [esi + 0x198], 2
je 0x110fe4c
mov ecx, dword [edi]
mov eax, dword [ecx + 0x259b0]
mov dword [esi + 0xcc8], eax
cmp dword [edx + 0x9c], 0
je 0x110fe65
mov ecx, dword [edi]
push esi
push ecx
push edi
call fcn.010def50
mov edx, dword [ebp + 0x10]
mov dword [ebp - 8], eax
cmp dword [edx + 0xb8], 0
je 0x110fe7b
mov edx, dword [edi]
push esi
push edx
push edi
call fcn.01075790
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0xd4], 0
je 0x110fe8e
push esi
push edi
call fcn.010759a0
mov edx, dword [ebp + 0x10]
mov eax, dword [edi]
test dword [eax + 0x2b6ec], ebx
je 0x110ff73
cmp dword [eax + 0x2d3dc], 0
je 0x110ff73
cmp dword [edx + 0x10c], 0
je 0x110fec2
push edi
mov dword [ebp - 4], 1
call fcn.010df460
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x128], 0
je 0x110ff73
mov eax, dword [edi]
mov ecx, dword [eax + 0x2494c]
mov edx, dword [ecx + 0xc4]
mov ecx, dword [edx]
push 4
mov dword [eax + 0x25f00], ecx
mov eax, dword [edi]
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0x1019b94
push 0x1014dcc
mov dword [ebp - 4], 1
push connect
test dword [eax + 0x2b6ec], ebx
je 0x110ff18
mov edx, dword [eax + 0x25f00]
mov dword [ebp + 0xc], edx
jmp 0x110ff1f
mov dword [ebp + 0xc], 0
mov edx, dword [eax + 8]
mov eax, dword [edx]
push eax
call fcn.010b52d0
mov ecx, dword [edi]
mov eax, dword [ecx + 0x2d3dc]
mov ecx, dword [ecx + 0x25f00]
shl ecx, 5
xor ecx, dword [eax + 0x814]
push 0
and ecx, 0x20
xor dword [eax + 0x814], ecx
mov edx, dword [edi]
mov eax, dword [edx + 0x25ed8]
mov eax, dword [eax + 0x1c]
push 0
push 0x400
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x2d3dc]
mov dword [edx + 0xc], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edi]
test dword [eax + 0x2b6ec], 0x8000
jne 0x110ff8d
mov ecx, dword [eax + 8]
cmp dword [ecx + 0xa38], 0
je 0x110ffa9
cmp dword [eax + 0x26810], 0
je 0x110ffa9
cmp dword [edx + 0x144], 0
je 0x110ffa9
push esi
push edi
call fcn.010ff3e0
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x111001c
mov eax, dword [edi]
mov edx, dword [eax + 0x2d3dc]
test dword [edx + 8], 0x200
je 0x110ffcd
push 0
push 0x1076370
push eax
call fcn.0106cf90
mov edi, dword [edi]
mov esi, dword [edi + 0x2d3dc]
mov edi, dword [edi + 8]
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov word [ebp - 0xc], ax
push 0xa
lea eax, [ebp - 0x20]
push eax
push 0xc
call dword [sym.imp.msvcrt.dll__itow]
mov edx, dword [edi]
add esp, 0xc
push 0x820
push esi
push 3
lea ecx, [ebp - 0x20]
push ecx
push 0x1014dcc
push connect
push edx
call fcn.010b52d0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc