Function at 0x1003e450
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10065bdd
call fcn.100641f8
sub esp, 0x1fc
mov byte [ebp - 0x4c], dl
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
test dl, dl
je 0x1003eda0
xor ebx, ebx
mov dword [ebp - 0x94], 7
xor eax, eax
mov dword [ebp - 0x98], ebx
mov word [ebp - 0xa8], ax
push 0x5ce7
push 0x2307
mov dword [ebp - 4], ebx
xor dl, dl
mov dword [ebp - 0x14], ebx
mov ecx, 0x287b
push 0x2c46
call fcn.1003eff7
add esp, 0xc
mov dword [ebp - 0x14], 2
jmp 0x1003e683
mov dword [ebp - 0x1c], 0xaed23b61
mov dword [ebp - 0x1c], ebx
jmp 0x1003e4d5
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0xdc], ebx
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 2
jl 0x1003e4c8
mov dword [ebp - 0x24], 0x19fa
cmp dword [ebp - 0x24], 0x54e
jge 0x1003e650
push 0x31
lea eax, [ebp - 0x110]
push 1
push eax
call fcn.1004c450
add esp, 0xc
mov word [ebp - 0x110], 0
mov esi, ebx
push 2
pop eax
cmp byte [ebp + eax - 0x110], 0
je 0x1003e53f
mov dword [ebp + esi*4 - 0x208], eax
inc esi
push 2
pop edx
cmp eax, 0x19
jge 0x1003e53f
lea ecx, [eax + eax]
inc edx
mov byte [ebp + ecx - 0x110], bl
mov ecx, edx
imul ecx, eax
cmp ecx, 0x31
jl 0x1003e52d
inc eax
cmp eax, 0x31
jl 0x1003e510
lea eax, [ebp - 0x54]
mov dword [ebp - 0x30], esi
push eax
push 0x1006db38
call fcn.1004be5b
xor eax, eax
inc eax
pop ecx
pop ecx
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x54], eax
jl 0x1003e650
push eax
push str.Scenario__d:_n
call fcn.1004c39e
lea eax, [ebp - 0x48]
push eax
push 0x1006db38
call fcn.1004be5b
xor edi, edi
mov dword [ebp - 0x28], ebx
add esp, 0x10
inc edi
test esi, esi
jle 0x1003e620
mov ecx, dword [ebp - 0x48]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
push ecx
push ecx
movsd qword [esp], xmm0
call fcn.1004cc64
mov eax, dword [ebp - 0x28]
fstp qword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x20]
pop ecx
mov eax, dword [ebp + eax*4 - 0x208]
pop ecx
mov dword [ebp - 0x34], eax
movd xmm1, eax
cvtdq2pd xmm1, xmm1
comisd xmm0, xmm1
jbe 0x1003e620
mov ecx, dword [ebp - 0x48]
cmp ecx, 1
je 0x1003e62b
mov eax, ecx
mov dword [ebp - 0x1c], ebx
cdq
idiv dword [ebp - 0x34]
test edx, edx
jne 0x1003e602
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x1c]
mov eax, ecx
cdq
idiv ebx
inc esi
mov ecx, eax
cdq
idiv ebx
test edx, edx
je 0x1003e5e8
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x1c]
lea eax, [eax*2 + 1]
imul edi, eax
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp eax, esi
jl 0x1003e594
jmp 0x1003e623
mov ecx, dword [ebp - 0x48]
cmp ecx, 1
je 0x1003e62b
imul edi, edi, 3
lea eax, [edi + 1]
cdq
sub eax, edx
sar eax, 1
push eax
push str._d_n_n
call fcn.1004c39e
mov eax, dword [ebp - 0x24]
inc eax
pop ecx
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, dword [ebp - 0x54]
jle 0x1003e567
push ecx
push 0x1c7
mov byte [ebp - 0x36], bl
lea edx, [ebp - 0x36]
push 1
mov ecx, 0x2fe4
call fcn.1003d39a
add esp, 0xc
mov dword [ebp - 0x1c], ebx
jmp 0x1003e67a
xor cl, cl
call fcn.1003d8ad
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 1
jle 0x1003e670
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x18
jl 0x1003e4bc
push dword [ebp + 0x10]
lea ecx, [ebp - 0xa8]
call fcn.1000d1a1
mov eax, dword [0x10146f94]
test al, 1
jne 0x1003e6c4
or eax, 1
mov dword [0x10146f94], eax
push 0xd6eb
mov byte [ebp - 4], 1
call fcn.1003be8a
pop ecx
mov word [0x10146f90], ax
mov byte [ebp - 4], bl
push 3
pop esi
push esi
lea ecx, [ebp - 0x84]
call fcn.10001d4c
mov byte [ebp - 4], 2
mov dword [ebp - 0x40], 0xe2236432
mov dword [ebp - 0x50], 0xfffffff8
mov dword [ebp - 0x68], 8
mov dword [ebp - 0x34], 0x42d6
cmp dword [ebp - 0x34], 0x4335
jle 0x1003e76f
mov esi, ebx
mov dword [ebp - 0x30], ebx
mov edi, ebx
mov dword [ebp - 0x24], ebx
mov ecx, edi
mov dword [ebp - 0x28], esi
mov edi, esi
mov dword [ebp - 0x1c], ebx
sar edi, cl
mov esi, ebx
mov eax, edi
lea ecx, [ebp - 0x140]
and eax, esi
cdq
push edx
push eax
call fcn.10001a6a
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1003e730
mov eax, dword [eax]
push eax
call fcn.1004c39e
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x140]
call fcn.1000205a
inc esi
cmp esi, 0x200f
jl 0x1003e714
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x30]
inc edi
mov dword [ebp - 0x24], edi
cmp edi, 0x3f32
jl 0x1003e706
inc esi
mov dword [ebp - 0x30], esi
cmp esi, 0x570c
jl 0x1003e701
push 3
pop esi
mov dword [ebp - 0x78], ebx
cmp dword [ebp - 0x34], 0x3f8b
jge 0x1003e786
push str.ijwkw_bbxqmn_gbahydo_rdo_jfjvuy_pgqx_hhyosgef_ajtvei
call fcn.1004c39e
pop ecx
push 2
pop edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], ebx
jmp 0x1003e7a4
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x84]
mov dword [eax + ecx*4], 0xb9b55bb2
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], esi
jl 0x1003e791
mov dword [ebp - 0x40], ebx
cmp dword [ebp - 0x40], edx
jg 0x1003e84e
push esi
lea ecx, [ebp - 0xc0]
call fcn.10001d4c
push 0x324f
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0xc4]
mov dword [ebp - 0x74], 0xfffffffd
push eax
push ecx
push ebx
push 0x8df
mov ecx, 0x4eac
call fcn.1003d202
add esp, 0x18
lea eax, [ebp - 0x50]
mov dl, 1
push eax
push ecx
push ecx
call fcn.1003d1e2
add esp, 0xc
lea eax, [ebp - 0x84]
lea ecx, [ebp - 0xc0]
push eax
push ebx
lea eax, [ebp - 0x68]
push eax
push 0x4408
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.1003e219
add esp, 0x20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc0]
call fcn.10001d88
inc dword [ebp - 0x40]
cmp dword [ebp - 0x40], 2
jle 0x1003e7b5
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], bl
call fcn.10001d88
mov eax, dword [0x10146f94]
test al, 2
jne 0x1003e885
or eax, 2
mov dword [0x10146f94], eax
push 0x1a16e
mov byte [ebp - 4], 6
call fcn.1003be8a
pop ecx
mov word [0x10146f9c], ax
mov byte [ebp - 4], bl
push esi
lea ecx, [ebp - 0xb4]
call fcn.10001d4c
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x1c], 0x39d6b9c2
mov dword [ebp - 0x14], 0x86992f1e
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x24], 1
push esi
call fcn.10001d4c
push 0x7186
push 0xdb6
push 0x2b78
push ecx
mov byte [ebp - 4], 8
lea eax, [ebp - 0x44]
push 1
mov dword [ebp - 0x24], 0x9a984365
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x6c], 0x47073e70
push eax
call fcn.1003d202
mov dword [ebp - 0x30], 0x6a5d
add esp, 0x18
cmp dword [ebp - 0x30], 0x6be1
jle 0x1003e967
push ebx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [ebp - 0x28], ebx
mov esi, ebx
mov edi, ebx
mov eax, ebx
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
and eax, edi
mov ecx, 0x10081de8
xor eax, esi
xor eax, ebx
cdq
push edx
push eax
call fcn.1000d012
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp eax, 0xd17
jl 0x1003e919
inc edi
push 0
pop ebx
cmp edi, 0x720e
jl 0x1003e911
inc esi
cmp esi, 0x1417
jl 0x1003e90f
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp eax, 0x539b
jl 0x1003e90d
push ebx
call dword [sym.imp.GDI32.dll_CreateBrushIndirect]
push 3
pop esi
mov dword [ebp - 0x44], ebx
jmp 0x1003e97f
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x90]
mov dword [eax + ecx*4], 0xfffffffd
inc dword [ebp - 0x44]
cmp dword [ebp - 0x44], esi
jl 0x1003e96c
mov byte [ebp - 4], 9
cmp dword [ebp - 0x30], 0x67e3
jge 0x1003e9c1
mov edx, str.znvij_xgl_rdqh
mov ecx, 0x10081de8
call fcn.1000ff9e
jmp 0x1003e9c1
mov dword [ebp - 4], 8
mov edi, dword [ebp - 0xb4]
cmp dword [edi + 4], ebx
jne 0x1003ea08
mov dword [ebp - 0x1c], ebx
xor edx, edx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp ecx, eax
mov ecx, 0xc5ec62bb
setg dl
xor eax, eax
test edx, edx
sets al
cmp ecx, eax
sbb eax, eax
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp dword [edi + 4], eax
jge 0x1003ea04
cmp dword [ebp - 0x1c], ebx
jne 0x1003ea08
mov ecx, ebx
jmp 0x1003ea0b
xor ecx, ecx
inc ecx
xor eax, eax
cmp ecx, dword [edi + 4]
setne al
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], ebx
je 0x1003ea20
xor ecx, ecx
inc ecx
jmp 0x1003ea22
mov ecx, ebx
xor eax, eax
cmp ecx, dword [edi + 4]
setne al
cmp eax, 0xfffffffb
sbb eax, eax
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x90]
neg eax
sbb eax, eax
neg eax
mov dword [ecx + 8], eax
jne 0x1003ea4a
mov eax, dword [ebp - 0x14]
mov eax, dword [ecx + 8]
push 0x1031
push ecx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x6c]
push ecx
push eax
mov cl, 1
call fcn.1003d2ec
add esp, 0x10
lea ecx, [ebp - 0x90]
call fcn.10001d88
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], bl
call fcn.10001d88
mov dword [ebp - 0x34], 0x4ee2
cmp dword [ebp - 0x34], 0x5261
jle 0x1003eb43
mov dword [ebp - 0x28], ebx
mov esi, ebx
mov dword [ebp - 0x30], ebx
mov edi, ebx
mov dword [ebp - 0x24], ebx
mov eax, esi
mov dword [ebp - 0x1c], ebx
cdq
idiv edi
mov esi, dword [ebp - 0x28]
mov edi, ebx
mov eax, edx
mov dword [ebp - 0x14], eax
mov ecx, edi
shl eax, cl
lea ecx, [ebp - 0x128]
and eax, esi
cdq
push edx
push eax
call fcn.10001a6a
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1003eacf
mov eax, dword [eax]
push eax
call fcn.1004c39e
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x128]
call fcn.1000205a
mov eax, dword [ebp - 0x14]
inc edi
cmp edi, 0x4112
jl 0x1003eab1
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x30]
inc edi
mov dword [ebp - 0x24], edi
cmp edi, 0x1bac
jl 0x1003ea9f
inc esi
mov dword [ebp - 0x30], esi
cmp esi, 0x2f69
jl 0x1003ea9a
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp eax, 0x474d
jl 0x1003ea95
push 0x104e
push ebx
push ebx
push ebx
push ebx
push 0x158b
push 0xbaa
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_ScrollWindowEx]
push 3
pop esi
mov edi, dword [ebp + 0x10]
test edi, edi
jmp 0x1003ed5a
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x1c], ebx
jmp 0x1003eb97
cmp byte [ebp - 0x29], 0
je 0x1003eb75
push ecx
push 0x1fce
sub esp, 0xc
push 0x1b5c
push ecx
push ecx
push 1
call fcn.1003d4a2
add esp, 0x24
push 0x50cf
push 0x2856
push ebx
push 0x627b
mov dl, 1
mov ecx, 0x2d84
call fcn.1003db7f
add esp, 0x10
dec dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0xfffffffe
mov byte [ebp - 0x29], bl
jl 0x1003eb55
cmp byte [ebp - 0x29], 0
je 0x1003ebad
push ecx
call fcn.1003eee6
pop ecx
call fcn.1003d14c
push 0x24
pop ecx
xor edx, edx
div ecx
push 4
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x70], edx
call fcn.10001d4c
push ecx
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 0xb
push eax
mov dword [ebp - 0x14], 0xfffffff9
lea ecx, [ebp - 0x3c]
push ebx
mov edx, 0x472a
call fcn.1003d39a
add esp, 0xc
mov dword [ebp - 0x3c], ebx
jmp 0x1003ebfa
mov eax, dword [ebp - 0x3c]
mov dword [ebp + eax*4 - 0x58], 0xffffffff
inc dword [ebp - 0x3c]
cmp dword [ebp - 0x3c], 1
jl 0x1003ebec
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x14], ebx
jl 0x1003ed19
mov dword [ebp - 0x1c], 0x4b25b3b9
mov dword [ebp - 0x30], 0x4e2b79dc
mov dword [ebp - 0x1c], ebx
jmp 0x1003ec30
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0xd4], 0xa6f9a4d9
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 4
jl 0x1003ec1f
push 0x3a0f
push 1
push 0x6e4f
lea eax, [ebp - 0x35]
mov byte [ebp - 0x35], bl
push eax
push 0x6a9f
push 0x7b41
push 0xb0f
push 0x26f5
mov ecx, 0x911
call fcn.1003e219
add esp, 0x20
mov dword [ebp - 0x1c], ebx
jmp 0x1003ed04
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x64]
cmp dword [eax + ecx*4], ebx
jne 0x1003ed0d
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x64]
mov edx, dword [ebp - 0x1c]
cmp dword [eax + ecx*4], 8
sbb eax, eax
xor ecx, ecx
neg eax
cmp eax, 0xc5ec
mov eax, dword [ebp - 0x64]
setne cl
imul edx, ecx
xor ecx, ecx
imul edx, dword [eax]
mov eax, dword [ebp - 0x1c]
cmp edx, eax
mov edx, dword [ebp - 0x64]
setg cl
sub ecx, dword [edx + esi*4]
neg ecx
sbb ecx, ecx
or eax, 0xffffffff
inc ecx
sub eax, ecx
xor ecx, ecx
cmp eax, dword [edx + edi*4]
setl cl
mov dword [ebp - 0x58], ecx
test ecx, ecx
jne 0x1003ece3
cmp dword [ebp - 0x1c], ebx
jne 0x1003ece3
mov eax, ebx
jmp 0x1003ece6
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x1c]
xor edx, edx
add ecx, eax
mov eax, dword [ebp - 0x30]
cmp ecx, eax
push 3
setl dl
add edx, dword [ebp - 0x14]
mov dword [ebp - 0xcc], edx
inc dword [ebp - 0x1c]
pop esi
cmp dword [ebp - 0x1c], esi
jle 0x1003ec72
dec dword [ebp - 0x14]
jns 0x1003ec0c
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x14], ebx
jmp 0x1003ed2c
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x58], 1
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 1
jl 0x1003ed1e
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], bl
call fcn.10001d88
push ecx
push 0x10146f9c
push 0x10146f90
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0xa8]
call fcn.1003d848
add esp, 0xc
dec edi
mov dword [ebp - 0x24], edi
jne 0x1003eb4d
cmp dword [ebp - 0x34], 0x4ba1
jge 0x1003ed77
push str.vbqoc_dghnbb_llef_jordnl_otavdklod_jizo_xnhnm_kxbrij_docj_jlgg_rtowet
call fcn.1004c39e
pop ecx
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], ebx
cmp ecx, eax
je 0x1003ed90
push 0xffffffffffffffff
push ebx
push eax
call fcn.10002250
push ebx
push 1
lea ecx, [ebp - 0xa8]
call fcn.1000232a
jmp 0x1003edc3
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
cmp dword [edx], 1
jge 0x1003edc3
mov esi, dword [ebp + 0x18]
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], 0xcda6a44f
inc dword [edx]
cmp dword [edx], 1
jl 0x1003edb1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret