Function at 0x891a60
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 [0xbd33e0]
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.0089b8b0
add esp, 0x14
test eax, eax
je 0x891ad9
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x891ae8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
jmp 0x8922c4
mov edx, fcn.008944f0
mov eax, fcn.008944f0
movzx ecx, byte [0xbcab97]
and edx, 1
xor edx, eax
cmp edx, 0xffffffff
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x891c26
mov al, byte [0xbcab97]
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 [0xbcab97], ah
jne 0x891b19
mov ecx, fcn.008944f0
mov edx, fcn.008944f0
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 0x891b7d
cmp ecx, 0xffffffff
movzx edx, byte [0xbcab97]
sete al
not al
and al, 3
movzx eax, al
bt edx, eax
jae 0x891b5f
jmp 0x891c26
cmp ecx, 0xffffffff
movzx ecx, byte [0xbcab97]
sete al
not al
and al, 3
movzx eax, al
bt ecx, eax
jb 0x891bff
mov edx, fcn.008944f0
mov eax, fcn.008944f0
xor ecx, ecx
and edx, 1
xor edx, eax
mov eax, dword [0xbcab88]
cmp edx, 0xffffffff
sete cl
xor ecx, 0x4920a4d3
add ecx, 0x1210
xor eax, ecx
mov edx, ecx
mov dword [0xbcab88], eax
shr edx, 0x1f
not eax
mov edi, dword [0xbcab8c]
or edx, ecx
and cl, 7
imul edx, eax
lea esi, [edx + edx]
xor edi, edx
shr edx, 0x1e
mov dword [0xbcab8c], edi
or edx, esi
not edi
imul edi, edx
mov dl, 1
xor dword [0xbcab90], edi
shl dl, cl
or byte [0xbcab97], dl
mov ecx, fcn.008944f0
mov eax, fcn.008944f0
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 [0xbcab97], al
mov ebp, dword [esp + 0xc]
push 0xbcab88
push ebp
push ebx
mov eax, dword [esp + 0x40]
push eax
call dword [eax + 0x18]
add esp, 0x10
test eax, eax
jne 0x891c53
mov eax, dword [esp + 4]
test eax, eax
jne 0x891cb1
mov eax, dword [esp + 0x40]
mov dword [eax], ebx
jmp 0x8922c4
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
test ecx, ecx
je 0x891c65
mov edx, dword [esp + 0x14]
mov dword [ecx], edx
mov ecx, dword [esp + 0x34]
test eax, eax
jne 0x891c73
mov edx, dword [esp + 0x18]
jmp 0x891c79
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.0089b8b0
add esp, 0x14
test eax, eax
je 0x891ad9
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x891d56
mov ebp, dword [esp + 0xc]
mov edx, fcn.00893d10
mov esi, fcn.00893d10
movzx ecx, byte [0xbcaba7]
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 0x891e14
mov al, byte [0xbcaba7]
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 [0xbcaba7], ah
jne 0x891ce6
mov ecx, fcn.00893d10
mov edx, fcn.00893d10
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 0x891d6b
mov eax, ecx
movzx esi, byte [0xbcaba7]
add eax, edx
sete al
not al
add al, 0xc0
and al, 7
movzx eax, al
bt esi, eax
jae 0x891d35
jmp 0x891e14
cmp dword [esp + 4], 0
jne 0x891ad9
mov esi, 1
jmp 0x8922c6
add ecx, edx
movzx ecx, byte [0xbcaba7]
sete al
not al
add al, 0xc0
and al, 7
movzx eax, al
bt ecx, eax
jb 0x891dea
mov eax, fcn.00893d10
mov edx, fcn.00893d10
xor ecx, ecx
xor edx, 2
or eax, 2
add eax, edx
mov eax, dword [0xbcab98]
sete cl
xor ecx, 0x98aba61f
or ecx, 0x10c0
xor eax, ecx
and cl, 7
mov dword [0xbcab98], eax
not eax
mov edx, dword [0xbcab9c]
imul eax, eax, 0x98abb6df
lea esi, [eax + eax]
xor edx, eax
shr eax, 0x1e
mov dword [0xbcab9c], edx
or esi, eax
not edx
mov al, 1
imul edx, esi
shl al, cl
xor dword [0xbcaba0], edx
or byte [0xbcaba7], al
mov eax, fcn.00893d10
mov ecx, fcn.00893d10
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 [0xbcaba7], al
push 0xbcab98
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 0x891ec4
mov ebp, dword [esp + 0x14]
mov ecx, edi
mov edx, ebp
push dword [esp]
call fcn.0089ba20
add esp, 4
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp eax, 0x1a
jb 0x891e57
mov dword [esi], ebp
jmp 0x8922c4
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x50]
test eax, eax
je 0x891e65
mov dword [eax], ebp
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x34]
test ebx, ebx
je 0x891e82
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.0089b8b0
add esp, 0x14
test eax, eax
je 0x891ad9
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x891ec0
mov esi, 1
jmp 0x8922c6
mov ebp, dword [esp + 0xc]
mov edx, 0x899870
movzx ecx, byte [0xbcabb7]
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 0x891fea
mov al, byte [0xbcabb7]
cmp edx, 1
mov ah, 1
seta cl
or cl, 6
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbcabb7], ah
jne 0x891ef5
mov ecx, 0x899870
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 0x891f4f
cmp ecx, 1
movzx edx, byte [0xbcabb7]
seta al
or al, 6
movzx eax, al
bt edx, eax
jae 0x891f33
jmp 0x891fea
cmp ecx, 1
movzx edx, byte [0xbcabb7]
seta al
or al, 6
movzx eax, al
bt edx, eax
jb 0x891fc9
mov eax, 0x899870
xor ecx, ecx
imul eax, eax
and eax, 3
cmp eax, 1
mov eax, dword [0xbcaba8]
seta cl
or ecx, 0x8e31023e
add ecx, 0xa80
mov edx, ecx
xor eax, ecx
shr edx, 0x1f
mov dword [0xbcaba8], eax
not eax
or edx, ecx
and cl, 7
imul edx, eax
mov eax, dword [0xbcabac]
lea ebp, [edx + edx]
xor eax, edx
shr edx, 0x1e
mov dword [0xbcabac], eax
or ebp, edx
not eax
mov dl, 1
imul eax, ebp
shl dl, cl
xor dword [0xbcabb0], eax
or byte [0xbcabb7], dl
mov eax, 0x899870
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 [0xbcabb7], al
push 0xbcaba8
push esi
push ebx
mov esi, dword [esp + 0x40]
push esi
call dword [esi + 0x18]
add esp, 0x10
test edi, edi
jne 0x891c48
test eax, eax
je 0x891c48
mov eax, fcn.0089ba80
mov edx, 3
movzx ecx, byte [0xbcabc3]
sub edx, eax
mov eax, edx
xor eax, fcn.0089ba80
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x892132
mov al, byte [0xbcabc3]
mov ecx, edx
mov ah, 1
xor ecx, fcn.0089ba80
sete cl
or cl, 4
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbcabc3], ah
jne 0x89203c
mov edx, fcn.0089ba80
mov ecx, 3
movzx eax, al
sub ecx, edx
mov edx, ecx
xor edx, fcn.0089ba80
sete dl
or dl, 4
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x8920a5
mov eax, ecx
movzx edx, byte [0xbcabc3]
xor eax, fcn.0089ba80
sete al
or al, 4
movzx eax, al
bt edx, eax
jae 0x892085
jmp 0x892132
xor ecx, fcn.0089ba80
movzx ecx, byte [0xbcabc3]
sete al
or al, 4
movzx eax, al
bt ecx, eax
jb 0x89210d
mov eax, fcn.0089ba80
mov edx, 3
xor ecx, ecx
sub edx, eax
mov eax, dword [str.__l_n_]
xor edx, fcn.0089ba80
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 [0xbcabbc], edx
mov dl, 1
shl dl, cl
or byte [0xbcabc3], dl
mov eax, fcn.0089ba80
mov ecx, 3
sub ecx, eax
mov al, 0xfe
xor ecx, fcn.0089ba80
sete cl
or cl, 4
xor cl, 7
rol al, cl
and byte [0xbcabc3], 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 0x892170
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x40]
test ebx, ebx
je 0x89227b
mov dword [ebx], 1
jmp 0x89227b
mov edx, 0x891090
movzx ecx, byte [0xbcabcb]
mov esi, dword [esp + 0x40]
xor eax, eax
imul edx, edx
and edx, 3
cmp edx, 3
sete al
bt ecx, eax
jb 0x89224e
mov al, byte [0xbcabcb]
cmp edx, 3
mov ah, 1
sete cl
xor cl, 7
shl ah, cl
or ah, al
lock cmpxchg byte [0xbcabcb], ah
jne 0x89219c
mov ecx, 0x891090
movzx eax, al
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete dl
xor dl, 7
movzx edx, dl
bt eax, edx
jae 0x8921ea
movzx edx, byte [0xbcabcb]
xor eax, eax
cmp ecx, 3
sete al
bt edx, eax
jae 0x8921d4
jmp 0x89224e
movzx edx, byte [0xbcabcb]
xor eax, eax
cmp ecx, 3
sete al
bt edx, eax
jb 0x892230
mov eax, 0x891090
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 [0xbcabc4], ecx
and cl, 7
shl al, cl
or byte [0xbcabcb], al
mov eax, 0x891090
imul eax, eax
and eax, 3
cmp eax, 3
mov al, 0xfe
sete cl
xor cl, 7
rol al, cl
and byte [0xbcabcb], al
mov ecx, dword [esp + 0x34]
mov eax, edi
sub eax, dword [ecx + 0x40]
push 0xbcabc4
push eax
push ebp
push ecx
call dword [ecx + 0x18]
add esp, 0x10
test eax, eax
je 0x891e50
mov ebp, dword [esp + 0x34]
test ebx, ebx
je 0x89227b
mov dword [ebx], 0
mov ecx, ebp
mov edx, edi
push dword [esp]
call fcn.0089ba20
add esp, 4
mov ecx, eax
call fcn.0089ba80
test eax, eax
je 0x8922b6
add edi, dword [ebp + 0x40]
mov ecx, ebp
mov edx, edi
push dword [esp]
call fcn.0089ba20
add esp, 4
mov ecx, eax
call fcn.0089ba80
test eax, eax
jne 0x892295
mov dword [esp + 0x18], edi
cmp edi, dword [esp]
jne 0x8922c2
mov esi, 1
jmp 0x8922c6
mov dword [esi], edi
xor esi, esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00989fe9
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret