Function at 0x8861d0
Capabilities:
Encode data using xor
Encrypt data using speck

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
lea esi, [esp + 0x18]
lea edi, [esp + 0x14]
lea ebp, [esp + 0xc]
mov eax, dword [0xbcbae0]
xor eax, esp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov eax, dword [ecx + 0x40]
lea edx, [eax + eax*4]
add eax, eax
add edx, dword [esp + 0x38]
sub ebx, eax
lea eax, [esp + 0x10]
mov dword [esp + 0x18], edx
push esi
push edi
push ebp
push eax
mov dword [esp + 0x10], ebx
push ebx
call fcn.00890020
add esp, 0x14
test eax, eax
je 0x886249
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x886258
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
jmp 0x886a34
mov edx, fcn.00888c60
mov eax, fcn.00888c60
movzx ecx, byte [0xbc3237]
and edx, 1
xor edx, eax
cmp edx, 0xffffffff
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x886396
mov al, byte [0xbc3237]
cmp edx, 0xffffffff
mov ah, 1
sete cl
not cl
and cl, 3
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbc3237], ah
jne 0x886289
mov ecx, fcn.00888c60
mov edx, fcn.00888c60
movzx eax, al
and ecx, 1
xor ecx, edx
cmp ecx, 0xffffffff
sete dl
not dl
and dl, 3
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x8862ed
cmp ecx, 0xffffffff
movzx edx, byte [0xbc3237]
sete al
not al
and al, 3
movzx eax, al
bt edx, eax
jae 0x8862cf
jmp 0x886396
cmp ecx, 0xffffffff
movzx ecx, byte [0xbc3237]
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x88636f
mov edx, fcn.00888c60
mov eax, fcn.00888c60
xor ecx, ecx
and edx, 1
xor edx, eax
mov eax, dword [0xbc3228]
cmp edx, 0xffffffff
sete cl
xor ecx, 0x4920a4d3
add ecx, 0x1210
xor eax, ecx
mov edx, ecx
mov dword [0xbc3228], eax
shr edx, 0x1f
not eax
mov edi, dword [0xbc322c]
or edx, ecx
and cl, 7
imul edx, eax
lea esi, [edx + edx]
xor edi, edx
shr edx, 0x1e
mov dword [0xbc322c], edi
or edx, esi
not edi
imul edi, edx
mov dl, 1
xor dword [0xbc3230], edi
shl dl, cl
or byte [0xbc3237], dl
mov ecx, fcn.00888c60
mov eax, fcn.00888c60
and ecx, 1
xor ecx, eax
mov al, 0xfe
cmp ecx, 0xffffffff
sete cl
not cl
and cl, 3
xor cl, 7
rol al, cl
and byte [0xbc3237], al
mov ebp, dword [esp + 0xc]
push 0xbc3228
push ebp
push ebx
mov eax, dword [esp + 0x40]
push eax
call dword [eax + 0x18]
add esp, 0x10
test eax, eax
jne 0x8863c3
mov eax, dword [esp + 4]
test eax, eax
jne 0x886421
mov eax, dword [esp + 0x40]
mov dword [eax], ebx
jmp 0x886a34
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
test ecx, ecx
je 0x8863d5
mov edx, dword [esp + 0x14]
mov dword [ecx], edx
mov ecx, dword [esp + 0x34]
test eax, eax
jne 0x8863e3
mov edx, dword [esp + 0x18]
jmp 0x8863e9
mov edx, dword [esp + 0x18]
mov dword [eax], edx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x10]
call fcn.00890020
add esp, 0x14
test eax, eax
je 0x886249
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x8864c6
mov ebp, dword [esp + 0xc]
mov edx, fcn.00888480
mov esi, fcn.00888480
movzx ecx, byte [0xbc3247]
or edx, 2
xor esi, 2
mov eax, edx
add eax, esi
sete al
not al
add al, 0xc0
and al, 7
movzx eax, al
bt ecx, eax
jb 0x886584
mov al, byte [0xbc3247]
mov ecx, edx
mov ah, 1
add ecx, esi
sete cl
not cl
add cl, 0xc0
and cl, 7
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbc3247], ah
jne 0x886456
mov ecx, fcn.00888480
mov edx, fcn.00888480
or ecx, 2
xor edx, 2
mov esi, ecx
add esi, edx
sete ah
not ah
add ah, 0xc0
and ah, 7
xor ah, 7
movzx esi, ah
movzx eax, al
bt eax, esi
jae 0x8864db
mov eax, ecx
movzx esi, byte [0xbc3247]
add eax, edx
sete al
not al
add al, 0xc0
and al, 7
movzx eax, al
bt esi, eax
jae 0x8864a5
jmp 0x886584
cmp dword [esp + 4], 0
jne 0x886249
mov esi, 1
jmp 0x886a36
add ecx, edx
movzx ecx, byte [0xbc3247]
sete al
not al
add al, 0xc0
and al, 7
movzx eax, al
bt ecx, eax
jb 0x88655a
mov eax, fcn.00888480
mov edx, fcn.00888480
xor ecx, ecx
xor edx, 2
or eax, 2
add eax, edx
mov eax, dword [0xbc3238]
sete cl
xor ecx, 0x98aba61f
or ecx, 0x10c0
xor eax, ecx
and cl, 7
mov dword [0xbc3238], eax
not eax
mov edx, dword [0xbc323c]
imul eax, eax, 0x98abb6df
lea esi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbc323c], edx
or esi, eax
not edx
mov al, 1
imul edx, esi
shl al, cl
xor dword [0xbc3240], edx
or byte [0xbc3247], al
mov eax, fcn.00888480
mov ecx, fcn.00888480
xor ecx, 2
or eax, 2
add eax, ecx
mov al, 0xfe
sete cl
not cl
add cl, 0xc0
and cl, 7
xor cl, 7
rol al, cl
and byte [0xbc3247], al
push 0xbc3238
push ebp
push ebx
mov edi, dword [esp + 0x40]
push edi
call dword [edi + 0x18]
add esp, 0x10
mov esi, dword [esp + 0x40]
test eax, eax
je 0x886634
mov ebp, dword [esp + 0x14]
mov ecx, edi
mov edx, ebp
push dword [esp]
call fcn.00890190
add esp, 4
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp eax, 0x1a
jb 0x8865c7
mov dword [esi], ebp
jmp 0x886a34
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x50]
test eax, eax
je 0x8865d5
mov dword [eax], ebp
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x34]
test ebx, ebx
je 0x8865f2
mov eax, edi
sub eax, dword [esi + 0x40]
push eax
push ebp
push esi
call dword [esp + 0x14]
add esp, 0xc
mov dword [ebx], eax
lea eax, [esp + 0x18]
mov ecx, esi
mov edx, edi
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x10]
call fcn.00890020
add esp, 0x14
test eax, eax
je 0x886249
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x886630
mov esi, 1
jmp 0x886a36
mov ebp, dword [esp + 0xc]
mov edx, 0x88dfe0
movzx ecx, byte [0xbc3257]
mov edi, dword [esp + 4]
mov esi, ebp
imul edx, edx
and edx, 3
cmp edx, 1
seta al
or al, 6
movzx eax, al
bt ecx, eax
jb 0x88675a
mov al, byte [0xbc3257]
cmp edx, 1
mov ah, 1
seta cl
or cl, 6
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbc3257], ah
jne 0x886665
mov ecx, 0x88dfe0
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 1
seta dl
or dl, 6
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x8866bf
cmp ecx, 1
movzx edx, byte [0xbc3257]
seta al
or al, 6
movzx eax, al
bt edx, eax
jae 0x8866a3
jmp 0x88675a
cmp ecx, 1
movzx edx, byte [0xbc3257]
seta al
or al, 6
movzx eax, al
bt edx, eax
jb 0x886739
mov eax, 0x88dfe0
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
mov eax, dword [0xbc3248]
seta cl
or ecx, 0x8e31023e
add ecx, 0xa80
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbc3248], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbc324c]
lea ebp, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbc324c], eax
or ebp, edx
not eax
mov dl, 1
imul eax, ebp
shl dl, cl
xor dword [0xbc3250], eax
or byte [0xbc3257], dl
mov eax, 0x88dfe0
imul eax, eax
and eax, 3
cmp eax, 1
mov al, 0xfe
seta cl
or cl, 6
xor cl, 7
rol al, cl
and byte [0xbc3257], al
push 0xbc3248
push esi
push ebx
mov esi, dword [esp + 0x40]
push esi
call dword [esi + 0x18]
add esp, 0x10
test edi, edi
jne 0x8863b8
test eax, eax
je 0x8863b8
mov eax, fcn.008901f0
mov edx, 3
movzx ecx, byte [0xbc3263]
sub edx, eax
mov eax, edx
xor eax, fcn.008901f0
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x8868a2
mov al, byte [0xbc3263]
mov ecx, edx
mov ah, 1
xor ecx, fcn.008901f0
sete cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbc3263], ah
jne 0x8867ac
mov edx, fcn.008901f0
mov ecx, 3
movzx eax, al
sub ecx, edx
mov edx, ecx
xor edx, fcn.008901f0
sete dl
or dl, 4
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x886815
mov eax, ecx
movzx edx, byte [0xbc3263]
xor eax, fcn.008901f0
sete al
or al, 4
movzx eax, al
bt edx, eax
jae 0x8867f5
jmp 0x8868a2
xor ecx, fcn.008901f0
movzx ecx, byte [0xbc3263]
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x88687d
mov eax, fcn.008901f0
mov edx, 3
xor ecx, ecx
sub edx, eax
mov eax, dword [str.__l_n_]
xor edx, fcn.008901f0
sete cl
or ecx, 0x6c53079c
add ecx, 0x10c0
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [str.__l_n_], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
xor dword [0xbc325c], edx
mov dl, 1
shl dl, cl
or byte [0xbc3263], dl
mov eax, fcn.008901f0
mov ecx, 3
sub ecx, eax
mov al, 0xfe
xor ecx, fcn.008901f0
sete cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbc3263], al
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x14]
mov eax, edi
sub eax, dword [esi + 0x40]
push str.__l_n_
push eax
push ebp
push esi
call dword [esi + 0x18]
add esp, 0x10
test eax, eax
je 0x8868e0
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x40]
test ebx, ebx
je 0x8869eb
mov dword [ebx], 1
jmp 0x8869eb
mov edx, 0x885800
movzx ecx, byte [0xbc326b]
mov esi, dword [esp + 0x40]
xor eax, eax
imul edx, edx
and edx, 3
cmp edx, 3
sete al
bt ecx, eax
jb 0x8869be
mov al, byte [0xbc326b]
cmp edx, 3
mov ah, 1
sete cl
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbc326b], ah
jne 0x88690c
mov ecx, 0x885800
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x88695a
movzx edx, byte [0xbc326b]
xor eax, eax
cmp ecx, 3
sete al
bt edx, eax
jae 0x886944
jmp 0x8869be
movzx edx, byte [0xbc326b]
xor eax, eax
cmp ecx, 3
sete al
bt edx, eax
jb 0x8869a0
mov eax, 0x885800
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 3
mov al, 1
sete cl
or ecx, 0x57679428
add ecx, 0x7a0
xor dword [0xbc3264], ecx
and cl, 7
shl al, cl
or byte [0xbc326b], al
mov eax, 0x885800
imul eax, eax
and eax, 3
cmp eax, 3
mov al, 0xfe
sete cl
xor cl, 7
rol al, cl
and byte [0xbc326b], al
mov ecx, dword [esp + 0x34]
mov eax, edi
sub eax, dword [ecx + 0x40]
push 0xbc3264
push eax
push ebp
push ecx
call dword [ecx + 0x18]
add esp, 0x10
test eax, eax
je 0x8865c0
mov ebp, dword [esp + 0x34]
test ebx, ebx
je 0x8869eb
mov dword [ebx], 0
mov ecx, ebp
mov edx, edi
push dword [esp]
call fcn.00890190
add esp, 4
mov ecx, eax
call fcn.008901f0
test eax, eax
je 0x886a26
add edi, dword [ebp + 0x40]
mov ecx, ebp
mov edx, edi
push dword [esp]
call fcn.00890190
add esp, 4
mov ecx, eax
call fcn.008901f0
test eax, eax
jne 0x886a05
mov dword [esp + 0x18], edi
cmp edi, dword [esp]
jne 0x886a32
mov esi, 1
jmp 0x886a36
mov dword [esi], edi
xor esi, esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00980459
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret