Function at 0x1002ecf4
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1005bafc
call fcn.1005a9e0
sub esp, 0x5c
cmp byte [ebp + 0xc], 0
mov eax, edx
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], eax
je 0x1002ed3f
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
je 0x1002f05d
xor esi, esi
push esi
push esi
push 0x28a
push esi
push 0x2081
push esi
push esi
push 0x1d22
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x1002f05d
mov dword [ebp - 0x34], ecx
xor esi, esi
mov dword [ebp - 0x40], eax
movzx eax, word [ecx]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], eax
push 4
pop edi
mov dword [ebp - 0x1c], 0xbacd7953
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], 0xfffffff7
mov dword [ebp - 0x24], esi
push edi
call fcn.10001b45
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], esi
jmp 0x1002ed85
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x4c]
mov dword [eax + ecx*4], 0x1e1d82c3
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], edi
jl 0x1002ed75
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
neg esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
sbb esi, esi
mov dword [ebp - 0x18], eax
neg esi
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub edx, eax
mov eax, dword [ebp - 0x1c]
neg edx
sbb edx, edx
xor ecx, ecx
inc edx
cmp edx, eax
mov eax, dword [ebp - 0x1c]
setge cl
xor edx, edx
cmp esi, ecx
setge dl
xor ebx, ebx
cmp edx, eax
mov eax, dword [ebp - 0x1c]
setne bl
xor ecx, ecx
cmp eax, ebx
mov eax, dword [ebp - 0x1c]
setl cl
xor edx, edx
cmp ecx, 0x1d91e66c
setge dl
xor ebx, ebx
imul eax, edx
test eax, eax
je 0x1002ee12
push 0x2ff7
push 0x6474
push ebx
lea eax, [ebp - 0x18]
mov edx, 0x797d
push eax
lea eax, [ebp - 0x24]
mov ecx, 0x3c2d
push eax
call fcn.1002c899
add esp, 0x14
jmp 0x1002eec0
push 3
mov dword [ebp - 0x18], ebx
pop esi
jmp 0x1002eeb0
push 0x1b1d
push 0x14d4
lea eax, [ebp - 0x18]
mov edx, 0x39b2
push eax
push 0x3a38
push ebx
push 0x5f18
push 0x5a3e
lea ecx, [ebp - 0x4c]
call fcn.1002d0ff
add esp, 0x1c
mov dword [ebp - 0x20], ebx
jmp 0x1002eea8
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x24], ebx
jl 0x1002eea5
lea eax, [ebp - 0x1c]
xor cl, cl
push eax
lea eax, [ebp - 0x4c]
push 0x51e4
push eax
lea edx, [ebp - 0x24]
call fcn.1002ffcf
add esp, 0xc
mov byte [ebp - 0x11], bl
lea eax, [ebp - 0x11]
mov edx, 0x6f51
mov ecx, 0x1beb
push 0x61e9
push ebx
push eax
push 0x48ae
push 0x3d31
push 0x504f
call fcn.1002c67c
add esp, 0x18
dec dword [ebp - 0x24]
jns 0x1002ee58
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], esi
jle 0x1002ee50
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], esi
jle 0x1002ee1d
xor cl, cl
call fcn.1002ba3d
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x4c], 0
je 0x1002eedc
push dword [ebp - 0x4c]
call fcn.10044367
pop ecx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
push 0x7ede
push 0x7ebc
push ebx
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x38]
call fcn.1002c1e9
mov dword [ebp - 0x30], 0x1e0b
add esp, 0xc
cmp dword [ebp - 0x30], 0x20fe
jle 0x1002ef5a
mov esi, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], 0x3cfc
mov edi, ebx
mov esi, ebx
mov ebx, dword [ebp - 0x20]
mov eax, esi
mov ecx, 0x10076818
xor eax, edi
or eax, ebx
cdq
push edx
push eax
call fcn.10001a30
inc esi
cmp esi, 0x3848
jl 0x1002ef1b
inc edi
push 0
pop ebx
cmp edi, 0x7a1b
jl 0x1002ef16
dec dword [ebp - 0x20]
dec dword [ebp - 0x28]
jne 0x1002ef14
mov esi, dword [ebp - 0x2c]
inc esi
mov dword [ebp - 0x2c], esi
cmp esi, 0x1117
jl 0x1002ef0a
push ebx
push 1
push ebx
mov edx, 0x2419
mov ecx, 0x759
call fcn.1002cc0b
add esp, 0xc
mov dword [ebp - 4], 1
cmp dword [ebp - 0x30], 0x1b45
jge 0x1002ef8f
mov edx, str.qlafw_esjcldh_vzazku_hjaktpu_eqrvl_slryzwvw_qbjeo_mcfws_ycpgcyyj_mqg
mov ecx, 0x10076818
call fcn.1000349f
or dword [ebp - 4], 0xffffffff
mov edi, ebx
mov dword [ebp - 0x2c], ebx
cmp edi, 2
jae 0x1002f053
mov dword [ebp - 0x30], 0x6a25
cmp dword [ebp - 0x30], 0x6db7
jle 0x1002eff7
mov esi, ebx
mov edi, ebx
mov ecx, edi
mov eax, esi
shl eax, cl
lea ecx, [ebp - 0x64]
cdq
push edx
push eax
call fcn.10003aad
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1002efd0
mov eax, dword [eax]
push eax
call fcn.100445e8
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.10001e5d
inc edi
cmp edi, 0x9d4
jl 0x1002efb5
inc esi
cmp esi, 0x6e33
jl 0x1002efb3
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
mov dl, 0x6b
mov cl, byte [edi + esi]
call fcn.100358c5
cmp dword [ebp - 0x30], 0x6697
mov byte [edi + esi], al
jge 0x1002f01b
push str.rqejiwp_jge_cawvfd_ydrqdzxj_fdlusxbi
call fcn.100445e8
pop ecx
or dword [ebp - 4], 0xffffffff
inc edi
mov dword [ebp - 0x2c], edi
jmp 0x1002ef98
mov ecx, dword [ebp - 0x3c]
mov ax, word [ebp - 0x38]
mov word [ecx], ax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret