Function at 0x1000bb00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x1000b1d0
xor esi, esi
push 0x1000b1d0
mov edi, eax
push 0x1000b1b0
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.1004bd60
add esp, 0x10
test eax, eax
jne 0x1000bb67
call fcn.1000b0d0
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x1000bb4b
mov dword [ebp - 0x18], ebx
jmp 0x1000bb6a
push 0x1000b1d0
push 0x1000b1d0
push 0x1000b1b0
push eax
push edi
call fcn.1004bdb0
mov eax, dword [ebp - 0x18]
add esp, 0x14
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x10], ebx
jne 0x1000bb90
mov eax, dword [ebp + 0x14]
push eax
call fcn.1004b690
mov ecx, dword [ebp + 0xc]
add esp, 4
lea esi, [eax + ecx + 0x41]
jmp 0x1000bdd6
mov esi, dword [ebp - 0xc]
lea ebx, [ebx]
test esi, esi
jne 0x1000bb9e
call fcn.10045900
mov dword [ebp - 0xc], eax
mov esi, eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
push esi
call fcn.1004efd0
add esp, 8
cmp dword [esi + 4], 0
je 0x1000bb90
call fcn.10046260
mov ebx, eax
push ebx
call fcn.100462f0
add esp, 4
cmp dword [ebp - 0x10], 0
jne 0x1000bbdc
push edi
call fcn.1004bf10
push eax
call fcn.1004c350
add esp, 8
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push ebx
push esi
push edx
push 0
push eax
push edi
call fcn.1004bf10
add esp, 4
push eax
call fcn.1004cb50
mov esi, eax
add esp, 0x18
test esi, esi
je 0x1000bdd6
push edi
call fcn.100564d0
add esp, 4
push eax
push edi
call fcn.1004bf10
add esp, 4
push eax
call fcn.1004c930
add esp, 8
test eax, eax
jne 0x1000bd11
cmp dword [ebp - 0x14], eax
jne 0x1000bc42
push edi
call fcn.1004bf10
push eax
call fcn.1004c350
add esp, 8
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
push ebx
push ecx
push edi
call fcn.100564d0
mov edx, dword [ebp - 0x14]
add esp, 4
push eax
push 0
push edx
push edi
call fcn.1004bf10
add esp, 4
push eax
call fcn.1004cb50
mov esi, eax
add esp, 0x18
test esi, esi
je 0x1000bdd6
cmp dword [ebp - 4], 0
jne 0x1000bc90
push 0x25c
push str.sm2.c
push 0x41
call fcn.10043ea0
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
push ebx
push 0x41
push eax
push 4
push ecx
push edi
call fcn.1004bf10
add esp, 4
push eax
call fcn.1004f170
mov esi, eax
add esp, 0x18
test esi, esi
je 0x1000bdd6
cmp dword [ebp - 8], 0
mov esi, dword [ebp + 0xc]
jne 0x1000bcd8
push 0x263
push str.sm2.c
push esi
call fcn.10043ea0
add esp, 0xc
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
push edx
inc eax
push eax
mov edx, esi
call fcn.1000afc0
mov ecx, dword [ebp - 8]
add esp, 8
mov eax, esi
test esi, esi
je 0x1000bb87
jmp 0x1000bd00
mov dl, byte [ecx]
dec eax
inc ecx
test dl, dl
jne 0x1000bd18
test eax, eax
jne 0x1000bd00
jmp 0x1000bb87
xor esi, esi
jmp 0x1000bdd6
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1000bd30
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
sub esi, eax
mov dl, byte [esi + eax]
xor byte [eax], dl
inc eax
dec ecx
jne 0x1000bd27
call fcn.1004ada0
mov esi, eax
test esi, esi
je 0x1000bd89
mov eax, dword [ebp + 0x14]
push eax
push esi
call fcn.1004b0c0
mov ecx, dword [ebp - 4]
push 0x20
inc ecx
push ecx
push esi
call fcn.1004af80
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push eax
push esi
call fcn.1004af80
mov ecx, dword [ebp - 4]
push 0x20
add ecx, 0x21
push ecx
push esi
call fcn.1004af80
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x18]
push edx
add eax, 0x41
push eax
push esi
call fcn.1004b0f0
push esi
call fcn.1004b330
add esp, 0x3c
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
push ebx
push 0x41
push esi
push 4
push ecx
push edi
call fcn.1004bf10
add esp, 4
push eax
call fcn.1004f170
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 0x14]
add esp, 0x18
push edx
push eax
push edi
call fcn.1004b690
lea ecx, [eax + esi + 0x41]
add esp, 4
push ecx
call fcn.100b8d30
push edi
call fcn.1004b690
mov edx, dword [ebp + 0xc]
add esp, 0x10
lea esi, [eax + edx + 0x41]
mov eax, dword [ebp - 0xc]
push eax
call fcn.100458a0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.1004c400
mov edx, dword [ebp - 0x14]
push edx
call fcn.1004c400
add esp, 0xc
test ebx, ebx
je 0x1000be07
push ebx
call fcn.10046340
push ebx
call fcn.100462c0
add esp, 8
mov eax, dword [ebp - 4]
push eax
call fcn.10044040
mov ecx, dword [ebp - 8]
push ecx
call fcn.10044040
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret