Function at 0x1003aca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101e58f0
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push esi
push edi
mov eax, dword [0x1027e110]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x7c]
call edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
mov edi, eax
mov eax, dword [edi]
push edx
mov edx, dword [eax + 0x18]
push ecx
mov ecx, edi
call edx
mov eax, dword [edi + 4]
mov edx, dword [eax + 0x14]
add edi, 4
mov ecx, edi
call edx
mov ebx, eax
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
cmp eax, 0x10
je 0x1003ad6c
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
lea ecx, [esi + 4]
lea edx, [esp + 0x64]
push edx
call eax
push str.:_block_size_of_underlying_block_cipher_is_not_16
push eax
lea ecx, [esp + 0x88]
push ecx
mov dword [esp + 0xb4], 0
call fcn.10002a90
add esp, 0xc
push eax
push 1
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0xb4], 1
call fcn.10001230
push 0x102713c4
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], vtable.CryptoPP::InvalidArgument.0
call fcn.101bc385
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x28]
push eax
push 0x1027ff10
push str.TableSize
call edx
test al, al
je 0x1003ada3
xor eax, eax
cmp dword [esp + 0x28], 0x10000
setl al
dec eax
and eax, 0xf800
add eax, 0x800
jmp 0x1003adbe
mov eax, dword [esi]
mov edx, dword [eax + 0x80]
mov ecx, esi
call edx
dec eax
neg eax
sbb eax, eax
and eax, 0xffff0800
add eax, 0x10000
mov dword [esp + 0x28], eax
lea eax, [eax + ebx*2]
add eax, ebx
push eax
lea ecx, [esi + 0xc]
push ecx
call fcn.1003c190
mov esi, dword [esi + 0x18]
xor eax, eax
lea edx, [esi + 0x30]
add esi, 0x20
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push esi
mov dword [esi + 0xc], eax
mov eax, dword [edi]
push 0
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0x10]
push esi
mov ecx, edi
call edx
xor ebx, ebx
xor edi, edi
test esi, esi
je 0x1003ae05
mov ebx, dword [esi]
mov edi, dword [esi + 4]
add esi, 8
bswap ebx
xor eax, eax
xor ecx, ecx
bswap edi
mov dword [esp + 0x30], ebx
test esi, esi
je 0x1003ae1d
mov eax, dword [esi]
mov ecx, dword [esi + 4]
cmp dword [esp + 0x28], 0x10000
bswap ecx
bswap eax
mov esi, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
jne 0x1003af9b
xor eax, eax
mov dword [esp + 0x18], eax
nop
mov edx, eax
and edx, reloc.WS2_32.dll_getsockopt
jns 0x1003ae4f
dec edx
or edx, 0xfffffff8
inc edx
mov ecx, 0xb
sub ecx, edx
mov edx, 1
shl edx, cl
mov ecx, edx
add ecx, dword [esp + 0x24]
cdq
and edx, 7
add eax, edx
sar eax, 3
shl eax, 0xc
add eax, ecx
mov edx, edi
mov ecx, ebx
bswap edx
bswap ecx
je 0x1003ae80
mov dword [eax], ecx
mov dword [eax + 4], edx
add eax, 8
mov ecx, dword [esp + 0x20]
mov edx, esi
bswap edx
bswap ecx
je 0x1003ae94
mov dword [eax], ecx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x20]
mov eax, esi
and eax, 1
shrd esi, edx, 1
mov dword [esp + 0x14], eax
mov eax, edi
shl eax, 0x1f
shr edx, 1
or eax, edx
xor ecx, ecx
mov dword [esp + 0x20], eax
or ecx, esi
xor eax, eax
mov esi, ecx
cmp dword [esp + 0x14], eax
je 0x1003aec7
mov ecx, 0xe1000000
jmp 0x1003aec9
xor ecx, ecx
shrd edi, ebx, 1
xor edi, eax
mov eax, dword [esp + 0x18]
shr ebx, 1
inc eax
xor ebx, ecx
cmp eax, 0x80
mov dword [esp + 0x18], eax
jl 0x1003ae40
mov eax, dword [esp + 0x24]
xor edx, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], eax
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov esi, 2
cmp esi, 1
jle 0x1003af5a
mov ecx, dword [esp + 0x24]
add edx, esi
shl edx, 4
add edx, ecx
lea edi, [esi - 1]
lea ecx, [edx + 0x10]
add eax, 0x10
mov dword [esp + 0x18], edi
mov edi, dword [edx]
xor edi, dword [eax]
mov ebx, dword [edx + 4]
xor ebx, dword [eax + 4]
mov dword [ecx], edi
mov dword [ecx + 4], ebx
mov edi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
xor edi, dword [edx + 8]
xor ebx, dword [edx + 0xc]
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], ebx
add eax, 0x10
add ecx, 0x10
sub dword [esp + 0x18], 1
jne 0x1003af24
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
add esi, esi
cmp esi, 0x80
jle 0x1003af07
add edx, 0x100
add eax, 0x1000
cmp edx, 0x1000
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], edx
jl 0x1003aef5
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dl, byte [0x102892c8]
test dl, dl
jne 0x1003b030
xor eax, eax
mov word [0x102870c0], ax
mov eax, 0x1c2
mov ecx, eax
mov dh, cl
mov dl, ch
mov ecx, 2
mov word [0x102870c2], dx
jmp 0x1003afd4
mov eax, dword [esp + 0x14]
add eax, eax
mov dword [esp + 0x14], eax
mov dh, al
mov dl, ah
mov eax, 1
mov word [ecx*2 + 0x102870c0], dx
cmp ecx, eax
jbe 0x1003b01f
lea edx, [ecx*2 + 0x102870c2]
jmp 0x1003b000
mov si, word [eax*2 + 0x102870c0]
xor si, word [ecx*2 + 0x102870c0]
inc eax
mov word [edx], si
add edx, 2
cmp eax, ecx
jb 0x1003b000
mov esi, dword [esp + 0x1c]
add ecx, ecx
cmp ecx, 0x80
jbe 0x1003afd0
mov byte [0x102892c8], 1
xor edx, edx
mov dword [esp + 0x18], edx
mov eax, edx
and eax, 0x8000001f
jns 0x1003b044
dec eax
or eax, 0xffffffe0
inc eax
cmp eax, 4
jge 0x1003b069
mov ecx, 7
sub ecx, eax
mov eax, 1
shl eax, cl
mov ecx, eax
mov eax, edx
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
add eax, 4
jmp 0x1003b089
cmp eax, 8
jge 0x1003b0b5
mov ecx, 0xb
sub ecx, eax
mov eax, 1
shl eax, cl
mov ecx, eax
mov eax, edx
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
add ecx, dword [esp + 0x24]
shl eax, 8
add eax, ecx
mov ecx, ebx
mov edx, edi
bswap ecx
bswap edx
je 0x1003b0a1
mov dword [eax], ecx
mov dword [eax + 4], edx
add eax, 8
mov ecx, dword [esp + 0x20]
mov edx, esi
bswap ecx
bswap edx
je 0x1003b0b5
mov dword [eax + 4], edx
mov dword [eax], ecx
mov ebx, dword [esp + 0x20]
mov eax, esi
shrd esi, ebx, 1
mov ecx, edi
xor edx, edx
shl ecx, 0x1f
shr ebx, 1
and eax, 1
or edx, esi
or ecx, ebx
mov esi, edx
mov dword [esp + 0x20], ecx
test eax, eax
je 0x1003b0e2
xor eax, eax
mov ecx, 0xe1000000
jmp 0x1003b0e6
xor eax, eax
xor ecx, ecx
mov edx, dword [esp + 0x30]
shrd edi, edx, 1
shr edx, 1
mov ebx, edx
mov edx, dword [esp + 0x18]
inc edx
xor ebx, ecx
xor edi, eax
cmp edx, 0x68
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], edx
jl 0x1003b036
mov ebx, dword [esp + 0x24]
xor edx, edx
mov dword [esp + 0x14], edx
mov eax, ebx
mov dword [esp + 0x18], ebx
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x400], ecx
mov dword [eax + 0x404], ecx
mov edi, 2
mov dword [eax + 0x408], ecx
mov dword [eax + 0x40c], ecx
mov dword [esp + 0x2c], edi
lea ebx, [ebx]
cmp edi, 1
jle 0x1003b1f9
lea ecx, [edx + edi]
lea edx, [edx + edi + 0x40]
shl ecx, 4
shl edx, 4
add edx, ebx
add eax, 0x418
lea esi, [ecx + ebx]
dec edi
lea ecx, [esi + 0x418]
mov dword [esp + 0x1c], edi
jmp 0x1003b180
mov edi, dword [eax - 0x408]
xor edi, dword [esi]
mov ebx, dword [eax - 0x404]
xor ebx, dword [esi + 4]
mov dword [ecx - 0x408], edi
mov dword [ecx - 0x404], ebx
mov edi, dword [eax - 0x400]
xor edi, dword [esi + 8]
mov ebx, dword [eax - 0x3fc]
xor ebx, dword [esi + 0xc]
mov dword [ecx - 0x400], edi
mov dword [ecx - 0x3fc], ebx
mov edi, dword [eax - 8]
mov ebx, dword [eax - 4]
xor edi, dword [edx]
xor ebx, dword [edx + 4]
mov dword [ecx - 8], edi
mov dword [ecx - 4], ebx
mov edi, dword [edx + 8]
mov ebx, dword [edx + 0xc]
xor edi, dword [eax]
xor ebx, dword [eax + 4]
mov dword [ecx], edi
mov dword [ecx + 4], ebx
add eax, 0x10
add ecx, 0x10
sub dword [esp + 0x1c], 1
jne 0x1003b180
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
add edi, edi
cmp edi, 8
mov dword [esp + 0x2c], edi
jle 0x1003b150
add edx, 0x10
add eax, 0x100
cmp edx, 0x40
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
jl 0x1003b11c
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc