Function at 0x61e130
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x860
mov eax, dword [esp + 0x874]
add eax, 0xffffffd2
cmp eax, 3
ja case.default.0x61e149
jmp dword [eax*4 + 0x7e18c0]
mov eax, dword [0x80dd40]
mov dword [esp], eax
call fcn.007c74c0
test eax, eax
jne 0x61e73f
mov esi, 0xf
mov byte [0x80dd3c], 1
mov eax, dword [0x80dd44]
mov dword [esp], eax
call fcn.007cb900
mov ecx, 0xd
test eax, eax
jne 0x61e769
jmp 0x61e74a
lea eax, [esp + 0x20]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x400
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleFileNameW
sub esp, 0xc
mov ecx, eax
xor eax, eax
test ecx, ecx
je 0x61e828
add ecx, 0x20
cmp ecx, 0x3ff
ja 0x61e828
xor ecx, ecx
test cl, cl
mov dword [esp + 0x10], 0
jne 0x61e828
mov edi, dword [esp + 0x878]
movaps xmm0, xmmword [str.haspvlib]
lea eax, [esp + 0x20]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
nop dword [eax + eax]
mov ax, word [ebp]
test ax, ax
je 0x61e220
mov ecx, 0x13
movzx eax, ax
cmp eax, 0x5c
jne 0x61e27b
mov dword [esp + 0x18], ebp
jmp 0x61e26c
mov edx, dword [esp + 0x10]
mov eax, edx
imul eax, eax
and eax, 3
lea ecx, [edx + 2]
cmp eax, 2
lea eax, [esp + 0x20]
cmove ecx, eax
test edx, edx
cmove ecx, eax
mov dword [esp + 0x14], ecx
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0x5f
test edi, edi
je 0x61e791
mov al, 1
test al, al
je 0x61e791
mov dword [esp + 0x18], ebp
mov ecx, 0xa
add dword [esp + 0x14], 0x12
xor eax, eax
cmp ecx, 0xa
je 0x61e2d8
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x10], ebp
xor ecx, ecx
mov edx, ebp
jmp 0x61e2ac
mov eax, 0x13
mov edx, ecx
or edx, 2
mov esi, ecx
xor esi, 2
add esi, edx
setne dl
movzx edx, dl
add ecx, edx
lea edx, [ebp + 2]
test ecx, ecx
je 0x61e290
mov bl, 1
test bl, bl
je 0x61e290
mov ebp, edx
jmp 0x61e3aa
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 2
adc eax, 0
mov word [esp + 0x85e], 0
mov ecx, eax
not ecx
and ecx, 1
add ecx, eax
setne cl
movzx ecx, cl
mov ebp, 0x1f
cmp eax, ecx
jb 0x61e2c0
mov edx, edi
nop word cs:[eax + eax]
mov ecx, edx
mov ebx, ebp
mov dword [esp + 0x1c], ebx
mov eax, ecx
mov edx, 0xcccccccd
mul edx
shr edx, 3
lea eax, [edx + edx]
lea eax, [eax + eax*4]
mov esi, ecx
sub esi, eax
imul ebx, ebx
and ebx, 3
cmp ebx, 2
sbb ebp, 0
mov edi, 3
sub edi, ecx
xor edi, ecx
cmp ecx, 9
mov ax, word [esi + esi + str.0123456789abcdef]
mov word [esp + ebp*2 + 0x820], ax
ja 0x61e300
test edi, edi
je 0x61e300
cmp ebx, 2
mov edx, dword [esp + 0x1c]
sbb edx, 0
lea ecx, [esp + 0x822]
lea edx, [ecx + edx*2]
xor ecx, ecx
mov edi, dword [esp + 0x14]
nop word cs:[eax + eax]
mov word [edi + ecx], ax
movzx eax, word [edx + ecx]
mov esi, eax
and esi, 1
inc esi
xor esi, eax
sete bl
add ecx, 2
movzx esi, bl
cmp eax, esi
jne 0x61e370
mov eax, 9
lea edx, [edi + ecx]
mov dword [esp + 0x1c], edx
mov word [edi + ecx], 0
mov edi, dword [esp + 0x878]
mov ebp, dword [esp + 0x18]
cmp eax, 9
jne 0x61e200
mov ecx, eax
and ecx, 1
xor ecx, eax
not ecx
test ecx, ecx
je 0x61e200
jmp 0x61e7a3
mov eax, dword [0x80dd40]
mov dword [esp], eax
call fcn.007c74c0
test eax, eax
jne 0x61e844
mov eax, 0x1c11c521
add al, 0x2e
mov dword [esp + 0x1c], eax
mov ebx, 0x1c11c521
add bl, 0xe
jmp 0x61e4f0
mov eax, 3
mov ecx, 7
mov bl, 0x48
mov dl, byte [0x80dd3c]
and dl, 1
mov esi, dword [0x80dd40]
je 0x61e465
cmp ecx, 7
jne 0x61e4f0
jmp 0x61e511
mov eax, dword [0x80dd44]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.007cb920
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete cl
movzx ecx, cl
cmp eax, ecx
jne 0x61e815
mov eax, 0x13
mov cl, 0x71
mov dword [esp + 0x1c], ecx
cmp eax, 3
je 0x61e474
mov ecx, eax
and ecx, 1
inc ecx
xor ecx, eax
jne 0x61e4f0
mov eax, dword [esp + 0x1c]
movzx eax, al
cmp eax, 0x30
je 0x61e4b0
cmp eax, 0x71
je 0x61e430
mov al, 0x4f
mov dword [esp + 0x1c], eax
mov eax, dword [0x80dd44]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.007cb920
test eax, eax
je 0x61e4f0
jmp 0x61e815
mov eax, dword [0x80dd44]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.007cb920
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete cl
movzx ecx, cl
cmp eax, ecx
jne 0x61e815
mov ecx, 0xc
mov al, 0x30
mov dword [esp + 0x1c], eax
jmp 0x61e41d
movzx eax, bl
cmp eax, 0x2f
jne 0x61e400
mov bl, 0x2f
mov al, byte [0x80dd3c]
and al, 1
mov esi, dword [0x80dd40]
je 0x61e474
mov dword [esp], esi
call fcn.007c74e0
test eax, eax
je 0x61e826
jmp 0x61e72e
mov eax, dword [0x80dd40]
mov dword [esp], eax
call fcn.007c74c0
test eax, eax
je 0x61e785
mov ecx, 0x1c11c521
add ecx, 0xe3ee3af9
jmp 0x61e8b4
mov eax, dword [0x80dd40]
mov dword [esp], eax
call fcn.007c74c0
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete cl
movzx ecx, cl
cmp eax, ecx
jne 0x61e844
mov eax, 0x1c11c521
xor eax, 0x1c11c52e
mov bh, al
add bh, 0x6e
mov bl, al
add bl, 0x24
jmp 0x61e595
mov eax, 0xa
cmp eax, 0xa
jne 0x61e5b0
imul eax, eax
and eax, 3
cmp eax, 2
jb 0x61e6c0
nop dword [eax]
movzx eax, bl
cmp eax, 6
je 0x61e5e0
cmp eax, 0x33
jne 0x61e600
mov eax, 0x19
mov bl, 0x72
mov cl, byte [0x80dd48]
and cl, 1
mov esi, dword [0x80dd40]
je 0x61e618
jmp 0x61e590
mov bl, 6
mov al, byte [0x80dd48]
and al, 1
mov esi, dword [0x80dd40]
je 0x61e62c
jmp 0x61e6c0
mov eax, 0xe
mov bl, 0x33
mov cl, byte [0x80dd48]
and cl, 1
mov esi, dword [0x80dd40]
je 0x61e62c
cmp eax, 0xe
jne 0x61e62c
imul eax, eax
and eax, 3
cmp eax, 2
jb 0x61e6c0
movzx eax, bh
cmp eax, 0x71
je 0x61e680
mov ebp, 9
cmp eax, 0x7d
je 0x61e6e7
mov bh, 0xb
mov eax, dword [0x80dd44]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.007cb920
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 2
sete cl
movzx ecx, cl
cmp eax, ecx
je 0x61e5b0
jmp 0x61e804
mov eax, dword [0x80dd44]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.007cb920
test eax, eax
jne 0x61e804
mov bh, 0x71
mov ecx, eax
and ecx, 1
xor ecx, eax
not ecx
test ecx, ecx
jne 0x61e5b0
jmp 0x61e804
mov ebp, 0x18
mov edi, 0x1f
mov dword [esp], esi
call fcn.007c74e0
mov ecx, eax
imul ecx, ecx
and ecx, 3
cmp ecx, 3
sete cl
movzx ecx, cl
cmp eax, ecx
jne 0x61e725
cmp ebp, 9
jne 0x61e826
mov eax, ebp
not eax
and eax, 1
add eax, ebp
je 0x61e826
mov edi, 0xf
mov bh, 0x7d
mov eax, dword [0x80dd44]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.007cb920
test eax, eax
je 0x61e725
xor eax, eax
test al, al
je 0x61e804
cmp edi, 0xf
je 0x61e5b0
mov dword [esp], str.Failed_to_unlock_external_n
call fcn.00441610
call fcn.0044c0d0
mov ecx, 0x1c11c521
add ecx, 0xe3ee3af5
cmp ecx, 0xd
jne 0x61e844
mov esi, 7
mov eax, dword [0x80dd40]
mov dword [esp], eax
call fcn.007c74e0
test eax, eax
jne 0x61e72e
cmp esi, 7
je 0x61e826
mov eax, esi
and eax, 1
inc eax
xor eax, esi
je 0x61e826
jmp 0x61e833
mov edi, 4
mov bl, 0x21
jmp 0x61e899
mov eax, dword [esp + 0x14]
mov dword [eax + 0x12], 0x30
add eax, 0x14
mov dword [esp + 0x1c], eax
xor esi, esi
mov edi, 0xffffffff
lea ebx, [esp + 0x20]
mov ebp, dword [esp + 0x1c]
jmp 0x61e7f1
inc esi
mov dword [ebp], 0x64002e
mov dword [ebp + 4], 0x6c006c
mov word [ebp + 8], 0
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0
call sub.KERNEL32.dll_LoadLibraryExW
sub esp, 0xc
dec edi
mov ecx, esi
and ecx, 1
xor ecx, edi
setne cl
movzx ecx, cl
cmp esi, ecx
jb 0x61e7c0
jmp 0x61e828
mov dword [esp], str.Failed_to_wait_external_query_n
call fcn.00441610
call fcn.0044c0d0
mov dword [esp], str.Failed_to_wait_external_vlib_n
call fcn.00441610
call fcn.0044c0d0
xor eax, eax
add esp, 0x860
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], str.Failed_to_signal_external_n
call fcn.00441610
call fcn.0044c0d0
mov dword [esp], str.Failed_to_lock_external_n
call fcn.00441610
call fcn.0044c0d0
mov byte [0x80dd48], 1
mov eax, dword [0x80dd44]
mov dword [esp], eax
call fcn.007cb900
test eax, eax
jne 0x61e833
mov bl, 0x4d
mov al, 0x3c
mov esi, 0xa
movzx eax, al
cmp eax, 0x3c
je 0x61e8d8
mov edi, 8
mov esi, 0xd
mov eax, dword [0x80dd40]
mov dword [esp], eax
call fcn.007c74e0
test eax, eax
je 0x61e8fd
cmp edi, 4
jne 0x61e72e
mov ecx, 0xf
mov esi, 0x16
movzx eax, bl
cmp eax, 0x4d
jne 0x61e8fd
cmp ecx, 0xf
jne 0x61e844
mov esi, 0x13
mov bl, 0x21
mov byte [0x80dd48], 1
mov eax, dword [0x80dd44]
mov dword [esp], eax
call fcn.007cb900
test eax, eax
je 0x61e90b
cmp esi, 0xa
jne 0x61e833
mov eax, dword [0x80dd40]
mov dword [esp], eax
call fcn.007c74e0
test eax, eax
je 0x61e826
mov ecx, 0xe
jmp 0x61e910
cmp esi, 0xd
jne 0x61e855
jmp 0x61e826
mov ecx, 5
mov al, 0x3c
cmp ecx, 5
jne 0x61e72e
jmp 0x61e871